From 1653b0449a1a463c415ba19eeb804573b4802e71 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 5 Jan 2023 11:57:53 +0100 Subject: [PATCH] Orval generator POC (#2724) for #2715 --- frontend/.prettierignore | 1 - frontend/orval.config.js | 37 + frontend/package.json | 8 +- frontend/scripts/generate-openapi.sh | 24 - .../archive/ProjectFeaturesArchiveTable.tsx | 18 +- .../StrategyItemContainer.tsx | 4 +- .../CreateFeatureButton.tsx | 6 +- .../useCreateFeaturePath.ts | 10 +- .../playground/Playground/Playground.tsx | 2 +- .../ContextBanner/ContextBanner.tsx | 2 +- .../FeatureDetails/FeatureDetails.tsx | 5 +- .../FeatureDetails/helpers.ts | 2 +- .../FeatureResultInfoPopoverCell.tsx | 5 +- .../PlaygroundResultFeatureStrategyList.tsx | 5 +- .../StrategyItem/FeatureStrategyItem.tsx | 5 +- .../ConstraintError/ConstraintError.tsx | 5 +- .../ConstraintExecution.tsx | 5 +- .../SegmentExecution/SegmentExecution.tsx | 5 +- .../StrategyExecution/StrategyExecution.tsx | 5 +- .../StrategyExecutionParameters.tsx | 5 +- .../playgroundResultStrategyLists.tsx | 6 +- .../FeatureStatusCell/FeatureStatusCell.tsx | 2 +- .../PlaygroundResultsTable.tsx | 5 +- .../Playground/interfaces/playground.model.ts | 321 --- .../playground/Playground/playground.utils.ts | 18 +- .../useFeaturesFilter.test.ts.snap | 197 -- .../actions/useFeatureApi/useFeatureApi.ts | 19 +- .../actions/usePlayground/usePlayground.ts | 2 +- .../useFeaturesArchive/useFeaturesArchive.ts | 31 +- .../useProjectFeaturesArchive.ts | 33 - .../api/getters/useSegments/useSegments.ts | 26 +- frontend/src/hooks/useFeaturesFilter.test.ts | 134 -- frontend/src/hooks/useFeaturesFilter.ts | 112 - frontend/src/openapi/apis/AdminApi.ts | 1077 --------- frontend/src/openapi/apis/index.ts | 3 - frontend/src/openapi/fetcher.ts | 50 + frontend/src/openapi/index.ts | 4 - .../src/openapi/models/CloneFeatureSchema.ts | 64 - .../src/openapi/models/ConstraintSchema.ts | 120 - .../src/openapi/models/CreateFeatureSchema.ts | 80 - .../openapi/models/CreateStrategySchema.ts | 87 - .../models/FeatureEnvironmentSchema.ts | 95 - frontend/src/openapi/models/FeatureSchema.ts | 252 --- .../openapi/models/FeatureStrategySchema.ts | 135 -- frontend/src/openapi/models/FeaturesSchema.ts | 71 - frontend/src/openapi/models/OverrideSchema.ts | 64 - .../openapi/models/PatchOperationSchema.ts | 94 - .../openapi/models/RequestsPerSecondSchema.ts | 80 - .../models/RequestsPerSecondSchemaData.ts | 80 - .../RequestsPerSecondSchemaDataResultInner.ts | 86 - ...stsPerSecondSchemaDataResultInnerMetric.ts | 71 - ...ndSchemaDataResultInnerValuesInnerInner.ts | 43 - .../RequestsPerSecondSegmentedSchema.ts | 80 - frontend/src/openapi/models/StrategySchema.ts | 95 - frontend/src/openapi/models/TagSchema.ts | 64 - .../src/openapi/models/TagsResponseSchema.ts | 71 - .../src/openapi/models/UpdateFeatureSchema.ts | 119 - .../openapi/models/UpdateStrategySchema.ts | 95 - frontend/src/openapi/models/VariantSchema.ts | 109 - .../openapi/models/VariantSchemaPayload.ts | 64 - .../openapi/models/addonParameterSchema.ts | 16 + frontend/src/openapi/models/addonSchema.ts | 19 + .../openapi/models/addonSchemaParameters.ts | 8 + .../src/openapi/models/addonTypeSchema.ts | 18 + frontend/src/openapi/models/addonsSchema.ts | 13 + .../models/adminFeaturesQuerySchema.ts | 13 + .../openapi/models/adminPermissionSchema.ts | 14 + .../openapi/models/adminPermissionsSchema.ts | 12 + .../adminPermissionsSchemaPermissions.ts | 13 + ...ssionsSchemaPermissionsEnvironmentsItem.ts | 12 + .../src/openapi/models/adminSegmentSchema.ts | 16 + frontend/src/openapi/models/apiTokenSchema.ts | 20 + .../src/openapi/models/apiTokenSchemaType.ts | 16 + .../src/openapi/models/apiTokensSchema.ts | 11 + .../src/openapi/models/applicationSchema.ts | 17 + .../src/openapi/models/applicationsSchema.ts | 11 + .../openapi/models/changePasswordSchema.ts | 11 + .../src/openapi/models/changeProjectSchema.ts | 10 + .../models/changeRequestAddCommentSchema.ts | 10 + .../models/changeRequestApprovalSchema.ts | 12 + .../changeRequestApprovalSchemaCreatedBy.ts | 12 + .../models/changeRequestCommentSchema.ts | 13 + .../changeRequestCommentSchemaCreatedBy.ts | 11 + .../models/changeRequestConfigSchema.ts | 9 + .../models/changeRequestCreateSchema.ts | 24 + .../models/changeRequestCreateSchemaOneOf.ts | 12 + .../changeRequestCreateSchemaOneOfFive.ts | 12 + ...angeRequestCreateSchemaOneOfFivePayload.ts | 10 + .../changeRequestCreateSchemaOneOfFour.ts | 12 + .../changeRequestCreateSchemaOneOfPayload.ts | 10 + .../changeRequestCreateSchemaOneOfThree.ts | 12 + .../changeRequestEnvironmentConfigSchema.ts | 13 + .../models/changeRequestEventSchema.ts | 18 + .../changeRequestEventSchemaCreatedBy.ts | 11 + .../models/changeRequestEventSchemaPayload.ts | 13 + .../changeRequestEventSchemaPayloadOneOf.ts | 8 + .../models/changeRequestFeatureSchema.ts | 13 + .../src/openapi/models/changeRequestSchema.ts | 24 + .../models/changeRequestSchemaCreatedBy.ts | 11 + .../models/changeRequestSchemaState.ts | 18 + .../models/changeRequestStateSchema.ts | 11 + .../models/changeRequestStateSchemaState.ts | 18 + .../openapi/models/changeRequestsSchema.ts | 9 + .../openapi/models/clientApplicationSchema.ts | 17 + .../models/clientApplicationSchemaStarted.ts | 8 + .../src/openapi/models/clientFeatureSchema.ts | 22 + .../models/clientFeaturesQuerySchema.ts | 14 + .../openapi/models/clientFeaturesSchema.ts | 16 + .../src/openapi/models/clientMetricsSchema.ts | 14 + .../models/clientMetricsSchemaBucket.ts | 14 + .../clientMetricsSchemaBucketToggles.ts | 15 + ...lientMetricsSchemaBucketTogglesVariants.ts | 10 + .../openapi/models/cloneEnvironmentSchema.ts | 17 + .../src/openapi/models/cloneFeatureSchema.ts | 11 + .../src/openapi/models/constraintSchema.ts | 25 + .../models/constraintSchemaOperator.ts | 31 + .../src/openapi/models/contextFieldSchema.ts | 16 + .../src/openapi/models/contextFieldsSchema.ts | 9 + .../openapi/models/createApiTokenSchema.ts | 17 + .../openapi/models/createEnvironmentSchema.ts | 17 + .../src/openapi/models/createFeatureSchema.ts | 13 + .../models/createFeatureStrategySchema.ts | 15 + .../openapi/models/createInvitedUserSchema.ts | 13 + .../src/openapi/models/createProjectSchema.ts | 12 + .../models/createRoleWithPermissionsSchema.ts | 13 + ...oleWithPermissionsSchemaPermissionsItem.ts | 11 + .../src/openapi/models/createUserSchema.ts | 15 + frontend/src/openapi/models/dateSchema.ts | 8 + .../src/openapi/models/edgeTokenSchema.ts | 13 + .../src/openapi/models/edgeTokenSchemaType.ts | 16 + frontend/src/openapi/models/emailSchema.ts | 10 + .../models/environmentProjectSchema.ts | 16 + .../src/openapi/models/environmentSchema.ts | 17 + .../models/environmentsProjectSchema.ts | 12 + .../src/openapi/models/environmentsSchema.ts | 12 + frontend/src/openapi/models/eventSchema.ts | 22 + .../src/openapi/models/eventSchemaData.ts | 8 + .../src/openapi/models/eventSchemaPreData.ts | 8 + frontend/src/openapi/models/eventsSchema.ts | 13 + frontend/src/openapi/models/exportFormat.ts | 14 + frontend/src/openapi/models/exportParams.ts | 17 + .../models/featureEnvironmentMetricsSchema.ts | 15 + .../models/featureEnvironmentSchema.ts | 15 + .../featureEnvironmentSchemaStrategiesItem.ts | 20 + .../src/openapi/models/featureEventsSchema.ts | 13 + .../openapi/models/featureMetricsSchema.ts | 13 + frontend/src/openapi/models/featureSchema.ts | 29 + .../openapi/models/featureStrategySchema.ts | 17 + .../models/featureStrategySegmentSchema.ts | 11 + .../src/openapi/models/featureTagSchema.ts | 14 + .../src/openapi/models/featureTypeSchema.ts | 13 + .../src/openapi/models/featureTypesSchema.ts | 12 + .../src/openapi/models/featureUsageSchema.ts | 15 + .../openapi/models/featureVariantsSchema.ts | 12 + frontend/src/openapi/models/featuresSchema.ts | 12 + frontend/src/openapi/models/feedbackSchema.ts | 13 + .../src/openapi/models/getEventsParams.ts | 8 + .../openapi/models/googleSettingsSchema.ts | 15 + frontend/src/openapi/models/groupSchema.ts | 19 + .../openapi/models/groupUserModelSchema.ts | 13 + frontend/src/openapi/models/groupsSchema.ts | 11 + .../src/openapi/models/healthCheckSchema.ts | 11 + .../openapi/models/healthCheckSchemaHealth.ts | 15 + .../openapi/models/healthOverviewSchema.ts | 19 + .../src/openapi/models/healthReportSchema.ts | 22 + frontend/src/openapi/models/idSchema.ts | 10 + frontend/src/openapi/models/index.ts | 259 ++- .../models/instanceAdminStatsSchema.ts | 25 + frontend/src/openapi/models/invoicesSchema.ts | 9 + .../src/openapi/models/invoicesSchemaItem.ts | 15 + .../src/openapi/models/legalValueSchema.ts | 11 + frontend/src/openapi/models/loginSchema.ts | 11 + .../src/openapi/models/maintenanceSchema.ts | 10 + frontend/src/openapi/models/meSchema.ts | 17 + frontend/src/openapi/models/meSchemaSplash.ts | 8 + frontend/src/openapi/models/nameSchema.ts | 10 + .../src/openapi/models/oidcSettingsSchema.ts | 19 + .../oidcSettingsSchemaDefaultRootRole.ts | 16 + frontend/src/openapi/models/overrideSchema.ts | 11 + .../src/openapi/models/parametersSchema.ts | 10 + .../src/openapi/models/passwordAuthSchema.ts | 10 + frontend/src/openapi/models/passwordSchema.ts | 11 + frontend/src/openapi/models/patSchema.ts | 14 + frontend/src/openapi/models/patchSchema.ts | 14 + frontend/src/openapi/models/patchSchemaOp.ts | 17 + frontend/src/openapi/models/patchesSchema.ts | 9 + frontend/src/openapi/models/patsSchema.ts | 11 + .../src/openapi/models/permissionSchema.ts | 12 + .../models/playgroundConstraintSchema.ts | 27 + .../playgroundConstraintSchemaOperator.ts | 31 + .../openapi/models/playgroundFeatureSchema.ts | 32 + .../playgroundFeatureSchemaStrategies.ts | 19 + ...playgroundFeatureSchemaStrategiesResult.ts | 15 + .../models/playgroundFeatureSchemaVariant.ts | 22 + .../playgroundFeatureSchemaVariantPayload.ts | 17 + ...aygroundFeatureSchemaVariantPayloadType.ts | 19 + .../openapi/models/playgroundRequestSchema.ts | 19 + .../models/playgroundRequestSchemaProjects.ts | 8 + .../models/playgroundResponseSchema.ts | 18 + .../openapi/models/playgroundSegmentSchema.ts | 18 + .../models/playgroundStrategySchema.ts | 25 + .../models/playgroundStrategySchemaResult.ts | 15 + .../playgroundStrategySchemaResultAnyOf.ts | 15 + ...ygroundStrategySchemaResultAnyOfEnabled.ts | 11 + ...rategySchemaResultAnyOfEvaluationStatus.ts | 17 + ...playgroundStrategySchemaResultAnyOfFour.ts | 14 + ...gySchemaResultAnyOfFourEvaluationStatus.ts | 17 + frontend/src/openapi/models/profileSchema.ts | 14 + .../src/openapi/models/projectAccessSchema.ts | 15 + .../openapi/models/projectCreatedSchema.ts | 18 + .../models/projectEnvironmentSchema.ts | 11 + .../openapi/models/projectOverviewSchema.ts | 13 + frontend/src/openapi/models/projectSchema.ts | 19 + frontend/src/openapi/models/projectUsers.ts | 13 + frontend/src/openapi/models/projectsSchema.ts | 12 + .../src/openapi/models/proxyClientSchema.ts | 24 + .../models/proxyClientSchemaStarted.ts | 11 + .../src/openapi/models/proxyFeatureSchema.ts | 14 + .../models/proxyFeatureSchemaVariant.ts | 13 + .../proxyFeatureSchemaVariantPayload.ts | 12 + .../proxyFeatureSchemaVariantPayloadType.ts | 14 + .../src/openapi/models/proxyFeaturesSchema.ts | 11 + .../src/openapi/models/proxyMetricsSchema.ts | 14 + .../models/proxyMetricsSchemaBucket.ts | 13 + .../models/proxyMetricsSchemaBucketToggles.ts | 15 + ...proxyMetricsSchemaBucketTogglesVariants.ts | 8 + .../models/publicSignupTokenCreateSchema.ts | 13 + .../openapi/models/publicSignupTokenSchema.ts | 23 + .../models/publicSignupTokenUpdateSchema.ts | 12 + .../models/publicSignupTokensSchema.ts | 11 + .../openapi/models/requestsPerSecondSchema.ts | 12 + .../models/requestsPerSecondSchemaData.ts | 13 + .../requestsPerSecondSchemaDataResultItem.ts | 15 + ...estsPerSecondSchemaDataResultItemMetric.ts | 14 + ...econdSchemaDataResultItemValuesItemItem.ts | 10 + .../requestsPerSecondSegmentedSchema.ts | 12 + .../src/openapi/models/resetPasswordSchema.ts | 10 + frontend/src/openapi/models/roleSchema.ts | 13 + .../models/roleWithPermissionsSchema.ts | 15 + .../openapi/models/roleWithVersionSchema.ts | 12 + .../openapi/models/rolesWithVersionSchema.ts | 12 + .../src/openapi/models/samlSettingsSchema.ts | 19 + .../samlSettingsSchemaDefaultRootRole.ts | 16 + .../src/openapi/models/sdkContextSchema.ts | 22 + .../models/sdkContextSchemaProperties.ts | 8 + .../src/openapi/models/searchEventsSchema.ts | 30 + frontend/src/openapi/models/segmentSchema.ts | 14 + .../openapi/models/segmentStrategiesSchema.ts | 11 + .../segmentStrategiesSchemaStrategiesItem.ts | 14 + frontend/src/openapi/models/segmentsSchema.ts | 11 + .../models/setStrategySortOrderSchema.ts | 9 + .../models/setStrategySortOrderSchemaItem.ts | 11 + .../src/openapi/models/setUiConfigSchema.ts | 11 + .../setUiConfigSchemaFrontendSettings.ts | 10 + .../src/openapi/models/sortOrderSchema.ts | 10 + frontend/src/openapi/models/splashSchema.ts | 12 + frontend/src/openapi/models/stateSchema.ts | 33 + .../src/openapi/models/strategiesSchema.ts | 12 + frontend/src/openapi/models/strategySchema.ts | 16 + .../models/strategySchemaParametersItem.ts | 13 + frontend/src/openapi/models/tagSchema.ts | 11 + frontend/src/openapi/models/tagTypeSchema.ts | 12 + frontend/src/openapi/models/tagTypesSchema.ts | 12 + .../openapi/models/tagWithVersionSchema.ts | 12 + frontend/src/openapi/models/tagsSchema.ts | 12 + .../src/openapi/models/tokenUserSchema.ts | 16 + frontend/src/openapi/models/uiConfigSchema.ts | 29 + .../uiConfigSchemaAuthenticationType.ts | 19 + .../src/openapi/models/uiConfigSchemaFlags.ts | 8 + .../openapi/models/uiConfigSchemaLinksItem.ts | 8 + .../openapi/models/updateApiTokenSchema.ts | 10 + ...ateChangeRequestEnvironmentConfigSchema.ts | 11 + .../openapi/models/updateEnvironmentSchema.ts | 13 + .../src/openapi/models/updateFeatureSchema.ts | 18 + .../models/updateFeatureStrategySchema.ts | 15 + .../updateFeatureStrategySegmentsSchema.ts | 13 + .../src/openapi/models/updateProjectSchema.ts | 11 + .../src/openapi/models/updateTagTypeSchema.ts | 11 + .../src/openapi/models/updateUserSchema.ts | 13 + .../models/upsertContextFieldSchema.ts | 15 + .../src/openapi/models/upsertSegmentSchema.ts | 13 + .../openapi/models/upsertStrategySchema.ts | 14 + .../upsertStrategySchemaParametersItem.ts | 13 + frontend/src/openapi/models/userSchema.ts | 21 + .../models/userWithProjectRoleSchema.ts | 16 + .../openapi/models/usersGroupsBaseSchema.ts | 13 + frontend/src/openapi/models/usersSchema.ts | 13 + .../src/openapi/models/usersSearchSchema.ts | 9 + .../models/validateEdgeTokensSchema.ts | 11 + .../validateEdgeTokensSchemaTokensItem.ts | 9 + .../openapi/models/validatePasswordSchema.ts | 10 + .../openapi/models/validateProjectSchema.ts | 10 + .../openapi/models/validateTagTypeSchema.ts | 12 + frontend/src/openapi/models/variantSchema.ts | 17 + .../openapi/models/variantSchemaPayload.ts | 11 + frontend/src/openapi/models/variantsSchema.ts | 9 + frontend/src/openapi/models/versionSchema.ts | 15 + .../openapi/models/versionSchemaCurrent.ts | 11 + .../src/openapi/models/versionSchemaLatest.ts | 11 + frontend/src/openapi/runtime.ts | 369 ---- frontend/src/utils/openapiClient.ts | 12 - frontend/tsconfig.node.json | 6 +- frontend/yarn.lock | 1928 +++++++++++++++-- src/lib/openapi/spec/sdk-context-schema.ts | 5 +- .../__snapshots__/openapi.e2e.test.ts.snap | 5 +- 305 files changed, 5505 insertions(+), 4770 deletions(-) create mode 100644 frontend/orval.config.js delete mode 100755 frontend/scripts/generate-openapi.sh delete mode 100644 frontend/src/component/playground/Playground/interfaces/playground.model.ts delete mode 100644 frontend/src/hooks/__snapshots__/useFeaturesFilter.test.ts.snap delete mode 100644 frontend/src/hooks/api/getters/useProjectFeaturesArchive/useProjectFeaturesArchive.ts delete mode 100644 frontend/src/hooks/useFeaturesFilter.test.ts delete mode 100644 frontend/src/hooks/useFeaturesFilter.ts delete mode 100644 frontend/src/openapi/apis/AdminApi.ts delete mode 100644 frontend/src/openapi/apis/index.ts create mode 100644 frontend/src/openapi/fetcher.ts delete mode 100644 frontend/src/openapi/models/CloneFeatureSchema.ts delete mode 100644 frontend/src/openapi/models/ConstraintSchema.ts delete mode 100644 frontend/src/openapi/models/CreateFeatureSchema.ts delete mode 100644 frontend/src/openapi/models/CreateStrategySchema.ts delete mode 100644 frontend/src/openapi/models/FeatureEnvironmentSchema.ts delete mode 100644 frontend/src/openapi/models/FeatureSchema.ts delete mode 100644 frontend/src/openapi/models/FeatureStrategySchema.ts delete mode 100644 frontend/src/openapi/models/FeaturesSchema.ts delete mode 100644 frontend/src/openapi/models/OverrideSchema.ts delete mode 100644 frontend/src/openapi/models/PatchOperationSchema.ts delete mode 100644 frontend/src/openapi/models/RequestsPerSecondSchema.ts delete mode 100644 frontend/src/openapi/models/RequestsPerSecondSchemaData.ts delete mode 100644 frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInner.ts delete mode 100644 frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerMetric.ts delete mode 100644 frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerValuesInnerInner.ts delete mode 100644 frontend/src/openapi/models/RequestsPerSecondSegmentedSchema.ts delete mode 100644 frontend/src/openapi/models/StrategySchema.ts delete mode 100644 frontend/src/openapi/models/TagSchema.ts delete mode 100644 frontend/src/openapi/models/TagsResponseSchema.ts delete mode 100644 frontend/src/openapi/models/UpdateFeatureSchema.ts delete mode 100644 frontend/src/openapi/models/UpdateStrategySchema.ts delete mode 100644 frontend/src/openapi/models/VariantSchema.ts delete mode 100644 frontend/src/openapi/models/VariantSchemaPayload.ts create mode 100644 frontend/src/openapi/models/addonParameterSchema.ts create mode 100644 frontend/src/openapi/models/addonSchema.ts create mode 100644 frontend/src/openapi/models/addonSchemaParameters.ts create mode 100644 frontend/src/openapi/models/addonTypeSchema.ts create mode 100644 frontend/src/openapi/models/addonsSchema.ts create mode 100644 frontend/src/openapi/models/adminFeaturesQuerySchema.ts create mode 100644 frontend/src/openapi/models/adminPermissionSchema.ts create mode 100644 frontend/src/openapi/models/adminPermissionsSchema.ts create mode 100644 frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts create mode 100644 frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts create mode 100644 frontend/src/openapi/models/adminSegmentSchema.ts create mode 100644 frontend/src/openapi/models/apiTokenSchema.ts create mode 100644 frontend/src/openapi/models/apiTokenSchemaType.ts create mode 100644 frontend/src/openapi/models/apiTokensSchema.ts create mode 100644 frontend/src/openapi/models/applicationSchema.ts create mode 100644 frontend/src/openapi/models/applicationsSchema.ts create mode 100644 frontend/src/openapi/models/changePasswordSchema.ts create mode 100644 frontend/src/openapi/models/changeProjectSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestAddCommentSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestApprovalSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestApprovalSchemaCreatedBy.ts create mode 100644 frontend/src/openapi/models/changeRequestCommentSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestCommentSchemaCreatedBy.ts create mode 100644 frontend/src/openapi/models/changeRequestConfigSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfFive.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfFivePayload.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfFour.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfPayload.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts create mode 100644 frontend/src/openapi/models/changeRequestEnvironmentConfigSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestEventSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestEventSchemaCreatedBy.ts create mode 100644 frontend/src/openapi/models/changeRequestEventSchemaPayload.ts create mode 100644 frontend/src/openapi/models/changeRequestEventSchemaPayloadOneOf.ts create mode 100644 frontend/src/openapi/models/changeRequestFeatureSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestSchemaCreatedBy.ts create mode 100644 frontend/src/openapi/models/changeRequestSchemaState.ts create mode 100644 frontend/src/openapi/models/changeRequestStateSchema.ts create mode 100644 frontend/src/openapi/models/changeRequestStateSchemaState.ts create mode 100644 frontend/src/openapi/models/changeRequestsSchema.ts create mode 100644 frontend/src/openapi/models/clientApplicationSchema.ts create mode 100644 frontend/src/openapi/models/clientApplicationSchemaStarted.ts create mode 100644 frontend/src/openapi/models/clientFeatureSchema.ts create mode 100644 frontend/src/openapi/models/clientFeaturesQuerySchema.ts create mode 100644 frontend/src/openapi/models/clientFeaturesSchema.ts create mode 100644 frontend/src/openapi/models/clientMetricsSchema.ts create mode 100644 frontend/src/openapi/models/clientMetricsSchemaBucket.ts create mode 100644 frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts create mode 100644 frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts create mode 100644 frontend/src/openapi/models/cloneEnvironmentSchema.ts create mode 100644 frontend/src/openapi/models/cloneFeatureSchema.ts create mode 100644 frontend/src/openapi/models/constraintSchema.ts create mode 100644 frontend/src/openapi/models/constraintSchemaOperator.ts create mode 100644 frontend/src/openapi/models/contextFieldSchema.ts create mode 100644 frontend/src/openapi/models/contextFieldsSchema.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchema.ts create mode 100644 frontend/src/openapi/models/createEnvironmentSchema.ts create mode 100644 frontend/src/openapi/models/createFeatureSchema.ts create mode 100644 frontend/src/openapi/models/createFeatureStrategySchema.ts create mode 100644 frontend/src/openapi/models/createInvitedUserSchema.ts create mode 100644 frontend/src/openapi/models/createProjectSchema.ts create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchema.ts create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaPermissionsItem.ts create mode 100644 frontend/src/openapi/models/createUserSchema.ts create mode 100644 frontend/src/openapi/models/dateSchema.ts create mode 100644 frontend/src/openapi/models/edgeTokenSchema.ts create mode 100644 frontend/src/openapi/models/edgeTokenSchemaType.ts create mode 100644 frontend/src/openapi/models/emailSchema.ts create mode 100644 frontend/src/openapi/models/environmentProjectSchema.ts create mode 100644 frontend/src/openapi/models/environmentSchema.ts create mode 100644 frontend/src/openapi/models/environmentsProjectSchema.ts create mode 100644 frontend/src/openapi/models/environmentsSchema.ts create mode 100644 frontend/src/openapi/models/eventSchema.ts create mode 100644 frontend/src/openapi/models/eventSchemaData.ts create mode 100644 frontend/src/openapi/models/eventSchemaPreData.ts create mode 100644 frontend/src/openapi/models/eventsSchema.ts create mode 100644 frontend/src/openapi/models/exportFormat.ts create mode 100644 frontend/src/openapi/models/exportParams.ts create mode 100644 frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts create mode 100644 frontend/src/openapi/models/featureEnvironmentSchema.ts create mode 100644 frontend/src/openapi/models/featureEnvironmentSchemaStrategiesItem.ts create mode 100644 frontend/src/openapi/models/featureEventsSchema.ts create mode 100644 frontend/src/openapi/models/featureMetricsSchema.ts create mode 100644 frontend/src/openapi/models/featureSchema.ts create mode 100644 frontend/src/openapi/models/featureStrategySchema.ts create mode 100644 frontend/src/openapi/models/featureStrategySegmentSchema.ts create mode 100644 frontend/src/openapi/models/featureTagSchema.ts create mode 100644 frontend/src/openapi/models/featureTypeSchema.ts create mode 100644 frontend/src/openapi/models/featureTypesSchema.ts create mode 100644 frontend/src/openapi/models/featureUsageSchema.ts create mode 100644 frontend/src/openapi/models/featureVariantsSchema.ts create mode 100644 frontend/src/openapi/models/featuresSchema.ts create mode 100644 frontend/src/openapi/models/feedbackSchema.ts create mode 100644 frontend/src/openapi/models/getEventsParams.ts create mode 100644 frontend/src/openapi/models/googleSettingsSchema.ts create mode 100644 frontend/src/openapi/models/groupSchema.ts create mode 100644 frontend/src/openapi/models/groupUserModelSchema.ts create mode 100644 frontend/src/openapi/models/groupsSchema.ts create mode 100644 frontend/src/openapi/models/healthCheckSchema.ts create mode 100644 frontend/src/openapi/models/healthCheckSchemaHealth.ts create mode 100644 frontend/src/openapi/models/healthOverviewSchema.ts create mode 100644 frontend/src/openapi/models/healthReportSchema.ts create mode 100644 frontend/src/openapi/models/idSchema.ts create mode 100644 frontend/src/openapi/models/instanceAdminStatsSchema.ts create mode 100644 frontend/src/openapi/models/invoicesSchema.ts create mode 100644 frontend/src/openapi/models/invoicesSchemaItem.ts create mode 100644 frontend/src/openapi/models/legalValueSchema.ts create mode 100644 frontend/src/openapi/models/loginSchema.ts create mode 100644 frontend/src/openapi/models/maintenanceSchema.ts create mode 100644 frontend/src/openapi/models/meSchema.ts create mode 100644 frontend/src/openapi/models/meSchemaSplash.ts create mode 100644 frontend/src/openapi/models/nameSchema.ts create mode 100644 frontend/src/openapi/models/oidcSettingsSchema.ts create mode 100644 frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts create mode 100644 frontend/src/openapi/models/overrideSchema.ts create mode 100644 frontend/src/openapi/models/parametersSchema.ts create mode 100644 frontend/src/openapi/models/passwordAuthSchema.ts create mode 100644 frontend/src/openapi/models/passwordSchema.ts create mode 100644 frontend/src/openapi/models/patSchema.ts create mode 100644 frontend/src/openapi/models/patchSchema.ts create mode 100644 frontend/src/openapi/models/patchSchemaOp.ts create mode 100644 frontend/src/openapi/models/patchesSchema.ts create mode 100644 frontend/src/openapi/models/patsSchema.ts create mode 100644 frontend/src/openapi/models/permissionSchema.ts create mode 100644 frontend/src/openapi/models/playgroundConstraintSchema.ts create mode 100644 frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts create mode 100644 frontend/src/openapi/models/playgroundFeatureSchema.ts create mode 100644 frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts create mode 100644 frontend/src/openapi/models/playgroundFeatureSchemaStrategiesResult.ts create mode 100644 frontend/src/openapi/models/playgroundFeatureSchemaVariant.ts create mode 100644 frontend/src/openapi/models/playgroundFeatureSchemaVariantPayload.ts create mode 100644 frontend/src/openapi/models/playgroundFeatureSchemaVariantPayloadType.ts create mode 100644 frontend/src/openapi/models/playgroundRequestSchema.ts create mode 100644 frontend/src/openapi/models/playgroundRequestSchemaProjects.ts create mode 100644 frontend/src/openapi/models/playgroundResponseSchema.ts create mode 100644 frontend/src/openapi/models/playgroundSegmentSchema.ts create mode 100644 frontend/src/openapi/models/playgroundStrategySchema.ts create mode 100644 frontend/src/openapi/models/playgroundStrategySchemaResult.ts create mode 100644 frontend/src/openapi/models/playgroundStrategySchemaResultAnyOf.ts create mode 100644 frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEnabled.ts create mode 100644 frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts create mode 100644 frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFour.ts create mode 100644 frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts create mode 100644 frontend/src/openapi/models/profileSchema.ts create mode 100644 frontend/src/openapi/models/projectAccessSchema.ts create mode 100644 frontend/src/openapi/models/projectCreatedSchema.ts create mode 100644 frontend/src/openapi/models/projectEnvironmentSchema.ts create mode 100644 frontend/src/openapi/models/projectOverviewSchema.ts create mode 100644 frontend/src/openapi/models/projectSchema.ts create mode 100644 frontend/src/openapi/models/projectUsers.ts create mode 100644 frontend/src/openapi/models/projectsSchema.ts create mode 100644 frontend/src/openapi/models/proxyClientSchema.ts create mode 100644 frontend/src/openapi/models/proxyClientSchemaStarted.ts create mode 100644 frontend/src/openapi/models/proxyFeatureSchema.ts create mode 100644 frontend/src/openapi/models/proxyFeatureSchemaVariant.ts create mode 100644 frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts create mode 100644 frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts create mode 100644 frontend/src/openapi/models/proxyFeaturesSchema.ts create mode 100644 frontend/src/openapi/models/proxyMetricsSchema.ts create mode 100644 frontend/src/openapi/models/proxyMetricsSchemaBucket.ts create mode 100644 frontend/src/openapi/models/proxyMetricsSchemaBucketToggles.ts create mode 100644 frontend/src/openapi/models/proxyMetricsSchemaBucketTogglesVariants.ts create mode 100644 frontend/src/openapi/models/publicSignupTokenCreateSchema.ts create mode 100644 frontend/src/openapi/models/publicSignupTokenSchema.ts create mode 100644 frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts create mode 100644 frontend/src/openapi/models/publicSignupTokensSchema.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSchema.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSchemaData.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemValuesItemItem.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts create mode 100644 frontend/src/openapi/models/resetPasswordSchema.ts create mode 100644 frontend/src/openapi/models/roleSchema.ts create mode 100644 frontend/src/openapi/models/roleWithPermissionsSchema.ts create mode 100644 frontend/src/openapi/models/roleWithVersionSchema.ts create mode 100644 frontend/src/openapi/models/rolesWithVersionSchema.ts create mode 100644 frontend/src/openapi/models/samlSettingsSchema.ts create mode 100644 frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts create mode 100644 frontend/src/openapi/models/sdkContextSchema.ts create mode 100644 frontend/src/openapi/models/sdkContextSchemaProperties.ts create mode 100644 frontend/src/openapi/models/searchEventsSchema.ts create mode 100644 frontend/src/openapi/models/segmentSchema.ts create mode 100644 frontend/src/openapi/models/segmentStrategiesSchema.ts create mode 100644 frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts create mode 100644 frontend/src/openapi/models/segmentsSchema.ts create mode 100644 frontend/src/openapi/models/setStrategySortOrderSchema.ts create mode 100644 frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts create mode 100644 frontend/src/openapi/models/setUiConfigSchema.ts create mode 100644 frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts create mode 100644 frontend/src/openapi/models/sortOrderSchema.ts create mode 100644 frontend/src/openapi/models/splashSchema.ts create mode 100644 frontend/src/openapi/models/stateSchema.ts create mode 100644 frontend/src/openapi/models/strategiesSchema.ts create mode 100644 frontend/src/openapi/models/strategySchema.ts create mode 100644 frontend/src/openapi/models/strategySchemaParametersItem.ts create mode 100644 frontend/src/openapi/models/tagSchema.ts create mode 100644 frontend/src/openapi/models/tagTypeSchema.ts create mode 100644 frontend/src/openapi/models/tagTypesSchema.ts create mode 100644 frontend/src/openapi/models/tagWithVersionSchema.ts create mode 100644 frontend/src/openapi/models/tagsSchema.ts create mode 100644 frontend/src/openapi/models/tokenUserSchema.ts create mode 100644 frontend/src/openapi/models/uiConfigSchema.ts create mode 100644 frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts create mode 100644 frontend/src/openapi/models/uiConfigSchemaFlags.ts create mode 100644 frontend/src/openapi/models/uiConfigSchemaLinksItem.ts create mode 100644 frontend/src/openapi/models/updateApiTokenSchema.ts create mode 100644 frontend/src/openapi/models/updateChangeRequestEnvironmentConfigSchema.ts create mode 100644 frontend/src/openapi/models/updateEnvironmentSchema.ts create mode 100644 frontend/src/openapi/models/updateFeatureSchema.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategySchema.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategySegmentsSchema.ts create mode 100644 frontend/src/openapi/models/updateProjectSchema.ts create mode 100644 frontend/src/openapi/models/updateTagTypeSchema.ts create mode 100644 frontend/src/openapi/models/updateUserSchema.ts create mode 100644 frontend/src/openapi/models/upsertContextFieldSchema.ts create mode 100644 frontend/src/openapi/models/upsertSegmentSchema.ts create mode 100644 frontend/src/openapi/models/upsertStrategySchema.ts create mode 100644 frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts create mode 100644 frontend/src/openapi/models/userSchema.ts create mode 100644 frontend/src/openapi/models/userWithProjectRoleSchema.ts create mode 100644 frontend/src/openapi/models/usersGroupsBaseSchema.ts create mode 100644 frontend/src/openapi/models/usersSchema.ts create mode 100644 frontend/src/openapi/models/usersSearchSchema.ts create mode 100644 frontend/src/openapi/models/validateEdgeTokensSchema.ts create mode 100644 frontend/src/openapi/models/validateEdgeTokensSchemaTokensItem.ts create mode 100644 frontend/src/openapi/models/validatePasswordSchema.ts create mode 100644 frontend/src/openapi/models/validateProjectSchema.ts create mode 100644 frontend/src/openapi/models/validateTagTypeSchema.ts create mode 100644 frontend/src/openapi/models/variantSchema.ts create mode 100644 frontend/src/openapi/models/variantSchemaPayload.ts create mode 100644 frontend/src/openapi/models/variantsSchema.ts create mode 100644 frontend/src/openapi/models/versionSchema.ts create mode 100644 frontend/src/openapi/models/versionSchemaCurrent.ts create mode 100644 frontend/src/openapi/models/versionSchemaLatest.ts delete mode 100644 frontend/src/openapi/runtime.ts delete mode 100644 frontend/src/utils/openapiClient.ts diff --git a/frontend/.prettierignore b/frontend/.prettierignore index a06b11e1a7..3a8fb9cf67 100644 --- a/frontend/.prettierignore +++ b/frontend/.prettierignore @@ -1,3 +1,2 @@ .github/* -/src/openapi CHANGELOG.md diff --git a/frontend/orval.config.js b/frontend/orval.config.js new file mode 100644 index 0000000000..e6cb6598da --- /dev/null +++ b/frontend/orval.config.js @@ -0,0 +1,37 @@ +/** + * How to generate OpenAPI client + * + * For now we only use generated types (src/openapi/models). + * We will use methods (src/openapi/apis) for new features soon. + * 1. `yarn gen:api` to generate the client + * 2. `rm -rf src/openapi/apis` to remove methods (! except if you want to use some of those) + * 3. clean up `src/openapi/index.ts` imports + */ +module.exports = { + unleashApi: { + output: { + mode: 'tags', + workspace: 'src/openapi', + target: 'apis', + schemas: 'models', + client: 'swr', + prettier: true, + clean: true, + // mock: true, + override: { + mutator: { + path: './fetcher.ts', + name: 'fetcher', + }, + }, + }, + input: { + target: + process.env.UNLEASH_OPENAPI_URL || + 'http://localhost:4242/docs/openapi.json', + }, + hooks: { + afterAllFilesWrite: 'yarn fmt', + }, + }, +}; diff --git a/frontend/package.json b/frontend/package.json index 116699af9b..42440b7a33 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,6 +26,8 @@ "ts:check": "tsc", "e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all", "e2e:heroku": "yarn run cypress open --config baseUrl='https://unleash.herokuapp.com' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all", + "gen:api": "orval --config orval.config.js", + "gen:api:demo": "UNLEASH_OPENAPI_URL=https://app.unleash-hosted.com/demo/docs/openapi.json yarn run gen:api", "prepare": "yarn run build" }, "devDependencies": { @@ -35,7 +37,6 @@ "@mui/icons-material": "5.10.15", "@mui/lab": "5.0.0-alpha.109", "@mui/material": "5.10.15", - "@openapitools/openapi-generator-cli": "2.5.2", "@testing-library/dom": "8.19.1", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "12.1.5", @@ -93,7 +94,7 @@ "react-timeago": "7.1.0", "sass": "1.57.1", "semver": "7.3.8", - "swr": "1.3.0", + "swr": "2.0.0", "tss-react": "4.0.0", "typescript": "4.8.4", "vite": "4.0.4", @@ -103,6 +104,9 @@ "vitest": "0.26.3", "whatwg-fetch": "3.6.2" }, + "optionalDependencies": { + "orval": "^6.10.3" + }, "resolutions": { "@codemirror/state": "6.2.0", "@xmldom/xmldom": "^0.8.4" diff --git a/frontend/scripts/generate-openapi.sh b/frontend/scripts/generate-openapi.sh deleted file mode 100755 index 19d68b94d8..0000000000 --- a/frontend/scripts/generate-openapi.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# Generate OpenAPI bindings for the Unleash API. -# https://openapi-generator.tech/docs/generators/typescript-fetch - -set -feux -cd "$(dirname "$0")" - -# URL to the generated open API spec. -# Set the UNLEASH_OPENAPI_URL environment variable to override. -UNLEASH_OPENAPI_URL="${UNLEASH_OPENAPI_URL:-http://localhost:4242/docs/openapi.json}" - -rm -rf "../src/openapi" -mkdir "../src/openapi" - -npx @openapitools/openapi-generator-cli generate \ - -g "typescript-fetch" \ - -i "$UNLEASH_OPENAPI_URL" \ - -o "../src/openapi" - -# Remove unused files. -rm "openapitools.json" -rm "../src/openapi/.openapi-generator-ignore" -rm -r "../src/openapi/.openapi-generator" diff --git a/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx b/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx index 5f200dfa00..d14eb2b717 100644 --- a/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx +++ b/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx @@ -1,7 +1,8 @@ -import { ArchiveTable } from './ArchiveTable/ArchiveTable'; +import { useFeaturesArchive } from 'hooks/api/getters/useFeaturesArchive/useFeaturesArchive'; +import { VFC } from 'react'; import { SortingRule } from 'react-table'; -import { useProjectFeaturesArchive } from 'hooks/api/getters/useProjectFeaturesArchive/useProjectFeaturesArchive'; import { createLocalStorage } from 'utils/createLocalStorage'; +import { ArchiveTable } from './ArchiveTable/ArchiveTable'; const defaultSort: SortingRule = { id: 'archivedAt' }; @@ -9,14 +10,11 @@ interface IProjectFeaturesTable { projectId: string; } -export const ProjectFeaturesArchiveTable = ({ +export const ProjectFeaturesArchiveTable: VFC = ({ projectId, -}: IProjectFeaturesTable) => { - const { - archivedFeatures = [], - refetchArchived, - loading, - } = useProjectFeaturesArchive(projectId); +}) => { + const { archivedFeatures, loading, refetchArchived } = + useFeaturesArchive(projectId); const { value, setValue } = createLocalStorage( `${projectId}:ProjectFeaturesArchiveTable`, @@ -26,7 +24,7 @@ export const ProjectFeaturesArchiveTable = ({ return ( { +export const useCreateFeaturePath = (filter: { + query?: string; + project: string; +}): IUseCreateFeaturePathOutput | undefined => { const defaultProjectId = useDefaultProjectId(); - const { uiConfig } = useUiConfig(); const projectId = filter.project === '*' || !filter.project diff --git a/frontend/src/component/playground/Playground/Playground.tsx b/frontend/src/component/playground/Playground/Playground.tsx index 9277298596..b57f80e30d 100644 --- a/frontend/src/component/playground/Playground/Playground.tsx +++ b/frontend/src/component/playground/Playground/Playground.tsx @@ -8,7 +8,7 @@ import { formatUnknownError } from 'utils/formatUnknownError'; import { PlaygroundResultsTable } from './PlaygroundResultsTable/PlaygroundResultsTable'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { usePlaygroundApi } from 'hooks/api/actions/usePlayground/usePlayground'; -import { PlaygroundResponseSchema } from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundResponseSchema } from 'openapi'; import { useEnvironments } from 'hooks/api/getters/useEnvironments/useEnvironments'; import { PlaygroundForm } from './PlaygroundForm/PlaygroundForm'; import { diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx index e5839ec9d9..c1b5b3e69c 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx @@ -1,6 +1,6 @@ import { colors } from 'themes/colors'; import { Alert, styled } from '@mui/material'; -import { SdkContextSchema } from 'component/playground/Playground/interfaces/playground.model'; +import { SdkContextSchema } from 'openapi'; interface IContextBannerProps { environment: string; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/FeatureDetails.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/FeatureDetails.tsx index db5e43ad62..424717038f 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/FeatureDetails.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/FeatureDetails.tsx @@ -1,7 +1,4 @@ -import { - PlaygroundFeatureSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundFeatureSchema, PlaygroundRequestSchema } from 'openapi'; import { Alert, IconButton, Typography, useTheme, styled } from '@mui/material'; import { PlaygroundResultChip } from '../../PlaygroundResultChip/PlaygroundResultChip'; import { CloseOutlined } from '@mui/icons-material'; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/helpers.ts b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/helpers.ts index 07d59f5891..19f7642f14 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/helpers.ts +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureDetails/helpers.ts @@ -1,4 +1,4 @@ -import { PlaygroundFeatureSchema } from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundFeatureSchema } from 'openapi'; export const DEFAULT_STRATEGIES = [ 'default', diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureResultInfoPopoverCell.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureResultInfoPopoverCell.tsx index 5059cae317..59aa1bdea5 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureResultInfoPopoverCell.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureResultInfoPopoverCell.tsx @@ -1,8 +1,5 @@ import { useRef, useState } from 'react'; -import { - PlaygroundFeatureSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundFeatureSchema, PlaygroundRequestSchema } from 'openapi'; import { IconButton, Popover, styled } from '@mui/material'; import { InfoOutlined } from '@mui/icons-material'; import { FeatureDetails } from './FeatureDetails/FeatureDetails'; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx index ed37b24068..4fd6096ff1 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx @@ -3,10 +3,7 @@ import { WrappedPlaygroundResultStrategyList, } from './StrategyList/playgroundResultStrategyLists'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; -import { - PlaygroundFeatureSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundFeatureSchema, PlaygroundRequestSchema } from 'openapi'; import { Alert } from '@mui/material'; interface PlaygroundResultFeatureStrategyListProps { diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx index 1abdc8ab12..843211e39b 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx @@ -1,9 +1,6 @@ import { useTheme } from '@mui/material'; import { PlaygroundResultChip } from '../../../../PlaygroundResultChip/PlaygroundResultChip'; -import { - PlaygroundStrategySchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundStrategySchema, PlaygroundRequestSchema } from 'openapi'; import { StrategyExecution } from './StrategyExecution/StrategyExecution'; import { StrategyItemContainer } from 'component/common/StrategyItemContainer/StrategyItemContainer'; import { objectId } from 'utils/objectId'; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintError/ConstraintError.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintError/ConstraintError.tsx index e95245acc2..c9aba7d993 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintError/ConstraintError.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintError/ConstraintError.tsx @@ -1,9 +1,6 @@ import { styled, Typography } from '@mui/material'; import { CancelOutlined } from '@mui/icons-material'; -import { - PlaygroundConstraintSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundConstraintSchema, PlaygroundRequestSchema } from 'openapi'; const StyledConstraintErrorDiv = styled('div')(({ theme }) => ({ display: 'flex', diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintExecution.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintExecution.tsx index 333196b556..576fd90418 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintExecution.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/ConstraintExecution/ConstraintExecution.tsx @@ -1,8 +1,5 @@ import { Fragment, VFC } from 'react'; -import { - PlaygroundConstraintSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundConstraintSchema, PlaygroundRequestSchema } from 'openapi'; import { objectId } from 'utils/objectId'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator'; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/SegmentExecution/SegmentExecution.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/SegmentExecution/SegmentExecution.tsx index 0873403bd2..d2b717ce00 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/SegmentExecution/SegmentExecution.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/SegmentExecution/SegmentExecution.tsx @@ -1,8 +1,5 @@ import { Fragment, VFC } from 'react'; -import { - PlaygroundSegmentSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundSegmentSchema, PlaygroundRequestSchema } from 'openapi'; import { ConstraintExecution } from '../ConstraintExecution/ConstraintExecution'; import { CancelOutlined } from '@mui/icons-material'; import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator'; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecution.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecution.tsx index 06185bb063..d89939cc5f 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecution.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecution.tsx @@ -2,10 +2,7 @@ import { Fragment, VFC } from 'react'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator'; import { Chip, styled } from '@mui/material'; -import { - PlaygroundRequestSchema, - PlaygroundStrategySchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundRequestSchema, PlaygroundStrategySchema } from 'openapi'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; import { ConstraintExecution } from './ConstraintExecution/ConstraintExecution'; import { SegmentExecution } from './SegmentExecution/SegmentExecution'; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecutionParameters/StrategyExecutionParameters.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecutionParameters/StrategyExecutionParameters.tsx index da5a34c77b..48ac9048ee 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecutionParameters/StrategyExecutionParameters.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/StrategyExecution/StrategyExecutionParameters/StrategyExecutionParameters.tsx @@ -6,10 +6,7 @@ import { Box, Chip } from '@mui/material'; import PercentageCircle from 'component/common/PercentageCircle/PercentageCircle'; import { PlaygroundParameterItem } from '../PlaygroundParameterItem/PlaygroundParameterItem'; import { StyledBoxSummary } from '../StrategyExecution.styles'; -import { - PlaygroundConstraintSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundConstraintSchema, PlaygroundRequestSchema } from 'openapi'; import { getMappedParam } from '../helpers'; export interface PlaygroundResultStrategyExecutionParametersProps { diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/playgroundResultStrategyLists.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/playgroundResultStrategyLists.tsx index 8ba0bcf35b..d1850fbdac 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/playgroundResultStrategyLists.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/playgroundResultStrategyLists.tsx @@ -3,8 +3,8 @@ import { Alert, Box, styled, Typography } from '@mui/material'; import { PlaygroundStrategySchema, PlaygroundRequestSchema, - PlaygroundStrategyResultSchema, -} from 'component/playground/Playground/interfaces/playground.model'; + PlaygroundFeatureSchemaStrategies, +} from 'openapi'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { FeatureStrategyItem } from './StrategyItem/FeatureStrategyItem'; import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator'; @@ -67,7 +67,7 @@ export const PlaygroundResultStrategyLists = ({ ); interface IWrappedPlaygroundResultStrategyListProps { - strategies: PlaygroundStrategyResultSchema; + strategies: PlaygroundFeatureSchemaStrategies; input?: PlaygroundRequestSchema; } diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx index 997b5585fd..7a5029dd29 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Box, styled } from '@mui/material'; import { PlaygroundResultChip } from '../PlaygroundResultChip/PlaygroundResultChip'; -import { PlaygroundFeatureSchema } from '../../interfaces/playground.model'; +import { PlaygroundFeatureSchema } from 'openapi'; interface IFeatureStatusCellProps { feature: PlaygroundFeatureSchema; diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/PlaygroundResultsTable.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/PlaygroundResultsTable.tsx index 24fa19fcc2..fe86c6a429 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/PlaygroundResultsTable.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/PlaygroundResultsTable.tsx @@ -18,10 +18,7 @@ import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell'; import { useSearch } from 'hooks/useSearch'; import { createLocalStorage } from 'utils/createLocalStorage'; import { FeatureStatusCell } from './FeatureStatusCell/FeatureStatusCell'; -import { - PlaygroundFeatureSchema, - PlaygroundRequestSchema, -} from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundFeatureSchema, PlaygroundRequestSchema } from 'openapi'; import { Box, Typography, useMediaQuery, useTheme } from '@mui/material'; import useLoading from 'hooks/useLoading'; import { VariantCell } from './VariantCell/VariantCell'; diff --git a/frontend/src/component/playground/Playground/interfaces/playground.model.ts b/frontend/src/component/playground/Playground/interfaces/playground.model.ts deleted file mode 100644 index d19d5c4144..0000000000 --- a/frontend/src/component/playground/Playground/interfaces/playground.model.ts +++ /dev/null @@ -1,321 +0,0 @@ -/** - * - * 09/08/2022 - * This was copied from the openapi-generator generated files and slightly modified - * because of malformed generation of `anyOf`, `oneOf` - * - * https://github.com/OpenAPITools/openapi-generator/issues/12256 - */ - -import { VariantSchema } from 'openapi'; -import { Operator } from 'constants/operators'; - -export interface PlaygroundConstraintSchema { - /** - * The name of the context field that this constraint should apply to. - * @type {string} - * @memberof PlaygroundConstraintSchema - */ - contextName: string; - /** - * The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators). - * @type {string} - * @memberof PlaygroundConstraintSchema - */ - operator: Operator; - /** - * Whether the operator should be case-sensitive or not. Defaults to `false` (being case-sensitive). - * @type {boolean} - * @memberof PlaygroundConstraintSchema - */ - caseInsensitive?: boolean; - /** - * Whether the result should be negated or not. If `true`, will turn a `true` result into a `false` result and vice versa. - * @type {boolean} - * @memberof PlaygroundConstraintSchema - */ - inverted?: boolean; - /** - * The context values that should be used for constraint evaluation. Use this property instead of `value` for properties that accept multiple values. - * @type {Array} - * @memberof PlaygroundConstraintSchema - */ - values?: Array; - /** - * The context value that should be used for constraint evaluation. Use this property instead of `values` for properties that only accept single values. - * @type {string} - * @memberof PlaygroundConstraintSchema - */ - value?: string; - /** - * Whether this was evaluated as true or false. - * @type {boolean} - * @memberof PlaygroundConstraintSchema - */ - result: boolean; -} - -export interface PlaygroundFeatureSchema { - /** - * The feature's name. - * @type {string} - * @memberof PlaygroundFeatureSchema - */ - name: string; - /** - * The ID of the project that contains this feature. - * @type {string} - * @memberof PlaygroundFeatureSchema - */ - projectId: string; - /** - * The strategies that apply to this feature. - * @type {Array} - * @memberof PlaygroundFeatureSchema - */ - strategies: PlaygroundStrategyResultSchema; - /** - * Whether the feature is active and would be evaluated in the provided environment in a normal SDK context. - * @type {boolean} - * @memberof PlaygroundFeatureSchema - */ - isEnabledInCurrentEnvironment: boolean; - /** - * - * @type {boolean | 'unevaluated'} - * @memberof PlaygroundFeatureSchema - */ - isEnabled: boolean; - /** - * - * @type {PlaygroundFeatureSchemaVariant} - * @memberof PlaygroundFeatureSchema - */ - variant: PlaygroundFeatureSchemaVariant | null; - /** - * - * @type {Array} - * @memberof PlaygroundFeatureSchema - */ - variants: Array; -} - -export interface PlaygroundFeatureSchemaVariant { - /** - * The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled` - * @type {string} - * @memberof PlaygroundFeatureSchemaVariant - */ - name: string; - /** - * Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false` - * @type {boolean} - * @memberof PlaygroundFeatureSchemaVariant - */ - enabled: boolean; - /** - * - * @type {PlaygroundFeatureSchemaVariantPayload} - * @memberof PlaygroundFeatureSchemaVariant - */ - payload?: PlaygroundFeatureSchemaVariantPayload; -} - -export interface PlaygroundFeatureSchemaVariantPayload { - /** - * The format of the payload. - * @type {string} - * @memberof PlaygroundFeatureSchemaVariantPayload - */ - type: PlaygroundFeatureSchemaVariantPayloadTypeEnum; - /** - * The payload value stringified. - * @type {string} - * @memberof PlaygroundFeatureSchemaVariantPayload - */ - value: string; -} - -export const playgroundFeatureSchemaVariantPayloadTypeEnum = { - Json: 'json', - Csv: 'csv', - String: 'string', -} as const; -export type PlaygroundFeatureSchemaVariantPayloadTypeEnum = - typeof playgroundFeatureSchemaVariantPayloadTypeEnum[keyof typeof playgroundFeatureSchemaVariantPayloadTypeEnum]; - -export interface PlaygroundRequestSchema { - /** - * The environment to evaluate toggles in. - * @type {string} - * @memberof PlaygroundRequestSchema - */ - environment: string; - /** - * - * @type {PlaygroundRequestSchemaProjects} - * @memberof PlaygroundRequestSchema - */ - projects?: PlaygroundRequestSchemaProjects; - /** - * - * @type {SdkContextSchema} - * @memberof PlaygroundRequestSchema - */ - context: SdkContextSchema; -} - -export type PlaygroundRequestSchemaProjects = Array | string; - -export interface PlaygroundResponseSchema { - /** - * - * @type {PlaygroundRequestSchema} - * @memberof PlaygroundResponseSchema - */ - input: PlaygroundRequestSchema; - /** - * The list of features that have been evaluated. - * @type {Array} - * @memberof PlaygroundResponseSchema - */ - features: Array; -} - -export interface PlaygroundSegmentSchema { - /** - * The segment's id. - * @type {number} - * @memberof PlaygroundSegmentSchema - */ - id: number; - /** - * The name of the segment. - * @type {string} - * @memberof PlaygroundSegmentSchema - */ - name: string; - /** - * Whether this was evaluated as true or false. - * @type {boolean} - * @memberof PlaygroundSegmentSchema - */ - result: boolean; - /** - * The list of constraints in this segment. - * @type {Array} - * @memberof PlaygroundSegmentSchema - */ - constraints: Array; -} - -export interface PlaygroundStrategyResultSchema { - result: boolean | 'unknown'; - data?: Array; -} - -export interface PlaygroundStrategySchema { - /** - * The strategy's name. - * @type {string} - * @memberof PlaygroundStrategySchema - */ - name: string; - /** - * The strategy's id. - * @type {string} - * @memberof PlaygroundStrategySchema - */ - id?: string; - /** - * - * @type {PlaygroundStrategySchemaResult} - * @memberof PlaygroundStrategySchema - */ - result: PlaygroundStrategySchemaResult; - /** - * The strategy's segments and their evaluation results. - * @type {Array} - * @memberof PlaygroundStrategySchema - */ - segments: Array; - /** - * The strategy's constraints and their evaluation results. - * @type {Array} - * @memberof PlaygroundStrategySchema - */ - constraints: Array; - /** - * - * @type {{ [key: string]: string; }} - * @memberof PlaygroundStrategySchema - */ - parameters: { [key: string]: string }; -} - -export enum PlaygroundStrategyResultEvaluationStatusEnum { - complete = 'complete', - incomplete = 'incomplete', -} - -export interface PlaygroundStrategySchemaResult { - /** - * Signals that this strategy was evaluated successfully. - * @type {string} - * @memberof PlaygroundStrategySchemaResult - */ - evaluationStatus?: PlaygroundStrategyResultEvaluationStatusEnum; - /** - * Whether this strategy evaluates to true or not. - * @type {boolean} - * @memberof PlaygroundStrategySchemaResult - */ - enabled: boolean; -} - -export interface SdkContextSchema { - [key: string]: string | any; - /** - * - * @type {string} - * @memberof SdkContextSchema - */ - appName: string; - /** - * - * @type {Date} - * @memberof SdkContextSchema - */ - currentTime?: Date; - /** - * - * @type {string} - * @memberof SdkContextSchema - * @deprecated - */ - environment?: string; - /** - * - * @type {{ [key: string]: string; }} - * @memberof SdkContextSchema - */ - properties?: { [key: string]: string }; - /** - * - * @type {string} - * @memberof SdkContextSchema - */ - remoteAddress?: string; - /** - * - * @type {string} - * @memberof SdkContextSchema - */ - sessionId?: string; - /** - * - * @type {string} - * @memberof SdkContextSchema - */ - userId?: string; -} diff --git a/frontend/src/component/playground/Playground/playground.utils.ts b/frontend/src/component/playground/Playground/playground.utils.ts index 0012253351..581ed36d20 100644 --- a/frontend/src/component/playground/Playground/playground.utils.ts +++ b/frontend/src/component/playground/Playground/playground.utils.ts @@ -1,14 +1,22 @@ -import { PlaygroundResponseSchema } from 'component/playground/Playground/interfaces/playground.model'; +import { PlaygroundResponseSchema } from 'openapi'; import { IEnvironment } from 'interfaces/environments'; export const resolveProjects = ( projects: string[] | string -): string[] | string => { - return !projects || +): string[] | '*' => { + if ( + !projects || projects.length === 0 || (projects.length === 1 && projects[0] === '*') - ? '*' - : projects; + ) { + return '*'; + } + + if (Array.isArray(projects)) { + return projects; + } + + return [projects]; }; export const resolveDefaultEnvironment = ( diff --git a/frontend/src/hooks/__snapshots__/useFeaturesFilter.test.ts.snap b/frontend/src/hooks/__snapshots__/useFeaturesFilter.test.ts.snap deleted file mode 100644 index f68c6ab99b..0000000000 --- a/frontend/src/hooks/__snapshots__/useFeaturesFilter.test.ts.snap +++ /dev/null @@ -1,197 +0,0 @@ -// Vitest Snapshot v1 - -exports[`useFeaturesFilter constraints 1`] = ` -{ - "filter": { - "project": "*", - "query": "xyz", - }, - "filtered": [ - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "a", - "stale": false, - "strategies": [ - { - "constraints": [], - "id": "1", - "name": "1", - "parameters": {}, - }, - { - "constraints": [], - "id": "1", - "name": "1", - "parameters": {}, - }, - { - "constraints": [ - { - "contextName": "", - "operator": "IN", - }, - { - "contextName": "", - "operator": "IN", - "value": "xyz", - }, - { - "contextName": "", - "operator": "IN", - "values": [ - "xyz", - ], - }, - ], - "id": "1", - "name": "1", - "parameters": {}, - }, - ], - "type": "1", - "variants": [], - }, - ], - "setFilter": [Function], -} -`; - -exports[`useFeaturesFilter empty 1`] = ` -{ - "filter": { - "project": "*", - }, - "filtered": [], - "setFilter": [Function], -} -`; - -exports[`useFeaturesFilter equal 1`] = ` -{ - "filter": { - "project": "*", - }, - "filtered": [ - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "1", - "stale": false, - "strategies": [], - "type": "1", - "variants": [], - }, - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "1", - "stale": false, - "strategies": [], - "type": "1", - "variants": [], - }, - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "1", - "stale": false, - "strategies": [], - "type": "1", - "variants": [], - }, - ], - "setFilter": [Function], -} -`; - -exports[`useFeaturesFilter project 1`] = ` -{ - "filter": { - "project": "2", - }, - "filtered": [ - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "2", - "stale": false, - "strategies": [], - "type": "1", - "variants": [], - }, - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "2", - "stale": false, - "strategies": [], - "type": "1", - "variants": [], - }, - ], - "setFilter": [Function], -} -`; - -exports[`useFeaturesFilter query 1`] = ` -{ - "filter": { - "project": "*", - "query": "bc", - }, - "filtered": [ - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "abc", - "stale": false, - "strategies": [], - "type": "1", - "variants": [], - }, - { - "createdAt": 2006-01-02T15:04:05.000Z, - "description": "1", - "enabled": false, - "impressionData": false, - "lastSeenAt": 2006-01-02T15:04:05.000Z, - "name": "1", - "project": "abcd", - "stale": false, - "strategies": [], - "type": "1", - "variants": [], - }, - ], - "setFilter": [Function], -} -`; diff --git a/frontend/src/hooks/api/actions/useFeatureApi/useFeatureApi.ts b/frontend/src/hooks/api/actions/useFeatureApi/useFeatureApi.ts index 0e1f14fe8f..617f5fa6a4 100644 --- a/frontend/src/hooks/api/actions/useFeatureApi/useFeatureApi.ts +++ b/frontend/src/hooks/api/actions/useFeatureApi/useFeatureApi.ts @@ -1,10 +1,9 @@ -import { ITag } from 'interfaces/tags'; -import useAPI from '../useApi/useApi'; -import { Operation } from 'fast-json-patch'; -import { CreateFeatureSchema } from 'openapi'; -import { openApiAdmin } from 'utils/openapiClient'; -import { IConstraint } from 'interfaces/strategy'; import { useCallback } from 'react'; +import { ITag } from 'interfaces/tags'; +import { Operation } from 'fast-json-patch'; +import { IConstraint } from 'interfaces/strategy'; +import { CreateFeatureSchema } from 'openapi'; +import useAPI from '../useApi/useApi'; const useFeatureApi = () => { const { makeRequest, createRequest, errors, loading } = useAPI({ @@ -42,10 +41,12 @@ const useFeatureApi = () => { projectId: string, createFeatureSchema: CreateFeatureSchema ) => { - return openApiAdmin.createFeature({ - projectId, - createFeatureSchema, + const path = `/api/admin/projects/${projectId}/features`; + const req = createRequest(path, { + method: 'POST', + body: JSON.stringify(createFeatureSchema), }); + await makeRequest(req.caller, req.id); }; const toggleFeatureEnvironmentOn = useCallback( diff --git a/frontend/src/hooks/api/actions/usePlayground/usePlayground.ts b/frontend/src/hooks/api/actions/usePlayground/usePlayground.ts index 7d2d26a849..e6b5c439f2 100644 --- a/frontend/src/hooks/api/actions/usePlayground/usePlayground.ts +++ b/frontend/src/hooks/api/actions/usePlayground/usePlayground.ts @@ -2,7 +2,7 @@ import useAPI from '../useApi/useApi'; import { PlaygroundRequestSchema, PlaygroundResponseSchema, -} from '../../../../component/playground/Playground/interfaces/playground.model'; +} from '../../../../openapi'; export const usePlaygroundApi = () => { const { makeRequest, createRequest, errors, loading } = useAPI({ diff --git a/frontend/src/hooks/api/getters/useFeaturesArchive/useFeaturesArchive.ts b/frontend/src/hooks/api/getters/useFeaturesArchive/useFeaturesArchive.ts index d89fc86faa..6ac46a5026 100644 --- a/frontend/src/hooks/api/getters/useFeaturesArchive/useFeaturesArchive.ts +++ b/frontend/src/hooks/api/getters/useFeaturesArchive/useFeaturesArchive.ts @@ -1,6 +1,6 @@ -import { openApiAdmin } from 'utils/openapiClient'; -import { FeatureSchema } from 'openapi'; -import { useApiGetter } from 'hooks/api/getters/useApiGetter/useApiGetter'; +import useSWR from 'swr'; +import { FeatureSchema, FeaturesSchema } from 'openapi'; +import handleErrorResponses from '../httpErrorResponseHandler'; export interface IUseFeaturesArchiveOutput { archivedFeatures?: FeatureSchema[]; @@ -9,16 +9,29 @@ export interface IUseFeaturesArchiveOutput { error?: Error; } -export const useFeaturesArchive = (): IUseFeaturesArchiveOutput => { - const { data, refetch, loading, error } = useApiGetter( - 'apiAdminArchiveFeaturesGet', - () => openApiAdmin.apiAdminArchiveFeaturesGet() +const fetcher = (path: string) => { + return fetch(path) + .then(handleErrorResponses('Feature toggle archive')) + .then(res => res.json()); +}; + +export const useFeaturesArchive = ( + projectId?: string +): IUseFeaturesArchiveOutput => { + const { data, error, mutate, isLoading } = useSWR( + projectId + ? `/api/admin/archive/features/${projectId}` + : 'api/admin/features', + fetcher, + { + refreshInterval: 15 * 1000, // ms + } ); return { archivedFeatures: data?.features, - refetchArchived: refetch, - loading, + refetchArchived: mutate, + loading: isLoading, error, }; }; diff --git a/frontend/src/hooks/api/getters/useProjectFeaturesArchive/useProjectFeaturesArchive.ts b/frontend/src/hooks/api/getters/useProjectFeaturesArchive/useProjectFeaturesArchive.ts deleted file mode 100644 index 3e43ca53a4..0000000000 --- a/frontend/src/hooks/api/getters/useProjectFeaturesArchive/useProjectFeaturesArchive.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { openApiAdmin } from 'utils/openapiClient'; -import { FeatureSchema } from 'openapi'; -import { useApiGetter } from 'hooks/api/getters/useApiGetter/useApiGetter'; - -export interface IUseProjectFeaturesArchiveOutput { - archivedFeatures?: FeatureSchema[]; - refetchArchived: () => void; - loading: boolean; - error?: Error; -} - -export const useProjectFeaturesArchive = ( - projectId: string -): IUseProjectFeaturesArchiveOutput => { - const { data, refetch, loading, error } = useApiGetter( - ['apiAdminArchiveFeaturesGet', projectId], - () => { - if (projectId) { - return openApiAdmin.apiAdminArchiveFeaturesProjectIdGet({ - projectId, - }); - } - return openApiAdmin.apiAdminArchiveFeaturesGet(); - } - ); - - return { - archivedFeatures: data?.features, - refetchArchived: refetch, - loading, - error, - }; -}; diff --git a/frontend/src/hooks/api/getters/useSegments/useSegments.ts b/frontend/src/hooks/api/getters/useSegments/useSegments.ts index 89c80b99d1..8a263d21b5 100644 --- a/frontend/src/hooks/api/getters/useSegments/useSegments.ts +++ b/frontend/src/hooks/api/getters/useSegments/useSegments.ts @@ -4,7 +4,6 @@ import { formatApiPath } from 'utils/formatPath'; import handleErrorResponses from '../httpErrorResponseHandler'; import { ISegment } from 'interfaces/segment'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; -import { IFlags } from 'interfaces/uiConfig'; export interface IUseSegmentsOutput { segments?: ISegment[]; @@ -16,9 +15,13 @@ export interface IUseSegmentsOutput { export const useSegments = (strategyId?: string): IUseSegmentsOutput => { const { uiConfig } = useUiConfig(); + const url = strategyId + ? formatApiPath(`api/admin/segments/strategies/${strategyId}`) + : formatApiPath('api/admin/segments'); + const { data, error, mutate } = useSWR( - [strategyId, uiConfig.flags], - fetchSegments, + url, + () => (uiConfig.flags?.SE ? fetchSegments(url) : []), { refreshInterval: 15 * 1000, } @@ -36,22 +39,9 @@ export const useSegments = (strategyId?: string): IUseSegmentsOutput => { }; }; -export const fetchSegments = async ( - strategyId?: string, - flags?: IFlags -): Promise => { - if (!flags?.SE) { - return []; - } - - return fetch(formatSegmentsPath(strategyId)) +export const fetchSegments = async (url: string): Promise => { + return fetch(url) .then(handleErrorResponses('Segments')) .then(res => res.json()) .then(res => res.segments); }; - -const formatSegmentsPath = (strategyId?: string): string => { - return strategyId - ? formatApiPath(`api/admin/segments/strategies/${strategyId}`) - : formatApiPath('api/admin/segments'); -}; diff --git a/frontend/src/hooks/useFeaturesFilter.test.ts b/frontend/src/hooks/useFeaturesFilter.test.ts deleted file mode 100644 index 4ab45440b0..0000000000 --- a/frontend/src/hooks/useFeaturesFilter.test.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { renderHook, act } from '@testing-library/react-hooks'; -import { useFeaturesFilter } from 'hooks/useFeaturesFilter'; -import { - FeatureSchema, - StrategySchema, - ConstraintSchema, - ConstraintSchemaOperatorEnum, -} from 'openapi'; -import parseISO from 'date-fns/parseISO'; - -test('useFeaturesFilter empty', () => { - const { result } = renderHook(() => useFeaturesFilter([])); - - expect(result.current.filtered.length).toEqual(0); - expect(result.current).toMatchSnapshot(); -}); - -test('useFeaturesFilter equal', () => { - const { result } = renderHook(() => - useFeaturesFilter([ - mockFeatureToggle(), - mockFeatureToggle(), - mockFeatureToggle(), - ]) - ); - - expect(result.current.filtered.length).toEqual(3); - expect(result.current).toMatchSnapshot(); -}); - -test('useFeaturesFilter project', () => { - const { result } = renderHook(() => - useFeaturesFilter([ - mockFeatureToggle({ project: '1' }), - mockFeatureToggle({ project: '2' }), - mockFeatureToggle({ project: '2' }), - mockFeatureToggle({ project: '3' }), - ]) - ); - - act(() => { - result.current.setFilter({ project: '2' }); - }); - - expect(result.current.filtered.length).toEqual(2); - expect(result.current).toMatchSnapshot(); -}); - -test('useFeaturesFilter query', () => { - const { result } = renderHook(() => - useFeaturesFilter([ - mockFeatureToggle({ project: 'a' }), - mockFeatureToggle({ project: 'ab' }), - mockFeatureToggle({ project: 'abc' }), - mockFeatureToggle({ project: 'abcd' }), - ]) - ); - - act(() => { - result.current.setFilter({ project: '*', query: 'bc' }); - }); - - expect(result.current.filtered.length).toEqual(2); - expect(result.current).toMatchSnapshot(); -}); - -test('useFeaturesFilter constraints', () => { - const { result } = renderHook(() => - useFeaturesFilter([ - mockFeatureToggle({ - project: 'a', - strategies: [ - mockFeatureStrategy(), - mockFeatureStrategy(), - mockFeatureStrategy({ - constraints: [ - mockConstraint(), - mockConstraint({ value: 'xyz' }), - mockConstraint({ values: ['xyz'] }), - ], - }), - ], - }), - ]) - ); - - act(() => { - result.current.setFilter({ project: '*', query: 'xyz' }); - }); - - expect(result.current.filtered.length).toEqual(1); - expect(result.current).toMatchSnapshot(); -}); - -const mockFeatureToggle = ( - overrides?: Partial -): FeatureSchema => { - return { - name: '1', - description: '1', - type: '1', - project: '1', - enabled: false, - stale: false, - impressionData: false, - strategies: [], - variants: [], - createdAt: parseISO('2006-01-02T15:04:05Z'), - lastSeenAt: parseISO('2006-01-02T15:04:05Z'), - ...overrides, - }; -}; - -const mockFeatureStrategy = ( - overrides?: Partial -): StrategySchema => { - return { - id: '1', - name: '1', - constraints: [], - parameters: {}, - ...overrides, - }; -}; - -const mockConstraint = ( - overrides?: Partial -): ConstraintSchema => { - return { - contextName: '', - operator: ConstraintSchemaOperatorEnum.In, - ...overrides, - }; -}; diff --git a/frontend/src/hooks/useFeaturesFilter.ts b/frontend/src/hooks/useFeaturesFilter.ts deleted file mode 100644 index cb76b2cf75..0000000000 --- a/frontend/src/hooks/useFeaturesFilter.ts +++ /dev/null @@ -1,112 +0,0 @@ -import React, { useMemo } from 'react'; -import { createGlobalStateHook } from 'hooks/useGlobalState'; -import { FeatureSchema } from 'openapi'; -import { safeRegExp } from '@server/util/escape-regex'; - -export interface IFeaturesFilter { - query?: string; - project: string; -} - -export interface IFeaturesSortOutput { - filtered: FeatureSchema[]; - filter: IFeaturesFilter; - setFilter: React.Dispatch>; -} - -// Store the features filter state globally, and in localStorage. -// When changing the format of IFeaturesFilter, change the version as well. -const useFeaturesFilterState = createGlobalStateHook( - 'useFeaturesFilterState', - { project: '*' } -); - -export const useFeaturesFilter = ( - features: FeatureSchema[] -): IFeaturesSortOutput => { - const [filter, setFilter] = useFeaturesFilterState(); - - const filtered = useMemo(() => { - return filterFeatures(features, filter); - }, [features, filter]); - - return { - setFilter, - filter, - filtered, - }; -}; - -const filterFeatures = ( - features: FeatureSchema[], - filter: IFeaturesFilter -): FeatureSchema[] => { - return filterFeaturesByQuery( - filterFeaturesByProject(features, filter), - filter - ); -}; - -const filterFeaturesByProject = ( - features: FeatureSchema[], - filter: IFeaturesFilter -): FeatureSchema[] => { - return filter.project === '*' - ? features - : features.filter(f => f.project === filter.project); -}; - -const filterFeaturesByQuery = ( - features: FeatureSchema[], - filter: IFeaturesFilter -): FeatureSchema[] => { - if (!filter.query) { - return features; - } - - // Try to parse the search query as a RegExp. - // Return all features if it can't be parsed. - try { - const regExp = safeRegExp(filter.query, 'i'); - return features.filter(f => filterFeatureByRegExp(f, filter, regExp)); - } catch (err) { - if (err instanceof SyntaxError) { - return features; - } else { - throw err; - } - } -}; - -const filterFeatureByRegExp = ( - feature: FeatureSchema, - filter: IFeaturesFilter, - regExp: RegExp -): boolean => { - if ( - regExp.test(feature.name) || - (feature.description && regExp.test(feature.description)) - ) { - return true; - } - - if ( - filter.query && - filter.query.length > 1 && - regExp.test(JSON.stringify(feature)) - ) { - return true; - } - - if (!feature.strategies) { - return false; - } - - return feature.strategies.some( - strategy => - regExp.test(strategy.name) || - strategy.constraints?.some(constraint => - constraint.values?.some(value => regExp.test(value)) - ) - ); -}; diff --git a/frontend/src/openapi/apis/AdminApi.ts b/frontend/src/openapi/apis/AdminApi.ts deleted file mode 100644 index 008454d860..0000000000 --- a/frontend/src/openapi/apis/AdminApi.ts +++ /dev/null @@ -1,1077 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import { - CloneFeatureSchema, - CloneFeatureSchemaFromJSON, - CloneFeatureSchemaToJSON, - CreateFeatureSchema, - CreateFeatureSchemaFromJSON, - CreateFeatureSchemaToJSON, - CreateStrategySchema, - CreateStrategySchemaFromJSON, - CreateStrategySchemaToJSON, - FeatureEnvironmentSchema, - FeatureEnvironmentSchemaFromJSON, - FeatureEnvironmentSchemaToJSON, - FeatureSchema, - FeatureSchemaFromJSON, - FeatureSchemaToJSON, - FeatureStrategySchema, - FeatureStrategySchemaFromJSON, - FeatureStrategySchemaToJSON, - FeaturesSchema, - FeaturesSchemaFromJSON, - FeaturesSchemaToJSON, - PatchOperationSchema, - PatchOperationSchemaFromJSON, - PatchOperationSchemaToJSON, - StrategySchema, - StrategySchemaFromJSON, - StrategySchemaToJSON, - TagSchema, - TagSchemaFromJSON, - TagSchemaToJSON, - TagsResponseSchema, - TagsResponseSchemaFromJSON, - TagsResponseSchemaToJSON, - UpdateFeatureSchema, - UpdateFeatureSchemaFromJSON, - UpdateFeatureSchemaToJSON, - UpdateStrategySchema, - UpdateStrategySchemaFromJSON, - UpdateStrategySchemaToJSON, -} from '../models'; - -export interface AddStrategyRequest { - projectId: string; - featureName: string; - environment: string; - createStrategySchema: CreateStrategySchema; -} - -export interface AddTagRequest { - featureName: string; - tagSchema: TagSchema; -} - -export interface ApiAdminArchiveFeaturesProjectIdGetRequest { - projectId: string; -} - -export interface ArchiveFeatureRequest { - projectId: string; - featureName: string; -} - -export interface CloneFeatureRequest { - projectId: string; - featureName: string; - cloneFeatureSchema: CloneFeatureSchema; -} - -export interface CreateFeatureRequest { - projectId: string; - createFeatureSchema: CreateFeatureSchema; -} - -export interface DeleteStrategyRequest { - projectId: string; - featureName: string; - environment: string; - strategyId: string; -} - -export interface GetEnvironmentRequest { - projectId: string; - featureName: string; - environment: string; -} - -export interface GetFeatureRequest { - projectId: string; - featureName: string; -} - -export interface GetFeaturesRequest { - projectId: string; -} - -export interface GetStrategiesRequest { - projectId: string; - featureName: string; - environment: string; -} - -export interface GetStrategyRequest { - projectId: string; - featureName: string; - environment: string; - strategyId: string; -} - -export interface ListTagsRequest { - featureName: string; -} - -export interface PatchFeatureRequest { - projectId: string; - featureName: string; - patchOperationSchema: Array; -} - -export interface PatchStrategyRequest { - projectId: string; - featureName: string; - environment: string; - strategyId: string; - patchOperationSchema: Array; -} - -export interface RemoveTagRequest { - featureName: string; - type: string; - value: string; -} - -export interface ToggleEnvironmentOffRequest { - projectId: string; - featureName: string; - environment: string; -} - -export interface ToggleEnvironmentOnRequest { - projectId: string; - featureName: string; - environment: string; -} - -export interface UpdateFeatureRequest { - projectId: string; - featureName: string; - updateFeatureSchema: UpdateFeatureSchema; -} - -export interface UpdateStrategyRequest { - projectId: string; - featureName: string; - environment: string; - strategyId: string; - updateStrategySchema: UpdateStrategySchema; -} - -/** - * - */ -export class AdminApi extends runtime.BaseAPI { - - /** - */ - async addStrategyRaw(requestParameters: AddStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling addStrategy.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling addStrategy.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling addStrategy.'); - } - - if (requestParameters.createStrategySchema === null || requestParameters.createStrategySchema === undefined) { - throw new runtime.RequiredError('createStrategySchema','Required parameter requestParameters.createStrategySchema was null or undefined when calling addStrategy.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CreateStrategySchemaToJSON(requestParameters.createStrategySchema), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureStrategySchemaFromJSON(jsonValue)); - } - - /** - */ - async addStrategy(requestParameters: AddStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.addStrategyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async addTagRaw(requestParameters: AddTagRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling addTag.'); - } - - if (requestParameters.tagSchema === null || requestParameters.tagSchema === undefined) { - throw new runtime.RequiredError('tagSchema','Required parameter requestParameters.tagSchema was null or undefined when calling addTag.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/features/{featureName}/tags`.replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: TagSchemaToJSON(requestParameters.tagSchema), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => TagSchemaFromJSON(jsonValue)); - } - - /** - */ - async addTag(requestParameters: AddTagRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.addTagRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiAdminArchiveFeaturesGetRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/archive/features`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesSchemaFromJSON(jsonValue)); - } - - /** - */ - async apiAdminArchiveFeaturesGet(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.apiAdminArchiveFeaturesGetRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiAdminArchiveFeaturesProjectIdGetRaw(requestParameters: ApiAdminArchiveFeaturesProjectIdGetRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling apiAdminArchiveFeaturesProjectIdGet.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/archive/features/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesSchemaFromJSON(jsonValue)); - } - - /** - */ - async apiAdminArchiveFeaturesProjectIdGet(requestParameters: ApiAdminArchiveFeaturesProjectIdGetRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.apiAdminArchiveFeaturesProjectIdGetRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async archiveFeatureRaw(requestParameters: ArchiveFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling archiveFeature.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling archiveFeature.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response); - } - - /** - */ - async archiveFeature(requestParameters: ArchiveFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.archiveFeatureRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async cloneFeatureRaw(requestParameters: CloneFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling cloneFeature.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling cloneFeature.'); - } - - if (requestParameters.cloneFeatureSchema === null || requestParameters.cloneFeatureSchema === undefined) { - throw new runtime.RequiredError('cloneFeatureSchema','Required parameter requestParameters.cloneFeatureSchema was null or undefined when calling cloneFeature.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/clone`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CloneFeatureSchemaToJSON(requestParameters.cloneFeatureSchema), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureSchemaFromJSON(jsonValue)); - } - - /** - */ - async cloneFeature(requestParameters: CloneFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.cloneFeatureRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async createFeatureRaw(requestParameters: CreateFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling createFeature.'); - } - - if (requestParameters.createFeatureSchema === null || requestParameters.createFeatureSchema === undefined) { - throw new runtime.RequiredError('createFeatureSchema','Required parameter requestParameters.createFeatureSchema was null or undefined when calling createFeature.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CreateFeatureSchemaToJSON(requestParameters.createFeatureSchema), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureSchemaFromJSON(jsonValue)); - } - - /** - */ - async createFeature(requestParameters: CreateFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.createFeatureRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async deleteStrategyRaw(requestParameters: DeleteStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling deleteStrategy.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling deleteStrategy.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling deleteStrategy.'); - } - - if (requestParameters.strategyId === null || requestParameters.strategyId === undefined) { - throw new runtime.RequiredError('strategyId','Required parameter requestParameters.strategyId was null or undefined when calling deleteStrategy.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies/{strategyId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response); - } - - /** - */ - async deleteStrategy(requestParameters: DeleteStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.deleteStrategyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async getAllTogglesRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/features`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesSchemaFromJSON(jsonValue)); - } - - /** - */ - async getAllToggles(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.getAllTogglesRaw(initOverrides); - return await response.value(); - } - - /** - */ - async getEnvironmentRaw(requestParameters: GetEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getEnvironment.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling getEnvironment.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling getEnvironment.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureEnvironmentSchemaFromJSON(jsonValue)); - } - - /** - */ - async getEnvironment(requestParameters: GetEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.getEnvironmentRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async getFeatureRaw(requestParameters: GetFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getFeature.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling getFeature.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureSchemaFromJSON(jsonValue)); - } - - /** - */ - async getFeature(requestParameters: GetFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.getFeatureRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async getFeaturesRaw(requestParameters: GetFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getFeatures.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesSchemaFromJSON(jsonValue)); - } - - /** - */ - async getFeatures(requestParameters: GetFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.getFeaturesRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async getStrategiesRaw(requestParameters: GetStrategiesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise>> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getStrategies.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling getStrategies.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling getStrategies.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StrategySchemaFromJSON)); - } - - /** - */ - async getStrategies(requestParameters: GetStrategiesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - const response = await this.getStrategiesRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async getStrategyRaw(requestParameters: GetStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getStrategy.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling getStrategy.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling getStrategy.'); - } - - if (requestParameters.strategyId === null || requestParameters.strategyId === undefined) { - throw new runtime.RequiredError('strategyId','Required parameter requestParameters.strategyId was null or undefined when calling getStrategy.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies/{strategyId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureStrategySchemaFromJSON(jsonValue)); - } - - /** - */ - async getStrategy(requestParameters: GetStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.getStrategyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async listTagsRaw(requestParameters: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling listTags.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/features/{featureName}/tags`.replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => TagsResponseSchemaFromJSON(jsonValue)); - } - - /** - */ - async listTags(requestParameters: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.listTagsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async patchFeatureRaw(requestParameters: PatchFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling patchFeature.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling patchFeature.'); - } - - if (requestParameters.patchOperationSchema === null || requestParameters.patchOperationSchema === undefined) { - throw new runtime.RequiredError('patchOperationSchema','Required parameter requestParameters.patchOperationSchema was null or undefined when calling patchFeature.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: requestParameters.patchOperationSchema.map(PatchOperationSchemaToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureSchemaFromJSON(jsonValue)); - } - - /** - */ - async patchFeature(requestParameters: PatchFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.patchFeatureRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async patchStrategyRaw(requestParameters: PatchStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling patchStrategy.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling patchStrategy.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling patchStrategy.'); - } - - if (requestParameters.strategyId === null || requestParameters.strategyId === undefined) { - throw new runtime.RequiredError('strategyId','Required parameter requestParameters.strategyId was null or undefined when calling patchStrategy.'); - } - - if (requestParameters.patchOperationSchema === null || requestParameters.patchOperationSchema === undefined) { - throw new runtime.RequiredError('patchOperationSchema','Required parameter requestParameters.patchOperationSchema was null or undefined when calling patchStrategy.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies/{strategyId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: requestParameters.patchOperationSchema.map(PatchOperationSchemaToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureStrategySchemaFromJSON(jsonValue)); - } - - /** - */ - async patchStrategy(requestParameters: PatchStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.patchStrategyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async removeTagRaw(requestParameters: RemoveTagRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling removeTag.'); - } - - if (requestParameters.type === null || requestParameters.type === undefined) { - throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling removeTag.'); - } - - if (requestParameters.value === null || requestParameters.value === undefined) { - throw new runtime.RequiredError('value','Required parameter requestParameters.value was null or undefined when calling removeTag.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/features/{featureName}/tags/{type}/{value}`.replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"value"}}`, encodeURIComponent(String(requestParameters.value))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response); - } - - /** - */ - async removeTag(requestParameters: RemoveTagRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.removeTagRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async toggleEnvironmentOffRaw(requestParameters: ToggleEnvironmentOffRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling toggleEnvironmentOff.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling toggleEnvironmentOff.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling toggleEnvironmentOff.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/off`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureSchemaFromJSON(jsonValue)); - } - - /** - */ - async toggleEnvironmentOff(requestParameters: ToggleEnvironmentOffRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.toggleEnvironmentOffRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async toggleEnvironmentOnRaw(requestParameters: ToggleEnvironmentOnRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling toggleEnvironmentOn.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling toggleEnvironmentOn.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling toggleEnvironmentOn.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/on`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureSchemaFromJSON(jsonValue)); - } - - /** - */ - async toggleEnvironmentOn(requestParameters: ToggleEnvironmentOnRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.toggleEnvironmentOnRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async updateFeatureRaw(requestParameters: UpdateFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling updateFeature.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling updateFeature.'); - } - - if (requestParameters.updateFeatureSchema === null || requestParameters.updateFeatureSchema === undefined) { - throw new runtime.RequiredError('updateFeatureSchema','Required parameter requestParameters.updateFeatureSchema was null or undefined when calling updateFeature.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: UpdateFeatureSchemaToJSON(requestParameters.updateFeatureSchema), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureSchemaFromJSON(jsonValue)); - } - - /** - */ - async updateFeature(requestParameters: UpdateFeatureRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.updateFeatureRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async updateStrategyRaw(requestParameters: UpdateStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - if (requestParameters.projectId === null || requestParameters.projectId === undefined) { - throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling updateStrategy.'); - } - - if (requestParameters.featureName === null || requestParameters.featureName === undefined) { - throw new runtime.RequiredError('featureName','Required parameter requestParameters.featureName was null or undefined when calling updateStrategy.'); - } - - if (requestParameters.environment === null || requestParameters.environment === undefined) { - throw new runtime.RequiredError('environment','Required parameter requestParameters.environment was null or undefined when calling updateStrategy.'); - } - - if (requestParameters.strategyId === null || requestParameters.strategyId === undefined) { - throw new runtime.RequiredError('strategyId','Required parameter requestParameters.strategyId was null or undefined when calling updateStrategy.'); - } - - if (requestParameters.updateStrategySchema === null || requestParameters.updateStrategySchema === undefined) { - throw new runtime.RequiredError('updateStrategySchema','Required parameter requestParameters.updateStrategySchema was null or undefined when calling updateStrategy.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies/{strategyId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"featureName"}}`, encodeURIComponent(String(requestParameters.featureName))).replace(`{${"environment"}}`, encodeURIComponent(String(requestParameters.environment))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: UpdateStrategySchemaToJSON(requestParameters.updateStrategySchema), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FeatureStrategySchemaFromJSON(jsonValue)); - } - - /** - */ - async updateStrategy(requestParameters: UpdateStrategyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.updateStrategyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async validateFeatureRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // apiKey authentication - } - - const response = await this.request({ - path: `/api/admin/features/validate`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response); - } - - /** - */ - async validateFeature(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise { - const response = await this.validateFeatureRaw(initOverrides); - return await response.value(); - } - -} diff --git a/frontend/src/openapi/apis/index.ts b/frontend/src/openapi/apis/index.ts deleted file mode 100644 index e16840a95b..0000000000 --- a/frontend/src/openapi/apis/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './AdminApi'; diff --git a/frontend/src/openapi/fetcher.ts b/frontend/src/openapi/fetcher.ts new file mode 100644 index 0000000000..30956db802 --- /dev/null +++ b/frontend/src/openapi/fetcher.ts @@ -0,0 +1,50 @@ +import { formatApiPath } from 'utils/formatPath'; + +/** + * Customize HTTP client, use Fetch instead of Axios + * @see https://orval.dev/guides/custom-client + */ +export const fetcher = async ({ + url, + method, + params, + data, + headers, + credentials = 'include', +}: { + url: string; + method: 'get' | 'post' | 'put' | 'delete' | 'patch'; + params?: string | URLSearchParams | Record | string[][]; + data?: BodyType; + headers?: HeadersInit; + credentials?: RequestCredentials; +}): Promise => { + const response = await fetch( + `${formatApiPath(url)}${new URLSearchParams(params)}`, + { + method, + credentials, + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + ...headers, + }, + ...(data ? { body: JSON.stringify(data) } : {}), + } + ); + + return response.json(); +}; + +export default fetcher; + +/** + * In some case with react-query and swr you want to be able to override the return error type so you can also do it here like this + */ +export type ErrorType = Error; + +/** + * In case you want to wrap the body type (optional) + * (if the custom instance is processing data before sending it, like changing the case for example) + */ +export type BodyType = BodyData; diff --git a/frontend/src/openapi/index.ts b/frontend/src/openapi/index.ts index be9d1edeef..e9644dae47 100644 --- a/frontend/src/openapi/index.ts +++ b/frontend/src/openapi/index.ts @@ -1,5 +1 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './runtime'; -export * from './apis'; export * from './models'; diff --git a/frontend/src/openapi/models/CloneFeatureSchema.ts b/frontend/src/openapi/models/CloneFeatureSchema.ts deleted file mode 100644 index c57221dc0d..0000000000 --- a/frontend/src/openapi/models/CloneFeatureSchema.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface CloneFeatureSchema - */ -export interface CloneFeatureSchema { - /** - * - * @type {string} - * @memberof CloneFeatureSchema - */ - name: string; - /** - * - * @type {boolean} - * @memberof CloneFeatureSchema - */ - replaceGroupId?: boolean; -} - -export function CloneFeatureSchemaFromJSON(json: any): CloneFeatureSchema { - return CloneFeatureSchemaFromJSONTyped(json, false); -} - -export function CloneFeatureSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CloneFeatureSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'replaceGroupId': !exists(json, 'replaceGroupId') ? undefined : json['replaceGroupId'], - }; -} - -export function CloneFeatureSchemaToJSON(value?: CloneFeatureSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'replaceGroupId': value.replaceGroupId, - }; -} - diff --git a/frontend/src/openapi/models/ConstraintSchema.ts b/frontend/src/openapi/models/ConstraintSchema.ts deleted file mode 100644 index 7dac0d61c5..0000000000 --- a/frontend/src/openapi/models/ConstraintSchema.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ConstraintSchema - */ -export interface ConstraintSchema { - /** - * - * @type {string} - * @memberof ConstraintSchema - */ - contextName: string; - /** - * - * @type {string} - * @memberof ConstraintSchema - */ - operator: ConstraintSchemaOperatorEnum; - /** - * - * @type {boolean} - * @memberof ConstraintSchema - */ - caseInsensitive?: boolean; - /** - * - * @type {boolean} - * @memberof ConstraintSchema - */ - inverted?: boolean; - /** - * - * @type {Array} - * @memberof ConstraintSchema - */ - values?: Array; - /** - * - * @type {string} - * @memberof ConstraintSchema - */ - value?: string; -} - - -/** - * @export - */ -export const ConstraintSchemaOperatorEnum = { - NotIn: 'NOT_IN', - In: 'IN', - StrEndsWith: 'STR_ENDS_WITH', - StrStartsWith: 'STR_STARTS_WITH', - StrContains: 'STR_CONTAINS', - NumEq: 'NUM_EQ', - NumGt: 'NUM_GT', - NumGte: 'NUM_GTE', - NumLt: 'NUM_LT', - NumLte: 'NUM_LTE', - DateAfter: 'DATE_AFTER', - DateBefore: 'DATE_BEFORE', - SemverEq: 'SEMVER_EQ', - SemverGt: 'SEMVER_GT', - SemverLt: 'SEMVER_LT' -} as const; -export type ConstraintSchemaOperatorEnum = typeof ConstraintSchemaOperatorEnum[keyof typeof ConstraintSchemaOperatorEnum]; - - -export function ConstraintSchemaFromJSON(json: any): ConstraintSchema { - return ConstraintSchemaFromJSONTyped(json, false); -} - -export function ConstraintSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConstraintSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'contextName': json['contextName'], - 'operator': json['operator'], - 'caseInsensitive': !exists(json, 'caseInsensitive') ? undefined : json['caseInsensitive'], - 'inverted': !exists(json, 'inverted') ? undefined : json['inverted'], - 'values': !exists(json, 'values') ? undefined : json['values'], - 'value': !exists(json, 'value') ? undefined : json['value'], - }; -} - -export function ConstraintSchemaToJSON(value?: ConstraintSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'contextName': value.contextName, - 'operator': value.operator, - 'caseInsensitive': value.caseInsensitive, - 'inverted': value.inverted, - 'values': value.values, - 'value': value.value, - }; -} - diff --git a/frontend/src/openapi/models/CreateFeatureSchema.ts b/frontend/src/openapi/models/CreateFeatureSchema.ts deleted file mode 100644 index 623fdbda11..0000000000 --- a/frontend/src/openapi/models/CreateFeatureSchema.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface CreateFeatureSchema - */ -export interface CreateFeatureSchema { - /** - * - * @type {string} - * @memberof CreateFeatureSchema - */ - name: string; - /** - * - * @type {string} - * @memberof CreateFeatureSchema - */ - type?: string; - /** - * - * @type {string} - * @memberof CreateFeatureSchema - */ - description?: string; - /** - * - * @type {boolean} - * @memberof CreateFeatureSchema - */ - impressionData?: boolean; -} - -export function CreateFeatureSchemaFromJSON(json: any): CreateFeatureSchema { - return CreateFeatureSchemaFromJSONTyped(json, false); -} - -export function CreateFeatureSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFeatureSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'type': !exists(json, 'type') ? undefined : json['type'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'impressionData': !exists(json, 'impressionData') ? undefined : json['impressionData'], - }; -} - -export function CreateFeatureSchemaToJSON(value?: CreateFeatureSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'type': value.type, - 'description': value.description, - 'impressionData': value.impressionData, - }; -} - diff --git a/frontend/src/openapi/models/CreateStrategySchema.ts b/frontend/src/openapi/models/CreateStrategySchema.ts deleted file mode 100644 index 5d53b30a1c..0000000000 --- a/frontend/src/openapi/models/CreateStrategySchema.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - ConstraintSchema, - ConstraintSchemaFromJSON, - ConstraintSchemaFromJSONTyped, - ConstraintSchemaToJSON, -} from './ConstraintSchema'; - -/** - * - * @export - * @interface CreateStrategySchema - */ -export interface CreateStrategySchema { - /** - * - * @type {string} - * @memberof CreateStrategySchema - */ - name: string; - /** - * - * @type {number} - * @memberof CreateStrategySchema - */ - sortOrder?: number; - /** - * - * @type {Array} - * @memberof CreateStrategySchema - */ - constraints?: Array; - /** - * - * @type {{ [key: string]: string; }} - * @memberof CreateStrategySchema - */ - parameters?: { [key: string]: string; }; -} - -export function CreateStrategySchemaFromJSON(json: any): CreateStrategySchema { - return CreateStrategySchemaFromJSONTyped(json, false); -} - -export function CreateStrategySchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStrategySchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'sortOrder': !exists(json, 'sortOrder') ? undefined : json['sortOrder'], - 'constraints': !exists(json, 'constraints') ? undefined : ((json['constraints'] as Array).map(ConstraintSchemaFromJSON)), - 'parameters': !exists(json, 'parameters') ? undefined : json['parameters'], - }; -} - -export function CreateStrategySchemaToJSON(value?: CreateStrategySchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'sortOrder': value.sortOrder, - 'constraints': value.constraints === undefined ? undefined : ((value.constraints as Array).map(ConstraintSchemaToJSON)), - 'parameters': value.parameters, - }; -} - diff --git a/frontend/src/openapi/models/FeatureEnvironmentSchema.ts b/frontend/src/openapi/models/FeatureEnvironmentSchema.ts deleted file mode 100644 index eb440d95ec..0000000000 --- a/frontend/src/openapi/models/FeatureEnvironmentSchema.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - FeatureStrategySchema, - FeatureStrategySchemaFromJSON, - FeatureStrategySchemaFromJSONTyped, - FeatureStrategySchemaToJSON, -} from './FeatureStrategySchema'; - -/** - * - * @export - * @interface FeatureEnvironmentSchema - */ -export interface FeatureEnvironmentSchema { - /** - * - * @type {string} - * @memberof FeatureEnvironmentSchema - */ - name: string; - /** - * - * @type {string} - * @memberof FeatureEnvironmentSchema - */ - environment?: string; - /** - * - * @type {string} - * @memberof FeatureEnvironmentSchema - */ - type?: string; - /** - * - * @type {boolean} - * @memberof FeatureEnvironmentSchema - */ - enabled: boolean; - /** - * - * @type {Array} - * @memberof FeatureEnvironmentSchema - */ - strategies?: Array; -} - -export function FeatureEnvironmentSchemaFromJSON(json: any): FeatureEnvironmentSchema { - return FeatureEnvironmentSchemaFromJSONTyped(json, false); -} - -export function FeatureEnvironmentSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureEnvironmentSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'environment': !exists(json, 'environment') ? undefined : json['environment'], - 'type': !exists(json, 'type') ? undefined : json['type'], - 'enabled': json['enabled'], - 'strategies': !exists(json, 'strategies') ? undefined : ((json['strategies'] as Array).map(FeatureStrategySchemaFromJSON)), - }; -} - -export function FeatureEnvironmentSchemaToJSON(value?: FeatureEnvironmentSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'environment': value.environment, - 'type': value.type, - 'enabled': value.enabled, - 'strategies': value.strategies === undefined ? undefined : ((value.strategies as Array).map(FeatureStrategySchemaToJSON)), - }; -} - diff --git a/frontend/src/openapi/models/FeatureSchema.ts b/frontend/src/openapi/models/FeatureSchema.ts deleted file mode 100644 index 8b6a18e2a2..0000000000 --- a/frontend/src/openapi/models/FeatureSchema.ts +++ /dev/null @@ -1,252 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - FeatureEnvironmentSchema, - FeatureEnvironmentSchemaFromJSON, - FeatureEnvironmentSchemaFromJSONTyped, - FeatureEnvironmentSchemaToJSON, -} from './FeatureEnvironmentSchema'; -import { - StrategySchema, - StrategySchemaFromJSON, - StrategySchemaFromJSONTyped, - StrategySchemaToJSON, -} from './StrategySchema'; -import { - TagSchema, - TagSchemaFromJSON, - TagSchemaFromJSONTyped, - TagSchemaToJSON, -} from './TagSchema'; -import { - VariantSchema, - VariantSchemaFromJSON, - VariantSchemaFromJSONTyped, - VariantSchemaToJSON, -} from './VariantSchema'; - -/** - * - * @export - * @interface FeatureSchema - */ -export interface FeatureSchema { - /** - * - * @type {string} - * @memberof FeatureSchema - */ - name: string; - /** - * - * @type {string} - * @memberof FeatureSchema - */ - type?: string; - /** - * - * @type {string} - * @memberof FeatureSchema - */ - description?: string; - /** - * - * @type {boolean} - * @memberof FeatureSchema - */ - archived?: boolean; - /** - * - * @type {string} - * @memberof FeatureSchema - */ - project?: string; - /** - * - * @type {boolean} - * @memberof FeatureSchema - */ - enabled?: boolean; - /** - * - * @type {boolean} - * @memberof FeatureSchema - */ - stale?: boolean; - /** - * - * @type {boolean} - * @memberof FeatureSchema - */ - impressionData?: boolean; - /** - * - * @type {Date} - * @memberof FeatureSchema - */ - createdAt?: Date | null; - /** - * - * @type {Date} - * @memberof FeatureSchema - */ - archivedAt?: Date | null; - /** - * - * @type {Date} - * @memberof FeatureSchema - */ - lastSeenAt?: Date | null; - /** - * - * @type {Array} - * @memberof FeatureSchema - */ - environments?: Array; - /** - * - * @type {Array} - * @memberof FeatureSchema - */ - strategies?: Array; - /** - * - * @type {Array} - * @memberof FeatureSchema - */ - variants?: Array; - /** - * - * @type {Array} - * @memberof FeatureSchema - */ - tags?: Array | null; -} - -export function FeatureSchemaFromJSON(json: any): FeatureSchema { - return FeatureSchemaFromJSONTyped(json, false); -} - -export function FeatureSchemaFromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): FeatureSchema { - if (json === undefined || json === null) { - return json; - } - return { - name: json['name'], - type: !exists(json, 'type') ? undefined : json['type'], - description: !exists(json, 'description') - ? undefined - : json['description'], - archived: !exists(json, 'archived') ? undefined : json['archived'], - project: !exists(json, 'project') ? undefined : json['project'], - enabled: !exists(json, 'enabled') ? undefined : json['enabled'], - stale: !exists(json, 'stale') ? undefined : json['stale'], - impressionData: !exists(json, 'impressionData') - ? undefined - : json['impressionData'], - createdAt: !exists(json, 'createdAt') - ? undefined - : json['createdAt'] === null - ? null - : new Date(json['createdAt']), - archivedAt: !exists(json, 'archivedAt') - ? undefined - : json['archivedAt'] === null - ? null - : new Date(json['archivedAt']), - lastSeenAt: !exists(json, 'lastSeenAt') - ? undefined - : json['lastSeenAt'] === null - ? null - : new Date(json['lastSeenAt']), - environments: !exists(json, 'environments') - ? undefined - : (json['environments'] as Array).map( - FeatureEnvironmentSchemaFromJSON - ), - strategies: !exists(json, 'strategies') - ? undefined - : (json['strategies'] as Array).map(StrategySchemaFromJSON), - variants: !exists(json, 'variants') - ? undefined - : (json['variants'] as Array).map(VariantSchemaFromJSON), - tags: !exists(json, 'tags') - ? undefined - : json['tags'] === null - ? null - : (json['tags'] as Array).map(TagSchemaFromJSON), - }; -} - -export function FeatureSchemaToJSON(value?: FeatureSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - name: value.name, - type: value.type, - description: value.description, - archived: value.archived, - project: value.project, - enabled: value.enabled, - stale: value.stale, - impressionData: value.impressionData, - createdAt: - value.createdAt === undefined - ? undefined - : value.createdAt === null - ? null - : value.createdAt.toISOString().substr(0, 10), - archivedAt: - value.archivedAt === undefined - ? undefined - : value.archivedAt === null - ? null - : value.archivedAt.toISOString().substr(0, 10), - lastSeenAt: - value.lastSeenAt === undefined - ? undefined - : value.lastSeenAt === null - ? null - : value.lastSeenAt.toISOString().substr(0, 10), - environments: - value.environments === undefined - ? undefined - : (value.environments as Array).map( - FeatureEnvironmentSchemaToJSON - ), - strategies: - value.strategies === undefined - ? undefined - : (value.strategies as Array).map(StrategySchemaToJSON), - variants: - value.variants === undefined - ? undefined - : (value.variants as Array).map(VariantSchemaToJSON), - tags: - value.tags === undefined - ? undefined - : value.tags === null - ? null - : (value.tags as Array).map(TagSchemaToJSON), - }; -} diff --git a/frontend/src/openapi/models/FeatureStrategySchema.ts b/frontend/src/openapi/models/FeatureStrategySchema.ts deleted file mode 100644 index 9b698835cd..0000000000 --- a/frontend/src/openapi/models/FeatureStrategySchema.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - ConstraintSchema, - ConstraintSchemaFromJSON, - ConstraintSchemaFromJSONTyped, - ConstraintSchemaToJSON, -} from './ConstraintSchema'; - -/** - * - * @export - * @interface FeatureStrategySchema - */ -export interface FeatureStrategySchema { - /** - * - * @type {string} - * @memberof FeatureStrategySchema - */ - id: string; - /** - * - * @type {string} - * @memberof FeatureStrategySchema - */ - name?: string; - /** - * - * @type {Date} - * @memberof FeatureStrategySchema - */ - createdAt?: Date | null; - /** - * - * @type {string} - * @memberof FeatureStrategySchema - */ - featureName: string; - /** - * - * @type {string} - * @memberof FeatureStrategySchema - */ - projectId?: string; - /** - * - * @type {string} - * @memberof FeatureStrategySchema - */ - environment: string; - /** - * - * @type {string} - * @memberof FeatureStrategySchema - */ - strategyName: string; - /** - * - * @type {number} - * @memberof FeatureStrategySchema - */ - sortOrder?: number; - /** - * - * @type {Array} - * @memberof FeatureStrategySchema - */ - constraints: Array; - /** - * - * @type {{ [key: string]: string; }} - * @memberof FeatureStrategySchema - */ - parameters: { [key: string]: string; }; -} - -export function FeatureStrategySchemaFromJSON(json: any): FeatureStrategySchema { - return FeatureStrategySchemaFromJSONTyped(json, false); -} - -export function FeatureStrategySchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureStrategySchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - 'createdAt': !exists(json, 'createdAt') ? undefined : (json['createdAt'] === null ? null : new Date(json['createdAt'])), - 'featureName': json['featureName'], - 'projectId': !exists(json, 'projectId') ? undefined : json['projectId'], - 'environment': json['environment'], - 'strategyName': json['strategyName'], - 'sortOrder': !exists(json, 'sortOrder') ? undefined : json['sortOrder'], - 'constraints': ((json['constraints'] as Array).map(ConstraintSchemaFromJSON)), - 'parameters': json['parameters'], - }; -} - -export function FeatureStrategySchemaToJSON(value?: FeatureStrategySchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'name': value.name, - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString().substr(0,10)), - 'featureName': value.featureName, - 'projectId': value.projectId, - 'environment': value.environment, - 'strategyName': value.strategyName, - 'sortOrder': value.sortOrder, - 'constraints': ((value.constraints as Array).map(ConstraintSchemaToJSON)), - 'parameters': value.parameters, - }; -} - diff --git a/frontend/src/openapi/models/FeaturesSchema.ts b/frontend/src/openapi/models/FeaturesSchema.ts deleted file mode 100644 index c8d6a2983d..0000000000 --- a/frontend/src/openapi/models/FeaturesSchema.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - FeatureSchema, - FeatureSchemaFromJSON, - FeatureSchemaFromJSONTyped, - FeatureSchemaToJSON, -} from './FeatureSchema'; - -/** - * - * @export - * @interface FeaturesSchema - */ -export interface FeaturesSchema { - /** - * - * @type {number} - * @memberof FeaturesSchema - */ - version: number; - /** - * - * @type {Array} - * @memberof FeaturesSchema - */ - features: Array; -} - -export function FeaturesSchemaFromJSON(json: any): FeaturesSchema { - return FeaturesSchemaFromJSONTyped(json, false); -} - -export function FeaturesSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'version': json['version'], - 'features': ((json['features'] as Array).map(FeatureSchemaFromJSON)), - }; -} - -export function FeaturesSchemaToJSON(value?: FeaturesSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'version': value.version, - 'features': ((value.features as Array).map(FeatureSchemaToJSON)), - }; -} - diff --git a/frontend/src/openapi/models/OverrideSchema.ts b/frontend/src/openapi/models/OverrideSchema.ts deleted file mode 100644 index eab05e1207..0000000000 --- a/frontend/src/openapi/models/OverrideSchema.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface OverrideSchema - */ -export interface OverrideSchema { - /** - * - * @type {string} - * @memberof OverrideSchema - */ - contextName: string; - /** - * - * @type {Array} - * @memberof OverrideSchema - */ - values: Array; -} - -export function OverrideSchemaFromJSON(json: any): OverrideSchema { - return OverrideSchemaFromJSONTyped(json, false); -} - -export function OverrideSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): OverrideSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'contextName': json['contextName'], - 'values': json['values'], - }; -} - -export function OverrideSchemaToJSON(value?: OverrideSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'contextName': value.contextName, - 'values': value.values, - }; -} - diff --git a/frontend/src/openapi/models/PatchOperationSchema.ts b/frontend/src/openapi/models/PatchOperationSchema.ts deleted file mode 100644 index 44c916f534..0000000000 --- a/frontend/src/openapi/models/PatchOperationSchema.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface PatchOperationSchema - */ -export interface PatchOperationSchema { - /** - * - * @type {string} - * @memberof PatchOperationSchema - */ - path: string; - /** - * - * @type {string} - * @memberof PatchOperationSchema - */ - op: PatchOperationSchemaOpEnum; - /** - * - * @type {string} - * @memberof PatchOperationSchema - */ - from?: string; - /** - * - * @type {any} - * @memberof PatchOperationSchema - */ - value?: any | null; -} - - -/** - * @export - */ -export const PatchOperationSchemaOpEnum = { - Add: 'add', - Remove: 'remove', - Replace: 'replace', - Copy: 'copy', - Move: 'move' -} as const; -export type PatchOperationSchemaOpEnum = typeof PatchOperationSchemaOpEnum[keyof typeof PatchOperationSchemaOpEnum]; - - -export function PatchOperationSchemaFromJSON(json: any): PatchOperationSchema { - return PatchOperationSchemaFromJSONTyped(json, false); -} - -export function PatchOperationSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchOperationSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'path': json['path'], - 'op': json['op'], - 'from': !exists(json, 'from') ? undefined : json['from'], - 'value': !exists(json, 'value') ? undefined : json['value'], - }; -} - -export function PatchOperationSchemaToJSON(value?: PatchOperationSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'path': value.path, - 'op': value.op, - 'from': value.from, - 'value': value.value, - }; -} - diff --git a/frontend/src/openapi/models/RequestsPerSecondSchema.ts b/frontend/src/openapi/models/RequestsPerSecondSchema.ts deleted file mode 100644 index 2d08246e7e..0000000000 --- a/frontend/src/openapi/models/RequestsPerSecondSchema.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.19.0-beta.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { RequestsPerSecondSchemaData } from './RequestsPerSecondSchemaData'; -import { - RequestsPerSecondSchemaDataFromJSON, - RequestsPerSecondSchemaDataFromJSONTyped, - RequestsPerSecondSchemaDataToJSON, -} from './RequestsPerSecondSchemaData'; - -/** - * - * @export - * @interface RequestsPerSecondSchema - */ -export interface RequestsPerSecondSchema { - /** - * - * @type {string} - * @memberof RequestsPerSecondSchema - */ - status?: string; - /** - * - * @type {RequestsPerSecondSchemaData} - * @memberof RequestsPerSecondSchema - */ - data?: RequestsPerSecondSchemaData; -} - -/** - * Check if a given object implements the RequestsPerSecondSchema interface. - */ -export function instanceOfRequestsPerSecondSchema(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RequestsPerSecondSchemaFromJSON(json: any): RequestsPerSecondSchema { - return RequestsPerSecondSchemaFromJSONTyped(json, false); -} - -export function RequestsPerSecondSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestsPerSecondSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'status': !exists(json, 'status') ? undefined : json['status'], - 'data': !exists(json, 'data') ? undefined : RequestsPerSecondSchemaDataFromJSON(json['data']), - }; -} - -export function RequestsPerSecondSchemaToJSON(value?: RequestsPerSecondSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'status': value.status, - 'data': RequestsPerSecondSchemaDataToJSON(value.data), - }; -} - diff --git a/frontend/src/openapi/models/RequestsPerSecondSchemaData.ts b/frontend/src/openapi/models/RequestsPerSecondSchemaData.ts deleted file mode 100644 index 729d65baf1..0000000000 --- a/frontend/src/openapi/models/RequestsPerSecondSchemaData.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.19.0-beta.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { RequestsPerSecondSchemaDataResultInner } from './RequestsPerSecondSchemaDataResultInner'; -import { - RequestsPerSecondSchemaDataResultInnerFromJSON, - RequestsPerSecondSchemaDataResultInnerFromJSONTyped, - RequestsPerSecondSchemaDataResultInnerToJSON, -} from './RequestsPerSecondSchemaDataResultInner'; - -/** - * - * @export - * @interface RequestsPerSecondSchemaData - */ -export interface RequestsPerSecondSchemaData { - /** - * - * @type {string} - * @memberof RequestsPerSecondSchemaData - */ - resultType?: string; - /** - * An array of values per metric. Each one represents a line in the graph labeled by its metric name - * @type {Array} - * @memberof RequestsPerSecondSchemaData - */ - result?: Array; -} - -/** - * Check if a given object implements the RequestsPerSecondSchemaData interface. - */ -export function instanceOfRequestsPerSecondSchemaData(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RequestsPerSecondSchemaDataFromJSON(json: any): RequestsPerSecondSchemaData { - return RequestsPerSecondSchemaDataFromJSONTyped(json, false); -} - -export function RequestsPerSecondSchemaDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestsPerSecondSchemaData { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'resultType': !exists(json, 'resultType') ? undefined : json['resultType'], - 'result': !exists(json, 'result') ? undefined : ((json['result'] as Array).map(RequestsPerSecondSchemaDataResultInnerFromJSON)), - }; -} - -export function RequestsPerSecondSchemaDataToJSON(value?: RequestsPerSecondSchemaData | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'resultType': value.resultType, - 'result': value.result === undefined ? undefined : ((value.result as Array).map(RequestsPerSecondSchemaDataResultInnerToJSON)), - }; -} - diff --git a/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInner.ts b/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInner.ts deleted file mode 100644 index e508a61a55..0000000000 --- a/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInner.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.19.0-beta.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { RequestsPerSecondSchemaDataResultInnerMetric } from './RequestsPerSecondSchemaDataResultInnerMetric'; -import { - RequestsPerSecondSchemaDataResultInnerMetricFromJSON, - RequestsPerSecondSchemaDataResultInnerMetricFromJSONTyped, - RequestsPerSecondSchemaDataResultInnerMetricToJSON, -} from './RequestsPerSecondSchemaDataResultInnerMetric'; -import type { RequestsPerSecondSchemaDataResultInnerValuesInnerInner } from './RequestsPerSecondSchemaDataResultInnerValuesInnerInner'; -import { - RequestsPerSecondSchemaDataResultInnerValuesInnerInnerFromJSON, - RequestsPerSecondSchemaDataResultInnerValuesInnerInnerFromJSONTyped, - RequestsPerSecondSchemaDataResultInnerValuesInnerInnerToJSON, -} from './RequestsPerSecondSchemaDataResultInnerValuesInnerInner'; - -/** - * - * @export - * @interface RequestsPerSecondSchemaDataResultInner - */ -export interface RequestsPerSecondSchemaDataResultInner { - /** - * - * @type {RequestsPerSecondSchemaDataResultInnerMetric} - * @memberof RequestsPerSecondSchemaDataResultInner - */ - metric?: RequestsPerSecondSchemaDataResultInnerMetric; - /** - * An array of arrays. Each element of the array is an array of size 2 consisting of the 2 axis for the graph: in position zero the x axis represented as a number and position one the y axis represented as string - * @type {Array>} - * @memberof RequestsPerSecondSchemaDataResultInner - */ - values?: Array>; -} - -/** - * Check if a given object implements the RequestsPerSecondSchemaDataResultInner interface. - */ -export function instanceOfRequestsPerSecondSchemaDataResultInner(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RequestsPerSecondSchemaDataResultInnerFromJSON(json: any): RequestsPerSecondSchemaDataResultInner { - return RequestsPerSecondSchemaDataResultInnerFromJSONTyped(json, false); -} - -export function RequestsPerSecondSchemaDataResultInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestsPerSecondSchemaDataResultInner { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'metric': !exists(json, 'metric') ? undefined : RequestsPerSecondSchemaDataResultInnerMetricFromJSON(json['metric']), - 'values': !exists(json, 'values') ? undefined : json['values'], - }; -} - -export function RequestsPerSecondSchemaDataResultInnerToJSON(value?: RequestsPerSecondSchemaDataResultInner | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'metric': RequestsPerSecondSchemaDataResultInnerMetricToJSON(value.metric), - 'values': value.values, - }; -} - diff --git a/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerMetric.ts b/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerMetric.ts deleted file mode 100644 index 6c53655117..0000000000 --- a/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerMetric.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.19.0-beta.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * A key value set representing the metric - * @export - * @interface RequestsPerSecondSchemaDataResultInnerMetric - */ -export interface RequestsPerSecondSchemaDataResultInnerMetric { - /** - * - * @type {string} - * @memberof RequestsPerSecondSchemaDataResultInnerMetric - */ - appName?: string; - /** - * - * @type {string} - * @memberof RequestsPerSecondSchemaDataResultInnerMetric - */ - endpoint?: string; -} - -/** - * Check if a given object implements the RequestsPerSecondSchemaDataResultInnerMetric interface. - */ -export function instanceOfRequestsPerSecondSchemaDataResultInnerMetric(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RequestsPerSecondSchemaDataResultInnerMetricFromJSON(json: any): RequestsPerSecondSchemaDataResultInnerMetric { - return RequestsPerSecondSchemaDataResultInnerMetricFromJSONTyped(json, false); -} - -export function RequestsPerSecondSchemaDataResultInnerMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestsPerSecondSchemaDataResultInnerMetric { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'appName': !exists(json, 'appName') ? undefined : json['appName'], - }; -} - -export function RequestsPerSecondSchemaDataResultInnerMetricToJSON(value?: RequestsPerSecondSchemaDataResultInnerMetric | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'appName': value.appName, - }; -} - diff --git a/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerValuesInnerInner.ts b/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerValuesInnerInner.ts deleted file mode 100644 index 01f34fa4bc..0000000000 --- a/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerValuesInnerInner.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.19.0-beta.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface RequestsPerSecondSchemaDataResultInnerValuesInnerInner - */ -export type RequestsPerSecondSchemaDataResultInnerValuesInnerInner = number | string; - -/** - * Check if a given object implements the RequestsPerSecondSchemaDataResultInnerValuesInnerInner interface. - */ -export function instanceOfRequestsPerSecondSchemaDataResultInnerValuesInnerInner(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RequestsPerSecondSchemaDataResultInnerValuesInnerInnerFromJSON(json: any): RequestsPerSecondSchemaDataResultInnerValuesInnerInner { - return RequestsPerSecondSchemaDataResultInnerValuesInnerInnerFromJSONTyped(json, false); -} - -export function RequestsPerSecondSchemaDataResultInnerValuesInnerInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestsPerSecondSchemaDataResultInnerValuesInnerInner { - return json; -} - -export function RequestsPerSecondSchemaDataResultInnerValuesInnerInnerToJSON(value?: RequestsPerSecondSchemaDataResultInnerValuesInnerInner | null): any { - return value; -} - diff --git a/frontend/src/openapi/models/RequestsPerSecondSegmentedSchema.ts b/frontend/src/openapi/models/RequestsPerSecondSegmentedSchema.ts deleted file mode 100644 index bb1f1a64f4..0000000000 --- a/frontend/src/openapi/models/RequestsPerSecondSegmentedSchema.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.19.0-beta.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { RequestsPerSecondSchema } from './RequestsPerSecondSchema'; -import { - RequestsPerSecondSchemaFromJSON, - RequestsPerSecondSchemaFromJSONTyped, - RequestsPerSecondSchemaToJSON, -} from './RequestsPerSecondSchema'; - -/** - * - * @export - * @interface RequestsPerSecondSegmentedSchema - */ -export interface RequestsPerSecondSegmentedSchema { - /** - * - * @type {RequestsPerSecondSchema} - * @memberof RequestsPerSecondSegmentedSchema - */ - clientMetrics?: RequestsPerSecondSchema; - /** - * - * @type {RequestsPerSecondSchema} - * @memberof RequestsPerSecondSegmentedSchema - */ - adminMetrics?: RequestsPerSecondSchema; -} - -/** - * Check if a given object implements the RequestsPerSecondSegmentedSchema interface. - */ -export function instanceOfRequestsPerSecondSegmentedSchema(value: object): boolean { - let isInstance = true; - - return isInstance; -} - -export function RequestsPerSecondSegmentedSchemaFromJSON(json: any): RequestsPerSecondSegmentedSchema { - return RequestsPerSecondSegmentedSchemaFromJSONTyped(json, false); -} - -export function RequestsPerSecondSegmentedSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestsPerSecondSegmentedSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'clientMetrics': !exists(json, 'clientMetrics') ? undefined : RequestsPerSecondSchemaFromJSON(json['clientMetrics']), - 'adminMetrics': !exists(json, 'adminMetrics') ? undefined : RequestsPerSecondSchemaFromJSON(json['adminMetrics']), - }; -} - -export function RequestsPerSecondSegmentedSchemaToJSON(value?: RequestsPerSecondSegmentedSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'clientMetrics': RequestsPerSecondSchemaToJSON(value.clientMetrics), - 'adminMetrics': RequestsPerSecondSchemaToJSON(value.adminMetrics), - }; -} - diff --git a/frontend/src/openapi/models/StrategySchema.ts b/frontend/src/openapi/models/StrategySchema.ts deleted file mode 100644 index 2b10845640..0000000000 --- a/frontend/src/openapi/models/StrategySchema.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - ConstraintSchema, - ConstraintSchemaFromJSON, - ConstraintSchemaFromJSONTyped, - ConstraintSchemaToJSON, -} from './ConstraintSchema'; - -/** - * - * @export - * @interface StrategySchema - */ -export interface StrategySchema { - /** - * - * @type {string} - * @memberof StrategySchema - */ - id?: string; - /** - * - * @type {string} - * @memberof StrategySchema - */ - name: string; - /** - * - * @type {number} - * @memberof StrategySchema - */ - sortOrder?: number; - /** - * - * @type {Array} - * @memberof StrategySchema - */ - constraints?: Array; - /** - * - * @type {{ [key: string]: string; }} - * @memberof StrategySchema - */ - parameters?: { [key: string]: string; }; -} - -export function StrategySchemaFromJSON(json: any): StrategySchema { - return StrategySchemaFromJSONTyped(json, false); -} - -export function StrategySchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): StrategySchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': json['name'], - 'sortOrder': !exists(json, 'sortOrder') ? undefined : json['sortOrder'], - 'constraints': !exists(json, 'constraints') ? undefined : ((json['constraints'] as Array).map(ConstraintSchemaFromJSON)), - 'parameters': !exists(json, 'parameters') ? undefined : json['parameters'], - }; -} - -export function StrategySchemaToJSON(value?: StrategySchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'name': value.name, - 'sortOrder': value.sortOrder, - 'constraints': value.constraints === undefined ? undefined : ((value.constraints as Array).map(ConstraintSchemaToJSON)), - 'parameters': value.parameters, - }; -} - diff --git a/frontend/src/openapi/models/TagSchema.ts b/frontend/src/openapi/models/TagSchema.ts deleted file mode 100644 index c01e7e097f..0000000000 --- a/frontend/src/openapi/models/TagSchema.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface TagSchema - */ -export interface TagSchema { - /** - * - * @type {string} - * @memberof TagSchema - */ - value: string; - /** - * - * @type {string} - * @memberof TagSchema - */ - type: string; -} - -export function TagSchemaFromJSON(json: any): TagSchema { - return TagSchemaFromJSONTyped(json, false); -} - -export function TagSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'value': json['value'], - 'type': json['type'], - }; -} - -export function TagSchemaToJSON(value?: TagSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'value': value.value, - 'type': value.type, - }; -} - diff --git a/frontend/src/openapi/models/TagsResponseSchema.ts b/frontend/src/openapi/models/TagsResponseSchema.ts deleted file mode 100644 index b6deefc221..0000000000 --- a/frontend/src/openapi/models/TagsResponseSchema.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - TagSchema, - TagSchemaFromJSON, - TagSchemaFromJSONTyped, - TagSchemaToJSON, -} from './TagSchema'; - -/** - * - * @export - * @interface TagsResponseSchema - */ -export interface TagsResponseSchema { - /** - * - * @type {number} - * @memberof TagsResponseSchema - */ - version: number; - /** - * - * @type {Array} - * @memberof TagsResponseSchema - */ - tags: Array; -} - -export function TagsResponseSchemaFromJSON(json: any): TagsResponseSchema { - return TagsResponseSchemaFromJSONTyped(json, false); -} - -export function TagsResponseSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagsResponseSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'version': json['version'], - 'tags': ((json['tags'] as Array).map(TagSchemaFromJSON)), - }; -} - -export function TagsResponseSchemaToJSON(value?: TagsResponseSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'version': value.version, - 'tags': ((value.tags as Array).map(TagSchemaToJSON)), - }; -} - diff --git a/frontend/src/openapi/models/UpdateFeatureSchema.ts b/frontend/src/openapi/models/UpdateFeatureSchema.ts deleted file mode 100644 index afdb9b1bf4..0000000000 --- a/frontend/src/openapi/models/UpdateFeatureSchema.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - ConstraintSchema, - ConstraintSchemaFromJSON, - ConstraintSchemaFromJSONTyped, - ConstraintSchemaToJSON, -} from './ConstraintSchema'; - -/** - * - * @export - * @interface UpdateFeatureSchema - */ -export interface UpdateFeatureSchema { - /** - * - * @type {string} - * @memberof UpdateFeatureSchema - */ - name: string; - /** - * - * @type {string} - * @memberof UpdateFeatureSchema - */ - description?: string; - /** - * - * @type {string} - * @memberof UpdateFeatureSchema - */ - type?: string; - /** - * - * @type {boolean} - * @memberof UpdateFeatureSchema - */ - stale?: boolean; - /** - * - * @type {boolean} - * @memberof UpdateFeatureSchema - */ - archived?: boolean; - /** - * - * @type {Date} - * @memberof UpdateFeatureSchema - */ - createdAt?: Date; - /** - * - * @type {boolean} - * @memberof UpdateFeatureSchema - */ - impressionData?: boolean; - /** - * - * @type {Array} - * @memberof UpdateFeatureSchema - */ - constraints?: Array; -} - -export function UpdateFeatureSchemaFromJSON(json: any): UpdateFeatureSchema { - return UpdateFeatureSchemaFromJSONTyped(json, false); -} - -export function UpdateFeatureSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFeatureSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'description': !exists(json, 'description') ? undefined : json['description'], - 'type': !exists(json, 'type') ? undefined : json['type'], - 'stale': !exists(json, 'stale') ? undefined : json['stale'], - 'archived': !exists(json, 'archived') ? undefined : json['archived'], - 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])), - 'impressionData': !exists(json, 'impressionData') ? undefined : json['impressionData'], - 'constraints': !exists(json, 'constraints') ? undefined : ((json['constraints'] as Array).map(ConstraintSchemaFromJSON)), - }; -} - -export function UpdateFeatureSchemaToJSON(value?: UpdateFeatureSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'description': value.description, - 'type': value.type, - 'stale': value.stale, - 'archived': value.archived, - 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString().substr(0,10)), - 'impressionData': value.impressionData, - 'constraints': value.constraints === undefined ? undefined : ((value.constraints as Array).map(ConstraintSchemaToJSON)), - }; -} - diff --git a/frontend/src/openapi/models/UpdateStrategySchema.ts b/frontend/src/openapi/models/UpdateStrategySchema.ts deleted file mode 100644 index eae9629569..0000000000 --- a/frontend/src/openapi/models/UpdateStrategySchema.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - ConstraintSchema, - ConstraintSchemaFromJSON, - ConstraintSchemaFromJSONTyped, - ConstraintSchemaToJSON, -} from './ConstraintSchema'; - -/** - * - * @export - * @interface UpdateStrategySchema - */ -export interface UpdateStrategySchema { - /** - * - * @type {string} - * @memberof UpdateStrategySchema - */ - id?: string; - /** - * - * @type {string} - * @memberof UpdateStrategySchema - */ - name?: string; - /** - * - * @type {number} - * @memberof UpdateStrategySchema - */ - sortOrder?: number; - /** - * - * @type {Array} - * @memberof UpdateStrategySchema - */ - constraints?: Array; - /** - * - * @type {{ [key: string]: string; }} - * @memberof UpdateStrategySchema - */ - parameters?: { [key: string]: string; }; -} - -export function UpdateStrategySchemaFromJSON(json: any): UpdateStrategySchema { - return UpdateStrategySchemaFromJSONTyped(json, false); -} - -export function UpdateStrategySchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStrategySchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'id': !exists(json, 'id') ? undefined : json['id'], - 'name': !exists(json, 'name') ? undefined : json['name'], - 'sortOrder': !exists(json, 'sortOrder') ? undefined : json['sortOrder'], - 'constraints': !exists(json, 'constraints') ? undefined : ((json['constraints'] as Array).map(ConstraintSchemaFromJSON)), - 'parameters': !exists(json, 'parameters') ? undefined : json['parameters'], - }; -} - -export function UpdateStrategySchemaToJSON(value?: UpdateStrategySchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'id': value.id, - 'name': value.name, - 'sortOrder': value.sortOrder, - 'constraints': value.constraints === undefined ? undefined : ((value.constraints as Array).map(ConstraintSchemaToJSON)), - 'parameters': value.parameters, - }; -} - diff --git a/frontend/src/openapi/models/VariantSchema.ts b/frontend/src/openapi/models/VariantSchema.ts deleted file mode 100644 index 7566317755..0000000000 --- a/frontend/src/openapi/models/VariantSchema.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import { - OverrideSchema, - OverrideSchemaFromJSON, - OverrideSchemaFromJSONTyped, - OverrideSchemaToJSON, -} from './OverrideSchema'; -import { - VariantSchemaPayload, - VariantSchemaPayloadFromJSON, - VariantSchemaPayloadFromJSONTyped, - VariantSchemaPayloadToJSON, -} from './VariantSchemaPayload'; - -/** - * - * @export - * @interface VariantSchema - */ -export interface VariantSchema { - /** - * - * @type {string} - * @memberof VariantSchema - */ - name: string; - /** - * - * @type {number} - * @memberof VariantSchema - */ - weight: number; - /** - * - * @type {string} - * @memberof VariantSchema - */ - weightType: string; - /** - * - * @type {string} - * @memberof VariantSchema - */ - stickiness: string; - /** - * - * @type {VariantSchemaPayload} - * @memberof VariantSchema - */ - payload?: VariantSchemaPayload; - /** - * - * @type {Array} - * @memberof VariantSchema - */ - overrides?: Array; -} - -export function VariantSchemaFromJSON(json: any): VariantSchema { - return VariantSchemaFromJSONTyped(json, false); -} - -export function VariantSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantSchema { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': json['name'], - 'weight': json['weight'], - 'weightType': json['weightType'], - 'stickiness': json['stickiness'], - 'payload': !exists(json, 'payload') ? undefined : VariantSchemaPayloadFromJSON(json['payload']), - 'overrides': !exists(json, 'overrides') ? undefined : ((json['overrides'] as Array).map(OverrideSchemaFromJSON)), - }; -} - -export function VariantSchemaToJSON(value?: VariantSchema | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'weight': value.weight, - 'weightType': value.weightType, - 'stickiness': value.stickiness, - 'payload': VariantSchemaPayloadToJSON(value.payload), - 'overrides': value.overrides === undefined ? undefined : ((value.overrides as Array).map(OverrideSchemaToJSON)), - }; -} - diff --git a/frontend/src/openapi/models/VariantSchemaPayload.ts b/frontend/src/openapi/models/VariantSchemaPayload.ts deleted file mode 100644 index 20e1cf3f9d..0000000000 --- a/frontend/src/openapi/models/VariantSchemaPayload.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface VariantSchemaPayload - */ -export interface VariantSchemaPayload { - /** - * - * @type {string} - * @memberof VariantSchemaPayload - */ - type: string; - /** - * - * @type {string} - * @memberof VariantSchemaPayload - */ - value: string; -} - -export function VariantSchemaPayloadFromJSON(json: any): VariantSchemaPayload { - return VariantSchemaPayloadFromJSONTyped(json, false); -} - -export function VariantSchemaPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantSchemaPayload { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': json['type'], - 'value': json['value'], - }; -} - -export function VariantSchemaPayloadToJSON(value?: VariantSchemaPayload | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'value': value.value, - }; -} - diff --git a/frontend/src/openapi/models/addonParameterSchema.ts b/frontend/src/openapi/models/addonParameterSchema.ts new file mode 100644 index 0000000000..a01e981b06 --- /dev/null +++ b/frontend/src/openapi/models/addonParameterSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface AddonParameterSchema { + name: string; + displayName: string; + type: string; + description?: string; + placeholder?: string; + required: boolean; + sensitive: boolean; +} diff --git a/frontend/src/openapi/models/addonSchema.ts b/frontend/src/openapi/models/addonSchema.ts new file mode 100644 index 0000000000..ad71b794d2 --- /dev/null +++ b/frontend/src/openapi/models/addonSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { AddonSchemaParameters } from './addonSchemaParameters'; + +export interface AddonSchema { + id?: number; + createdAt?: string | null; + provider: string; + description?: string; + enabled: boolean; + parameters: AddonSchemaParameters; + events: string[]; + projects?: string[]; + environments?: string[]; +} diff --git a/frontend/src/openapi/models/addonSchemaParameters.ts b/frontend/src/openapi/models/addonSchemaParameters.ts new file mode 100644 index 0000000000..cc5d688cff --- /dev/null +++ b/frontend/src/openapi/models/addonSchemaParameters.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type AddonSchemaParameters = { [key: string]: any }; diff --git a/frontend/src/openapi/models/addonTypeSchema.ts b/frontend/src/openapi/models/addonTypeSchema.ts new file mode 100644 index 0000000000..1e6e82d032 --- /dev/null +++ b/frontend/src/openapi/models/addonTypeSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { TagTypeSchema } from './tagTypeSchema'; +import type { AddonParameterSchema } from './addonParameterSchema'; + +export interface AddonTypeSchema { + name: string; + displayName: string; + documentationUrl: string; + description: string; + tagTypes?: TagTypeSchema[]; + parameters?: AddonParameterSchema[]; + events?: string[]; +} diff --git a/frontend/src/openapi/models/addonsSchema.ts b/frontend/src/openapi/models/addonsSchema.ts new file mode 100644 index 0000000000..c34d7c0dea --- /dev/null +++ b/frontend/src/openapi/models/addonsSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { AddonSchema } from './addonSchema'; +import type { AddonTypeSchema } from './addonTypeSchema'; + +export interface AddonsSchema { + addons: AddonSchema[]; + providers: AddonTypeSchema[]; +} diff --git a/frontend/src/openapi/models/adminFeaturesQuerySchema.ts b/frontend/src/openapi/models/adminFeaturesQuerySchema.ts new file mode 100644 index 0000000000..39f85f5efa --- /dev/null +++ b/frontend/src/openapi/models/adminFeaturesQuerySchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface AdminFeaturesQuerySchema { + /** Used to filter by tags. For each entry, a TAGTYPE:TAGVALUE is expected */ + tag?: string[]; + /** A case-insensitive prefix filter for the names of feature toggles */ + namePrefix?: string; +} diff --git a/frontend/src/openapi/models/adminPermissionSchema.ts b/frontend/src/openapi/models/adminPermissionSchema.ts new file mode 100644 index 0000000000..cadf58936d --- /dev/null +++ b/frontend/src/openapi/models/adminPermissionSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface AdminPermissionSchema { + id: number; + name: string; + displayName: string; + type: string; + environment?: string; +} diff --git a/frontend/src/openapi/models/adminPermissionsSchema.ts b/frontend/src/openapi/models/adminPermissionsSchema.ts new file mode 100644 index 0000000000..a629ba4a1f --- /dev/null +++ b/frontend/src/openapi/models/adminPermissionsSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { AdminPermissionsSchemaPermissions } from './adminPermissionsSchemaPermissions'; + +export interface AdminPermissionsSchema { + permissions: AdminPermissionsSchemaPermissions; + version: number; +} diff --git a/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts b/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts new file mode 100644 index 0000000000..9bc37f8c5b --- /dev/null +++ b/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { AdminPermissionSchema } from './adminPermissionSchema'; +import type { AdminPermissionsSchemaPermissionsEnvironmentsItem } from './adminPermissionsSchemaPermissionsEnvironmentsItem'; + +export type AdminPermissionsSchemaPermissions = { + project: AdminPermissionSchema[]; + environments: AdminPermissionsSchemaPermissionsEnvironmentsItem[]; +}; diff --git a/frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts b/frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts new file mode 100644 index 0000000000..4bc85c0f74 --- /dev/null +++ b/frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { AdminPermissionSchema } from './adminPermissionSchema'; + +export type AdminPermissionsSchemaPermissionsEnvironmentsItem = { + name: string; + permissions: AdminPermissionSchema[]; +}; diff --git a/frontend/src/openapi/models/adminSegmentSchema.ts b/frontend/src/openapi/models/adminSegmentSchema.ts new file mode 100644 index 0000000000..9621458685 --- /dev/null +++ b/frontend/src/openapi/models/adminSegmentSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; + +export interface AdminSegmentSchema { + id: number; + name: string; + description?: string | null; + constraints: ConstraintSchema[]; + createdBy?: string; + createdAt: string; +} diff --git a/frontend/src/openapi/models/apiTokenSchema.ts b/frontend/src/openapi/models/apiTokenSchema.ts new file mode 100644 index 0000000000..0ceaedf669 --- /dev/null +++ b/frontend/src/openapi/models/apiTokenSchema.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ApiTokenSchemaType } from './apiTokenSchemaType'; + +export interface ApiTokenSchema { + secret?: string; + username: string; + type: ApiTokenSchemaType; + environment?: string; + project?: string; + projects?: string[]; + expiresAt?: string | null; + createdAt?: string | null; + seenAt?: string | null; + alias?: string | null; +} diff --git a/frontend/src/openapi/models/apiTokenSchemaType.ts b/frontend/src/openapi/models/apiTokenSchemaType.ts new file mode 100644 index 0000000000..7c9258043f --- /dev/null +++ b/frontend/src/openapi/models/apiTokenSchemaType.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ApiTokenSchemaType = + typeof ApiTokenSchemaType[keyof typeof ApiTokenSchemaType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ApiTokenSchemaType = { + client: 'client', + admin: 'admin', + frontend: 'frontend', +} as const; diff --git a/frontend/src/openapi/models/apiTokensSchema.ts b/frontend/src/openapi/models/apiTokensSchema.ts new file mode 100644 index 0000000000..03c57a7122 --- /dev/null +++ b/frontend/src/openapi/models/apiTokensSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ApiTokenSchema } from './apiTokenSchema'; + +export interface ApiTokensSchema { + tokens: ApiTokenSchema[]; +} diff --git a/frontend/src/openapi/models/applicationSchema.ts b/frontend/src/openapi/models/applicationSchema.ts new file mode 100644 index 0000000000..5d4800cd33 --- /dev/null +++ b/frontend/src/openapi/models/applicationSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ApplicationSchema { + appName: string; + sdkVersion?: string; + strategies?: string[]; + description?: string; + url?: string; + color?: string; + icon?: string; + announced?: boolean; +} diff --git a/frontend/src/openapi/models/applicationsSchema.ts b/frontend/src/openapi/models/applicationsSchema.ts new file mode 100644 index 0000000000..20a0d39b2c --- /dev/null +++ b/frontend/src/openapi/models/applicationsSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ApplicationSchema } from './applicationSchema'; + +export interface ApplicationsSchema { + applications?: ApplicationSchema[]; +} diff --git a/frontend/src/openapi/models/changePasswordSchema.ts b/frontend/src/openapi/models/changePasswordSchema.ts new file mode 100644 index 0000000000..1bf7449326 --- /dev/null +++ b/frontend/src/openapi/models/changePasswordSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ChangePasswordSchema { + token: string; + password: string; +} diff --git a/frontend/src/openapi/models/changeProjectSchema.ts b/frontend/src/openapi/models/changeProjectSchema.ts new file mode 100644 index 0000000000..59bf142c14 --- /dev/null +++ b/frontend/src/openapi/models/changeProjectSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ChangeProjectSchema { + newProjectId: string; +} diff --git a/frontend/src/openapi/models/changeRequestAddCommentSchema.ts b/frontend/src/openapi/models/changeRequestAddCommentSchema.ts new file mode 100644 index 0000000000..06c3b85d4e --- /dev/null +++ b/frontend/src/openapi/models/changeRequestAddCommentSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ChangeRequestAddCommentSchema { + text: string; +} diff --git a/frontend/src/openapi/models/changeRequestApprovalSchema.ts b/frontend/src/openapi/models/changeRequestApprovalSchema.ts new file mode 100644 index 0000000000..9c9a9aa16a --- /dev/null +++ b/frontend/src/openapi/models/changeRequestApprovalSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestApprovalSchemaCreatedBy } from './changeRequestApprovalSchemaCreatedBy'; + +export interface ChangeRequestApprovalSchema { + createdBy: ChangeRequestApprovalSchemaCreatedBy; + createdAt: string; +} diff --git a/frontend/src/openapi/models/changeRequestApprovalSchemaCreatedBy.ts b/frontend/src/openapi/models/changeRequestApprovalSchemaCreatedBy.ts new file mode 100644 index 0000000000..6700a33455 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestApprovalSchemaCreatedBy.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestApprovalSchemaCreatedBy = { + id?: number; + username?: string | null; + imageUrl?: string | null; +}; diff --git a/frontend/src/openapi/models/changeRequestCommentSchema.ts b/frontend/src/openapi/models/changeRequestCommentSchema.ts new file mode 100644 index 0000000000..6718207047 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCommentSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestCommentSchemaCreatedBy } from './changeRequestCommentSchemaCreatedBy'; + +export interface ChangeRequestCommentSchema { + text: string; + createdBy: ChangeRequestCommentSchemaCreatedBy; + createdAt: string; +} diff --git a/frontend/src/openapi/models/changeRequestCommentSchemaCreatedBy.ts b/frontend/src/openapi/models/changeRequestCommentSchemaCreatedBy.ts new file mode 100644 index 0000000000..529ee42f19 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCommentSchemaCreatedBy.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestCommentSchemaCreatedBy = { + username?: string | null; + imageUrl?: string | null; +}; diff --git a/frontend/src/openapi/models/changeRequestConfigSchema.ts b/frontend/src/openapi/models/changeRequestConfigSchema.ts new file mode 100644 index 0000000000..2137e81e20 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestConfigSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestEnvironmentConfigSchema } from './changeRequestEnvironmentConfigSchema'; + +export type ChangeRequestConfigSchema = ChangeRequestEnvironmentConfigSchema[]; diff --git a/frontend/src/openapi/models/changeRequestCreateSchema.ts b/frontend/src/openapi/models/changeRequestCreateSchema.ts new file mode 100644 index 0000000000..04acb442e5 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchema.ts @@ -0,0 +1,24 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestCreateSchemaOneOf } from './changeRequestCreateSchemaOneOf'; +import type { ChangeRequestCreateSchemaOneOfThree } from './changeRequestCreateSchemaOneOfThree'; +import type { ChangeRequestCreateSchemaOneOfFour } from './changeRequestCreateSchemaOneOfFour'; +import type { ChangeRequestCreateSchemaOneOfFive } from './changeRequestCreateSchemaOneOfFive'; + +export type ChangeRequestCreateSchema = + | (ChangeRequestCreateSchemaOneOf & { + feature: string; + }) + | (ChangeRequestCreateSchemaOneOfThree & { + feature: string; + }) + | (ChangeRequestCreateSchemaOneOfFour & { + feature: string; + }) + | (ChangeRequestCreateSchemaOneOfFive & { + feature: string; + }); diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts new file mode 100644 index 0000000000..d0f37febaa --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestCreateSchemaOneOfPayload } from './changeRequestCreateSchemaOneOfPayload'; + +export type ChangeRequestCreateSchemaOneOf = { + action: unknown; + payload: ChangeRequestCreateSchemaOneOfPayload; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFive.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFive.ts new file mode 100644 index 0000000000..2c5bdc8e42 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFive.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestCreateSchemaOneOfFivePayload } from './changeRequestCreateSchemaOneOfFivePayload'; + +export type ChangeRequestCreateSchemaOneOfFive = { + action: unknown; + payload: ChangeRequestCreateSchemaOneOfFivePayload; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFivePayload.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFivePayload.ts new file mode 100644 index 0000000000..9e499298ec --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFivePayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestCreateSchemaOneOfFivePayload = { + id: string; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFour.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFour.ts new file mode 100644 index 0000000000..66ed00ff31 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfFour.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UpdateFeatureStrategySchema } from './updateFeatureStrategySchema'; + +export type ChangeRequestCreateSchemaOneOfFour = { + action: unknown; + payload: UpdateFeatureStrategySchema; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfPayload.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfPayload.ts new file mode 100644 index 0000000000..afa09e8278 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfPayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestCreateSchemaOneOfPayload = { + enabled: boolean; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts new file mode 100644 index 0000000000..2e351457fd --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema'; + +export type ChangeRequestCreateSchemaOneOfThree = { + action: unknown; + payload: CreateFeatureStrategySchema; +}; diff --git a/frontend/src/openapi/models/changeRequestEnvironmentConfigSchema.ts b/frontend/src/openapi/models/changeRequestEnvironmentConfigSchema.ts new file mode 100644 index 0000000000..7a7f5c7155 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestEnvironmentConfigSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ChangeRequestEnvironmentConfigSchema { + environment: string; + type: string; + changeRequestEnabled: boolean; + requiredApprovals: number; +} diff --git a/frontend/src/openapi/models/changeRequestEventSchema.ts b/frontend/src/openapi/models/changeRequestEventSchema.ts new file mode 100644 index 0000000000..f170f9443a --- /dev/null +++ b/frontend/src/openapi/models/changeRequestEventSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestEventSchemaPayload } from './changeRequestEventSchemaPayload'; +import type { ChangeRequestEventSchemaCreatedBy } from './changeRequestEventSchemaCreatedBy'; + +export interface ChangeRequestEventSchema { + id: number; + action: string; + conflict?: string; + payload: ChangeRequestEventSchemaPayload; + updatedBy?: string; + createdBy?: ChangeRequestEventSchemaCreatedBy; + createdAt?: string; +} diff --git a/frontend/src/openapi/models/changeRequestEventSchemaCreatedBy.ts b/frontend/src/openapi/models/changeRequestEventSchemaCreatedBy.ts new file mode 100644 index 0000000000..7fe43abc51 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestEventSchemaCreatedBy.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestEventSchemaCreatedBy = { + username?: string | null; + imageUrl?: string | null; +}; diff --git a/frontend/src/openapi/models/changeRequestEventSchemaPayload.ts b/frontend/src/openapi/models/changeRequestEventSchemaPayload.ts new file mode 100644 index 0000000000..d3fe6e7945 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestEventSchemaPayload.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestEventSchemaPayloadOneOf } from './changeRequestEventSchemaPayloadOneOf'; + +export type ChangeRequestEventSchemaPayload = + | string + | boolean + | ChangeRequestEventSchemaPayloadOneOf + | number; diff --git a/frontend/src/openapi/models/changeRequestEventSchemaPayloadOneOf.ts b/frontend/src/openapi/models/changeRequestEventSchemaPayloadOneOf.ts new file mode 100644 index 0000000000..77ffbfeb7d --- /dev/null +++ b/frontend/src/openapi/models/changeRequestEventSchemaPayloadOneOf.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestEventSchemaPayloadOneOf = { [key: string]: any }; diff --git a/frontend/src/openapi/models/changeRequestFeatureSchema.ts b/frontend/src/openapi/models/changeRequestFeatureSchema.ts new file mode 100644 index 0000000000..c00d403857 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestFeatureSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestEventSchema } from './changeRequestEventSchema'; + +export interface ChangeRequestFeatureSchema { + name: string; + conflict?: string; + changes: ChangeRequestEventSchema[]; +} diff --git a/frontend/src/openapi/models/changeRequestSchema.ts b/frontend/src/openapi/models/changeRequestSchema.ts new file mode 100644 index 0000000000..4e04451b2c --- /dev/null +++ b/frontend/src/openapi/models/changeRequestSchema.ts @@ -0,0 +1,24 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestSchemaState } from './changeRequestSchemaState'; +import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema'; +import type { ChangeRequestApprovalSchema } from './changeRequestApprovalSchema'; +import type { ChangeRequestCommentSchema } from './changeRequestCommentSchema'; +import type { ChangeRequestSchemaCreatedBy } from './changeRequestSchemaCreatedBy'; + +export interface ChangeRequestSchema { + id: number; + environment: string; + state: ChangeRequestSchemaState; + minApprovals: number; + project: string; + features: ChangeRequestFeatureSchema[]; + approvals?: ChangeRequestApprovalSchema[]; + comments?: ChangeRequestCommentSchema[]; + createdBy: ChangeRequestSchemaCreatedBy; + createdAt: string; +} diff --git a/frontend/src/openapi/models/changeRequestSchemaCreatedBy.ts b/frontend/src/openapi/models/changeRequestSchemaCreatedBy.ts new file mode 100644 index 0000000000..10306f813b --- /dev/null +++ b/frontend/src/openapi/models/changeRequestSchemaCreatedBy.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestSchemaCreatedBy = { + username?: string | null; + imageUrl?: string | null; +}; diff --git a/frontend/src/openapi/models/changeRequestSchemaState.ts b/frontend/src/openapi/models/changeRequestSchemaState.ts new file mode 100644 index 0000000000..19881762c9 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestSchemaState.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestSchemaState = + typeof ChangeRequestSchemaState[keyof typeof ChangeRequestSchemaState]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestSchemaState = { + Draft: 'Draft', + In_review: 'In review', + Approved: 'Approved', + Applied: 'Applied', + Cancelled: 'Cancelled', +} as const; diff --git a/frontend/src/openapi/models/changeRequestStateSchema.ts b/frontend/src/openapi/models/changeRequestStateSchema.ts new file mode 100644 index 0000000000..7d22f3e242 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestStateSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestStateSchemaState } from './changeRequestStateSchemaState'; + +export interface ChangeRequestStateSchema { + state: ChangeRequestStateSchemaState; +} diff --git a/frontend/src/openapi/models/changeRequestStateSchemaState.ts b/frontend/src/openapi/models/changeRequestStateSchemaState.ts new file mode 100644 index 0000000000..987d4e05b8 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestStateSchemaState.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ChangeRequestStateSchemaState = + typeof ChangeRequestStateSchemaState[keyof typeof ChangeRequestStateSchemaState]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestStateSchemaState = { + Draft: 'Draft', + In_review: 'In review', + Approved: 'Approved', + Applied: 'Applied', + Cancelled: 'Cancelled', +} as const; diff --git a/frontend/src/openapi/models/changeRequestsSchema.ts b/frontend/src/openapi/models/changeRequestsSchema.ts new file mode 100644 index 0000000000..bc057c5215 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestsSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ChangeRequestSchema } from './changeRequestSchema'; + +export type ChangeRequestsSchema = ChangeRequestSchema[]; diff --git a/frontend/src/openapi/models/clientApplicationSchema.ts b/frontend/src/openapi/models/clientApplicationSchema.ts new file mode 100644 index 0000000000..8cdf80032a --- /dev/null +++ b/frontend/src/openapi/models/clientApplicationSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ClientApplicationSchemaStarted } from './clientApplicationSchemaStarted'; + +export interface ClientApplicationSchema { + appName: string; + instanceId?: string; + sdkVersion?: string; + environment?: string; + interval: number; + started: ClientApplicationSchemaStarted; + strategies: string[]; +} diff --git a/frontend/src/openapi/models/clientApplicationSchemaStarted.ts b/frontend/src/openapi/models/clientApplicationSchemaStarted.ts new file mode 100644 index 0000000000..eabfae8bc4 --- /dev/null +++ b/frontend/src/openapi/models/clientApplicationSchemaStarted.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ClientApplicationSchemaStarted = string | number; diff --git a/frontend/src/openapi/models/clientFeatureSchema.ts b/frontend/src/openapi/models/clientFeatureSchema.ts new file mode 100644 index 0000000000..db3726dd85 --- /dev/null +++ b/frontend/src/openapi/models/clientFeatureSchema.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureStrategySchema } from './featureStrategySchema'; +import type { VariantSchema } from './variantSchema'; + +export interface ClientFeatureSchema { + name: string; + type?: string; + description?: string | null; + createdAt?: string | null; + lastSeenAt?: string | null; + enabled: boolean; + stale?: boolean; + impressionData?: boolean | null; + project?: string; + strategies?: FeatureStrategySchema[]; + variants?: VariantSchema[] | null; +} diff --git a/frontend/src/openapi/models/clientFeaturesQuerySchema.ts b/frontend/src/openapi/models/clientFeaturesQuerySchema.ts new file mode 100644 index 0000000000..b30f305653 --- /dev/null +++ b/frontend/src/openapi/models/clientFeaturesQuerySchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ClientFeaturesQuerySchema { + tag?: string[][]; + project?: string[]; + namePrefix?: string; + environment?: string; + inlineSegmentConstraints?: boolean; +} diff --git a/frontend/src/openapi/models/clientFeaturesSchema.ts b/frontend/src/openapi/models/clientFeaturesSchema.ts new file mode 100644 index 0000000000..2885638426 --- /dev/null +++ b/frontend/src/openapi/models/clientFeaturesSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ClientFeatureSchema } from './clientFeatureSchema'; +import type { SegmentSchema } from './segmentSchema'; +import type { ClientFeaturesQuerySchema } from './clientFeaturesQuerySchema'; + +export interface ClientFeaturesSchema { + version: number; + features: ClientFeatureSchema[]; + segments?: SegmentSchema[]; + query?: ClientFeaturesQuerySchema; +} diff --git a/frontend/src/openapi/models/clientMetricsSchema.ts b/frontend/src/openapi/models/clientMetricsSchema.ts new file mode 100644 index 0000000000..b488d66b5e --- /dev/null +++ b/frontend/src/openapi/models/clientMetricsSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ClientMetricsSchemaBucket } from './clientMetricsSchemaBucket'; + +export interface ClientMetricsSchema { + appName: string; + instanceId?: string; + environment?: string; + bucket: ClientMetricsSchemaBucket; +} diff --git a/frontend/src/openapi/models/clientMetricsSchemaBucket.ts b/frontend/src/openapi/models/clientMetricsSchemaBucket.ts new file mode 100644 index 0000000000..c579ff698c --- /dev/null +++ b/frontend/src/openapi/models/clientMetricsSchemaBucket.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { DateSchema } from './dateSchema'; +import type { ClientMetricsSchemaBucketToggles } from './clientMetricsSchemaBucketToggles'; + +export type ClientMetricsSchemaBucket = { + start: DateSchema; + stop: DateSchema; + toggles: ClientMetricsSchemaBucketToggles; +}; diff --git a/frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts b/frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts new file mode 100644 index 0000000000..d0ac9b0b7a --- /dev/null +++ b/frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ClientMetricsSchemaBucketTogglesVariants } from './clientMetricsSchemaBucketTogglesVariants'; + +export type ClientMetricsSchemaBucketToggles = { + [key: string]: { + yes?: number; + no?: number; + variants?: ClientMetricsSchemaBucketTogglesVariants; + }; +}; diff --git a/frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts b/frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts new file mode 100644 index 0000000000..98dd29d872 --- /dev/null +++ b/frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ClientMetricsSchemaBucketTogglesVariants = { + [key: string]: number; +}; diff --git a/frontend/src/openapi/models/cloneEnvironmentSchema.ts b/frontend/src/openapi/models/cloneEnvironmentSchema.ts new file mode 100644 index 0000000000..2724ec026c --- /dev/null +++ b/frontend/src/openapi/models/cloneEnvironmentSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CloneEnvironmentSchema { + /** The name of the new cloned environment, this cannot be changed later */ + name: string; + /** Updates the type of environment (i.e. development or production). */ + type: string; + /** A list of projects that should be included in the cloned environment. */ + projects?: string[]; + /** Copies the RBAC permissions from the source environment if true. Defaults to true */ + clonePermissions?: boolean; +} diff --git a/frontend/src/openapi/models/cloneFeatureSchema.ts b/frontend/src/openapi/models/cloneFeatureSchema.ts new file mode 100644 index 0000000000..50272fc5a2 --- /dev/null +++ b/frontend/src/openapi/models/cloneFeatureSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CloneFeatureSchema { + name: string; + replaceGroupId?: boolean; +} diff --git a/frontend/src/openapi/models/constraintSchema.ts b/frontend/src/openapi/models/constraintSchema.ts new file mode 100644 index 0000000000..cff5358952 --- /dev/null +++ b/frontend/src/openapi/models/constraintSchema.ts @@ -0,0 +1,25 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchemaOperator } from './constraintSchemaOperator'; + +/** + * A strategy constraint. For more information, refer to [the strategy constraint reference documentation](https://docs.getunleash.io/reference/strategy-constraints) + */ +export interface ConstraintSchema { + /** The name of the context field that this constraint should apply to. */ + contextName: string; + /** The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators). */ + operator: ConstraintSchemaOperator; + /** Whether the operator should be case sensitive or not. Defaults to `false` (being case sensitive). */ + caseInsensitive?: boolean; + /** Whether the result should be negated or not. If `true`, will turn a `true` result into a `false` result and vice versa. */ + inverted?: boolean; + /** The context values that should be used for constraint evaluation. Use this property instead of `value` for properties that accept multiple values. */ + values?: string[]; + /** The context value that should be used for constraint evaluation. Use this property instead of `values` for properties that only accept single values. */ + value?: string; +} diff --git a/frontend/src/openapi/models/constraintSchemaOperator.ts b/frontend/src/openapi/models/constraintSchemaOperator.ts new file mode 100644 index 0000000000..21fdb40b8d --- /dev/null +++ b/frontend/src/openapi/models/constraintSchemaOperator.ts @@ -0,0 +1,31 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators). + */ +export type ConstraintSchemaOperator = + typeof ConstraintSchemaOperator[keyof typeof ConstraintSchemaOperator]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ConstraintSchemaOperator = { + NOT_IN: 'NOT_IN', + IN: 'IN', + STR_ENDS_WITH: 'STR_ENDS_WITH', + STR_STARTS_WITH: 'STR_STARTS_WITH', + STR_CONTAINS: 'STR_CONTAINS', + NUM_EQ: 'NUM_EQ', + NUM_GT: 'NUM_GT', + NUM_GTE: 'NUM_GTE', + NUM_LT: 'NUM_LT', + NUM_LTE: 'NUM_LTE', + DATE_AFTER: 'DATE_AFTER', + DATE_BEFORE: 'DATE_BEFORE', + SEMVER_EQ: 'SEMVER_EQ', + SEMVER_GT: 'SEMVER_GT', + SEMVER_LT: 'SEMVER_LT', +} as const; diff --git a/frontend/src/openapi/models/contextFieldSchema.ts b/frontend/src/openapi/models/contextFieldSchema.ts new file mode 100644 index 0000000000..a81cc3bc67 --- /dev/null +++ b/frontend/src/openapi/models/contextFieldSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { LegalValueSchema } from './legalValueSchema'; + +export interface ContextFieldSchema { + name: string; + description?: string; + stickiness?: boolean; + sortOrder?: number; + createdAt?: string | null; + legalValues?: LegalValueSchema[]; +} diff --git a/frontend/src/openapi/models/contextFieldsSchema.ts b/frontend/src/openapi/models/contextFieldsSchema.ts new file mode 100644 index 0000000000..cf351b77d9 --- /dev/null +++ b/frontend/src/openapi/models/contextFieldsSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ContextFieldSchema } from './contextFieldSchema'; + +export type ContextFieldsSchema = ContextFieldSchema[]; diff --git a/frontend/src/openapi/models/createApiTokenSchema.ts b/frontend/src/openapi/models/createApiTokenSchema.ts new file mode 100644 index 0000000000..3668a482e3 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CreateApiTokenSchema { + secret?: string; + username: string; + /** One of client, admin, frontend */ + type: string; + environment?: string; + project?: string; + projects?: string[]; + expiresAt?: string | null; +} diff --git a/frontend/src/openapi/models/createEnvironmentSchema.ts b/frontend/src/openapi/models/createEnvironmentSchema.ts new file mode 100644 index 0000000000..9ad30feb6a --- /dev/null +++ b/frontend/src/openapi/models/createEnvironmentSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CreateEnvironmentSchema { + /** The name of the environment. Must be a URL-friendly string according to [RFC 3968, section 2.3](https://www.rfc-editor.org/rfc/rfc3986#section-2.3) */ + name: string; + /** The type of environment you would like to create (i.e. development or production). */ + type: string; + /** Newly created environments are enabled by default. Set this property to `false` to create the environment in a disabled state. */ + enabled?: boolean; + /** Defines where in the list of environments to place this environment. The list uses an ascending sort, so lower numbers are shown first. You can change this value later. */ + sortOrder?: number; +} diff --git a/frontend/src/openapi/models/createFeatureSchema.ts b/frontend/src/openapi/models/createFeatureSchema.ts new file mode 100644 index 0000000000..b29b85d444 --- /dev/null +++ b/frontend/src/openapi/models/createFeatureSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CreateFeatureSchema { + name: string; + type?: string; + description?: string; + impressionData?: boolean; +} diff --git a/frontend/src/openapi/models/createFeatureStrategySchema.ts b/frontend/src/openapi/models/createFeatureStrategySchema.ts new file mode 100644 index 0000000000..6c84c40e01 --- /dev/null +++ b/frontend/src/openapi/models/createFeatureStrategySchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; +import type { ParametersSchema } from './parametersSchema'; + +export interface CreateFeatureStrategySchema { + name: string; + sortOrder?: number; + constraints?: ConstraintSchema[]; + parameters?: ParametersSchema; +} diff --git a/frontend/src/openapi/models/createInvitedUserSchema.ts b/frontend/src/openapi/models/createInvitedUserSchema.ts new file mode 100644 index 0000000000..d10918c809 --- /dev/null +++ b/frontend/src/openapi/models/createInvitedUserSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CreateInvitedUserSchema { + username?: string; + email: string; + name: string; + password: string; +} diff --git a/frontend/src/openapi/models/createProjectSchema.ts b/frontend/src/openapi/models/createProjectSchema.ts new file mode 100644 index 0000000000..28f06932c1 --- /dev/null +++ b/frontend/src/openapi/models/createProjectSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CreateProjectSchema { + id: string; + name: string; + description?: string; +} diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts new file mode 100644 index 0000000000..f993ece367 --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { CreateRoleWithPermissionsSchemaPermissionsItem } from './createRoleWithPermissionsSchemaPermissionsItem'; + +export interface CreateRoleWithPermissionsSchema { + name: string; + description?: string; + permissions?: CreateRoleWithPermissionsSchemaPermissionsItem[]; +} diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaPermissionsItem.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaPermissionsItem.ts new file mode 100644 index 0000000000..a1d4bccdf8 --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaPermissionsItem.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type CreateRoleWithPermissionsSchemaPermissionsItem = { + id: number; + environment?: string; +}; diff --git a/frontend/src/openapi/models/createUserSchema.ts b/frontend/src/openapi/models/createUserSchema.ts new file mode 100644 index 0000000000..74f06b031f --- /dev/null +++ b/frontend/src/openapi/models/createUserSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface CreateUserSchema { + username?: string; + email?: string; + name?: string; + password?: string; + rootRole: number; + sendEmail?: boolean; +} diff --git a/frontend/src/openapi/models/dateSchema.ts b/frontend/src/openapi/models/dateSchema.ts new file mode 100644 index 0000000000..af633d3cc0 --- /dev/null +++ b/frontend/src/openapi/models/dateSchema.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type DateSchema = string | number; diff --git a/frontend/src/openapi/models/edgeTokenSchema.ts b/frontend/src/openapi/models/edgeTokenSchema.ts new file mode 100644 index 0000000000..09a77082fb --- /dev/null +++ b/frontend/src/openapi/models/edgeTokenSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EdgeTokenSchemaType } from './edgeTokenSchemaType'; + +export interface EdgeTokenSchema { + projects: string[]; + type: EdgeTokenSchemaType; + token: string; +} diff --git a/frontend/src/openapi/models/edgeTokenSchemaType.ts b/frontend/src/openapi/models/edgeTokenSchemaType.ts new file mode 100644 index 0000000000..6a6a7fc16d --- /dev/null +++ b/frontend/src/openapi/models/edgeTokenSchemaType.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type EdgeTokenSchemaType = + typeof EdgeTokenSchemaType[keyof typeof EdgeTokenSchemaType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const EdgeTokenSchemaType = { + client: 'client', + admin: 'admin', + frontend: 'frontend', +} as const; diff --git a/frontend/src/openapi/models/emailSchema.ts b/frontend/src/openapi/models/emailSchema.ts new file mode 100644 index 0000000000..1c898c9ac3 --- /dev/null +++ b/frontend/src/openapi/models/emailSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface EmailSchema { + email: string; +} diff --git a/frontend/src/openapi/models/environmentProjectSchema.ts b/frontend/src/openapi/models/environmentProjectSchema.ts new file mode 100644 index 0000000000..9ce3c7b331 --- /dev/null +++ b/frontend/src/openapi/models/environmentProjectSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface EnvironmentProjectSchema { + name: string; + type: string; + enabled: boolean; + protected?: boolean; + sortOrder?: number; + projectApiTokenCount?: number | null; + projectEnabledToggleCount?: number | null; +} diff --git a/frontend/src/openapi/models/environmentSchema.ts b/frontend/src/openapi/models/environmentSchema.ts new file mode 100644 index 0000000000..497a0dfd0f --- /dev/null +++ b/frontend/src/openapi/models/environmentSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface EnvironmentSchema { + name: string; + type: string; + enabled: boolean; + protected?: boolean; + sortOrder?: number; + projectCount?: number | null; + apiTokenCount?: number | null; + enabledToggleCount?: number | null; +} diff --git a/frontend/src/openapi/models/environmentsProjectSchema.ts b/frontend/src/openapi/models/environmentsProjectSchema.ts new file mode 100644 index 0000000000..f326439185 --- /dev/null +++ b/frontend/src/openapi/models/environmentsProjectSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EnvironmentProjectSchema } from './environmentProjectSchema'; + +export interface EnvironmentsProjectSchema { + version: number; + environments: EnvironmentProjectSchema[]; +} diff --git a/frontend/src/openapi/models/environmentsSchema.ts b/frontend/src/openapi/models/environmentsSchema.ts new file mode 100644 index 0000000000..db498ad1c3 --- /dev/null +++ b/frontend/src/openapi/models/environmentsSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EnvironmentSchema } from './environmentSchema'; + +export interface EnvironmentsSchema { + version: number; + environments: EnvironmentSchema[]; +} diff --git a/frontend/src/openapi/models/eventSchema.ts b/frontend/src/openapi/models/eventSchema.ts new file mode 100644 index 0000000000..d4cd604ef8 --- /dev/null +++ b/frontend/src/openapi/models/eventSchema.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EventSchemaData } from './eventSchemaData'; +import type { EventSchemaPreData } from './eventSchemaPreData'; +import type { TagSchema } from './tagSchema'; + +export interface EventSchema { + id: number; + createdAt: string; + type: string; + createdBy: string; + environment?: string | null; + project?: string | null; + featureName?: string | null; + data?: EventSchemaData; + preData?: EventSchemaPreData; + tags?: TagSchema[] | null; +} diff --git a/frontend/src/openapi/models/eventSchemaData.ts b/frontend/src/openapi/models/eventSchemaData.ts new file mode 100644 index 0000000000..c3acef7b20 --- /dev/null +++ b/frontend/src/openapi/models/eventSchemaData.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type EventSchemaData = { [key: string]: any }; diff --git a/frontend/src/openapi/models/eventSchemaPreData.ts b/frontend/src/openapi/models/eventSchemaPreData.ts new file mode 100644 index 0000000000..4792db1cbc --- /dev/null +++ b/frontend/src/openapi/models/eventSchemaPreData.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type EventSchemaPreData = { [key: string]: any }; diff --git a/frontend/src/openapi/models/eventsSchema.ts b/frontend/src/openapi/models/eventsSchema.ts new file mode 100644 index 0000000000..584bdf3b78 --- /dev/null +++ b/frontend/src/openapi/models/eventsSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EventSchema } from './eventSchema'; + +export interface EventsSchema { + version: number; + events: EventSchema[]; + totalEvents?: number; +} diff --git a/frontend/src/openapi/models/exportFormat.ts b/frontend/src/openapi/models/exportFormat.ts new file mode 100644 index 0000000000..75bb34fc26 --- /dev/null +++ b/frontend/src/openapi/models/exportFormat.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ExportFormat = typeof ExportFormat[keyof typeof ExportFormat]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ExportFormat = { + json: 'json', + yaml: 'yaml', +} as const; diff --git a/frontend/src/openapi/models/exportParams.ts b/frontend/src/openapi/models/exportParams.ts new file mode 100644 index 0000000000..afb35e1098 --- /dev/null +++ b/frontend/src/openapi/models/exportParams.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ExportFormat } from './exportFormat'; + +export type ExportParams = { + format?: ExportFormat; + download?: boolean | string | number; + strategies?: boolean | string | number; + featureToggles?: boolean | string | number; + projects?: boolean | string | number; + tags?: boolean | string | number; + environments?: boolean | string | number; +}; diff --git a/frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts b/frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts new file mode 100644 index 0000000000..9284c8c157 --- /dev/null +++ b/frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface FeatureEnvironmentMetricsSchema { + featureName?: string; + appName?: string; + environment: string; + timestamp: string; + yes: number; + no: number; +} diff --git a/frontend/src/openapi/models/featureEnvironmentSchema.ts b/frontend/src/openapi/models/featureEnvironmentSchema.ts new file mode 100644 index 0000000000..276613344d --- /dev/null +++ b/frontend/src/openapi/models/featureEnvironmentSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureEnvironmentSchemaStrategiesItem } from './featureEnvironmentSchemaStrategiesItem'; + +export interface FeatureEnvironmentSchema { + name: string; + environment?: string; + type?: string; + enabled: boolean; + strategies?: FeatureEnvironmentSchemaStrategiesItem[]; +} diff --git a/frontend/src/openapi/models/featureEnvironmentSchemaStrategiesItem.ts b/frontend/src/openapi/models/featureEnvironmentSchemaStrategiesItem.ts new file mode 100644 index 0000000000..e370c00980 --- /dev/null +++ b/frontend/src/openapi/models/featureEnvironmentSchemaStrategiesItem.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; +import type { ParametersSchema } from './parametersSchema'; + +export type FeatureEnvironmentSchemaStrategiesItem = { + id: string; + featureName: string; + projectId: string; + environment: string; + strategyName: string; + sortOrder?: number; + createdAt?: string; + constraints: ConstraintSchema[]; + parameters: ParametersSchema; +}; diff --git a/frontend/src/openapi/models/featureEventsSchema.ts b/frontend/src/openapi/models/featureEventsSchema.ts new file mode 100644 index 0000000000..b9a50846b0 --- /dev/null +++ b/frontend/src/openapi/models/featureEventsSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EventSchema } from './eventSchema'; + +export interface FeatureEventsSchema { + version?: number; + toggleName?: string; + events: EventSchema[]; +} diff --git a/frontend/src/openapi/models/featureMetricsSchema.ts b/frontend/src/openapi/models/featureMetricsSchema.ts new file mode 100644 index 0000000000..bb182ca37c --- /dev/null +++ b/frontend/src/openapi/models/featureMetricsSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureEnvironmentMetricsSchema } from './featureEnvironmentMetricsSchema'; + +export interface FeatureMetricsSchema { + version: number; + maturity: string; + data: FeatureEnvironmentMetricsSchema[]; +} diff --git a/frontend/src/openapi/models/featureSchema.ts b/frontend/src/openapi/models/featureSchema.ts new file mode 100644 index 0000000000..6d0c3f73e8 --- /dev/null +++ b/frontend/src/openapi/models/featureSchema.ts @@ -0,0 +1,29 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EnvironmentSchema } from './environmentSchema'; +import type { FeatureStrategySchema } from './featureStrategySchema'; +import type { VariantSchema } from './variantSchema'; +import type { TagSchema } from './tagSchema'; + +export interface FeatureSchema { + name: string; + type?: string; + description?: string; + archived?: boolean; + project?: string; + enabled?: boolean; + stale?: boolean; + favorite?: boolean; + impressionData?: boolean; + createdAt?: string | null; + archivedAt?: string | null; + lastSeenAt?: string | null; + environments?: EnvironmentSchema[]; + strategies?: FeatureStrategySchema[]; + variants?: VariantSchema[]; + tags?: TagSchema[] | null; +} diff --git a/frontend/src/openapi/models/featureStrategySchema.ts b/frontend/src/openapi/models/featureStrategySchema.ts new file mode 100644 index 0000000000..4ec2c93034 --- /dev/null +++ b/frontend/src/openapi/models/featureStrategySchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; +import type { ParametersSchema } from './parametersSchema'; + +export interface FeatureStrategySchema { + id?: string; + name: string; + sortOrder?: number; + segments?: number[]; + constraints?: ConstraintSchema[]; + parameters?: ParametersSchema; +} diff --git a/frontend/src/openapi/models/featureStrategySegmentSchema.ts b/frontend/src/openapi/models/featureStrategySegmentSchema.ts new file mode 100644 index 0000000000..6449d8ab4a --- /dev/null +++ b/frontend/src/openapi/models/featureStrategySegmentSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface FeatureStrategySegmentSchema { + segmentId: number; + featureStrategyId: string; +} diff --git a/frontend/src/openapi/models/featureTagSchema.ts b/frontend/src/openapi/models/featureTagSchema.ts new file mode 100644 index 0000000000..cbf1765aa6 --- /dev/null +++ b/frontend/src/openapi/models/featureTagSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface FeatureTagSchema { + featureName: string; + tagType?: string; + tagValue: string; + type?: string; + value?: string; +} diff --git a/frontend/src/openapi/models/featureTypeSchema.ts b/frontend/src/openapi/models/featureTypeSchema.ts new file mode 100644 index 0000000000..45ef0200c1 --- /dev/null +++ b/frontend/src/openapi/models/featureTypeSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface FeatureTypeSchema { + id: string; + name: string; + description: string; + lifetimeDays: number | null; +} diff --git a/frontend/src/openapi/models/featureTypesSchema.ts b/frontend/src/openapi/models/featureTypesSchema.ts new file mode 100644 index 0000000000..7ab8b1274a --- /dev/null +++ b/frontend/src/openapi/models/featureTypesSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureTypeSchema } from './featureTypeSchema'; + +export interface FeatureTypesSchema { + version: number; + types: FeatureTypeSchema[]; +} diff --git a/frontend/src/openapi/models/featureUsageSchema.ts b/frontend/src/openapi/models/featureUsageSchema.ts new file mode 100644 index 0000000000..8cb0c4f363 --- /dev/null +++ b/frontend/src/openapi/models/featureUsageSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureEnvironmentMetricsSchema } from './featureEnvironmentMetricsSchema'; + +export interface FeatureUsageSchema { + version: number; + maturity: string; + featureName: string; + lastHourUsage: FeatureEnvironmentMetricsSchema[]; + seenApplications: string[]; +} diff --git a/frontend/src/openapi/models/featureVariantsSchema.ts b/frontend/src/openapi/models/featureVariantsSchema.ts new file mode 100644 index 0000000000..d0f337431e --- /dev/null +++ b/frontend/src/openapi/models/featureVariantsSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { VariantSchema } from './variantSchema'; + +export interface FeatureVariantsSchema { + version: number; + variants: VariantSchema[]; +} diff --git a/frontend/src/openapi/models/featuresSchema.ts b/frontend/src/openapi/models/featuresSchema.ts new file mode 100644 index 0000000000..c335c052dd --- /dev/null +++ b/frontend/src/openapi/models/featuresSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureSchema } from './featureSchema'; + +export interface FeaturesSchema { + version: number; + features: FeatureSchema[]; +} diff --git a/frontend/src/openapi/models/feedbackSchema.ts b/frontend/src/openapi/models/feedbackSchema.ts new file mode 100644 index 0000000000..494b2a0be6 --- /dev/null +++ b/frontend/src/openapi/models/feedbackSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface FeedbackSchema { + userId?: number; + feedbackId?: string; + neverShow?: boolean; + given?: string | null; +} diff --git a/frontend/src/openapi/models/getEventsParams.ts b/frontend/src/openapi/models/getEventsParams.ts new file mode 100644 index 0000000000..fcc5d7c2de --- /dev/null +++ b/frontend/src/openapi/models/getEventsParams.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type GetEventsParams = { project?: string }; diff --git a/frontend/src/openapi/models/googleSettingsSchema.ts b/frontend/src/openapi/models/googleSettingsSchema.ts new file mode 100644 index 0000000000..a2fddee3f1 --- /dev/null +++ b/frontend/src/openapi/models/googleSettingsSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface GoogleSettingsSchema { + enabled?: boolean; + clientId: string; + clientSecret: string; + unleashHostname: string; + autoCreate?: boolean; + emailDomains?: string; +} diff --git a/frontend/src/openapi/models/groupSchema.ts b/frontend/src/openapi/models/groupSchema.ts new file mode 100644 index 0000000000..0470a539bd --- /dev/null +++ b/frontend/src/openapi/models/groupSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { GroupUserModelSchema } from './groupUserModelSchema'; + +export interface GroupSchema { + id?: number; + name: string; + description?: string; + mappingsSSO?: string[]; + createdBy?: string | null; + createdAt?: string | null; + users?: GroupUserModelSchema[]; + projects?: string[]; + [key: string]: any; +} diff --git a/frontend/src/openapi/models/groupUserModelSchema.ts b/frontend/src/openapi/models/groupUserModelSchema.ts new file mode 100644 index 0000000000..dcb09e9089 --- /dev/null +++ b/frontend/src/openapi/models/groupUserModelSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UserSchema } from './userSchema'; + +export interface GroupUserModelSchema { + joinedAt?: string; + createdBy?: string | null; + user: UserSchema; +} diff --git a/frontend/src/openapi/models/groupsSchema.ts b/frontend/src/openapi/models/groupsSchema.ts new file mode 100644 index 0000000000..b1c3970e57 --- /dev/null +++ b/frontend/src/openapi/models/groupsSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { GroupSchema } from './groupSchema'; + +export interface GroupsSchema { + groups?: GroupSchema[]; +} diff --git a/frontend/src/openapi/models/healthCheckSchema.ts b/frontend/src/openapi/models/healthCheckSchema.ts new file mode 100644 index 0000000000..719c503dda --- /dev/null +++ b/frontend/src/openapi/models/healthCheckSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { HealthCheckSchemaHealth } from './healthCheckSchemaHealth'; + +export interface HealthCheckSchema { + health: HealthCheckSchemaHealth; +} diff --git a/frontend/src/openapi/models/healthCheckSchemaHealth.ts b/frontend/src/openapi/models/healthCheckSchemaHealth.ts new file mode 100644 index 0000000000..1abe88c464 --- /dev/null +++ b/frontend/src/openapi/models/healthCheckSchemaHealth.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type HealthCheckSchemaHealth = + typeof HealthCheckSchemaHealth[keyof typeof HealthCheckSchemaHealth]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const HealthCheckSchemaHealth = { + GOOD: 'GOOD', + BAD: 'BAD', +} as const; diff --git a/frontend/src/openapi/models/healthOverviewSchema.ts b/frontend/src/openapi/models/healthOverviewSchema.ts new file mode 100644 index 0000000000..b3cc847bee --- /dev/null +++ b/frontend/src/openapi/models/healthOverviewSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureSchema } from './featureSchema'; + +export interface HealthOverviewSchema { + version: number; + name: string; + description?: string; + members?: number; + health?: number; + environments?: string[]; + features?: FeatureSchema[]; + updatedAt?: string | null; + favorite?: boolean; +} diff --git a/frontend/src/openapi/models/healthReportSchema.ts b/frontend/src/openapi/models/healthReportSchema.ts new file mode 100644 index 0000000000..49683a7fe3 --- /dev/null +++ b/frontend/src/openapi/models/healthReportSchema.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureSchema } from './featureSchema'; + +export interface HealthReportSchema { + version: number; + name: string; + description?: string; + members?: number; + health?: number; + environments?: string[]; + features?: FeatureSchema[]; + updatedAt?: string | null; + favorite?: boolean; + potentiallyStaleCount: number; + activeCount: number; + staleCount: number; +} diff --git a/frontend/src/openapi/models/idSchema.ts b/frontend/src/openapi/models/idSchema.ts new file mode 100644 index 0000000000..9472774808 --- /dev/null +++ b/frontend/src/openapi/models/idSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface IdSchema { + id: string; +} diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index e57649527f..fff4f58c77 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -1,21 +1,238 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './CloneFeatureSchema'; -export * from './ConstraintSchema'; -export * from './CreateFeatureSchema'; -export * from './CreateStrategySchema'; -export * from './FeatureEnvironmentSchema'; -export * from './FeatureSchema'; -export * from './FeatureStrategySchema'; -export * from './FeaturesSchema'; -export * from './OverrideSchema'; -export * from './PatchOperationSchema'; -export * from './StrategySchema'; -export * from './TagSchema'; -export * from './TagsResponseSchema'; -export * from './UpdateFeatureSchema'; -export * from './UpdateStrategySchema'; -export * from './VariantSchema'; -export * from './VariantSchemaPayload'; -export * from './RequestsPerSecondSchema'; -export * from './RequestsPerSecondSchemaDataResultInnerValuesInnerInner'; +export * from './addonParameterSchema'; +export * from './addonSchema'; +export * from './addonSchemaParameters'; +export * from './addonTypeSchema'; +export * from './addonsSchema'; +export * from './adminFeaturesQuerySchema'; +export * from './adminPermissionSchema'; +export * from './adminPermissionsSchema'; +export * from './adminPermissionsSchemaPermissions'; +export * from './adminPermissionsSchemaPermissionsEnvironmentsItem'; +export * from './adminSegmentSchema'; +export * from './apiTokenSchema'; +export * from './apiTokenSchemaType'; +export * from './apiTokensSchema'; +export * from './applicationSchema'; +export * from './applicationsSchema'; +export * from './changePasswordSchema'; +export * from './changeProjectSchema'; +export * from './changeRequestAddCommentSchema'; +export * from './changeRequestApprovalSchema'; +export * from './changeRequestApprovalSchemaCreatedBy'; +export * from './changeRequestCommentSchema'; +export * from './changeRequestCommentSchemaCreatedBy'; +export * from './changeRequestConfigSchema'; +export * from './changeRequestCreateSchema'; +export * from './changeRequestCreateSchemaOneOf'; +export * from './changeRequestCreateSchemaOneOfFive'; +export * from './changeRequestCreateSchemaOneOfFivePayload'; +export * from './changeRequestCreateSchemaOneOfFour'; +export * from './changeRequestCreateSchemaOneOfPayload'; +export * from './changeRequestCreateSchemaOneOfThree'; +export * from './changeRequestEnvironmentConfigSchema'; +export * from './changeRequestEventSchema'; +export * from './changeRequestEventSchemaCreatedBy'; +export * from './changeRequestEventSchemaPayload'; +export * from './changeRequestEventSchemaPayloadOneOf'; +export * from './changeRequestFeatureSchema'; +export * from './changeRequestSchema'; +export * from './changeRequestSchemaCreatedBy'; +export * from './changeRequestSchemaState'; +export * from './changeRequestStateSchema'; +export * from './changeRequestStateSchemaState'; +export * from './changeRequestsSchema'; +export * from './clientApplicationSchema'; +export * from './clientApplicationSchemaStarted'; +export * from './clientFeatureSchema'; +export * from './clientFeaturesQuerySchema'; +export * from './clientFeaturesSchema'; +export * from './clientMetricsSchema'; +export * from './clientMetricsSchemaBucket'; +export * from './clientMetricsSchemaBucketToggles'; +export * from './clientMetricsSchemaBucketTogglesVariants'; +export * from './cloneEnvironmentSchema'; +export * from './cloneFeatureSchema'; +export * from './constraintSchema'; +export * from './constraintSchemaOperator'; +export * from './contextFieldSchema'; +export * from './contextFieldsSchema'; +export * from './createApiTokenSchema'; +export * from './createEnvironmentSchema'; +export * from './createFeatureSchema'; +export * from './createFeatureStrategySchema'; +export * from './createInvitedUserSchema'; +export * from './createProjectSchema'; +export * from './createRoleWithPermissionsSchema'; +export * from './createRoleWithPermissionsSchemaPermissionsItem'; +export * from './createUserSchema'; +export * from './dateSchema'; +export * from './edgeTokenSchema'; +export * from './edgeTokenSchemaType'; +export * from './emailSchema'; +export * from './environmentProjectSchema'; +export * from './environmentSchema'; +export * from './environmentsProjectSchema'; +export * from './environmentsSchema'; +export * from './eventSchema'; +export * from './eventSchemaData'; +export * from './eventSchemaPreData'; +export * from './eventsSchema'; +export * from './exportFormat'; +export * from './exportParams'; +export * from './featureEnvironmentMetricsSchema'; +export * from './featureEnvironmentSchema'; +export * from './featureEnvironmentSchemaStrategiesItem'; +export * from './featureEventsSchema'; +export * from './featureMetricsSchema'; +export * from './featureSchema'; +export * from './featureStrategySchema'; +export * from './featureStrategySegmentSchema'; +export * from './featureTagSchema'; +export * from './featureTypeSchema'; +export * from './featureTypesSchema'; +export * from './featureUsageSchema'; +export * from './featureVariantsSchema'; +export * from './featuresSchema'; +export * from './feedbackSchema'; +export * from './getEventsParams'; +export * from './googleSettingsSchema'; +export * from './groupSchema'; +export * from './groupUserModelSchema'; +export * from './groupsSchema'; +export * from './healthCheckSchema'; +export * from './healthCheckSchemaHealth'; +export * from './healthOverviewSchema'; +export * from './healthReportSchema'; +export * from './idSchema'; +export * from './instanceAdminStatsSchema'; +export * from './invoicesSchema'; +export * from './invoicesSchemaItem'; +export * from './legalValueSchema'; +export * from './loginSchema'; +export * from './maintenanceSchema'; +export * from './meSchema'; +export * from './meSchemaSplash'; +export * from './nameSchema'; +export * from './oidcSettingsSchema'; +export * from './oidcSettingsSchemaDefaultRootRole'; +export * from './overrideSchema'; +export * from './parametersSchema'; +export * from './passwordAuthSchema'; +export * from './passwordSchema'; +export * from './patSchema'; +export * from './patchSchema'; +export * from './patchSchemaOp'; +export * from './patchesSchema'; +export * from './patsSchema'; +export * from './permissionSchema'; +export * from './playgroundConstraintSchema'; +export * from './playgroundConstraintSchemaOperator'; +export * from './playgroundFeatureSchema'; +export * from './playgroundFeatureSchemaStrategies'; +export * from './playgroundFeatureSchemaStrategiesResult'; +export * from './playgroundFeatureSchemaVariant'; +export * from './playgroundFeatureSchemaVariantPayload'; +export * from './playgroundFeatureSchemaVariantPayloadType'; +export * from './playgroundRequestSchema'; +export * from './playgroundRequestSchemaProjects'; +export * from './playgroundResponseSchema'; +export * from './playgroundSegmentSchema'; +export * from './playgroundStrategySchema'; +export * from './playgroundStrategySchemaResult'; +export * from './playgroundStrategySchemaResultAnyOf'; +export * from './playgroundStrategySchemaResultAnyOfEnabled'; +export * from './playgroundStrategySchemaResultAnyOfEvaluationStatus'; +export * from './playgroundStrategySchemaResultAnyOfFour'; +export * from './playgroundStrategySchemaResultAnyOfFourEvaluationStatus'; +export * from './profileSchema'; +export * from './projectAccessSchema'; +export * from './projectCreatedSchema'; +export * from './projectEnvironmentSchema'; +export * from './projectOverviewSchema'; +export * from './projectSchema'; +export * from './projectUsers'; +export * from './projectsSchema'; +export * from './proxyClientSchema'; +export * from './proxyClientSchemaStarted'; +export * from './proxyFeatureSchema'; +export * from './proxyFeatureSchemaVariant'; +export * from './proxyFeatureSchemaVariantPayload'; +export * from './proxyFeatureSchemaVariantPayloadType'; +export * from './proxyFeaturesSchema'; +export * from './proxyMetricsSchema'; +export * from './proxyMetricsSchemaBucket'; +export * from './proxyMetricsSchemaBucketToggles'; +export * from './proxyMetricsSchemaBucketTogglesVariants'; +export * from './publicSignupTokenCreateSchema'; +export * from './publicSignupTokenSchema'; +export * from './publicSignupTokenUpdateSchema'; +export * from './publicSignupTokensSchema'; +export * from './requestsPerSecondSchema'; +export * from './requestsPerSecondSchemaData'; +export * from './requestsPerSecondSchemaDataResultItem'; +export * from './requestsPerSecondSchemaDataResultItemMetric'; +export * from './requestsPerSecondSchemaDataResultItemValuesItemItem'; +export * from './requestsPerSecondSegmentedSchema'; +export * from './resetPasswordSchema'; +export * from './roleSchema'; +export * from './roleWithPermissionsSchema'; +export * from './roleWithVersionSchema'; +export * from './rolesWithVersionSchema'; +export * from './samlSettingsSchema'; +export * from './samlSettingsSchemaDefaultRootRole'; +export * from './sdkContextSchema'; +export * from './sdkContextSchemaProperties'; +export * from './searchEventsSchema'; +export * from './segmentSchema'; +export * from './segmentStrategiesSchema'; +export * from './segmentStrategiesSchemaStrategiesItem'; +export * from './segmentsSchema'; +export * from './setStrategySortOrderSchema'; +export * from './setStrategySortOrderSchemaItem'; +export * from './setUiConfigSchema'; +export * from './setUiConfigSchemaFrontendSettings'; +export * from './sortOrderSchema'; +export * from './splashSchema'; +export * from './stateSchema'; +export * from './strategiesSchema'; +export * from './strategySchema'; +export * from './strategySchemaParametersItem'; +export * from './tagSchema'; +export * from './tagTypeSchema'; +export * from './tagTypesSchema'; +export * from './tagWithVersionSchema'; +export * from './tagsSchema'; +export * from './tokenUserSchema'; +export * from './uiConfigSchema'; +export * from './uiConfigSchemaAuthenticationType'; +export * from './uiConfigSchemaFlags'; +export * from './uiConfigSchemaLinksItem'; +export * from './updateApiTokenSchema'; +export * from './updateChangeRequestEnvironmentConfigSchema'; +export * from './updateEnvironmentSchema'; +export * from './updateFeatureSchema'; +export * from './updateFeatureStrategySchema'; +export * from './updateFeatureStrategySegmentsSchema'; +export * from './updateProjectSchema'; +export * from './updateTagTypeSchema'; +export * from './updateUserSchema'; +export * from './upsertContextFieldSchema'; +export * from './upsertSegmentSchema'; +export * from './upsertStrategySchema'; +export * from './upsertStrategySchemaParametersItem'; +export * from './userSchema'; +export * from './userWithProjectRoleSchema'; +export * from './usersGroupsBaseSchema'; +export * from './usersSchema'; +export * from './usersSearchSchema'; +export * from './validateEdgeTokensSchema'; +export * from './validateEdgeTokensSchemaTokensItem'; +export * from './validatePasswordSchema'; +export * from './validateProjectSchema'; +export * from './validateTagTypeSchema'; +export * from './variantSchema'; +export * from './variantSchemaPayload'; +export * from './variantsSchema'; +export * from './versionSchema'; +export * from './versionSchemaCurrent'; +export * from './versionSchemaLatest'; diff --git a/frontend/src/openapi/models/instanceAdminStatsSchema.ts b/frontend/src/openapi/models/instanceAdminStatsSchema.ts new file mode 100644 index 0000000000..f609828e8d --- /dev/null +++ b/frontend/src/openapi/models/instanceAdminStatsSchema.ts @@ -0,0 +1,25 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface InstanceAdminStatsSchema { + instanceId: string; + timestamp?: string | null; + versionOSS?: string; + versionEnterprise?: string; + users?: number; + featureToggles?: number; + projects?: number; + contextFields?: number; + roles?: number; + groups?: number; + environments?: number; + segments?: number; + strategies?: number; + SAMLenabled?: number; + OIDCenabled?: number; + sum?: string; +} diff --git a/frontend/src/openapi/models/invoicesSchema.ts b/frontend/src/openapi/models/invoicesSchema.ts new file mode 100644 index 0000000000..dfa0159d78 --- /dev/null +++ b/frontend/src/openapi/models/invoicesSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { InvoicesSchemaItem } from './invoicesSchemaItem'; + +export type InvoicesSchema = InvoicesSchemaItem[]; diff --git a/frontend/src/openapi/models/invoicesSchemaItem.ts b/frontend/src/openapi/models/invoicesSchemaItem.ts new file mode 100644 index 0000000000..11d5139e41 --- /dev/null +++ b/frontend/src/openapi/models/invoicesSchemaItem.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type InvoicesSchemaItem = { + amountFormatted: string; + paid: boolean; + status: string; + dueDate?: string; + invoiceURL: string; + invoicePDF: string; +}; diff --git a/frontend/src/openapi/models/legalValueSchema.ts b/frontend/src/openapi/models/legalValueSchema.ts new file mode 100644 index 0000000000..8216ece182 --- /dev/null +++ b/frontend/src/openapi/models/legalValueSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface LegalValueSchema { + value: string; + description?: string; +} diff --git a/frontend/src/openapi/models/loginSchema.ts b/frontend/src/openapi/models/loginSchema.ts new file mode 100644 index 0000000000..1070cdef08 --- /dev/null +++ b/frontend/src/openapi/models/loginSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface LoginSchema { + username: string; + password: string; +} diff --git a/frontend/src/openapi/models/maintenanceSchema.ts b/frontend/src/openapi/models/maintenanceSchema.ts new file mode 100644 index 0000000000..8866ea6111 --- /dev/null +++ b/frontend/src/openapi/models/maintenanceSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface MaintenanceSchema { + enabled: boolean; +} diff --git a/frontend/src/openapi/models/meSchema.ts b/frontend/src/openapi/models/meSchema.ts new file mode 100644 index 0000000000..6f5dc8df0c --- /dev/null +++ b/frontend/src/openapi/models/meSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UserSchema } from './userSchema'; +import type { PermissionSchema } from './permissionSchema'; +import type { FeedbackSchema } from './feedbackSchema'; +import type { MeSchemaSplash } from './meSchemaSplash'; + +export interface MeSchema { + user: UserSchema; + permissions: PermissionSchema[]; + feedback: FeedbackSchema[]; + splash: MeSchemaSplash; +} diff --git a/frontend/src/openapi/models/meSchemaSplash.ts b/frontend/src/openapi/models/meSchemaSplash.ts new file mode 100644 index 0000000000..3939ef797e --- /dev/null +++ b/frontend/src/openapi/models/meSchemaSplash.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type MeSchemaSplash = { [key: string]: boolean }; diff --git a/frontend/src/openapi/models/nameSchema.ts b/frontend/src/openapi/models/nameSchema.ts new file mode 100644 index 0000000000..336adeb642 --- /dev/null +++ b/frontend/src/openapi/models/nameSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface NameSchema { + name: string; +} diff --git a/frontend/src/openapi/models/oidcSettingsSchema.ts b/frontend/src/openapi/models/oidcSettingsSchema.ts new file mode 100644 index 0000000000..51fadb6f29 --- /dev/null +++ b/frontend/src/openapi/models/oidcSettingsSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { OidcSettingsSchemaDefaultRootRole } from './oidcSettingsSchemaDefaultRootRole'; + +export interface OidcSettingsSchema { + enabled?: boolean; + discoverUrl?: string; + clientId: string; + secret: string; + autoCreate?: boolean; + enableSingleSignOut?: boolean; + defaultRootRole?: OidcSettingsSchemaDefaultRootRole; + emailDomains?: string; + acrValues?: string; +} diff --git a/frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts b/frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts new file mode 100644 index 0000000000..146a18a164 --- /dev/null +++ b/frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type OidcSettingsSchemaDefaultRootRole = + typeof OidcSettingsSchemaDefaultRootRole[keyof typeof OidcSettingsSchemaDefaultRootRole]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const OidcSettingsSchemaDefaultRootRole = { + Viewer: 'Viewer', + Editor: 'Editor', + Admin: 'Admin', +} as const; diff --git a/frontend/src/openapi/models/overrideSchema.ts b/frontend/src/openapi/models/overrideSchema.ts new file mode 100644 index 0000000000..2a2508aecc --- /dev/null +++ b/frontend/src/openapi/models/overrideSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface OverrideSchema { + contextName: string; + values: string[]; +} diff --git a/frontend/src/openapi/models/parametersSchema.ts b/frontend/src/openapi/models/parametersSchema.ts new file mode 100644 index 0000000000..b21d57d27c --- /dev/null +++ b/frontend/src/openapi/models/parametersSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ParametersSchema { + [key: string]: string; +} diff --git a/frontend/src/openapi/models/passwordAuthSchema.ts b/frontend/src/openapi/models/passwordAuthSchema.ts new file mode 100644 index 0000000000..2d87cbad81 --- /dev/null +++ b/frontend/src/openapi/models/passwordAuthSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface PasswordAuthSchema { + enabled?: boolean; +} diff --git a/frontend/src/openapi/models/passwordSchema.ts b/frontend/src/openapi/models/passwordSchema.ts new file mode 100644 index 0000000000..95ccb32793 --- /dev/null +++ b/frontend/src/openapi/models/passwordSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface PasswordSchema { + password: string; + confirmPassword?: string; +} diff --git a/frontend/src/openapi/models/patSchema.ts b/frontend/src/openapi/models/patSchema.ts new file mode 100644 index 0000000000..a9257599fd --- /dev/null +++ b/frontend/src/openapi/models/patSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface PatSchema { + id?: number; + secret?: string; + expiresAt?: string | null; + createdAt?: string | null; + seenAt?: string | null; +} diff --git a/frontend/src/openapi/models/patchSchema.ts b/frontend/src/openapi/models/patchSchema.ts new file mode 100644 index 0000000000..1cae43a1c8 --- /dev/null +++ b/frontend/src/openapi/models/patchSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PatchSchemaOp } from './patchSchemaOp'; + +export interface PatchSchema { + path: string; + op: PatchSchemaOp; + from?: string; + value?: unknown; +} diff --git a/frontend/src/openapi/models/patchSchemaOp.ts b/frontend/src/openapi/models/patchSchemaOp.ts new file mode 100644 index 0000000000..2aecf8478b --- /dev/null +++ b/frontend/src/openapi/models/patchSchemaOp.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type PatchSchemaOp = typeof PatchSchemaOp[keyof typeof PatchSchemaOp]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PatchSchemaOp = { + add: 'add', + remove: 'remove', + replace: 'replace', + copy: 'copy', + move: 'move', +} as const; diff --git a/frontend/src/openapi/models/patchesSchema.ts b/frontend/src/openapi/models/patchesSchema.ts new file mode 100644 index 0000000000..d18e6b0db8 --- /dev/null +++ b/frontend/src/openapi/models/patchesSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PatchSchema } from './patchSchema'; + +export type PatchesSchema = PatchSchema[]; diff --git a/frontend/src/openapi/models/patsSchema.ts b/frontend/src/openapi/models/patsSchema.ts new file mode 100644 index 0000000000..baa93725a5 --- /dev/null +++ b/frontend/src/openapi/models/patsSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PatSchema } from './patSchema'; + +export interface PatsSchema { + pats?: PatSchema[]; +} diff --git a/frontend/src/openapi/models/permissionSchema.ts b/frontend/src/openapi/models/permissionSchema.ts new file mode 100644 index 0000000000..d40236e42c --- /dev/null +++ b/frontend/src/openapi/models/permissionSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface PermissionSchema { + permission: string; + project?: string; + environment?: string; +} diff --git a/frontend/src/openapi/models/playgroundConstraintSchema.ts b/frontend/src/openapi/models/playgroundConstraintSchema.ts new file mode 100644 index 0000000000..8081050627 --- /dev/null +++ b/frontend/src/openapi/models/playgroundConstraintSchema.ts @@ -0,0 +1,27 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundConstraintSchemaOperator } from './playgroundConstraintSchemaOperator'; + +/** + * A strategy constraint. For more information, refer to [the strategy constraint reference documentation](https://docs.getunleash.io/reference/strategy-constraints) + */ +export interface PlaygroundConstraintSchema { + /** The name of the context field that this constraint should apply to. */ + contextName: string; + /** The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators). */ + operator: PlaygroundConstraintSchemaOperator; + /** Whether the operator should be case sensitive or not. Defaults to `false` (being case sensitive). */ + caseInsensitive?: boolean; + /** Whether the result should be negated or not. If `true`, will turn a `true` result into a `false` result and vice versa. */ + inverted?: boolean; + /** The context values that should be used for constraint evaluation. Use this property instead of `value` for properties that accept multiple values. */ + values?: string[]; + /** The context value that should be used for constraint evaluation. Use this property instead of `values` for properties that only accept single values. */ + value?: string; + /** Whether this was evaluated as true or false. */ + result: boolean; +} diff --git a/frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts b/frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts new file mode 100644 index 0000000000..ebd4cb4084 --- /dev/null +++ b/frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts @@ -0,0 +1,31 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators). + */ +export type PlaygroundConstraintSchemaOperator = + typeof PlaygroundConstraintSchemaOperator[keyof typeof PlaygroundConstraintSchemaOperator]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PlaygroundConstraintSchemaOperator = { + NOT_IN: 'NOT_IN', + IN: 'IN', + STR_ENDS_WITH: 'STR_ENDS_WITH', + STR_STARTS_WITH: 'STR_STARTS_WITH', + STR_CONTAINS: 'STR_CONTAINS', + NUM_EQ: 'NUM_EQ', + NUM_GT: 'NUM_GT', + NUM_GTE: 'NUM_GTE', + NUM_LT: 'NUM_LT', + NUM_LTE: 'NUM_LTE', + DATE_AFTER: 'DATE_AFTER', + DATE_BEFORE: 'DATE_BEFORE', + SEMVER_EQ: 'SEMVER_EQ', + SEMVER_GT: 'SEMVER_GT', + SEMVER_LT: 'SEMVER_LT', +} as const; diff --git a/frontend/src/openapi/models/playgroundFeatureSchema.ts b/frontend/src/openapi/models/playgroundFeatureSchema.ts new file mode 100644 index 0000000000..0043d9e28b --- /dev/null +++ b/frontend/src/openapi/models/playgroundFeatureSchema.ts @@ -0,0 +1,32 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundFeatureSchemaStrategies } from './playgroundFeatureSchemaStrategies'; +import type { PlaygroundFeatureSchemaVariant } from './playgroundFeatureSchemaVariant'; +import type { VariantSchema } from './variantSchema'; + +/** + * A simplified feature toggle model intended for the Unleash playground. + */ +export interface PlaygroundFeatureSchema { + /** The feature's name. */ + name: string; + /** The ID of the project that contains this feature. */ + projectId: string; + strategies: PlaygroundFeatureSchemaStrategies; + /** Whether the feature is active and would be evaluated in the provided environment in a normal SDK context. */ + isEnabledInCurrentEnvironment: boolean; + /** Whether this feature is enabled or not in the current environment. + If a feature can't be fully evaluated (that is, `strategies.result` is `unknown`), + this will be `false` to align with how client SDKs treat unresolved feature states. */ + isEnabled: boolean; + /** The feature variant you receive based on the provided context or the _disabled + variant_. If a feature is disabled or doesn't have any + variants, you would get the _disabled variant_. + Otherwise, you'll get one of thefeature's defined variants. */ + variant: PlaygroundFeatureSchemaVariant; + variants: VariantSchema[]; +} diff --git a/frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts b/frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts new file mode 100644 index 0000000000..229de8fec8 --- /dev/null +++ b/frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundFeatureSchemaStrategiesResult } from './playgroundFeatureSchemaStrategiesResult'; +import type { PlaygroundStrategySchema } from './playgroundStrategySchema'; + +export type PlaygroundFeatureSchemaStrategies = { + /** The cumulative results of all the feature's strategies. Can be `true`, + `false`, or `unknown`. + This property will only be `unknown` + if one or more of the strategies can't be fully evaluated and the rest of the strategies + all resolve to `false`. */ + result: PlaygroundFeatureSchemaStrategiesResult; + /** The strategies that apply to this feature. */ + data: PlaygroundStrategySchema[]; +}; diff --git a/frontend/src/openapi/models/playgroundFeatureSchemaStrategiesResult.ts b/frontend/src/openapi/models/playgroundFeatureSchemaStrategiesResult.ts new file mode 100644 index 0000000000..1b9c111753 --- /dev/null +++ b/frontend/src/openapi/models/playgroundFeatureSchemaStrategiesResult.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * The cumulative results of all the feature's strategies. Can be `true`, + `false`, or `unknown`. + This property will only be `unknown` + if one or more of the strategies can't be fully evaluated and the rest of the strategies + all resolve to `false`. + */ +export type PlaygroundFeatureSchemaStrategiesResult = boolean | 'unknown'; diff --git a/frontend/src/openapi/models/playgroundFeatureSchemaVariant.ts b/frontend/src/openapi/models/playgroundFeatureSchemaVariant.ts new file mode 100644 index 0000000000..b74c8e188a --- /dev/null +++ b/frontend/src/openapi/models/playgroundFeatureSchemaVariant.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundFeatureSchemaVariantPayload } from './playgroundFeatureSchemaVariantPayload'; + +/** + * The feature variant you receive based on the provided context or the _disabled + variant_. If a feature is disabled or doesn't have any + variants, you would get the _disabled variant_. + Otherwise, you'll get one of thefeature's defined variants. + */ +export type PlaygroundFeatureSchemaVariant = { + /** The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled` */ + name: string; + /** Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false` */ + enabled: boolean; + /** An optional payload attached to the variant. */ + payload?: PlaygroundFeatureSchemaVariantPayload; +} | null; diff --git a/frontend/src/openapi/models/playgroundFeatureSchemaVariantPayload.ts b/frontend/src/openapi/models/playgroundFeatureSchemaVariantPayload.ts new file mode 100644 index 0000000000..84be65ee52 --- /dev/null +++ b/frontend/src/openapi/models/playgroundFeatureSchemaVariantPayload.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundFeatureSchemaVariantPayloadType } from './playgroundFeatureSchemaVariantPayloadType'; + +/** + * An optional payload attached to the variant. + */ +export type PlaygroundFeatureSchemaVariantPayload = { + /** The format of the payload. */ + type: PlaygroundFeatureSchemaVariantPayloadType; + /** The payload value stringified. */ + value: string; +}; diff --git a/frontend/src/openapi/models/playgroundFeatureSchemaVariantPayloadType.ts b/frontend/src/openapi/models/playgroundFeatureSchemaVariantPayloadType.ts new file mode 100644 index 0000000000..70f14219a8 --- /dev/null +++ b/frontend/src/openapi/models/playgroundFeatureSchemaVariantPayloadType.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * The format of the payload. + */ +export type PlaygroundFeatureSchemaVariantPayloadType = + typeof PlaygroundFeatureSchemaVariantPayloadType[keyof typeof PlaygroundFeatureSchemaVariantPayloadType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PlaygroundFeatureSchemaVariantPayloadType = { + json: 'json', + csv: 'csv', + string: 'string', +} as const; diff --git a/frontend/src/openapi/models/playgroundRequestSchema.ts b/frontend/src/openapi/models/playgroundRequestSchema.ts new file mode 100644 index 0000000000..bddc44359a --- /dev/null +++ b/frontend/src/openapi/models/playgroundRequestSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundRequestSchemaProjects } from './playgroundRequestSchemaProjects'; +import type { SdkContextSchema } from './sdkContextSchema'; + +/** + * Data for the playground API to evaluate toggles + */ +export interface PlaygroundRequestSchema { + /** The environment to evaluate toggles in. */ + environment: string; + projects?: PlaygroundRequestSchemaProjects; + /** The context to use when evaluating toggles */ + context: SdkContextSchema; +} diff --git a/frontend/src/openapi/models/playgroundRequestSchemaProjects.ts b/frontend/src/openapi/models/playgroundRequestSchemaProjects.ts new file mode 100644 index 0000000000..b65f915230 --- /dev/null +++ b/frontend/src/openapi/models/playgroundRequestSchemaProjects.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type PlaygroundRequestSchemaProjects = string[] | '*'; diff --git a/frontend/src/openapi/models/playgroundResponseSchema.ts b/frontend/src/openapi/models/playgroundResponseSchema.ts new file mode 100644 index 0000000000..cc013cbf12 --- /dev/null +++ b/frontend/src/openapi/models/playgroundResponseSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundRequestSchema } from './playgroundRequestSchema'; +import type { PlaygroundFeatureSchema } from './playgroundFeatureSchema'; + +/** + * The state of all features given the provided input. + */ +export interface PlaygroundResponseSchema { + /** The given input used to evaluate the features. */ + input: PlaygroundRequestSchema; + /** The list of features that have been evaluated. */ + features: PlaygroundFeatureSchema[]; +} diff --git a/frontend/src/openapi/models/playgroundSegmentSchema.ts b/frontend/src/openapi/models/playgroundSegmentSchema.ts new file mode 100644 index 0000000000..cc30294915 --- /dev/null +++ b/frontend/src/openapi/models/playgroundSegmentSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundConstraintSchema } from './playgroundConstraintSchema'; + +export interface PlaygroundSegmentSchema { + /** The segment's id. */ + id: number; + /** The name of the segment. */ + name: string; + /** Whether this was evaluated as true or false. */ + result: boolean; + /** The list of constraints in this segment. */ + constraints: PlaygroundConstraintSchema[]; +} diff --git a/frontend/src/openapi/models/playgroundStrategySchema.ts b/frontend/src/openapi/models/playgroundStrategySchema.ts new file mode 100644 index 0000000000..08371f3d05 --- /dev/null +++ b/frontend/src/openapi/models/playgroundStrategySchema.ts @@ -0,0 +1,25 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundStrategySchemaResult } from './playgroundStrategySchemaResult'; +import type { PlaygroundSegmentSchema } from './playgroundSegmentSchema'; +import type { PlaygroundConstraintSchema } from './playgroundConstraintSchema'; +import type { ParametersSchema } from './parametersSchema'; + +export interface PlaygroundStrategySchema { + /** The strategy's name. */ + name: string; + /** The strategy's id. */ + id: string; + /** The strategy's evaluation result. If the strategy is a custom strategy that Unleash can't evaluate, `evaluationStatus` will be `unknown`. Otherwise, it will be `true` or `false` */ + result: PlaygroundStrategySchemaResult; + /** The strategy's segments and their evaluation results. */ + segments: PlaygroundSegmentSchema[]; + /** The strategy's constraints and their evaluation results. */ + constraints: PlaygroundConstraintSchema[]; + /** The strategy's constraints and their evaluation results. */ + parameters: ParametersSchema; +} diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResult.ts b/frontend/src/openapi/models/playgroundStrategySchemaResult.ts new file mode 100644 index 0000000000..c4fd56c72c --- /dev/null +++ b/frontend/src/openapi/models/playgroundStrategySchemaResult.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundStrategySchemaResultAnyOf } from './playgroundStrategySchemaResultAnyOf'; +import type { PlaygroundStrategySchemaResultAnyOfFour } from './playgroundStrategySchemaResultAnyOfFour'; + +/** + * The strategy's evaluation result. If the strategy is a custom strategy that Unleash can't evaluate, `evaluationStatus` will be `unknown`. Otherwise, it will be `true` or `false` + */ +export type PlaygroundStrategySchemaResult = + | PlaygroundStrategySchemaResultAnyOf + | PlaygroundStrategySchemaResultAnyOfFour; diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOf.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOf.ts new file mode 100644 index 0000000000..3b44577f3f --- /dev/null +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOf.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundStrategySchemaResultAnyOfEvaluationStatus } from './playgroundStrategySchemaResultAnyOfEvaluationStatus'; +import type { PlaygroundStrategySchemaResultAnyOfEnabled } from './playgroundStrategySchemaResultAnyOfEnabled'; + +export type PlaygroundStrategySchemaResultAnyOf = { + /** Signals that this strategy could not be evaluated. This is most likely because you're using a custom strategy that Unleash doesn't know about. */ + evaluationStatus: PlaygroundStrategySchemaResultAnyOfEvaluationStatus; + /** Whether this strategy resolves to `false` or if it might resolve to `true`. Because Unleash can't evaluate the strategy, it can't say for certain whether it will be `true`, but if you have failing constraints or segments, it _can_ determine that your strategy would be `false`. */ + enabled: PlaygroundStrategySchemaResultAnyOfEnabled; +}; diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEnabled.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEnabled.ts new file mode 100644 index 0000000000..394dbab54c --- /dev/null +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEnabled.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * Whether this strategy resolves to `false` or if it might resolve to `true`. Because Unleash can't evaluate the strategy, it can't say for certain whether it will be `true`, but if you have failing constraints or segments, it _can_ determine that your strategy would be `false`. + */ +export type PlaygroundStrategySchemaResultAnyOfEnabled = boolean | 'unknown'; diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts new file mode 100644 index 0000000000..fc142f7e83 --- /dev/null +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * Signals that this strategy could not be evaluated. This is most likely because you're using a custom strategy that Unleash doesn't know about. + */ +export type PlaygroundStrategySchemaResultAnyOfEvaluationStatus = + typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus[keyof typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PlaygroundStrategySchemaResultAnyOfEvaluationStatus = { + incomplete: 'incomplete', +} as const; diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFour.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFour.ts new file mode 100644 index 0000000000..298d55792c --- /dev/null +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFour.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus } from './playgroundStrategySchemaResultAnyOfFourEvaluationStatus'; + +export type PlaygroundStrategySchemaResultAnyOfFour = { + /** Signals that this strategy was evaluated successfully. */ + evaluationStatus: PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus; + /** Whether this strategy evaluates to true or not. */ + enabled: boolean; +}; diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts new file mode 100644 index 0000000000..5b8e2f4f31 --- /dev/null +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * Signals that this strategy was evaluated successfully. + */ +export type PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus = + typeof PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus[keyof typeof PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus = { + complete: 'complete', +} as const; diff --git a/frontend/src/openapi/models/profileSchema.ts b/frontend/src/openapi/models/profileSchema.ts new file mode 100644 index 0000000000..51d66b3c2b --- /dev/null +++ b/frontend/src/openapi/models/profileSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RoleSchema } from './roleSchema'; +import type { FeatureSchema } from './featureSchema'; + +export interface ProfileSchema { + rootRole: RoleSchema; + projects: string[]; + features: FeatureSchema[]; +} diff --git a/frontend/src/openapi/models/projectAccessSchema.ts b/frontend/src/openapi/models/projectAccessSchema.ts new file mode 100644 index 0000000000..c5f405ef12 --- /dev/null +++ b/frontend/src/openapi/models/projectAccessSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { GroupSchema } from './groupSchema'; +import type { UserWithProjectRoleSchema } from './userWithProjectRoleSchema'; +import type { RoleSchema } from './roleSchema'; + +export interface ProjectAccessSchema { + groups: GroupSchema[]; + users: UserWithProjectRoleSchema[]; + roles: RoleSchema[]; +} diff --git a/frontend/src/openapi/models/projectCreatedSchema.ts b/frontend/src/openapi/models/projectCreatedSchema.ts new file mode 100644 index 0000000000..4d0c983844 --- /dev/null +++ b/frontend/src/openapi/models/projectCreatedSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * Details about the newly created project. + */ +export interface ProjectCreatedSchema { + /** The project's identifier. */ + id: string; + /** The project's name. */ + name: string; + /** The project's description. */ + description?: string | null; +} diff --git a/frontend/src/openapi/models/projectEnvironmentSchema.ts b/frontend/src/openapi/models/projectEnvironmentSchema.ts new file mode 100644 index 0000000000..27b819f665 --- /dev/null +++ b/frontend/src/openapi/models/projectEnvironmentSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ProjectEnvironmentSchema { + environment: string; + changeRequestsEnabled?: boolean; +} diff --git a/frontend/src/openapi/models/projectOverviewSchema.ts b/frontend/src/openapi/models/projectOverviewSchema.ts new file mode 100644 index 0000000000..7de8bfb0b0 --- /dev/null +++ b/frontend/src/openapi/models/projectOverviewSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProjectSchema } from './projectSchema'; + +export interface ProjectOverviewSchema { + featureCount: number; + memberCount: number; + projects: ProjectSchema[]; +} diff --git a/frontend/src/openapi/models/projectSchema.ts b/frontend/src/openapi/models/projectSchema.ts new file mode 100644 index 0000000000..ef750b8bdf --- /dev/null +++ b/frontend/src/openapi/models/projectSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ProjectSchema { + id: string; + name: string; + description?: string; + health?: number; + featureCount?: number; + memberCount?: number; + createdAt?: string; + updatedAt?: string | null; + changeRequestsEnabled?: boolean; + favorite?: boolean; +} diff --git a/frontend/src/openapi/models/projectUsers.ts b/frontend/src/openapi/models/projectUsers.ts new file mode 100644 index 0000000000..0bd2e740ea --- /dev/null +++ b/frontend/src/openapi/models/projectUsers.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UserWithProjectRoleSchema } from './userWithProjectRoleSchema'; +import type { RoleSchema } from './roleSchema'; + +export interface ProjectUsers { + users: UserWithProjectRoleSchema[]; + roles: RoleSchema[]; +} diff --git a/frontend/src/openapi/models/projectsSchema.ts b/frontend/src/openapi/models/projectsSchema.ts new file mode 100644 index 0000000000..87ed3b737b --- /dev/null +++ b/frontend/src/openapi/models/projectsSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProjectSchema } from './projectSchema'; + +export interface ProjectsSchema { + version: number; + projects: ProjectSchema[]; +} diff --git a/frontend/src/openapi/models/proxyClientSchema.ts b/frontend/src/openapi/models/proxyClientSchema.ts new file mode 100644 index 0000000000..154b2a5726 --- /dev/null +++ b/frontend/src/openapi/models/proxyClientSchema.ts @@ -0,0 +1,24 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyClientSchemaStarted } from './proxyClientSchemaStarted'; + +export interface ProxyClientSchema { + /** Name of the application using Unleash */ + appName: string; + /** Instance id for this application (typically hostname, podId or similar) */ + instanceId?: string; + /** Optional field that describes the sdk version (name:version) */ + sdkVersion?: string; + /** @deprecated */ + environment?: string; + /** At which interval, in milliseconds, will this client be expected to send metrics */ + interval: number; + /** When this client started. Should be reported as ISO8601 time. */ + started: ProxyClientSchemaStarted; + /** List of strategies implemented by this application */ + strategies: string[]; +} diff --git a/frontend/src/openapi/models/proxyClientSchemaStarted.ts b/frontend/src/openapi/models/proxyClientSchemaStarted.ts new file mode 100644 index 0000000000..eb07ad8cb5 --- /dev/null +++ b/frontend/src/openapi/models/proxyClientSchemaStarted.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * When this client started. Should be reported as ISO8601 time. + */ +export type ProxyClientSchemaStarted = string | number; diff --git a/frontend/src/openapi/models/proxyFeatureSchema.ts b/frontend/src/openapi/models/proxyFeatureSchema.ts new file mode 100644 index 0000000000..5f0597ce26 --- /dev/null +++ b/frontend/src/openapi/models/proxyFeatureSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyFeatureSchemaVariant } from './proxyFeatureSchemaVariant'; + +export interface ProxyFeatureSchema { + name: string; + enabled: boolean; + impressionData: boolean; + variant?: ProxyFeatureSchemaVariant; +} diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts new file mode 100644 index 0000000000..bde41c71a1 --- /dev/null +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyFeatureSchemaVariantPayload } from './proxyFeatureSchemaVariantPayload'; + +export type ProxyFeatureSchemaVariant = { + name: string; + enabled: boolean; + payload?: ProxyFeatureSchemaVariantPayload; +}; diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts new file mode 100644 index 0000000000..f95d3bdf5f --- /dev/null +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyFeatureSchemaVariantPayloadType } from './proxyFeatureSchemaVariantPayloadType'; + +export type ProxyFeatureSchemaVariantPayload = { + type: ProxyFeatureSchemaVariantPayloadType; + value: string; +}; diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts new file mode 100644 index 0000000000..baf6ba98c7 --- /dev/null +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ProxyFeatureSchemaVariantPayloadType = + typeof ProxyFeatureSchemaVariantPayloadType[keyof typeof ProxyFeatureSchemaVariantPayloadType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ProxyFeatureSchemaVariantPayloadType = { + string: 'string', +} as const; diff --git a/frontend/src/openapi/models/proxyFeaturesSchema.ts b/frontend/src/openapi/models/proxyFeaturesSchema.ts new file mode 100644 index 0000000000..7ad4ec70ad --- /dev/null +++ b/frontend/src/openapi/models/proxyFeaturesSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyFeatureSchema } from './proxyFeatureSchema'; + +export interface ProxyFeaturesSchema { + toggles: ProxyFeatureSchema[]; +} diff --git a/frontend/src/openapi/models/proxyMetricsSchema.ts b/frontend/src/openapi/models/proxyMetricsSchema.ts new file mode 100644 index 0000000000..24374bafac --- /dev/null +++ b/frontend/src/openapi/models/proxyMetricsSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyMetricsSchemaBucket } from './proxyMetricsSchemaBucket'; + +export interface ProxyMetricsSchema { + appName: string; + instanceId: string; + environment?: string; + bucket: ProxyMetricsSchemaBucket; +} diff --git a/frontend/src/openapi/models/proxyMetricsSchemaBucket.ts b/frontend/src/openapi/models/proxyMetricsSchemaBucket.ts new file mode 100644 index 0000000000..56ea40e6b4 --- /dev/null +++ b/frontend/src/openapi/models/proxyMetricsSchemaBucket.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyMetricsSchemaBucketToggles } from './proxyMetricsSchemaBucketToggles'; + +export type ProxyMetricsSchemaBucket = { + start: string; + stop: string; + toggles: ProxyMetricsSchemaBucketToggles; +}; diff --git a/frontend/src/openapi/models/proxyMetricsSchemaBucketToggles.ts b/frontend/src/openapi/models/proxyMetricsSchemaBucketToggles.ts new file mode 100644 index 0000000000..5aa2360cae --- /dev/null +++ b/frontend/src/openapi/models/proxyMetricsSchemaBucketToggles.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ProxyMetricsSchemaBucketTogglesVariants } from './proxyMetricsSchemaBucketTogglesVariants'; + +export type ProxyMetricsSchemaBucketToggles = { + [key: string]: { + yes?: number; + no?: number; + variants?: ProxyMetricsSchemaBucketTogglesVariants; + }; +}; diff --git a/frontend/src/openapi/models/proxyMetricsSchemaBucketTogglesVariants.ts b/frontend/src/openapi/models/proxyMetricsSchemaBucketTogglesVariants.ts new file mode 100644 index 0000000000..974f0f0acd --- /dev/null +++ b/frontend/src/openapi/models/proxyMetricsSchemaBucketTogglesVariants.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type ProxyMetricsSchemaBucketTogglesVariants = { [key: string]: number }; diff --git a/frontend/src/openapi/models/publicSignupTokenCreateSchema.ts b/frontend/src/openapi/models/publicSignupTokenCreateSchema.ts new file mode 100644 index 0000000000..6967a3b16c --- /dev/null +++ b/frontend/src/openapi/models/publicSignupTokenCreateSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface PublicSignupTokenCreateSchema { + /** The token's name. */ + name: string; + /** The token's expiration date. */ + expiresAt: string; +} diff --git a/frontend/src/openapi/models/publicSignupTokenSchema.ts b/frontend/src/openapi/models/publicSignupTokenSchema.ts new file mode 100644 index 0000000000..cabf96265a --- /dev/null +++ b/frontend/src/openapi/models/publicSignupTokenSchema.ts @@ -0,0 +1,23 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UserSchema } from './userSchema'; +import type { RoleSchema } from './roleSchema'; + +export interface PublicSignupTokenSchema { + secret: string; + /** The public signup link for the token. Users who follow this link will be taken to a signup page where they can create an Unleash user. */ + url: string; + name: string; + enabled: boolean; + expiresAt: string; + createdAt: string; + createdBy: string | null; + /** Array of users that have signed up using the token. */ + users?: UserSchema[] | null; + /** Users who sign up using this token will be given this role. */ + role: RoleSchema; +} diff --git a/frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts b/frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts new file mode 100644 index 0000000000..7597e0ab0e --- /dev/null +++ b/frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface PublicSignupTokenUpdateSchema { + /** The token's expiration date. */ + expiresAt?: string; + enabled?: boolean; +} diff --git a/frontend/src/openapi/models/publicSignupTokensSchema.ts b/frontend/src/openapi/models/publicSignupTokensSchema.ts new file mode 100644 index 0000000000..84df565457 --- /dev/null +++ b/frontend/src/openapi/models/publicSignupTokensSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { PublicSignupTokenSchema } from './publicSignupTokenSchema'; + +export interface PublicSignupTokensSchema { + tokens: PublicSignupTokenSchema[]; +} diff --git a/frontend/src/openapi/models/requestsPerSecondSchema.ts b/frontend/src/openapi/models/requestsPerSecondSchema.ts new file mode 100644 index 0000000000..b89eaba631 --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RequestsPerSecondSchemaData } from './requestsPerSecondSchemaData'; + +export interface RequestsPerSecondSchema { + status?: string; + data?: RequestsPerSecondSchemaData; +} diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaData.ts b/frontend/src/openapi/models/requestsPerSecondSchemaData.ts new file mode 100644 index 0000000000..2850f8c5fa --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSchemaData.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RequestsPerSecondSchemaDataResultItem } from './requestsPerSecondSchemaDataResultItem'; + +export type RequestsPerSecondSchemaData = { + resultType?: string; + /** An array of values per metric. Each one represents a line in the graph labeled by its metric name */ + result?: RequestsPerSecondSchemaDataResultItem[]; +}; diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts new file mode 100644 index 0000000000..646d47a347 --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RequestsPerSecondSchemaDataResultItemMetric } from './requestsPerSecondSchemaDataResultItemMetric'; +import type { RequestsPerSecondSchemaDataResultItemValuesItemItem } from './requestsPerSecondSchemaDataResultItemValuesItemItem'; + +export type RequestsPerSecondSchemaDataResultItem = { + /** A key value set representing the metric */ + metric?: RequestsPerSecondSchemaDataResultItemMetric; + /** An array of arrays. Each element of the array is an array of size 2 consisting of the 2 axis for the graph: in position zero the x axis represented as a number and position one the y axis represented as string */ + values?: RequestsPerSecondSchemaDataResultItemValuesItemItem[][]; +}; diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts new file mode 100644 index 0000000000..35be97151e --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * A key value set representing the metric + */ +export type RequestsPerSecondSchemaDataResultItemMetric = { + appName?: string; + endpoint?: string; +}; diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemValuesItemItem.ts b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemValuesItemItem.ts new file mode 100644 index 0000000000..a0ebf9ed69 --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemValuesItemItem.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type RequestsPerSecondSchemaDataResultItemValuesItemItem = + | string + | number; diff --git a/frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts b/frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts new file mode 100644 index 0000000000..0638e3016b --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RequestsPerSecondSchema } from './requestsPerSecondSchema'; + +export interface RequestsPerSecondSegmentedSchema { + clientMetrics?: RequestsPerSecondSchema; + adminMetrics?: RequestsPerSecondSchema; +} diff --git a/frontend/src/openapi/models/resetPasswordSchema.ts b/frontend/src/openapi/models/resetPasswordSchema.ts new file mode 100644 index 0000000000..2a26abdb80 --- /dev/null +++ b/frontend/src/openapi/models/resetPasswordSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ResetPasswordSchema { + resetPasswordUrl: string; +} diff --git a/frontend/src/openapi/models/roleSchema.ts b/frontend/src/openapi/models/roleSchema.ts new file mode 100644 index 0000000000..8b85e5c4f2 --- /dev/null +++ b/frontend/src/openapi/models/roleSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface RoleSchema { + id: number; + type: string; + name: string; + description?: string; +} diff --git a/frontend/src/openapi/models/roleWithPermissionsSchema.ts b/frontend/src/openapi/models/roleWithPermissionsSchema.ts new file mode 100644 index 0000000000..e85b678904 --- /dev/null +++ b/frontend/src/openapi/models/roleWithPermissionsSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { AdminPermissionSchema } from './adminPermissionSchema'; + +export interface RoleWithPermissionsSchema { + id: number; + type: string; + name: string; + description?: string; + permissions: AdminPermissionSchema[]; +} diff --git a/frontend/src/openapi/models/roleWithVersionSchema.ts b/frontend/src/openapi/models/roleWithVersionSchema.ts new file mode 100644 index 0000000000..9eaa3acd2f --- /dev/null +++ b/frontend/src/openapi/models/roleWithVersionSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RoleSchema } from './roleSchema'; + +export interface RoleWithVersionSchema { + version: number; + roles: RoleSchema; +} diff --git a/frontend/src/openapi/models/rolesWithVersionSchema.ts b/frontend/src/openapi/models/rolesWithVersionSchema.ts new file mode 100644 index 0000000000..fe12d99fc4 --- /dev/null +++ b/frontend/src/openapi/models/rolesWithVersionSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RoleSchema } from './roleSchema'; + +export interface RolesWithVersionSchema { + version: number; + roles: RoleSchema[]; +} diff --git a/frontend/src/openapi/models/samlSettingsSchema.ts b/frontend/src/openapi/models/samlSettingsSchema.ts new file mode 100644 index 0000000000..a38bd3b404 --- /dev/null +++ b/frontend/src/openapi/models/samlSettingsSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { SamlSettingsSchemaDefaultRootRole } from './samlSettingsSchemaDefaultRootRole'; + +export interface SamlSettingsSchema { + enabled?: boolean; + entityId: string; + signOnUrl: string; + certificate: string; + signOutUrl?: string; + spCertificate?: string; + autoCreate?: boolean; + defaultRootRole?: SamlSettingsSchemaDefaultRootRole; + emailDomains?: string; +} diff --git a/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts b/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts new file mode 100644 index 0000000000..65dc2418fc --- /dev/null +++ b/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type SamlSettingsSchemaDefaultRootRole = + typeof SamlSettingsSchemaDefaultRootRole[keyof typeof SamlSettingsSchemaDefaultRootRole]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const SamlSettingsSchemaDefaultRootRole = { + Viewer: 'Viewer', + Editor: 'Editor', + Admin: 'Admin', +} as const; diff --git a/frontend/src/openapi/models/sdkContextSchema.ts b/frontend/src/openapi/models/sdkContextSchema.ts new file mode 100644 index 0000000000..9656760da8 --- /dev/null +++ b/frontend/src/openapi/models/sdkContextSchema.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { SdkContextSchemaProperties } from './sdkContextSchemaProperties'; + +/** + * The Unleash context as modeled in client SDKs + */ +export interface SdkContextSchema { + appName: string; + currentTime?: string; + /** @deprecated */ + environment?: string; + properties?: SdkContextSchemaProperties; + remoteAddress?: string; + sessionId?: string; + userId?: string; + [key: string]: any; +} diff --git a/frontend/src/openapi/models/sdkContextSchemaProperties.ts b/frontend/src/openapi/models/sdkContextSchemaProperties.ts new file mode 100644 index 0000000000..4d103e60a8 --- /dev/null +++ b/frontend/src/openapi/models/sdkContextSchemaProperties.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type SdkContextSchemaProperties = { [key: string]: string }; diff --git a/frontend/src/openapi/models/searchEventsSchema.ts b/frontend/src/openapi/models/searchEventsSchema.ts new file mode 100644 index 0000000000..9bfe27da46 --- /dev/null +++ b/frontend/src/openapi/models/searchEventsSchema.ts @@ -0,0 +1,30 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +/** + * + Search for events by type, project, feature, free-text query, + or a combination thereof. Pass an empty object to fetch all events. + + */ +export interface SearchEventsSchema { + /** Find events by event type (case-sensitive). */ + type?: string; + /** Find events by project ID (case-sensitive). */ + project?: string; + /** Find events by feature toggle name (case-sensitive). */ + feature?: string; + /** + Find events by a free-text search query. + The query will be matched against the event type, + the username or email that created the event (if any), + and the event data payload (if any). + */ + query?: string; + limit?: number; + offset?: number; +} diff --git a/frontend/src/openapi/models/segmentSchema.ts b/frontend/src/openapi/models/segmentSchema.ts new file mode 100644 index 0000000000..cfc38f6138 --- /dev/null +++ b/frontend/src/openapi/models/segmentSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; + +export interface SegmentSchema { + id: number; + name?: string; + description?: string | null; + constraints: ConstraintSchema[]; +} diff --git a/frontend/src/openapi/models/segmentStrategiesSchema.ts b/frontend/src/openapi/models/segmentStrategiesSchema.ts new file mode 100644 index 0000000000..d368c86dd9 --- /dev/null +++ b/frontend/src/openapi/models/segmentStrategiesSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { SegmentStrategiesSchemaStrategiesItem } from './segmentStrategiesSchemaStrategiesItem'; + +export interface SegmentStrategiesSchema { + strategies: SegmentStrategiesSchemaStrategiesItem[]; +} diff --git a/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts b/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts new file mode 100644 index 0000000000..1afe4b526d --- /dev/null +++ b/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type SegmentStrategiesSchemaStrategiesItem = { + id: string; + featureName: string; + projectId: string; + environment: string; + strategyName: string; +}; diff --git a/frontend/src/openapi/models/segmentsSchema.ts b/frontend/src/openapi/models/segmentsSchema.ts new file mode 100644 index 0000000000..d15835b993 --- /dev/null +++ b/frontend/src/openapi/models/segmentsSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { AdminSegmentSchema } from './adminSegmentSchema'; + +export interface SegmentsSchema { + segments?: AdminSegmentSchema[]; +} diff --git a/frontend/src/openapi/models/setStrategySortOrderSchema.ts b/frontend/src/openapi/models/setStrategySortOrderSchema.ts new file mode 100644 index 0000000000..118df43d31 --- /dev/null +++ b/frontend/src/openapi/models/setStrategySortOrderSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { SetStrategySortOrderSchemaItem } from './setStrategySortOrderSchemaItem'; + +export type SetStrategySortOrderSchema = SetStrategySortOrderSchemaItem[]; diff --git a/frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts b/frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts new file mode 100644 index 0000000000..bce69dfe10 --- /dev/null +++ b/frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type SetStrategySortOrderSchemaItem = { + id: string; + sortOrder: number; +}; diff --git a/frontend/src/openapi/models/setUiConfigSchema.ts b/frontend/src/openapi/models/setUiConfigSchema.ts new file mode 100644 index 0000000000..d45eced235 --- /dev/null +++ b/frontend/src/openapi/models/setUiConfigSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { SetUiConfigSchemaFrontendSettings } from './setUiConfigSchemaFrontendSettings'; + +export interface SetUiConfigSchema { + frontendSettings?: SetUiConfigSchemaFrontendSettings; +} diff --git a/frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts b/frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts new file mode 100644 index 0000000000..0654e1f84a --- /dev/null +++ b/frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type SetUiConfigSchemaFrontendSettings = { + frontendApiOrigins: string[]; +}; diff --git a/frontend/src/openapi/models/sortOrderSchema.ts b/frontend/src/openapi/models/sortOrderSchema.ts new file mode 100644 index 0000000000..b3ed281c2d --- /dev/null +++ b/frontend/src/openapi/models/sortOrderSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface SortOrderSchema { + [key: string]: number; +} diff --git a/frontend/src/openapi/models/splashSchema.ts b/frontend/src/openapi/models/splashSchema.ts new file mode 100644 index 0000000000..702db797ff --- /dev/null +++ b/frontend/src/openapi/models/splashSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface SplashSchema { + userId: number; + splashId: string; + seen: boolean; +} diff --git a/frontend/src/openapi/models/stateSchema.ts b/frontend/src/openapi/models/stateSchema.ts new file mode 100644 index 0000000000..f4d337f872 --- /dev/null +++ b/frontend/src/openapi/models/stateSchema.ts @@ -0,0 +1,33 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { FeatureSchema } from './featureSchema'; +import type { StrategySchema } from './strategySchema'; +import type { TagSchema } from './tagSchema'; +import type { TagTypeSchema } from './tagTypeSchema'; +import type { FeatureTagSchema } from './featureTagSchema'; +import type { ProjectSchema } from './projectSchema'; +import type { FeatureStrategySchema } from './featureStrategySchema'; +import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema'; +import type { EnvironmentSchema } from './environmentSchema'; +import type { SegmentSchema } from './segmentSchema'; +import type { FeatureStrategySegmentSchema } from './featureStrategySegmentSchema'; + +export interface StateSchema { + version: number; + features?: FeatureSchema[]; + strategies?: StrategySchema[]; + tags?: TagSchema[]; + tagTypes?: TagTypeSchema[]; + featureTags?: FeatureTagSchema[]; + projects?: ProjectSchema[]; + featureStrategies?: FeatureStrategySchema[]; + featureEnvironments?: FeatureEnvironmentSchema[]; + environments?: EnvironmentSchema[]; + segments?: SegmentSchema[]; + featureStrategySegments?: FeatureStrategySegmentSchema[]; + [key: string]: any; +} diff --git a/frontend/src/openapi/models/strategiesSchema.ts b/frontend/src/openapi/models/strategiesSchema.ts new file mode 100644 index 0000000000..06337c34a2 --- /dev/null +++ b/frontend/src/openapi/models/strategiesSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { StrategySchema } from './strategySchema'; + +export interface StrategiesSchema { + version: number; + strategies: StrategySchema[]; +} diff --git a/frontend/src/openapi/models/strategySchema.ts b/frontend/src/openapi/models/strategySchema.ts new file mode 100644 index 0000000000..0a07223b19 --- /dev/null +++ b/frontend/src/openapi/models/strategySchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { StrategySchemaParametersItem } from './strategySchemaParametersItem'; + +export interface StrategySchema { + name: string; + displayName: string | null; + description: string; + editable: boolean; + deprecated: boolean; + parameters: StrategySchemaParametersItem[]; +} diff --git a/frontend/src/openapi/models/strategySchemaParametersItem.ts b/frontend/src/openapi/models/strategySchemaParametersItem.ts new file mode 100644 index 0000000000..fe469edfb9 --- /dev/null +++ b/frontend/src/openapi/models/strategySchemaParametersItem.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type StrategySchemaParametersItem = { + name?: string; + type?: string; + description?: string; + required?: boolean; +}; diff --git a/frontend/src/openapi/models/tagSchema.ts b/frontend/src/openapi/models/tagSchema.ts new file mode 100644 index 0000000000..368e6fdc7e --- /dev/null +++ b/frontend/src/openapi/models/tagSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface TagSchema { + value: string; + type: string; +} diff --git a/frontend/src/openapi/models/tagTypeSchema.ts b/frontend/src/openapi/models/tagTypeSchema.ts new file mode 100644 index 0000000000..9abec8bc20 --- /dev/null +++ b/frontend/src/openapi/models/tagTypeSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface TagTypeSchema { + name: string; + description?: string; + icon?: string | null; +} diff --git a/frontend/src/openapi/models/tagTypesSchema.ts b/frontend/src/openapi/models/tagTypesSchema.ts new file mode 100644 index 0000000000..54d98e5766 --- /dev/null +++ b/frontend/src/openapi/models/tagTypesSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { TagTypeSchema } from './tagTypeSchema'; + +export interface TagTypesSchema { + version: number; + tagTypes: TagTypeSchema[]; +} diff --git a/frontend/src/openapi/models/tagWithVersionSchema.ts b/frontend/src/openapi/models/tagWithVersionSchema.ts new file mode 100644 index 0000000000..1d0bd822cb --- /dev/null +++ b/frontend/src/openapi/models/tagWithVersionSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { TagSchema } from './tagSchema'; + +export interface TagWithVersionSchema { + version: number; + tag: TagSchema; +} diff --git a/frontend/src/openapi/models/tagsSchema.ts b/frontend/src/openapi/models/tagsSchema.ts new file mode 100644 index 0000000000..2cc0d98818 --- /dev/null +++ b/frontend/src/openapi/models/tagsSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { TagSchema } from './tagSchema'; + +export interface TagsSchema { + version: number; + tags: TagSchema[]; +} diff --git a/frontend/src/openapi/models/tokenUserSchema.ts b/frontend/src/openapi/models/tokenUserSchema.ts new file mode 100644 index 0000000000..dd1fc5ed35 --- /dev/null +++ b/frontend/src/openapi/models/tokenUserSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { RoleSchema } from './roleSchema'; + +export interface TokenUserSchema { + id: number; + name: string; + email: string; + token: string; + createdBy: string | null; + role: RoleSchema; +} diff --git a/frontend/src/openapi/models/uiConfigSchema.ts b/frontend/src/openapi/models/uiConfigSchema.ts new file mode 100644 index 0000000000..9b7b47dcda --- /dev/null +++ b/frontend/src/openapi/models/uiConfigSchema.ts @@ -0,0 +1,29 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UiConfigSchemaFlags } from './uiConfigSchemaFlags'; +import type { UiConfigSchemaLinksItem } from './uiConfigSchemaLinksItem'; +import type { UiConfigSchemaAuthenticationType } from './uiConfigSchemaAuthenticationType'; +import type { VersionSchema } from './versionSchema'; + +export interface UiConfigSchema { + slogan?: string; + name?: string; + version: string; + environment?: string; + unleashUrl: string; + baseUriPath: string; + disablePasswordAuth?: boolean; + emailEnabled?: boolean; + maintenanceMode?: boolean; + segmentValuesLimit?: number; + strategySegmentsLimit?: number; + frontendApiOrigins?: string[]; + flags?: UiConfigSchemaFlags; + links?: UiConfigSchemaLinksItem[]; + authenticationType?: UiConfigSchemaAuthenticationType; + versionInfo: VersionSchema; +} diff --git a/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts b/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts new file mode 100644 index 0000000000..0298a5096a --- /dev/null +++ b/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type UiConfigSchemaAuthenticationType = + typeof UiConfigSchemaAuthenticationType[keyof typeof UiConfigSchemaAuthenticationType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const UiConfigSchemaAuthenticationType = { + 'open-source': 'open-source', + demo: 'demo', + enterprise: 'enterprise', + hosted: 'hosted', + custom: 'custom', + none: 'none', +} as const; diff --git a/frontend/src/openapi/models/uiConfigSchemaFlags.ts b/frontend/src/openapi/models/uiConfigSchemaFlags.ts new file mode 100644 index 0000000000..82b7b67893 --- /dev/null +++ b/frontend/src/openapi/models/uiConfigSchemaFlags.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type UiConfigSchemaFlags = { [key: string]: boolean }; diff --git a/frontend/src/openapi/models/uiConfigSchemaLinksItem.ts b/frontend/src/openapi/models/uiConfigSchemaLinksItem.ts new file mode 100644 index 0000000000..4ca2fe3220 --- /dev/null +++ b/frontend/src/openapi/models/uiConfigSchemaLinksItem.ts @@ -0,0 +1,8 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type UiConfigSchemaLinksItem = { [key: string]: any }; diff --git a/frontend/src/openapi/models/updateApiTokenSchema.ts b/frontend/src/openapi/models/updateApiTokenSchema.ts new file mode 100644 index 0000000000..c4058b50b7 --- /dev/null +++ b/frontend/src/openapi/models/updateApiTokenSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UpdateApiTokenSchema { + expiresAt: string; +} diff --git a/frontend/src/openapi/models/updateChangeRequestEnvironmentConfigSchema.ts b/frontend/src/openapi/models/updateChangeRequestEnvironmentConfigSchema.ts new file mode 100644 index 0000000000..094df0a9d2 --- /dev/null +++ b/frontend/src/openapi/models/updateChangeRequestEnvironmentConfigSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UpdateChangeRequestEnvironmentConfigSchema { + changeRequestsEnabled: boolean; + requiredApprovals?: number; +} diff --git a/frontend/src/openapi/models/updateEnvironmentSchema.ts b/frontend/src/openapi/models/updateEnvironmentSchema.ts new file mode 100644 index 0000000000..1c89cdcf8f --- /dev/null +++ b/frontend/src/openapi/models/updateEnvironmentSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UpdateEnvironmentSchema { + /** Updates the type of environment (i.e. development or production). */ + type?: string; + /** Changes the sort order of this environment. */ + sortOrder?: number; +} diff --git a/frontend/src/openapi/models/updateFeatureSchema.ts b/frontend/src/openapi/models/updateFeatureSchema.ts new file mode 100644 index 0000000000..fc90d8debe --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; + +export interface UpdateFeatureSchema { + name: string; + description?: string; + type?: string; + stale?: boolean; + archived?: boolean; + createdAt?: string; + impressionData?: boolean; + constraints?: ConstraintSchema[]; +} diff --git a/frontend/src/openapi/models/updateFeatureStrategySchema.ts b/frontend/src/openapi/models/updateFeatureStrategySchema.ts new file mode 100644 index 0000000000..19a09096e5 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategySchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; +import type { ParametersSchema } from './parametersSchema'; + +export interface UpdateFeatureStrategySchema { + name?: string; + sortOrder?: number; + constraints?: ConstraintSchema[]; + parameters?: ParametersSchema; +} diff --git a/frontend/src/openapi/models/updateFeatureStrategySegmentsSchema.ts b/frontend/src/openapi/models/updateFeatureStrategySegmentsSchema.ts new file mode 100644 index 0000000000..c83b679f50 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategySegmentsSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UpdateFeatureStrategySegmentsSchema { + projectId: string; + strategyId: string; + environmentId: string; + segmentIds: number[]; +} diff --git a/frontend/src/openapi/models/updateProjectSchema.ts b/frontend/src/openapi/models/updateProjectSchema.ts new file mode 100644 index 0000000000..995f4ed524 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UpdateProjectSchema { + name: string; + description?: string; +} diff --git a/frontend/src/openapi/models/updateTagTypeSchema.ts b/frontend/src/openapi/models/updateTagTypeSchema.ts new file mode 100644 index 0000000000..d456d48cbc --- /dev/null +++ b/frontend/src/openapi/models/updateTagTypeSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UpdateTagTypeSchema { + description?: string; + icon?: string; +} diff --git a/frontend/src/openapi/models/updateUserSchema.ts b/frontend/src/openapi/models/updateUserSchema.ts new file mode 100644 index 0000000000..ffd4fcb288 --- /dev/null +++ b/frontend/src/openapi/models/updateUserSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UpdateUserSchema { + email?: string; + name?: string; + rootRole?: number; + [key: string]: any; +} diff --git a/frontend/src/openapi/models/upsertContextFieldSchema.ts b/frontend/src/openapi/models/upsertContextFieldSchema.ts new file mode 100644 index 0000000000..92dca59d21 --- /dev/null +++ b/frontend/src/openapi/models/upsertContextFieldSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { LegalValueSchema } from './legalValueSchema'; + +export interface UpsertContextFieldSchema { + name: string; + description?: string; + stickiness?: boolean; + sortOrder?: number; + legalValues?: LegalValueSchema[]; +} diff --git a/frontend/src/openapi/models/upsertSegmentSchema.ts b/frontend/src/openapi/models/upsertSegmentSchema.ts new file mode 100644 index 0000000000..61e331caa9 --- /dev/null +++ b/frontend/src/openapi/models/upsertSegmentSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ConstraintSchema } from './constraintSchema'; + +export interface UpsertSegmentSchema { + name: string; + description?: string | null; + constraints: ConstraintSchema[]; +} diff --git a/frontend/src/openapi/models/upsertStrategySchema.ts b/frontend/src/openapi/models/upsertStrategySchema.ts new file mode 100644 index 0000000000..4fd92dd63b --- /dev/null +++ b/frontend/src/openapi/models/upsertStrategySchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UpsertStrategySchemaParametersItem } from './upsertStrategySchemaParametersItem'; + +export interface UpsertStrategySchema { + name: string; + description?: string; + editable?: boolean; + parameters?: UpsertStrategySchemaParametersItem[]; +} diff --git a/frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts b/frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts new file mode 100644 index 0000000000..45b26b9f60 --- /dev/null +++ b/frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type UpsertStrategySchemaParametersItem = { + name?: string; + type?: string; + description?: string; + required?: boolean; +}; diff --git a/frontend/src/openapi/models/userSchema.ts b/frontend/src/openapi/models/userSchema.ts new file mode 100644 index 0000000000..e106ecda0c --- /dev/null +++ b/frontend/src/openapi/models/userSchema.ts @@ -0,0 +1,21 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UserSchema { + id: number; + isAPI?: boolean; + name?: string; + email?: string; + username?: string; + imageUrl?: string; + inviteLink?: string; + loginAttempts?: number; + emailSent?: boolean; + rootRole?: number; + seenAt?: string | null; + createdAt?: string; +} diff --git a/frontend/src/openapi/models/userWithProjectRoleSchema.ts b/frontend/src/openapi/models/userWithProjectRoleSchema.ts new file mode 100644 index 0000000000..856d420fa1 --- /dev/null +++ b/frontend/src/openapi/models/userWithProjectRoleSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface UserWithProjectRoleSchema { + isAPI: boolean; + name?: string; + email?: string | null; + id: number; + imageUrl?: string | null; + addedAt?: string; + roleId?: number; +} diff --git a/frontend/src/openapi/models/usersGroupsBaseSchema.ts b/frontend/src/openapi/models/usersGroupsBaseSchema.ts new file mode 100644 index 0000000000..d1ee8b2d08 --- /dev/null +++ b/frontend/src/openapi/models/usersGroupsBaseSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { GroupSchema } from './groupSchema'; +import type { UserSchema } from './userSchema'; + +export interface UsersGroupsBaseSchema { + groups?: GroupSchema[]; + users?: UserSchema[]; +} diff --git a/frontend/src/openapi/models/usersSchema.ts b/frontend/src/openapi/models/usersSchema.ts new file mode 100644 index 0000000000..123c11cf8f --- /dev/null +++ b/frontend/src/openapi/models/usersSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UserSchema } from './userSchema'; +import type { RoleSchema } from './roleSchema'; + +export interface UsersSchema { + users: UserSchema[]; + rootRoles?: RoleSchema[]; +} diff --git a/frontend/src/openapi/models/usersSearchSchema.ts b/frontend/src/openapi/models/usersSearchSchema.ts new file mode 100644 index 0000000000..99942254af --- /dev/null +++ b/frontend/src/openapi/models/usersSearchSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { UserSchema } from './userSchema'; + +export type UsersSearchSchema = UserSchema[]; diff --git a/frontend/src/openapi/models/validateEdgeTokensSchema.ts b/frontend/src/openapi/models/validateEdgeTokensSchema.ts new file mode 100644 index 0000000000..6264549fb8 --- /dev/null +++ b/frontend/src/openapi/models/validateEdgeTokensSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { ValidateEdgeTokensSchemaTokensItem } from './validateEdgeTokensSchemaTokensItem'; + +export interface ValidateEdgeTokensSchema { + tokens: ValidateEdgeTokensSchemaTokensItem[]; +} diff --git a/frontend/src/openapi/models/validateEdgeTokensSchemaTokensItem.ts b/frontend/src/openapi/models/validateEdgeTokensSchemaTokensItem.ts new file mode 100644 index 0000000000..a3b2686267 --- /dev/null +++ b/frontend/src/openapi/models/validateEdgeTokensSchemaTokensItem.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { EdgeTokenSchema } from './edgeTokenSchema'; + +export type ValidateEdgeTokensSchemaTokensItem = EdgeTokenSchema | string; diff --git a/frontend/src/openapi/models/validatePasswordSchema.ts b/frontend/src/openapi/models/validatePasswordSchema.ts new file mode 100644 index 0000000000..c83e07a2f8 --- /dev/null +++ b/frontend/src/openapi/models/validatePasswordSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ValidatePasswordSchema { + password: string; +} diff --git a/frontend/src/openapi/models/validateProjectSchema.ts b/frontend/src/openapi/models/validateProjectSchema.ts new file mode 100644 index 0000000000..1e73a6aecc --- /dev/null +++ b/frontend/src/openapi/models/validateProjectSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export interface ValidateProjectSchema { + id: string; +} diff --git a/frontend/src/openapi/models/validateTagTypeSchema.ts b/frontend/src/openapi/models/validateTagTypeSchema.ts new file mode 100644 index 0000000000..558ebe9ca2 --- /dev/null +++ b/frontend/src/openapi/models/validateTagTypeSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { TagTypeSchema } from './tagTypeSchema'; + +export interface ValidateTagTypeSchema { + valid: boolean; + tagType: TagTypeSchema; +} diff --git a/frontend/src/openapi/models/variantSchema.ts b/frontend/src/openapi/models/variantSchema.ts new file mode 100644 index 0000000000..336aa87168 --- /dev/null +++ b/frontend/src/openapi/models/variantSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { VariantSchemaPayload } from './variantSchemaPayload'; +import type { OverrideSchema } from './overrideSchema'; + +export interface VariantSchema { + name: string; + weight: number; + weightType?: string; + stickiness?: string; + payload?: VariantSchemaPayload; + overrides?: OverrideSchema[]; +} diff --git a/frontend/src/openapi/models/variantSchemaPayload.ts b/frontend/src/openapi/models/variantSchemaPayload.ts new file mode 100644 index 0000000000..eb160c586e --- /dev/null +++ b/frontend/src/openapi/models/variantSchemaPayload.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type VariantSchemaPayload = { + type: string; + value: string; +}; diff --git a/frontend/src/openapi/models/variantsSchema.ts b/frontend/src/openapi/models/variantsSchema.ts new file mode 100644 index 0000000000..f76a6e699b --- /dev/null +++ b/frontend/src/openapi/models/variantsSchema.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { VariantSchema } from './variantSchema'; + +export type VariantsSchema = VariantSchema[]; diff --git a/frontend/src/openapi/models/versionSchema.ts b/frontend/src/openapi/models/versionSchema.ts new file mode 100644 index 0000000000..d82507cb39 --- /dev/null +++ b/frontend/src/openapi/models/versionSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ +import type { VersionSchemaCurrent } from './versionSchemaCurrent'; +import type { VersionSchemaLatest } from './versionSchemaLatest'; + +export interface VersionSchema { + current: VersionSchemaCurrent; + latest: VersionSchemaLatest; + isLatest: boolean; + instanceId: string; +} diff --git a/frontend/src/openapi/models/versionSchemaCurrent.ts b/frontend/src/openapi/models/versionSchemaCurrent.ts new file mode 100644 index 0000000000..2be967d55f --- /dev/null +++ b/frontend/src/openapi/models/versionSchemaCurrent.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type VersionSchemaCurrent = { + oss?: string; + enterprise?: string; +}; diff --git a/frontend/src/openapi/models/versionSchemaLatest.ts b/frontend/src/openapi/models/versionSchemaLatest.ts new file mode 100644 index 0000000000..0bd0d63c2f --- /dev/null +++ b/frontend/src/openapi/models/versionSchemaLatest.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.10.3 🍺 + * Do not edit manually. + * Unleash API + * OpenAPI spec version: 4.20.0-beta.1 + */ + +export type VersionSchemaLatest = { + oss?: string; + enterprise?: string; +}; diff --git a/frontend/src/openapi/runtime.ts b/frontend/src/openapi/runtime.ts deleted file mode 100644 index 73fce340b5..0000000000 --- a/frontend/src/openapi/runtime.ts +++ /dev/null @@ -1,369 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Unleash API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 4.11.0-beta.2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export const BASE_PATH = "http://localhost:4242".replace(/\/+$/, ""); - -export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: string | ((name: string) => string); // parameter for apiKey security - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request -} - -export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} - - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } - - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } -} - -export const DefaultConfig = new Configuration(); - -/** - * This is the base class for all generated API classes. - */ -export class BaseAPI { - - private middleware: Middleware[]; - - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } - - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware(this: T, ...preMiddlewares: Array) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware(this: T, ...postMiddlewares: Array) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverideFunction): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response.status >= 200 && response.status < 300) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - - private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverideFunction) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overridedInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - } - - const init: RequestInit = { - ...overridedInit, - body: - isFormData(overridedInit.body) || - overridedInit.body instanceof URLSearchParams || - isBlob(overridedInit.body) - ? overridedInit.body - : JSON.stringify(overridedInit.body), - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - } - - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -}; - -function isBlob(value: any): value is Blob { - return typeof Blob !== 'undefined' && value instanceof Blob -} - -function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData -} - -export class ResponseError extends Error { - name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { - super(msg); - } -} - -export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} - -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; - -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody } -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; - -export type InitOverideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise - -export interface FetchParams { - url: string; - init: RequestInit; -} - -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} - -export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; -} - -export function querystring(params: HTTPQuery, prefix: string = ''): string { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} - -function querystringSingleKey(key: string, value: string | number | null | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} - -export function mapValues(data: any, fn: (item: any) => any) { - return Object.keys(data).reduce( - (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {} - ); -} - -export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} - -export interface Consume { - contentType: string -} - -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} - -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} - -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; -} - -export interface ApiResponse { - raw: Response; - value(): Promise; -} - -export interface ResponseTransformer { - (json: any): T; -} - -export class JSONApiResponse { - constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} - - async value(): Promise { - return this.transformer(await this.raw.json()); - } -} - -export class VoidApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return undefined; - } -} - -export class BlobApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.blob(); - }; -} - -export class TextApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.text(); - }; -} diff --git a/frontend/src/utils/openapiClient.ts b/frontend/src/utils/openapiClient.ts deleted file mode 100644 index 992ec2d9f3..0000000000 --- a/frontend/src/utils/openapiClient.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Configuration, AdminApi } from 'openapi'; -import { basePath } from 'utils/formatPath'; - -const createAdminApi = (): AdminApi => { - return new AdminApi( - new Configuration({ - basePath, - }) - ); -}; - -export const openApiAdmin = createAdminApi(); diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json index 2f26759a16..e993792cb1 100644 --- a/frontend/tsconfig.node.json +++ b/frontend/tsconfig.node.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "composite": true, - "module": "esnext", - "moduleResolution": "node" + "composite": true, + "module": "esnext", + "moduleResolution": "node" }, "include": ["vite.config.ts"] } diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 453f1aa5df..989622493d 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -15,6 +15,43 @@ "@jridgewell/gen-mapping" "^0.1.0" "@jridgewell/trace-mapping" "^0.3.9" +"@apidevtools/json-schema-ref-parser@9.0.6": + version "9.0.6" + resolved "https://registry.yarnpkg.com/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz#5d9000a3ac1fd25404da886da6b266adcd99cf1c" + integrity sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg== + dependencies: + "@jsdevtools/ono" "^7.1.3" + call-me-maybe "^1.0.1" + js-yaml "^3.13.1" + +"@apidevtools/openapi-schemas@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz#9fa08017fb59d80538812f03fc7cac5992caaa17" + integrity sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ== + +"@apidevtools/swagger-methods@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz#b789a362e055b0340d04712eafe7027ddc1ac267" + integrity sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg== + +"@apidevtools/swagger-parser@^10.1.0": + version "10.1.0" + resolved "https://registry.yarnpkg.com/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz#a987d71e5be61feb623203be0c96e5985b192ab6" + integrity sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw== + dependencies: + "@apidevtools/json-schema-ref-parser" "9.0.6" + "@apidevtools/openapi-schemas" "^2.1.0" + "@apidevtools/swagger-methods" "^3.0.2" + "@jsdevtools/ono" "^7.1.3" + ajv "^8.6.3" + ajv-draft-04 "^1.0.0" + call-me-maybe "^1.0.1" + +"@asyncapi/specs@^3.2.0": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@asyncapi/specs/-/specs-3.2.1.tgz#b0dfe054154d3a6bb89f2ba23ea6379a754875d0" + integrity sha512-FO+EteK+Gk3zwumrBw6frpp9cJ4oQL5++hBBpfM81w16e9KaiA4sKrzvQsvVjifoZZHNvVEX4D2zoz9i8CLccQ== + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" @@ -1750,6 +1787,11 @@ resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.16.4.tgz#4b31b9e3da2e4c12a8170bd682f713c775f68ab1" integrity sha512-VPuTzXFm/m2fcGfN6CiwZTlLzxrKsWbPkG7ArRFpuxyaHUm/XFHQPD4xNwZT6uUmpIHhnSjcaCmcla8COzmZ5Q== +"@esbuild/android-arm@0.15.18": + version "0.15.18" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.15.18.tgz#266d40b8fdcf87962df8af05b76219bc786b4f80" + integrity sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw== + "@esbuild/android-arm@0.16.4": version "0.16.4" resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.16.4.tgz#057d3e8b0ee41ff59386c33ba6dcf20f4bedd1f7" @@ -1795,6 +1837,11 @@ resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.16.4.tgz#117e32a9680b5deac184ebee122f8575369fad1b" integrity sha512-uxdSrpe9wFhz4yBwt2kl2TxS/NWEINYBUFIxQtaEVtglm1eECvsj1vEKI0KX2k2wCe17zDdQ3v+jVxfwVfvvjw== +"@esbuild/linux-loong64@0.15.18": + version "0.15.18" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.18.tgz#128b76ecb9be48b60cf5cfc1c63a4f00691a3239" + integrity sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ== + "@esbuild/linux-loong64@0.16.4": version "0.16.4" resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.16.4.tgz#dd504fb83c280752d4b485d9acb3cf391cb7bf5b" @@ -1870,6 +1917,11 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@exodus/schemasafe@^1.0.0-rc.2": + version "1.0.0-rc.9" + resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.0.0-rc.9.tgz#56b9c6df627190f2dcda15f81f25d68826d9be4d" + integrity sha512-dGGHpb61hLwifAu7sotuHFDBw6GTdpG8aKC0fsK17EuTzMRvUrH7lEAr6LTJ+sx3AZYed9yZ77rltVDHyg2hRg== + "@humanwhocodes/config-array@^0.11.8": version "0.11.8" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9" @@ -1889,6 +1941,16 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@ibm-cloud/openapi-ruleset@0.37.3": + version "0.37.3" + resolved "https://registry.yarnpkg.com/@ibm-cloud/openapi-ruleset/-/openapi-ruleset-0.37.3.tgz#b7916359d860c5cc4af571d69b65d655b5334787" + integrity sha512-saQM/1YTfhW7ou/mtmC4BMUhW/UM54aD47KBZucjrZLvAelzt8Lykm5zeN59Cu4cs/LBDEcvJfyZzDpPhdcVjQ== + dependencies: + "@stoplight/spectral-formats" "^1.1.0" + "@stoplight/spectral-functions" "^1.6.1" + "@stoplight/spectral-rulesets" "^1.6.0" + lodash "^4.17.21" + "@jest/expect-utils@^29.2.2": version "29.2.2" resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.2.2.tgz#460a5b5a3caf84d4feb2668677393dd66ff98665" @@ -1965,6 +2027,21 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@jsdevtools/ono@^7.1.3": + version "7.1.3" + resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" + integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== + +"@jsep-plugin/regex@^1.0.1": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@jsep-plugin/regex/-/regex-1.0.3.tgz#3aeaa2e5fa45d89de116aeafbfa41c95935b7f6d" + integrity sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug== + +"@jsep-plugin/ternary@^1.0.2": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@jsep-plugin/ternary/-/ternary-1.1.3.tgz#9ac0b752b9e99f55d23bfcb32cf08c5c2c03ce67" + integrity sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg== + "@lezer/common@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.0.0.tgz#1c95ae53ec17706aa3cbcc88b52c23f22ed56096" @@ -2121,29 +2198,6 @@ prop-types "^15.8.1" react-is "^18.2.0" -"@nestjs/common@8.4.4": - version "8.4.4" - resolved "https://registry.yarnpkg.com/@nestjs/common/-/common-8.4.4.tgz#0914c6c0540b5a344c7c8fd6072faa1a49af1158" - integrity sha512-QHi7QcgH/5Jinz+SCfIZJkFHc6Cch1YsAEGFEhi6wSp6MILb0sJMQ1CX06e9tCOAjSlBwaJj4PH0eFCVau5v9Q== - dependencies: - axios "0.26.1" - iterare "1.2.1" - tslib "2.3.1" - uuid "8.3.2" - -"@nestjs/core@8.4.4": - version "8.4.4" - resolved "https://registry.yarnpkg.com/@nestjs/core/-/core-8.4.4.tgz#94fd2d63fd77791f616fbecafb79faa2235eeeff" - integrity sha512-Ef3yJPuzAttpNfehnGqIV5kHIL9SHptB5F4ERxoU7pT61H3xiYpZw6hSjx68cJO7cc6rm7/N+b4zeuJvFHtvBg== - dependencies: - "@nuxtjs/opencollective" "0.3.2" - fast-safe-stringify "2.1.1" - iterare "1.2.1" - object-hash "3.0.0" - path-to-regexp "3.2.0" - tslib "2.3.1" - uuid "8.3.2" - "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -2165,41 +2219,11 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@nuxtjs/opencollective@0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz#620ce1044f7ac77185e825e1936115bb38e2681c" - integrity sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA== - dependencies: - chalk "^4.1.0" - consola "^2.15.0" - node-fetch "^2.6.1" - "@open-draft/until@^1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-1.0.3.tgz#db9cc719191a62e7d9200f6e7bab21c5b848adca" integrity sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q== -"@openapitools/openapi-generator-cli@2.5.2": - version "2.5.2" - resolved "https://registry.yarnpkg.com/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.5.2.tgz#727a0f29fec1f91ffb467003d0d12ef35554e0ef" - integrity sha512-FLgkjzpDiHVsH821db0VDSElDoA6TcspGyq3RD4zLBJaJhbSsRwr4u87sNoyuHKBg4OMJbZMT4iJxAhkosKrzw== - dependencies: - "@nestjs/common" "8.4.4" - "@nestjs/core" "8.4.4" - "@nuxtjs/opencollective" "0.3.2" - chalk "4.1.2" - commander "8.3.0" - compare-versions "4.1.3" - concurrently "6.5.1" - console.table "0.10.0" - fs-extra "10.0.1" - glob "7.1.6" - inquirer "8.2.2" - lodash "4.17.21" - reflect-metadata "0.1.13" - rxjs "7.5.5" - tslib "2.0.3" - "@popperjs/core@^2.11.6": version "2.11.6" resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.6.tgz#cee20bd55e68a1720bdab363ecf0c821ded4cd45" @@ -2210,6 +2234,28 @@ resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.2.1.tgz#812edd4104a15a493dda1ccac0b352270d7a188c" integrity sha512-XiY0IsyHR+DXYS5vBxpoBe/8veTeoRpMHP+vDosLZxL5bnpetzI0igkxkLZS235ldLzyfkxF+2divEwWHP3vMQ== +"@rollup/plugin-commonjs@~22.0.2": + version "22.0.2" + resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.2.tgz#ee8ca8415cda30d383b4096aad5222435b4b69b6" + integrity sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg== + dependencies: + "@rollup/pluginutils" "^3.1.0" + commondir "^1.0.1" + estree-walker "^2.0.1" + glob "^7.1.6" + is-reference "^1.2.1" + magic-string "^0.25.7" + resolve "^1.17.0" + +"@rollup/pluginutils@^3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" + integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== + dependencies: + "@types/estree" "0.0.39" + estree-walker "^1.0.1" + picomatch "^2.2.2" + "@rollup/pluginutils@^5.0.2": version "5.0.2" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.0.2.tgz#012b8f53c71e4f6f9cb317e311df1404f56e7a33" @@ -2229,6 +2275,288 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.22.tgz#0da18e6e75701d6609c7c68fe18002bb1f47345f" integrity sha512-JsBe3cOFpNZ6yjBYnXKhcENWy5qZE3PQZwExQ5ksA/h8qp4bwwxFmy07A6bC2R6qv6+RF3SfrbQTskTwYNTXUQ== +"@stoplight/better-ajv-errors@1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz#d74a5c4da5d786c17188d7f4edec505f089885fa" + integrity sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA== + dependencies: + jsonpointer "^5.0.0" + leven "^3.1.0" + +"@stoplight/json-ref-readers@1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz#e5992bae597f228f988f362a4c0304c03a92008b" + integrity sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ== + dependencies: + node-fetch "^2.6.0" + tslib "^1.14.1" + +"@stoplight/json-ref-resolver@~3.1.4", "@stoplight/json-ref-resolver@~3.1.5": + version "3.1.5" + resolved "https://registry.yarnpkg.com/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.5.tgz#e4454a69027559ef3f7272941e99310a19dc8fdf" + integrity sha512-uaKLITor7UF+JBtI84zs3aOWM0L79zp7w9TrBTwPtx5SLbaQQ4HadDKgX5yhFOLMApLdhwhiftF4c0GFanOxGg== + dependencies: + "@stoplight/json" "^3.17.0" + "@stoplight/path" "^1.3.2" + "@stoplight/types" "^12.3.0 || ^13.0.0" + "@types/urijs" "^1.19.19" + dependency-graph "~0.11.0" + fast-memoize "^2.5.2" + immer "^9.0.6" + lodash "^4.17.21" + tslib "^2.3.1" + urijs "^1.19.11" + +"@stoplight/json@^3.17.0", "@stoplight/json@^3.17.1", "@stoplight/json@~3.20.1": + version "3.20.1" + resolved "https://registry.yarnpkg.com/@stoplight/json/-/json-3.20.1.tgz#a500c5a0ef3232ec3b2fd36c4456b28085d919ae" + integrity sha512-FXfud+uWgIj1xv6nUO9WnmgmnVikaxJcbtR4XQt4C42n5c2qua3U05Z/3B57hP5TJRSj+tpn9ID6/bFeyYYlEg== + dependencies: + "@stoplight/ordered-object-literal" "^1.0.3" + "@stoplight/path" "^1.3.2" + "@stoplight/types" "^13.6.0" + jsonc-parser "~2.2.1" + lodash "^4.17.21" + safe-stable-stringify "^1.1" + +"@stoplight/ordered-object-literal@^1.0.1", "@stoplight/ordered-object-literal@^1.0.3", "@stoplight/ordered-object-literal@~1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.4.tgz#c8bb2698ab229f31e31a16dd1852c867c1f2f2ed" + integrity sha512-OF8uib1jjDs5/cCU+iOVy+GJjU3X7vk/qJIkIJFqwmlJKrrtijFmqwbu8XToXrwTYLQTP+Hebws5gtZEmk9jag== + +"@stoplight/path@1.3.2", "@stoplight/path@^1.3.2": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@stoplight/path/-/path-1.3.2.tgz#96e591496b72fde0f0cdae01a61d64f065bd9ede" + integrity sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ== + +"@stoplight/spectral-cli@^6.4.2": + version "6.6.0" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-cli/-/spectral-cli-6.6.0.tgz#6a8cb630bb14408c9ace955ad51fb05049db0fba" + integrity sha512-z46fnrvraaWMio8Y9RYYkLO+XdmtxOWpy5qNJF3CsmWua0FZ4iOTryb5Cm3GkB0wEtqxNUCBUHvoo4hS6Noyqg== + dependencies: + "@stoplight/json" "~3.20.1" + "@stoplight/path" "1.3.2" + "@stoplight/spectral-core" "^1.15.1" + "@stoplight/spectral-parsers" "^1.0.2" + "@stoplight/spectral-ref-resolver" "1.0.2" + "@stoplight/spectral-ruleset-bundler" "^1.4.0" + "@stoplight/spectral-ruleset-migrator" "^1.9.0" + "@stoplight/spectral-rulesets" ">=1" + "@stoplight/spectral-runtime" "^1.1.2" + "@stoplight/types" "^13.6.0" + chalk "4.1.2" + cliui "7.0.4" + eol "0.9.1" + fast-glob "3.2.7" + lodash "~4.17.21" + pony-cause "^1.0.0" + proxy-agent "5.0.0" + stacktracey "^2.1.7" + strip-ansi "6.0" + text-table "0.2" + tslib "^2.3.0" + yargs "17.3.1" + +"@stoplight/spectral-core@>=1", "@stoplight/spectral-core@^1.12.4", "@stoplight/spectral-core@^1.15.1", "@stoplight/spectral-core@^1.7.0", "@stoplight/spectral-core@^1.8.0", "@stoplight/spectral-core@^1.8.1": + version "1.16.0" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-core/-/spectral-core-1.16.0.tgz#32c663daaa7f2639bc1d83797f8d1d3901752995" + integrity sha512-W/NG+wV2UffwLExboqEa04/JbjGhiSTOl7GghLWYP4NKxZGaO6karP6fIxRBOnm34n1qyoZv9thsjSe92MWcDw== + dependencies: + "@stoplight/better-ajv-errors" "1.0.3" + "@stoplight/json" "~3.20.1" + "@stoplight/path" "1.3.2" + "@stoplight/spectral-parsers" "^1.0.0" + "@stoplight/spectral-ref-resolver" "^1.0.0" + "@stoplight/spectral-runtime" "^1.0.0" + "@stoplight/types" "~13.6.0" + "@types/es-aggregate-error" "^1.0.2" + "@types/json-schema" "^7.0.11" + ajv "^8.6.0" + ajv-errors "~3.0.0" + ajv-formats "~2.1.0" + es-aggregate-error "^1.0.7" + jsonpath-plus "7.1.0" + lodash "~4.17.21" + lodash.topath "^4.5.2" + minimatch "3.1.2" + nimma "0.2.2" + pony-cause "^1.0.0" + simple-eval "1.0.0" + tslib "^2.3.0" + +"@stoplight/spectral-formats@>=1", "@stoplight/spectral-formats@^1.0.0", "@stoplight/spectral-formats@^1.1.0", "@stoplight/spectral-formats@^1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-formats/-/spectral-formats-1.4.0.tgz#104e49f305914f1645496fe7ea3848a416fec5b3" + integrity sha512-j9VQukDzgqDSi26rK9LqsbXrqtkeIsPSPgEf5/sxRsmeF2bwWUhSjYXgYin4flSZ7owFZjZWQ3o0Qq3iApi2JQ== + dependencies: + "@stoplight/json" "^3.17.0" + "@stoplight/spectral-core" "^1.8.0" + "@types/json-schema" "^7.0.7" + tslib "^2.3.1" + +"@stoplight/spectral-functions@>=1", "@stoplight/spectral-functions@^1.0.0", "@stoplight/spectral-functions@^1.5.1", "@stoplight/spectral-functions@^1.6.1": + version "1.7.2" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-functions/-/spectral-functions-1.7.2.tgz#96ddc5dc2b093fba41a902a0ef374300f861f58f" + integrity sha512-f+61/FtIkQeIo+a269CeaeqjpyRsgDyIk6DGr7iS4hyuk1PPk7Uf6MNRDs9FEIBh7CpdEJ+HSHbMLwgpymWTIw== + dependencies: + "@stoplight/better-ajv-errors" "1.0.3" + "@stoplight/json" "^3.17.1" + "@stoplight/spectral-core" "^1.7.0" + "@stoplight/spectral-formats" "^1.0.0" + "@stoplight/spectral-runtime" "^1.1.0" + ajv "^8.6.3" + ajv-draft-04 "~1.0.0" + ajv-errors "~3.0.0" + ajv-formats "~2.1.0" + lodash "~4.17.21" + tslib "^2.3.0" + +"@stoplight/spectral-parsers@>=1", "@stoplight/spectral-parsers@^1.0.0", "@stoplight/spectral-parsers@^1.0.1", "@stoplight/spectral-parsers@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz#2411ff5499ad351414ed8e0ea32f1f24efebb49c" + integrity sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw== + dependencies: + "@stoplight/json" "~3.20.1" + "@stoplight/types" "^13.6.0" + "@stoplight/yaml" "~4.2.3" + tslib "^2.3.1" + +"@stoplight/spectral-ref-resolver@1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.2.tgz#acae9511e17a4da97ecca48c005a4475d24fe76b" + integrity sha512-ah6NIB/O1EdEaEu89So3LmtbKRXPVnSElgQ7oBRE9S4/VOedSqyXn+qqMd40tGnO2CsKgZaFUYXdSEHOshpHYw== + dependencies: + "@stoplight/json-ref-readers" "1.2.2" + "@stoplight/json-ref-resolver" "~3.1.4" + "@stoplight/spectral-runtime" "^1.1.2" + dependency-graph "0.11.0" + tslib "^2.3.1" + +"@stoplight/spectral-ref-resolver@>=1", "@stoplight/spectral-ref-resolver@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.3.tgz#6754f212c27723af7a438129d47f941184a21edd" + integrity sha512-pj+bH4SH8hcWlnV787WD7P0/En7LA3EfZMvG1JUGMW/7bFd9AaZZXNkh5j0ve8qnPlwP8F4SH/2Cnr1tXOXCVw== + dependencies: + "@stoplight/json-ref-readers" "1.2.2" + "@stoplight/json-ref-resolver" "~3.1.5" + "@stoplight/spectral-runtime" "^1.1.2" + dependency-graph "0.11.0" + tslib "^2.3.1" + +"@stoplight/spectral-ruleset-bundler@^1.4.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-ruleset-bundler/-/spectral-ruleset-bundler-1.5.0.tgz#88afb93927f60f020fc63a31b04ee571ddd938a5" + integrity sha512-I1ZbhnJtRTi0lG6oXA1r8J6KLxoZKkNB3aSdrNJJTHoo/AccMSMhV4ey8zbLsYNsJ/9ywR5ttkBAbyGuo3Jtxg== + dependencies: + "@rollup/plugin-commonjs" "~22.0.2" + "@stoplight/path" "1.3.2" + "@stoplight/spectral-core" ">=1" + "@stoplight/spectral-formats" ">=1" + "@stoplight/spectral-functions" ">=1" + "@stoplight/spectral-parsers" ">=1" + "@stoplight/spectral-ref-resolver" ">=1" + "@stoplight/spectral-ruleset-migrator" "^1.7.4" + "@stoplight/spectral-rulesets" ">=1" + "@stoplight/spectral-runtime" "^1.1.0" + "@stoplight/types" "^13.6.0" + "@types/node" "*" + pony-cause "1.1.1" + rollup "~2.79.0" + tslib "^2.3.1" + validate-npm-package-name "3.0.0" + +"@stoplight/spectral-ruleset-migrator@^1.7.4", "@stoplight/spectral-ruleset-migrator@^1.9.0": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-ruleset-migrator/-/spectral-ruleset-migrator-1.9.1.tgz#3a927b77e37a075978756b42e14e4af8f0945939" + integrity sha512-TiH7UZIuHX+yb6EsWA9Z2ou455Wtki3z7SCkVRgd7WdzkD7O13R8ywqKoCUJ44UP7iuo1Ejnog18Rw4qJJE/fg== + dependencies: + "@stoplight/json" "~3.20.1" + "@stoplight/ordered-object-literal" "~1.0.4" + "@stoplight/path" "1.3.2" + "@stoplight/spectral-functions" "^1.0.0" + "@stoplight/spectral-runtime" "^1.1.0" + "@stoplight/types" "^13.6.0" + "@stoplight/yaml" "~4.2.3" + "@types/node" "*" + ajv "^8.6.0" + ast-types "0.14.2" + astring "^1.7.5" + reserved "0.1.2" + tslib "^2.3.1" + validate-npm-package-name "3.0.0" + +"@stoplight/spectral-rulesets@>=1", "@stoplight/spectral-rulesets@^1.6.0": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-rulesets/-/spectral-rulesets-1.14.1.tgz#46f56be71f129c46d307b8b2fde08a8e5f5937b4" + integrity sha512-tn6a5fYPFDwEY+/YyK/hcq2gcR5nSIBt7l+JGELb/2RdTzD5ikj2mfl2ua3uxbqOZytftFoOX5ewGZ0qQNrudw== + dependencies: + "@asyncapi/specs" "^3.2.0" + "@stoplight/better-ajv-errors" "1.0.3" + "@stoplight/json" "^3.17.0" + "@stoplight/spectral-core" "^1.8.1" + "@stoplight/spectral-formats" "^1.4.0" + "@stoplight/spectral-functions" "^1.5.1" + "@stoplight/spectral-runtime" "^1.1.1" + "@stoplight/types" "^13.6.0" + "@types/json-schema" "^7.0.7" + ajv "^8.8.2" + ajv-formats "~2.1.0" + json-schema-traverse "^1.0.0" + lodash "~4.17.21" + tslib "^2.3.0" + +"@stoplight/spectral-runtime@^1.0.0", "@stoplight/spectral-runtime@^1.1.0", "@stoplight/spectral-runtime@^1.1.1", "@stoplight/spectral-runtime@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz#7315767a09a4a7e5226e997e245bd3eb39561a02" + integrity sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw== + dependencies: + "@stoplight/json" "^3.17.0" + "@stoplight/path" "^1.3.2" + "@stoplight/types" "^12.3.0" + abort-controller "^3.0.0" + lodash "^4.17.21" + node-fetch "^2.6.7" + tslib "^2.3.1" + +"@stoplight/types@^12.3.0": + version "12.5.0" + resolved "https://registry.yarnpkg.com/@stoplight/types/-/types-12.5.0.tgz#ebbeeb8c874de30e4cd9a1a2a6c8d6062c155da0" + integrity sha512-dwqYcDrGmEyUv5TWrDam5TGOxU72ufyQ7hnOIIDdmW5ezOwZaBFoR5XQ9AsH49w7wgvOqB2Bmo799pJPWnpCbg== + dependencies: + "@types/json-schema" "^7.0.4" + utility-types "^3.10.0" + +"@stoplight/types@^12.3.0 || ^13.0.0", "@stoplight/types@^13.0.0", "@stoplight/types@^13.6.0": + version "13.8.0" + resolved "https://registry.yarnpkg.com/@stoplight/types/-/types-13.8.0.tgz#d214ea4d3caa593edc8536473077201c7b1ec0fc" + integrity sha512-5glKswz7y9aACh+a+JegID+4xX//4TsIdv7iPl29hWnOoWrnlPbg3Gjc4nYUXXgMSaSlSsA15JU/0+rE89fR4A== + dependencies: + "@types/json-schema" "^7.0.4" + utility-types "^3.10.0" + +"@stoplight/types@~13.6.0": + version "13.6.0" + resolved "https://registry.yarnpkg.com/@stoplight/types/-/types-13.6.0.tgz#96c6aaae05858b36f589821cd52c95aa9b205ce7" + integrity sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ== + dependencies: + "@types/json-schema" "^7.0.4" + utility-types "^3.10.0" + +"@stoplight/yaml-ast-parser@0.0.48": + version "0.0.48" + resolved "https://registry.yarnpkg.com/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz#442b21f419427acaa8a3106ebc5d73351c407002" + integrity sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg== + +"@stoplight/yaml@~4.2.3": + version "4.2.3" + resolved "https://registry.yarnpkg.com/@stoplight/yaml/-/yaml-4.2.3.tgz#d177664fecd6b2fd0d4f264f1078550c30cfd8d1" + integrity sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw== + dependencies: + "@stoplight/ordered-object-literal" "^1.0.1" + "@stoplight/types" "^13.0.0" + "@stoplight/yaml-ast-parser" "0.0.48" + tslib "^2.2.0" + "@svgr/babel-plugin-add-jsx-attribute@^6.5.1": version "6.5.1" resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz#74a5d648bd0347bda99d82409d87b8ca80b9a1ba" @@ -2380,6 +2708,11 @@ resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.4.3.tgz#af975e367743fa91989cd666666aec31a8f50591" integrity sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q== +"@tootallnate/once@1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" + integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== + "@tootallnate/once@2": version "2.0.0" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" @@ -2434,11 +2767,23 @@ resolved "https://registry.yarnpkg.com/@types/deep-diff/-/deep-diff-1.0.2.tgz#36f1291f0aead8aceb847cde6f07ae613a78ac4f" integrity sha512-WD2O611C7Oz7RSwKbSls8LaznKfWfXh39CHY9Amd8FhQz+NJRe20nUHhYpOopVq9M2oqDZd4L6AzqJIXQycxiA== -"@types/estree@^1.0.0": +"@types/es-aggregate-error@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz#a970b4a5bbee95d87aebaa2aa317c846c18429df" + integrity sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA== + dependencies: + "@types/node" "*" + +"@types/estree@*", "@types/estree@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.0.tgz#5fb2e536c1ae9bf35366eed879e827fa59ca41c2" integrity sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ== +"@types/estree@0.0.39": + version "0.0.39" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" + integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== + "@types/hast@^2.0.0": version "2.3.4" resolved "https://registry.yarnpkg.com/@types/hast/-/hast-2.3.4.tgz#8aa5ef92c117d20d974a82bdfb6a648b08c0bafc" @@ -2498,7 +2843,7 @@ resolved "https://registry.yarnpkg.com/@types/js-levenshtein/-/js-levenshtein-1.1.1.tgz#ba05426a43f9e4e30b631941e0aa17bf0c890ed5" integrity sha512-qC4bCqYGy1y/NP7dDVr7KJarn+PbX1nSpwA7JXdu0HxT3QYjO8MJ+cntENtHFVy2dRAyBV23OZ6MxsW1AM1L8g== -"@types/json-schema@^7.0.9": +"@types/json-schema@^7.0.11", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.7", "@types/json-schema@^7.0.9": version "7.0.11" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== @@ -2711,6 +3056,11 @@ resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d" integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== +"@types/urijs@^1.19.19": + version "1.19.19" + resolved "https://registry.yarnpkg.com/@types/urijs/-/urijs-1.19.19.tgz#2789369799907fc11e2bc6e3a00f6478c2281b95" + integrity sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg== + "@types/yargs-parser@*": version "21.0.0" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" @@ -2884,6 +3234,13 @@ abab@^2.0.6: resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== +abort-controller@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" + integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== + dependencies: + event-target-shim "^5.0.0" + acorn-globals@^7.0.0: version "7.0.1" resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-7.0.1.tgz#0dbf05c44fa7c94332914c02066d5beff62c40c3" @@ -2907,12 +3264,12 @@ acorn@^8.1.0, acorn@^8.8.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== -acorn@^8.8.1: +acorn@^8.7.0, acorn@^8.8.1: version "8.8.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== -agent-base@6: +agent-base@6, agent-base@^6.0.0, agent-base@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== @@ -2927,6 +3284,23 @@ aggregate-error@^3.0.0: clean-stack "^2.0.0" indent-string "^4.0.0" +ajv-draft-04@^1.0.0, ajv-draft-04@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz#3b64761b268ba0b9e668f0b41ba53fce0ad77fc8" + integrity sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw== + +ajv-errors@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-3.0.0.tgz#e54f299f3a3d30fe144161e5f0d8d51196c527bc" + integrity sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ== + +ajv-formats@~2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" + integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== + dependencies: + ajv "^8.0.0" + ajv@^6.10.0, ajv@^6.12.4: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" @@ -2937,6 +3311,16 @@ ajv@^6.10.0, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.0, ajv@^8.6.0, ajv@^8.6.3, ajv@^8.8.2: + version "8.11.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.2.tgz#aecb20b50607acf2569b6382167b65a96008bb78" + integrity sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + ansi-colors@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" @@ -2986,6 +3370,13 @@ arch@^2.2.0: resolved "https://registry.yarnpkg.com/arch/-/arch-2.2.0.tgz#1bc47818f305764f23ab3306b0bfc086c5a29d11" integrity sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ== +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + argparse@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" @@ -3040,6 +3431,13 @@ array.prototype.flatmap@^1.2.5: es-abstract "^1.19.2" es-shim-unscopables "^1.0.0" +as-table@^1.0.36: + version "1.0.55" + resolved "https://registry.yarnpkg.com/as-table/-/as-table-1.0.55.tgz#dc984da3937745de902cea1d45843c01bdbbec4f" + integrity sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ== + dependencies: + printable-characters "^1.0.42" + asn1@~0.2.3: version "0.2.6" resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" @@ -3062,11 +3460,30 @@ ast-types-flow@^0.0.7: resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0= +ast-types@0.14.2: + version "0.14.2" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd" + integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA== + dependencies: + tslib "^2.0.1" + +ast-types@^0.13.2: + version "0.13.4" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.13.4.tgz#ee0d77b343263965ecc3fb62da16e7222b2b6782" + integrity sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w== + dependencies: + tslib "^2.0.1" + astral-regex@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== +astring@^1.7.5, astring@^1.8.1: + version "1.8.4" + resolved "https://registry.yarnpkg.com/astring/-/astring-1.8.4.tgz#6d4c5d8de7be2ead9e4a3cc0e2efb8d759378904" + integrity sha512-97a+l2LBU3Op3bBQEff79i/E4jMD2ZLFD8rHx9B6mXyB2uQwhJQYfiDqUwtfjF4QA1F2qs//N6Cw8LetMbQjcw== + async@^3.2.0: version "3.2.3" resolved "https://registry.yarnpkg.com/async/-/async-3.2.3.tgz#ac53dafd3f4720ee9e8a160628f18ea91df196c9" @@ -3102,13 +3519,6 @@ axe-core@^4.3.5: resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.1.tgz#7dbdc25989298f9ad006645cd396782443757413" integrity sha512-gd1kmb21kwNuWr6BQz8fv6GNECPBnUasepcoLbekws23NVBLODdsClRZ+bQ8+9Uomf3Sm3+Vwn0oYG9NvwnJCw== -axios@0.26.1: - version "0.26.1" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9" - integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA== - dependencies: - follow-redirects "^1.14.8" - axobject-query@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" @@ -3181,6 +3591,11 @@ babel-preset-react-app@^10.0.1: babel-plugin-macros "^3.1.0" babel-plugin-transform-react-remove-prop-types "^0.4.24" +backslash@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/backslash/-/backslash-0.2.0.tgz#6c3c1fce7e7e714ccfc10fd74f0f73410677375f" + integrity sha512-Avs+8FUZ1HF/VFP4YWwHQZSGzRPm37ukU1JQYQWijuHhtXdOuAzcZ8PcAzfIw898a8PyBzdn+RtnKA6MzW0X2A== + bail@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/bail/-/bail-2.0.2.tgz#d26f5cd8fe5d6f832a31517b9f7c356040ba6d5d" @@ -3292,6 +3707,21 @@ buffer@^5.5.0, buffer@^5.6.0: base64-js "^1.3.1" ieee754 "^1.1.13" +builtins@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" + integrity sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ== + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +cac@^6.7.12: + version "6.7.14" + resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.14.tgz#804e1e6f506ee363cb0e3ccbb09cad5dd9870959" + integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ== + cachedir@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-2.3.0.tgz#0c75892a052198f0b21c7c1804d8331edfcae0e8" @@ -3305,6 +3735,11 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-me-maybe@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.2.tgz#03f964f19522ba643b1b0693acb9152fe2074baa" + integrity sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ== + callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -3351,7 +3786,7 @@ chalk@4.1.1: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@4.1.2, chalk@^4.1.1: +chalk@4.1.2, chalk@^4.1.1, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -3419,7 +3854,7 @@ check-more-types@^2.24.0: resolved "https://registry.yarnpkg.com/check-more-types/-/check-more-types-2.24.0.tgz#1420ffb10fd444dcfc79b43891bbfffd32a84600" integrity sha1-FCD/sQ/URNz8ebQ4kbv//TKoRgA= -"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.2: +"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.2, chokidar@^3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -3483,7 +3918,7 @@ cli-width@^3.0.0: resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== -cliui@^7.0.2: +cliui@7.0.4, cliui@^7.0.2: version "7.0.4" resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== @@ -3570,10 +4005,10 @@ commander@7: resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== -commander@8.3.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" - integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== +commander@^2.20.3: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== commander@^5.1.0: version "5.1.0" @@ -3585,47 +4020,26 @@ common-tags@^1.8.0: resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== -compare-versions@4.1.3: - version "4.1.3" - resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-4.1.3.tgz#8f7b8966aef7dc4282b45dfa6be98434fc18a1a4" - integrity sha512-WQfnbDcrYnGr55UwbxKiQKASnTtNnaAWVi8jZyy8NTpVAXWACSne8lMD1iaIo9AiU6mnuLvSVshCzewVuWxHUg== +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + +compare-versions@^4.1.3: + version "4.1.4" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-4.1.4.tgz#3571f4d610924d4414846a4183d386c8f3d51112" + integrity sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw== concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -concurrently@6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-6.5.1.tgz#4518c67f7ac680cf5c34d5adf399a2a2047edc8c" - integrity sha512-FlSwNpGjWQfRwPLXvJ/OgysbBxPkWpiVjy1042b0U7on7S7qwwMIILRj7WTN1mTgqa582bG6NFuScOoh6Zgdag== - dependencies: - chalk "^4.1.0" - date-fns "^2.16.1" - lodash "^4.17.21" - rxjs "^6.6.3" - spawn-command "^0.0.2-1" - supports-color "^8.1.0" - tree-kill "^1.2.2" - yargs "^16.2.0" - confusing-browser-globals@^1.0.11: version "1.0.11" resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz#ae40e9b57cdd3915408a2805ebd3a5585608dc81" integrity sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA== -consola@^2.15.0: - version "2.15.3" - resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550" - integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw== - -console.table@0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/console.table/-/console.table-0.10.0.tgz#0917025588875befd70cf2eff4bef2c6e2d75d04" - integrity sha1-CRcCVYiHW+/XDPLv9L7yxuLXXQQ= - dependencies: - easy-table "1.1.0" - convert-source-map@^1.5.0, convert-source-map@^1.7.0: version "1.8.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" @@ -3663,6 +4077,11 @@ core-util-is@1.0.2: resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= +core-util-is@~1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" + integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== + cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" @@ -3679,7 +4098,7 @@ crelt@^1.0.5: resolved "https://registry.yarnpkg.com/crelt/-/crelt-1.0.5.tgz#57c0d52af8c859e354bace1883eb2e1eb182bb94" integrity sha512-+BO9wPPi+DWTDcNYhr/W90myha8ptzftZT+LwcmUbbok0rcP/fequmFYCw8NMoH7pkAZQzU78b3kYrlua5a9eA== -cross-spawn@^7.0.0, cross-spawn@^7.0.2: +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -3720,6 +4139,11 @@ csstype@^3.1.1: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9" integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw== +cuid@^2.1.8: + version "2.1.8" + resolved "https://registry.yarnpkg.com/cuid/-/cuid-2.1.8.tgz#cbb88f954171e0d5747606c0139fb65c5101eac0" + integrity sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg== + cypress@9.7.0: version "9.7.0" resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.7.0.tgz#bf55b2afd481f7a113ef5604aa8b693564b5e744" @@ -4032,6 +4456,16 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" +data-uri-to-buffer@3: + version "3.0.1" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636" + integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og== + +data-uri-to-buffer@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-2.0.2.tgz#d296973d5a4897a5dbe31716d118211921f04770" + integrity sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA== + data-urls@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-3.0.2.tgz#9cf24a477ae22bcef5cd5f6f0bfbc1d2d3be9143" @@ -4046,11 +4480,6 @@ date-fns@2.29.3: resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8" integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA== -date-fns@^2.16.1: - version "2.28.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.28.0.tgz#9570d656f5fc13143e50c975a3b6bbeb46cd08b2" - integrity sha512-8d35hViGYx/QH0icHYCeLmsLmMUheMmTyV9Fcm6gvNwdw31yXXH+O85sOBJ+OLnLQMKZowvpKb6FgMIQjcpvQw== - dayjs@^1.10.4: version "1.11.1" resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.1.tgz#90b33a3dda3417258d48ad2771b415def6545eb0" @@ -4111,6 +4540,11 @@ deep-is@^0.1.3, deep-is@~0.1.3: resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== +deepmerge@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-2.2.1.tgz#5d3ff22a01c00f645405a2fbc17d0778a1801170" + integrity sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA== + defaults@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" @@ -4126,6 +4560,16 @@ define-properties@^1.1.3, define-properties@^1.1.4: has-property-descriptors "^1.0.0" object-keys "^1.1.1" +degenerator@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/degenerator/-/degenerator-3.0.2.tgz#6a61fcc42a702d6e50ff6023fe17bff435f68235" + integrity sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ== + dependencies: + ast-types "^0.13.2" + escodegen "^1.8.1" + esprima "^4.0.0" + vm2 "^3.9.8" + delaunator@5: version "5.0.0" resolved "https://registry.yarnpkg.com/delaunator/-/delaunator-5.0.0.tgz#60f052b28bd91c9b4566850ebf7756efe821d81b" @@ -4138,6 +4582,16 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= +depd@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +dependency-graph@0.11.0, dependency-graph@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27" + integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg== + dequal@2.0.3, dequal@^2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" @@ -4204,13 +4658,6 @@ dompurify@2.4.1: resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-2.4.1.tgz#f9cb1a275fde9af6f2d0a2644ef648dd6847b631" integrity sha512-ewwFzHzrrneRjxzmK6oVz/rZn9VWspGFRDb4/rRtIsM1n36t9AKma/ye8syCpcw+XJ25kOK/hOG7t1j2I2yBqA== -easy-table@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/easy-table/-/easy-table-1.1.0.tgz#86f9ab4c102f0371b7297b92a651d5824bc8cb73" - integrity sha1-hvmrTBAvA3G3KXuSplHVgkvIy3M= - optionalDependencies: - wcwidth ">=1.0.1" - ecc-jsbn@~0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" @@ -4263,6 +4710,11 @@ entities@^4.4.0: resolved "https://registry.yarnpkg.com/entities/-/entities-4.4.0.tgz#97bdaba170339446495e653cfd2db78962900174" integrity sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA== +eol@0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/eol/-/eol-0.9.1.tgz#f701912f504074be35c6117a5c4ade49cd547acd" + integrity sha512-Ds/TEoZjwggRoz/Q2O7SE3i4Jm66mqTDfmdHdq/7DKVk3bro9Q8h6WdXKdPqFLMoqxrDK5SVRzHVPOS6uuGtrg== + error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" @@ -4328,6 +4780,50 @@ es-abstract@^1.20.0: string.prototype.trimstart "^1.0.5" unbox-primitive "^1.0.2" +es-abstract@^1.20.4: + version "1.20.5" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.5.tgz#e6dc99177be37cacda5988e692c3fa8b218e95d2" + integrity sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.1.3" + get-symbol-description "^1.0.0" + gopd "^1.0.1" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-weakref "^1.0.2" + object-inspect "^1.12.2" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.4.3" + safe-regex-test "^1.0.0" + string.prototype.trimend "^1.0.6" + string.prototype.trimstart "^1.0.6" + unbox-primitive "^1.0.2" + +es-aggregate-error@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/es-aggregate-error/-/es-aggregate-error-1.0.9.tgz#b50925cdf78c8a634bd766704f6f7825902be3d9" + integrity sha512-fvnX40sb538wdU6r4s35cq4EY6Lr09Upj40BEVem4LEsuW8XgQep9yD5Q1U2KftokNp1rWODFJ2qwZSsAjFpbg== + dependencies: + define-properties "^1.1.4" + es-abstract "^1.20.4" + function-bind "^1.1.1" + functions-have-names "^1.2.3" + get-intrinsic "^1.1.3" + globalthis "^1.0.3" + has-property-descriptors "^1.0.0" + es-shim-unscopables@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" @@ -4344,6 +4840,139 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" +es6-promise@^3.2.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" + integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg== + +esbuild-android-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.15.18.tgz#20a7ae1416c8eaade917fb2453c1259302c637a5" + integrity sha512-wnpt3OXRhcjfIDSZu9bnzT4/TNTDsOUvip0foZOUBG7QbSt//w3QV4FInVJxNhKc/ErhUxc5z4QjHtMi7/TbgA== + +esbuild-android-arm64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.15.18.tgz#9cc0ec60581d6ad267568f29cf4895ffdd9f2f04" + integrity sha512-G4xu89B8FCzav9XU8EjsXacCKSG2FT7wW9J6hOc18soEHJdtWu03L3TQDGf0geNxfLTtxENKBzMSq9LlbjS8OQ== + +esbuild-darwin-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.15.18.tgz#428e1730ea819d500808f220fbc5207aea6d4410" + integrity sha512-2WAvs95uPnVJPuYKP0Eqx+Dl/jaYseZEUUT1sjg97TJa4oBtbAKnPnl3b5M9l51/nbx7+QAEtuummJZW0sBEmg== + +esbuild-darwin-arm64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.18.tgz#b6dfc7799115a2917f35970bfbc93ae50256b337" + integrity sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA== + +esbuild-freebsd-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.18.tgz#4e190d9c2d1e67164619ae30a438be87d5eedaf2" + integrity sha512-TT3uBUxkteAjR1QbsmvSsjpKjOX6UkCstr8nMr+q7zi3NuZ1oIpa8U41Y8I8dJH2fJgdC3Dj3CXO5biLQpfdZA== + +esbuild-freebsd-arm64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.18.tgz#18a4c0344ee23bd5a6d06d18c76e2fd6d3f91635" + integrity sha512-R/oVr+X3Tkh+S0+tL41wRMbdWtpWB8hEAMsOXDumSSa6qJR89U0S/PpLXrGF7Wk/JykfpWNokERUpCeHDl47wA== + +esbuild-linux-32@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.15.18.tgz#9a329731ee079b12262b793fb84eea762e82e0ce" + integrity sha512-lphF3HiCSYtaa9p1DtXndiQEeQDKPl9eN/XNoBf2amEghugNuqXNZA/ZovthNE2aa4EN43WroO0B85xVSjYkbg== + +esbuild-linux-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.15.18.tgz#532738075397b994467b514e524aeb520c191b6c" + integrity sha512-hNSeP97IviD7oxLKFuii5sDPJ+QHeiFTFLoLm7NZQligur8poNOWGIgpQ7Qf8Balb69hptMZzyOBIPtY09GZYw== + +esbuild-linux-arm64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.18.tgz#5372e7993ac2da8f06b2ba313710d722b7a86e5d" + integrity sha512-54qr8kg/6ilcxd+0V3h9rjT4qmjc0CccMVWrjOEM/pEcUzt8X62HfBSeZfT2ECpM7104mk4yfQXkosY8Quptug== + +esbuild-linux-arm@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.15.18.tgz#e734aaf259a2e3d109d4886c9e81ec0f2fd9a9cc" + integrity sha512-UH779gstRblS4aoS2qpMl3wjg7U0j+ygu3GjIeTonCcN79ZvpPee12Qun3vcdxX+37O5LFxz39XeW2I9bybMVA== + +esbuild-linux-mips64le@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.18.tgz#c0487c14a9371a84eb08fab0e1d7b045a77105eb" + integrity sha512-Mk6Ppwzzz3YbMl/ZZL2P0q1tnYqh/trYZ1VfNP47C31yT0K8t9s7Z077QrDA/guU60tGNp2GOwCQnp+DYv7bxQ== + +esbuild-linux-ppc64le@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.18.tgz#af048ad94eed0ce32f6d5a873f7abe9115012507" + integrity sha512-b0XkN4pL9WUulPTa/VKHx2wLCgvIAbgwABGnKMY19WhKZPT+8BxhZdqz6EgkqCLld7X5qiCY2F/bfpUUlnFZ9w== + +esbuild-linux-riscv64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.18.tgz#423ed4e5927bd77f842bd566972178f424d455e6" + integrity sha512-ba2COaoF5wL6VLZWn04k+ACZjZ6NYniMSQStodFKH/Pu6RxzQqzsmjR1t9QC89VYJxBeyVPTaHuBMCejl3O/xg== + +esbuild-linux-s390x@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.18.tgz#21d21eaa962a183bfb76312e5a01cc5ae48ce8eb" + integrity sha512-VbpGuXEl5FCs1wDVp93O8UIzl3ZrglgnSQ+Hu79g7hZu6te6/YHgVJxCM2SqfIila0J3k0csfnf8VD2W7u2kzQ== + +esbuild-netbsd-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.18.tgz#ae75682f60d08560b1fe9482bfe0173e5110b998" + integrity sha512-98ukeCdvdX7wr1vUYQzKo4kQ0N2p27H7I11maINv73fVEXt2kyh4K4m9f35U1K43Xc2QGXlzAw0K9yoU7JUjOg== + +esbuild-openbsd-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.18.tgz#79591a90aa3b03e4863f93beec0d2bab2853d0a8" + integrity sha512-yK5NCcH31Uae076AyQAXeJzt/vxIo9+omZRKj1pauhk3ITuADzuOx5N2fdHrAKPxN+zH3w96uFKlY7yIn490xQ== + +esbuild-sunos-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.15.18.tgz#fd528aa5da5374b7e1e93d36ef9b07c3dfed2971" + integrity sha512-On22LLFlBeLNj/YF3FT+cXcyKPEI263nflYlAhz5crxtp3yRG1Ugfr7ITyxmCmjm4vbN/dGrb/B7w7U8yJR9yw== + +esbuild-windows-32@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.15.18.tgz#0e92b66ecdf5435a76813c4bc5ccda0696f4efc3" + integrity sha512-o+eyLu2MjVny/nt+E0uPnBxYuJHBvho8vWsC2lV61A7wwTWC3jkN2w36jtA+yv1UgYkHRihPuQsL23hsCYGcOQ== + +esbuild-windows-64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.15.18.tgz#0fc761d785414284fc408e7914226d33f82420d0" + integrity sha512-qinug1iTTaIIrCorAUjR0fcBk24fjzEedFYhhispP8Oc7SFvs+XeW3YpAKiKp8dRpizl4YYAhxMjlftAMJiaUw== + +esbuild-windows-arm64@0.15.18: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.18.tgz#5b5bdc56d341d0922ee94965c89ee120a6a86eb7" + integrity sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ== + +esbuild@^0.15.3: + version "0.15.18" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.15.18.tgz#ea894adaf3fbc036d32320a00d4d6e4978a2f36d" + integrity sha512-x/R72SmW3sSFRm5zrrIjAhCeQSAWoni3CmHEqfQrZIQTM3lVCdehdwuIqaOtfC2slvpdlLa62GYoN8SxT23m6Q== + optionalDependencies: + "@esbuild/android-arm" "0.15.18" + "@esbuild/linux-loong64" "0.15.18" + esbuild-android-64 "0.15.18" + esbuild-android-arm64 "0.15.18" + esbuild-darwin-64 "0.15.18" + esbuild-darwin-arm64 "0.15.18" + esbuild-freebsd-64 "0.15.18" + esbuild-freebsd-arm64 "0.15.18" + esbuild-linux-32 "0.15.18" + esbuild-linux-64 "0.15.18" + esbuild-linux-arm "0.15.18" + esbuild-linux-arm64 "0.15.18" + esbuild-linux-mips64le "0.15.18" + esbuild-linux-ppc64le "0.15.18" + esbuild-linux-riscv64 "0.15.18" + esbuild-linux-s390x "0.15.18" + esbuild-netbsd-64 "0.15.18" + esbuild-openbsd-64 "0.15.18" + esbuild-sunos-64 "0.15.18" + esbuild-windows-32 "0.15.18" + esbuild-windows-64 "0.15.18" + esbuild-windows-arm64 "0.15.18" + esbuild@^0.16.3: version "0.16.4" resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.16.4.tgz#06c86298d233386f5e41bcc14d36086daf3f40bd" @@ -4377,7 +5006,7 @@ escalade@^3.1.1: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== -escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.4, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= @@ -4392,6 +5021,18 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escodegen@^1.8.1: + version "1.14.3" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" + integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== + dependencies: + esprima "^4.0.1" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + escodegen@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" @@ -4611,7 +5252,7 @@ espree@^9.4.0: acorn-jsx "^5.3.2" eslint-visitor-keys "^3.3.0" -esprima@^4.0.1: +esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== @@ -4630,7 +5271,7 @@ esrecurse@^4.3.0: dependencies: estraverse "^5.2.0" -estraverse@^4.1.1: +estraverse@^4.1.1, estraverse@^4.2.0: version "4.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== @@ -4640,16 +5281,26 @@ estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== -estree-walker@^2.0.2: +estree-walker@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" + integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== + +estree-walker@^2.0.1, estree-walker@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== -esutils@^2.0.2: +esutils@2.0.3, esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +event-target-shim@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" + integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== + eventemitter2@^6.4.3: version "6.4.5" resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.5.tgz#97380f758ae24ac15df8353e0cc27f8b95644655" @@ -4680,6 +5331,21 @@ execa@4.1.0: signal-exit "^3.0.2" strip-final-newline "^2.0.0" +execa@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + executable@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/executable/-/executable-4.1.1.tgz#41532bff361d3e57af4d763b70582db18f5d133c" @@ -4738,6 +5404,17 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +fast-glob@3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1" + integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-glob@^3.2.9: version "3.2.11" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" @@ -4764,7 +5441,12 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= -fast-safe-stringify@2.1.1: +fast-memoize@^2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/fast-memoize/-/fast-memoize-2.5.2.tgz#79e3bb6a4ec867ea40ba0e7146816f6cdce9b57e" + integrity sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw== + +fast-safe-stringify@^2.0.7: version "2.1.1" resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== @@ -4797,6 +5479,11 @@ file-entry-cache@^6.0.1: dependencies: flat-cache "^3.0.4" +file-uri-to-path@2: + version "2.0.0" + resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz#7b415aeba227d575851e0a5b0c640d7656403fba" + integrity sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg== + fill-range@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" @@ -4809,6 +5496,14 @@ find-root@^1.1.0: resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== +find-up@5.0.0, find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + find-up@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" @@ -4816,13 +5511,12 @@ find-up@^2.1.0: dependencies: locate-path "^2.0.0" -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" + locate-path "^3.0.0" flat-cache@^3.0.4: version "3.0.4" @@ -4837,7 +5531,7 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.5.tgz#76c8584f4fc843db64702a6bd04ab7a8bd666da3" integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg== -follow-redirects@^1.0.0, follow-redirects@^1.14.8: +follow-redirects@^1.0.0: version "1.14.9" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7" integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w== @@ -4872,15 +5566,29 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" -fs-extra@10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.1.tgz#27de43b4320e833f6867cc044bfce29fdf0ef3b8" - integrity sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag== +format-util@^1.0.3: + version "1.0.5" + resolved "https://registry.yarnpkg.com/format-util/-/format-util-1.0.5.tgz#1ffb450c8a03e7bccffe40643180918cc297d271" + integrity sha512-varLbTj0e0yVyRpqQhuWV+8hlePAgaoFRhNFj50BNjEIrw1/DphHSObtqwskVCPWNgzwPoQrZAbfa/SBiicNeg== + +fs-extra@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== dependencies: graceful-fs "^4.2.0" jsonfile "^6.0.1" universalify "^2.0.0" +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs-extra@^9.1.0: version "9.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" @@ -4901,6 +5609,14 @@ fsevents@~2.3.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== +ftp@^0.3.10: + version "0.3.10" + resolved "https://registry.yarnpkg.com/ftp/-/ftp-0.3.10.tgz#9197d861ad8142f3e63d5a83bfe4c59f7330885d" + integrity sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ== + dependencies: + readable-stream "1.1.x" + xregexp "2.0.0" + function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" @@ -4921,7 +5637,7 @@ functional-red-black-tree@^1.0.1: resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= -functions-have-names@^1.2.2: +functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== @@ -4950,6 +5666,23 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1: has "^1.0.3" has-symbols "^1.0.1" +get-intrinsic@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" + integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.3" + +get-source@^2.0.12: + version "2.0.12" + resolved "https://registry.yarnpkg.com/get-source/-/get-source-2.0.12.tgz#0b47d57ea1e53ce0d3a69f4f3d277eb8047da944" + integrity sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w== + dependencies: + data-uri-to-buffer "^2.0.0" + source-map "^0.6.1" + get-stream@^5.0.0, get-stream@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" @@ -4957,6 +5690,11 @@ get-stream@^5.0.0, get-stream@^5.1.0: dependencies: pump "^3.0.0" +get-stream@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + get-symbol-description@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" @@ -4965,6 +5703,18 @@ get-symbol-description@^1.0.0: call-bind "^1.0.2" get-intrinsic "^1.1.1" +get-uri@3: + version "3.0.2" + resolved "https://registry.yarnpkg.com/get-uri/-/get-uri-3.0.2.tgz#f0ef1356faabc70e1f9404fa3b66b2ba9bfc725c" + integrity sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg== + dependencies: + "@tootallnate/once" "1" + data-uri-to-buffer "3" + debug "4" + file-uri-to-path "2" + fs-extra "^8.1.0" + ftp "^0.3.10" + getos@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/getos/-/getos-3.2.1.tgz#0134d1f4e00eb46144c5a9c0ac4dc087cbb27dc5" @@ -4993,7 +5743,7 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@7.1.6, glob@^7.1.3: +glob@^7.1.3: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -5005,6 +5755,18 @@ glob@7.1.6, glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.1.6: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + global-dirs@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.0.tgz#70a76fe84ea315ab37b1f5576cbde7d48ef72686" @@ -5024,7 +5786,14 @@ globals@^13.19.0: dependencies: type-fest "^0.20.2" -globby@^11.0.4: +globalthis@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== + dependencies: + define-properties "^1.1.3" + +globby@11.1.0, globby@^11.0.4: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -5041,6 +5810,13 @@ globrex@^0.1.2: resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098" integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg== +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.9: version "4.2.10" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" @@ -5121,6 +5897,26 @@ html-encoding-sniffer@^3.0.0: dependencies: whatwg-encoding "^2.0.0" +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +http-proxy-agent@^4.0.0, http-proxy-agent@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" + integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== + dependencies: + "@tootallnate/once" "1" + agent-base "6" + debug "4" + http-proxy-agent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" @@ -5159,7 +5955,12 @@ http-signature@~1.3.6: jsprim "^2.0.2" sshpk "^1.14.1" -https-proxy-agent@^5.0.1: +http2-client@^1.2.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/http2-client/-/http2-client-1.3.5.tgz#20c9dc909e3cc98284dd20af2432c524086df181" + integrity sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA== + +https-proxy-agent@5, https-proxy-agent@^5.0.0, https-proxy-agent@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== @@ -5172,6 +5973,44 @@ human-signals@^1.1.1: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +ibm-openapi-validator@^0.88.0: + version "0.88.3" + resolved "https://registry.yarnpkg.com/ibm-openapi-validator/-/ibm-openapi-validator-0.88.3.tgz#3dc12ac9d81ee4c8feb75307ea4477d9fa94f4aa" + integrity sha512-WHkkO5TXWSS12P8VybB04Stq+yFloMlHy2aVzcLAZo425PYIVMuIWhsH7zN9vwcZcOB/qAnWQ4T3PKn6wrcT+Q== + dependencies: + "@ibm-cloud/openapi-ruleset" "0.37.3" + "@stoplight/spectral-cli" "^6.4.2" + "@stoplight/spectral-core" "^1.12.4" + "@stoplight/spectral-parsers" "^1.0.1" + chalk "^4.1.1" + commander "^2.20.3" + deepmerge "^2.2.1" + find-up "^3.0.0" + globby "^11.0.4" + js-yaml "^3.14.1" + json-dup-key-validator "^1.0.3" + json-schema-ref-parser "^5.1.3" + jsonschema "^1.4.0" + lodash "^4.17.21" + matcher "^1.1.1" + pad "^2.3.0" + require-all "^3.0.0" + semver "^5.7.1" + validator "^13.7.0" + yaml-js "^0.2.3" + +iconv-lite@0.4.24, iconv-lite@^0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + iconv-lite@0.6, iconv-lite@0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" @@ -5179,13 +6018,6 @@ iconv-lite@0.6, iconv-lite@0.6.3: dependencies: safer-buffer ">= 2.1.2 < 3.0.0" -iconv-lite@^0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - ieee754@^1.1.13: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" @@ -5201,6 +6033,11 @@ immer@9.0.17: resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.17.tgz#7cfe8fbb8b461096444e9da7a5ec4a67c6c4adf4" integrity sha512-+hBruaLSQvkPfxRiTLK/mi4vLH+/VQS6z2KJahdoxlleFOI8ARqzOF17uy12eFDlqWmPoygwc5evgwcp+dlHhg== +immer@^9.0.6: + version "9.0.17" + resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.17.tgz#7cfe8fbb8b461096444e9da7a5ec4a67c6c4adf4" + integrity sha512-+hBruaLSQvkPfxRiTLK/mi4vLH+/VQS6z2KJahdoxlleFOI8ARqzOF17uy12eFDlqWmPoygwc5evgwcp+dlHhg== + immutable@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.0.0.tgz#b86f78de6adef3608395efb269a91462797e2c23" @@ -5232,7 +6069,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.3, inherits@^2.0.4: +inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -5247,7 +6084,7 @@ inline-style-parser@0.1.1: resolved "https://registry.yarnpkg.com/inline-style-parser/-/inline-style-parser-0.1.1.tgz#ec8a3b429274e9c0a1f1c4ffa9453a7fef72cea1" integrity sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q== -inquirer@8.2.2, inquirer@^8.2.0: +inquirer@^8.2.0: version "8.2.2" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.2.tgz#1310517a87a0814d25336c78a20b44c3d9b7629d" integrity sha512-pG7I/si6K/0X7p1qU+rfWnpTE1UIkTONN1wxtzh0d+dHXtT/JG6qBgLxoyHVsQa8cFABxAPh0pD6uUUHiAoaow== @@ -5267,6 +6104,27 @@ inquirer@8.2.2, inquirer@^8.2.0: strip-ansi "^6.0.0" through "^2.3.6" +inquirer@^8.2.4: + version "8.2.5" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.5.tgz#d8654a7542c35a9b9e069d27e2df4858784d54f8" + integrity sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + wrap-ansi "^7.0.0" + internal-slot@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" @@ -5281,6 +6139,16 @@ internal-slot@^1.0.3: resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.3.tgz#6685f23755e43c524e251d29cbc97248e3061009" integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg== +ip@^1.1.5: + version "1.1.8" + resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" + integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== + +ip@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da" + integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ== + is-arguments@^1.0.4: version "1.1.1" resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" @@ -5326,6 +6194,11 @@ is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.4: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945" integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w== +is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + is-ci@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867" @@ -5433,6 +6306,13 @@ is-potential-custom-element-name@^1.0.1: resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== +is-reference@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7" + integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ== + dependencies: + "@types/estree" "*" + is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -5495,6 +6375,11 @@ is-weakref@^1.0.2: dependencies: call-bind "^1.0.2" +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -5505,11 +6390,6 @@ isstream@~0.1.2: resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= -iterare@1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/iterare/-/iterare-1.2.1.tgz#139c400ff7363690e33abffa33cbba8920f00042" - integrity sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q== - jest-diff@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" @@ -5602,6 +6482,14 @@ js-sdsl@^4.1.4: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== +js-yaml@^3.12.0, js-yaml@^3.13.1, js-yaml@^3.14.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + js-yaml@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" @@ -5646,6 +6534,11 @@ jsdom@20.0.3: ws "^8.11.0" xml-name-validator "^4.0.0" +jsep@^1.1.2, jsep@^1.2.0: + version "1.3.8" + resolved "https://registry.yarnpkg.com/jsep/-/jsep-1.3.8.tgz#facb6eb908d085d71d950bd2b24b757c7b8a46d7" + integrity sha512-qofGylTGgYj9gZFsHuyWAN4jr35eJ66qJCK4eKDnldohuUoQFbU3iZn2zjvEbd9wOAhP9Wx5DsAAduTyE1PSWQ== + jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" @@ -5656,16 +6549,38 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= +json-dup-key-validator@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/json-dup-key-validator/-/json-dup-key-validator-1.0.3.tgz#ec147e457ef600bd2a794121e88f4ec9f3edef85" + integrity sha512-JvJcV01JSiO7LRz7DY1Fpzn4wX2rJ3dfNTiAfnlvLNdhhnm0Pgdvhi2SGpENrZn7eSg26Ps3TPhOcuD/a4STXQ== + dependencies: + backslash "^0.2.0" + json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== +json-schema-ref-parser@^5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-5.1.3.tgz#f86c5868f40898e69169e1bbc854725a4fd0e1ad" + integrity sha512-CpDFlBwz/6la78hZxyB9FECVKGYjIIl3Ms3KLqFj99W7IIb7D00/RDgc++IGB4BBALl0QRhh5m4q5WNSopvLtQ== + dependencies: + call-me-maybe "^1.0.1" + debug "^3.1.0" + js-yaml "^3.12.0" + ono "^4.0.6" + json-schema-traverse@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json-schema@0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" @@ -5698,6 +6613,18 @@ jsonc-parser@^3.2.0: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== +jsonc-parser@~2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-2.2.1.tgz#db73cd59d78cce28723199466b2a03d1be1df2bc" + integrity sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w== + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== + optionalDependencies: + graceful-fs "^4.1.6" + jsonfile@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" @@ -5707,6 +6634,26 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" +jsonpath-plus@7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz#9ac63c3d32a4d91ada68d57e056cb7983e73290a" + integrity sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g== + +jsonpath-plus@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz#9a3e16cedadfab07a3d8dc4e8cd5df4ed8f49c4d" + integrity sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw== + +jsonpointer@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-5.0.1.tgz#2110e0af0900fd37467b5907ecd13a7884a1b559" + integrity sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ== + +jsonschema@^1.4.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.4.1.tgz#cc4c3f0077fb4542982973d8a083b6b34f482dab" + integrity sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ== + jsprim@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-2.0.2.tgz#77ca23dbcd4135cd364800d22ff82c2185803d4d" @@ -5752,6 +6699,11 @@ lazy-ass@^1.6.0: resolved "https://registry.yarnpkg.com/lazy-ass/-/lazy-ass-1.6.0.tgz#7999655e8646c17f089fdd187d150d3324d54513" integrity sha1-eZllXoZGwX8In90YfRUNMyTVRRM= +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -5800,6 +6752,14 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + locate-path@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" @@ -5822,22 +6782,52 @@ lodash.debounce@^4.0.8: resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= +lodash.get@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" + integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== + lodash.merge@^4.6.2: version "4.6.2" resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash.omit@4.5.0: +lodash.omit@4.5.0, lodash.omit@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.omit/-/lodash.omit-4.5.0.tgz#6eb19ae5a1ee1dd9df0b969e66ce0b7fa30b5e60" integrity sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg== +lodash.omitby@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.omitby/-/lodash.omitby-4.6.0.tgz#5c15ff4754ad555016b53c041311e8f079204791" + integrity sha512-5OrRcIVR75M288p4nbI2WLAf3ndw2GD9fyNv3Bc15+WCxJDdZ4lYndSxGd7hnG6PVjiJTeJE2dHEGhIuKGicIQ== + lodash.once@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= -lodash@4.17.21, lodash@^4.17.15, lodash@^4.17.21: +lodash.topath@^4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/lodash.topath/-/lodash.topath-4.5.2.tgz#3616351f3bba61994a0931989660bd03254fd009" + integrity sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg== + +lodash.uniq@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" + integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== + +lodash.uniqby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" + integrity sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww== + +lodash.uniqwith@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz#7a0cbf65f43b5928625a9d4d0dc54b18cadc7ef3" + integrity sha512-7lYL8bLopMoy4CTICbxygAUq6CdRJ36vFc80DucPueUee+d5NBRxz3FdT9Pes/HEx5mPoT9jwnsEJWz1N7uq7Q== + +lodash@^4.17.15, lodash@^4.17.21, lodash@~4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -5898,6 +6888,13 @@ lz-string@^1.4.4: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.4.4.tgz#c0d8eaf36059f705796e1e344811cf4c498d3a26" integrity sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY= +magic-string@^0.25.7: + version "0.25.9" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" + integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== + dependencies: + sourcemap-codec "^1.4.8" + magic-string@^0.27.0: version "0.27.0" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.27.0.tgz#e4a3413b4bab6d98d2becffd48b4a257effdbbf3" @@ -5905,6 +6902,13 @@ magic-string@^0.27.0: dependencies: "@jridgewell/sourcemap-codec" "^1.4.13" +matcher@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/matcher/-/matcher-1.1.1.tgz#51d8301e138f840982b338b116bb0c09af62c1c2" + integrity sha512-+BmqxWIubKTRKNWx/ahnCkk3mG8m7OturVlqq6HiojGJTd5hVYbgZm6WzcYPCoB+KBT4Vd6R7WSRG2OADNaCjg== + dependencies: + escape-string-regexp "^1.0.4" + mdast-util-definitions@^5.0.0: version "5.1.1" resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-5.1.1.tgz#2c1d684b28e53f84938bb06317944bee8efa79db" @@ -6173,7 +7177,7 @@ micromark@^3.0.0: micromark-util-types "^1.0.1" uvu "^0.5.0" -micromatch@^4.0.2, micromatch@^4.0.4: +micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: version "4.0.5" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== @@ -6210,7 +7214,7 @@ min-indent@^1.0.0: resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.2: +minimatch@3.1.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -6297,13 +7301,45 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= -node-fetch@^2.6.1, node-fetch@^2.6.7: +netmask@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7" + integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg== + +nimma@0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/nimma/-/nimma-0.2.2.tgz#48d00f837d17b4baa23beec22ac1380f152f15ef" + integrity sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ== + dependencies: + "@jsep-plugin/regex" "^1.0.1" + "@jsep-plugin/ternary" "^1.0.2" + astring "^1.8.1" + jsep "^1.2.0" + optionalDependencies: + jsonpath-plus "^6.0.1" + lodash.topath "^4.5.2" + +node-fetch-h2@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz#c6188325f9bd3d834020bf0f2d6dc17ced2241ac" + integrity sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg== + dependencies: + http2-client "^1.2.5" + +node-fetch@^2.6.0, node-fetch@^2.6.1, node-fetch@^2.6.7: version "2.6.7" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== dependencies: whatwg-url "^5.0.0" +node-readfiles@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/node-readfiles/-/node-readfiles-0.2.0.tgz#dbbd4af12134e2e635c245ef93ffcf6f60673a5d" + integrity sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA== + dependencies: + es6-promise "^3.2.1" + node-releases@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.2.tgz#7139fe71e2f4f11b47d4d2986aaf8c48699e0c01" @@ -6329,7 +7365,7 @@ normalize-path@^3.0.0, normalize-path@~3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -npm-run-path@^4.0.0: +npm-run-path@^4.0.0, npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== @@ -6341,21 +7377,67 @@ nwsapi@^2.2.2: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== +oas-kit-common@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/oas-kit-common/-/oas-kit-common-1.0.8.tgz#6d8cacf6e9097967a4c7ea8bcbcbd77018e1f535" + integrity sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ== + dependencies: + fast-safe-stringify "^2.0.7" + +oas-linter@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/oas-linter/-/oas-linter-3.2.2.tgz#ab6a33736313490659035ca6802dc4b35d48aa1e" + integrity sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ== + dependencies: + "@exodus/schemasafe" "^1.0.0-rc.2" + should "^13.2.1" + yaml "^1.10.0" + +oas-resolver@^2.5.6: + version "2.5.6" + resolved "https://registry.yarnpkg.com/oas-resolver/-/oas-resolver-2.5.6.tgz#10430569cb7daca56115c915e611ebc5515c561b" + integrity sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ== + dependencies: + node-fetch-h2 "^2.3.0" + oas-kit-common "^1.0.8" + reftools "^1.1.9" + yaml "^1.10.0" + yargs "^17.0.1" + +oas-schema-walker@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz#74c3cd47b70ff8e0b19adada14455b5d3ac38a22" + integrity sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ== + +oas-validator@^5.0.8: + version "5.0.8" + resolved "https://registry.yarnpkg.com/oas-validator/-/oas-validator-5.0.8.tgz#387e90df7cafa2d3ffc83b5fb976052b87e73c28" + integrity sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw== + dependencies: + call-me-maybe "^1.0.1" + oas-kit-common "^1.0.8" + oas-linter "^3.2.2" + oas-resolver "^2.5.6" + oas-schema-walker "^1.1.5" + reftools "^1.1.9" + should "^13.2.1" + yaml "^1.10.0" + object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= -object-hash@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9" - integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== - object-inspect@^1.12.0, object-inspect@^1.9.0: version "1.12.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0" integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g== +object-inspect@^1.12.2: + version "1.12.2" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" + integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== + object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" @@ -6371,6 +7453,16 @@ object.assign@^4.1.0, object.assign@^4.1.2: has-symbols "^1.0.1" object-keys "^1.1.1" +object.assign@^4.1.4: + version "4.1.4" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" + integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + has-symbols "^1.0.3" + object-keys "^1.1.1" + object.entries@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" @@ -6413,13 +7505,27 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -onetime@^5.1.0: +onetime@^5.1.0, onetime@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" +ono@^4.0.6: + version "4.0.11" + resolved "https://registry.yarnpkg.com/ono/-/ono-4.0.11.tgz#c7f4209b3e396e8a44ef43b9cedc7f5d791d221d" + integrity sha512-jQ31cORBFE6td25deYeD80wxKBMj+zBmHTrVxnc6CKhx8gho6ipmWM5zj/oeoqioZ99yqBls9Z/9Nss7J26G2g== + dependencies: + format-util "^1.0.3" + +openapi3-ts@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/openapi3-ts/-/openapi3-ts-3.1.2.tgz#3c8167a5c009d0138fb57205a47013a2c260684f" + integrity sha512-S8fijNOqe/ut0kEDAwHZnI7sVYqb8Q3XnISmSyXmK76jgrcf4ableI75KTY1qdksd9EI/t39Vi5M4VYKrkNKfQ== + dependencies: + yaml "^2.1.3" + optionator@^0.8.1: version "0.8.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" @@ -6459,6 +7565,42 @@ ora@^5.4.1: strip-ansi "^6.0.0" wcwidth "^1.0.1" +orval@^6.10.3: + version "6.10.3" + resolved "https://registry.yarnpkg.com/orval/-/orval-6.10.3.tgz#19efcc8a967a3303d0feb438021b31f893dc7cb5" + integrity sha512-gct7wGGacGIj3cRKqfioRK2/TRDAK11LbpghRgTMeNWWF+JBCyZGA8H9ehhfdCOuhXIb4me61aNphiusrlz7jQ== + dependencies: + "@apidevtools/swagger-parser" "^10.1.0" + acorn "^8.8.0" + cac "^6.7.12" + chalk "^4.1.2" + chokidar "^3.5.3" + compare-versions "^4.1.3" + cuid "^2.1.8" + debug "^4.3.4" + esbuild "^0.15.3" + esutils "2.0.3" + execa "^5.1.1" + find-up "5.0.0" + fs-extra "^10.1.0" + globby "11.1.0" + ibm-openapi-validator "^0.88.0" + inquirer "^8.2.4" + lodash.get "^4.4.2" + lodash.omit "^4.5.0" + lodash.omitby "^4.6.0" + lodash.uniq "^4.5.0" + lodash.uniqby "^4.7.0" + lodash.uniqwith "^4.5.0" + micromatch "^4.0.5" + openapi3-ts "^3.0.0" + string-argv "^0.3.1" + swagger2openapi "^7.0.8" + tsconfck "^2.0.1" + upath "^2.0.1" + url "^0.11.0" + validator "^13.7.0" + os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -6481,6 +7623,13 @@ p-limit@^1.1.0: dependencies: p-try "^1.0.0" +p-limit@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -6495,6 +7644,13 @@ p-locate@^2.0.0: dependencies: p-limit "^1.1.0" +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + p-locate@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" @@ -6514,6 +7670,42 @@ p-try@^1.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +pac-proxy-agent@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz#b718f76475a6a5415c2efbe256c1c971c84f635e" + integrity sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ== + dependencies: + "@tootallnate/once" "1" + agent-base "6" + debug "4" + get-uri "3" + http-proxy-agent "^4.0.1" + https-proxy-agent "5" + pac-resolver "^5.0.0" + raw-body "^2.2.0" + socks-proxy-agent "5" + +pac-resolver@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/pac-resolver/-/pac-resolver-5.0.1.tgz#c91efa3a9af9f669104fa2f51102839d01cde8e7" + integrity sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q== + dependencies: + degenerator "^3.0.2" + ip "^1.1.5" + netmask "^2.0.2" + +pad@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pad/-/pad-2.3.0.tgz#d604f0d5433c3e1500e207279cc5cd0234b1c2aa" + integrity sha512-lxrgnOG5AXmzMRT1O5urWtYFxHnFSE+QntgTHij1nvS4W+ubhQLmQRHmZXDeEvk9I00itAixLqU9Q6fE0gW3sw== + dependencies: + wcwidth "^1.0.1" + parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" @@ -6563,11 +7755,6 @@ path-parse@^1.0.6, path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -path-to-regexp@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-3.2.0.tgz#fa7877ecbc495c601907562222453c43cc204a5f" - integrity sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA== - path-to-regexp@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-6.2.0.tgz#f7b3803336104c346889adece614669230645f38" @@ -6608,7 +7795,7 @@ picocolors@^1.0.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1: +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== @@ -6637,6 +7824,11 @@ plausible-tracker@0.3.8: resolved "https://registry.yarnpkg.com/plausible-tracker/-/plausible-tracker-0.3.8.tgz#9b8b322cc41e0e1d6473869ef234deea365a5a40" integrity sha512-lmOWYQ7s9KOUJ1R+YTOR3HrjdbxIS2Z4de0P/Jx2dQPteznJl2eX3tXxKClpvbfyGP59B5bbhW8ftN59HbbFSg== +pony-cause@1.1.1, pony-cause@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/pony-cause/-/pony-cause-1.1.1.tgz#f795524f83bebbf1878bd3587b45f69143cbf3f9" + integrity sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g== + postcss@^8.4.19: version "8.4.19" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.19.tgz#61178e2add236b17351897c8bcc0b4c8ecab56fc" @@ -6693,6 +7885,11 @@ pretty-format@^29.0.0, pretty-format@^29.2.1: ansi-styles "^5.0.0" react-is "^18.0.0" +printable-characters@^1.0.42: + version "1.0.42" + resolved "https://registry.yarnpkg.com/printable-characters/-/printable-characters-1.0.42.tgz#3f18e977a9bd8eb37fcc4ff5659d7be90868b3d8" + integrity sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ== + prop-types@15.8.1, prop-types@^15.0.0, prop-types@^15.6.2, prop-types@^15.8.1: version "15.8.1" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" @@ -6707,11 +7904,30 @@ property-information@^6.0.0: resolved "https://registry.yarnpkg.com/property-information/-/property-information-6.2.0.tgz#b74f522c31c097b5149e3c3cb8d7f3defd986a1d" integrity sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg== +proxy-agent@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/proxy-agent/-/proxy-agent-5.0.0.tgz#d31405c10d6e8431fde96cba7a0c027ce01d633b" + integrity sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g== + dependencies: + agent-base "^6.0.0" + debug "4" + http-proxy-agent "^4.0.0" + https-proxy-agent "^5.0.0" + lru-cache "^5.1.1" + pac-proxy-agent "^5.0.0" + proxy-from-env "^1.0.0" + socks-proxy-agent "^5.0.0" + proxy-from-env@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee" integrity sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4= +proxy-from-env@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + psl@^1.1.28, psl@^1.1.33: version "1.8.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" @@ -6725,6 +7941,11 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + integrity sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw== + punycode@^2.1.0, punycode@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" @@ -6735,6 +7956,11 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + integrity sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g== + querystringify@^2.1.1: version "2.2.0" resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" @@ -6745,6 +7971,16 @@ queue-microtask@^1.2.2: resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== +raw-body@^2.2.0: + version "2.5.1" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857" + integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + react-chartjs-2@4.3.1: version "4.3.1" resolved "https://registry.yarnpkg.com/react-chartjs-2/-/react-chartjs-2-4.3.1.tgz#9941e7397fb963f28bb557addb401e9ff96c6681" @@ -6880,6 +8116,16 @@ react@17.0.2: loose-envify "^1.1.0" object-assign "^4.1.1" +readable-stream@1.1.x: + version "1.1.14" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" + integrity sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + readable-stream@^3.4.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" @@ -6904,10 +8150,10 @@ redent@^3.0.0: indent-string "^4.0.0" strip-indent "^3.0.0" -reflect-metadata@0.1.13: - version "0.1.13" - resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08" - integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== +reftools@^1.1.9: + version "1.1.9" + resolved "https://registry.yarnpkg.com/reftools/-/reftools-1.1.9.tgz#e16e19f662ccd4648605312c06d34e5da3a2b77e" + integrity sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w== regenerate-unicode-properties@^10.0.1: version "10.0.1" @@ -7002,16 +8248,31 @@ request-progress@^3.0.0: dependencies: throttleit "^1.0.0" +require-all@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/require-all/-/require-all-3.0.0.tgz#473d49704be310115ce124f77383b1ebd8671312" + integrity sha512-jPGN876lc5exWYrMcgZSd7U42P0PmVQzxnQB13fCSzmyGnqQWW4WUz5DosZ/qe24hz+5o9lSvW2epBNZ1xa6Fw== + require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + requires-port@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8= +reserved@0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/reserved/-/reserved-0.1.2.tgz#707b1246a3269f755da7cfcf9af6f4983bef105c" + integrity sha512-/qO54MWj5L8WCBP9/UNe2iefJc+L9yETbH32xO/ft/EYPOTCR5k+azvDUgdCOKwZH8hXwPd0b8XBL78Nn2U69g== + resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" @@ -7026,7 +8287,7 @@ resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^1.22.1: +resolve@^1.17.0, resolve@^1.22.1: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -7080,6 +8341,13 @@ rollup@^3.7.0: optionalDependencies: fsevents "~2.3.2" +rollup@~2.79.0: + version "2.79.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.1.tgz#bedee8faef7c9f93a2647ac0108748f497f081c7" + integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw== + optionalDependencies: + fsevents "~2.3.2" + run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" @@ -7097,20 +8365,13 @@ rw@1: resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" integrity sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ== -rxjs@7.5.5, rxjs@^7.5.1, rxjs@^7.5.5: +rxjs@^7.5.1, rxjs@^7.5.5: version "7.5.5" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.5.tgz#2ebad89af0f560f460ad5cc4213219e1f7dd4e9f" integrity sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw== dependencies: tslib "^2.1.0" -rxjs@^6.6.3: - version "6.6.7" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" - integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== - dependencies: - tslib "^1.9.0" - sade@^1.7.3: version "1.8.1" resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701" @@ -7128,6 +8389,20 @@ safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== +safe-regex-test@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" + integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + is-regex "^1.1.4" + +safe-stable-stringify@^1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz#c8a220ab525cd94e60ebf47ddc404d610dc5d84a" + integrity sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw== + "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -7169,6 +8444,11 @@ semver@7.3.8: dependencies: lru-cache "^6.0.0" +semver@^5.7.1: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" @@ -7193,6 +8473,11 @@ set-cookie-parser@^2.4.6: resolved "https://registry.yarnpkg.com/set-cookie-parser/-/set-cookie-parser-2.4.8.tgz#d0da0ed388bc8f24e706a391f9c9e252a13c58b2" integrity sha512-edRH8mBKEWNVIVMKejNnuJxleqYE/ZSdcT8/Nem9/mmosx12pctd80s2Oy00KNZzrogMZS5mauK2/ymL1bvlvg== +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -7205,6 +8490,50 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== +should-equal@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/should-equal/-/should-equal-2.0.0.tgz#6072cf83047360867e68e98b09d71143d04ee0c3" + integrity sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA== + dependencies: + should-type "^1.4.0" + +should-format@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/should-format/-/should-format-3.0.3.tgz#9bfc8f74fa39205c53d38c34d717303e277124f1" + integrity sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q== + dependencies: + should-type "^1.3.0" + should-type-adaptors "^1.0.1" + +should-type-adaptors@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz#401e7f33b5533033944d5cd8bf2b65027792e27a" + integrity sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA== + dependencies: + should-type "^1.3.0" + should-util "^1.0.0" + +should-type@^1.3.0, should-type@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/should-type/-/should-type-1.4.0.tgz#0756d8ce846dfd09843a6947719dfa0d4cff5cf3" + integrity sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ== + +should-util@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/should-util/-/should-util-1.0.1.tgz#fb0d71338f532a3a149213639e2d32cbea8bcb28" + integrity sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g== + +should@^13.2.1: + version "13.2.3" + resolved "https://registry.yarnpkg.com/should/-/should-13.2.3.tgz#96d8e5acf3e97b49d89b51feaa5ae8d07ef58f10" + integrity sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ== + dependencies: + should-equal "^2.0.0" + should-format "^3.0.3" + should-type "^1.4.0" + should-type-adaptors "^1.0.1" + should-util "^1.0.0" + side-channel@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" @@ -7214,11 +8543,18 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.2: +signal-exit@^3.0.2, signal-exit@^3.0.3: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== +simple-eval@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-eval/-/simple-eval-1.0.0.tgz#7ba8e6049840690b2d4e356ed01f13209e03aad1" + integrity sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw== + dependencies: + jsep "^1.1.2" + slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" @@ -7242,6 +8578,28 @@ slice-ansi@^4.0.0: astral-regex "^2.0.0" is-fullwidth-code-point "^3.0.0" +smart-buffer@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" + integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== + +socks-proxy-agent@5, socks-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz#032fb583048a29ebffec2e6a73fca0761f48177e" + integrity sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ== + dependencies: + agent-base "^6.0.2" + debug "4" + socks "^2.3.3" + +socks@^2.3.3: + version "2.7.1" + resolved "https://registry.yarnpkg.com/socks/-/socks-2.7.1.tgz#d8e651247178fde79c0663043e07240196857d55" + integrity sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ== + dependencies: + ip "^2.0.0" + smart-buffer "^4.2.0" + "source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" @@ -7265,15 +8623,20 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +sourcemap-codec@^1.4.8: + version "1.4.8" + resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" + integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== + space-separated-tokens@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz#1ecd9d2350a3844572c3f4a312bceb018348859f" integrity sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q== -spawn-command@^0.0.2-1: - version "0.0.2-1" - resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0" - integrity sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A= +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== sshpk@^1.14.1: version "1.17.0" @@ -7297,6 +8660,19 @@ stack-utils@^2.0.3: dependencies: escape-string-regexp "^2.0.0" +stacktracey@^2.1.7: + version "2.1.8" + resolved "https://registry.yarnpkg.com/stacktracey/-/stacktracey-2.1.8.tgz#bf9916020738ce3700d1323b32bd2c91ea71199d" + integrity sha512-Kpij9riA+UNg7TnphqjH7/CzctQ/owJGNbFkfEeve4Z4uxT5+JapVLFXcsurIfN34gnTWZNJ/f7NMG0E8JDzTw== + dependencies: + as-table "^1.0.36" + get-source "^2.0.12" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + strict-event-emitter@^0.2.4: version "0.2.4" resolved "https://registry.yarnpkg.com/strict-event-emitter/-/strict-event-emitter-0.2.4.tgz#365714f0c95f059db31064ca745d5b33e5b30f6e" @@ -7311,6 +8687,11 @@ strict-event-emitter@^0.2.6: dependencies: events "^3.3.0" +string-argv@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" + integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== + string-natural-compare@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" @@ -7348,6 +8729,15 @@ string.prototype.trimend@^1.0.5: define-properties "^1.1.4" es-abstract "^1.19.5" +string.prototype.trimend@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" + integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + string.prototype.trimstart@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" @@ -7357,6 +8747,15 @@ string.prototype.trimstart@^1.0.5: define-properties "^1.1.4" es-abstract "^1.19.5" +string.prototype.trimstart@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4" + integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -7364,7 +8763,12 @@ string_decoder@^1.1.1: dependencies: safe-buffer "~5.2.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== + +strip-ansi@6.0, strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -7436,7 +8840,7 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@^8.1.0, supports-color@^8.1.1: +supports-color@^8.1.1: version "8.1.1" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== @@ -7453,17 +8857,36 @@ svg-parser@^2.0.4: resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5" integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== -swr@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/swr/-/swr-1.3.0.tgz#c6531866a35b4db37b38b72c45a63171faf9f4e8" - integrity sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw== +swagger2openapi@^7.0.8: + version "7.0.8" + resolved "https://registry.yarnpkg.com/swagger2openapi/-/swagger2openapi-7.0.8.tgz#12c88d5de776cb1cbba758994930f40ad0afac59" + integrity sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g== + dependencies: + call-me-maybe "^1.0.1" + node-fetch "^2.6.1" + node-fetch-h2 "^2.3.0" + node-readfiles "^0.2.0" + oas-kit-common "^1.0.8" + oas-resolver "^2.5.6" + oas-schema-walker "^1.1.5" + oas-validator "^5.0.8" + reftools "^1.1.9" + yaml "^1.10.0" + yargs "^17.0.1" + +swr@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/swr/-/swr-2.0.0.tgz#91d999359e2be92de1a41f6b6711d72be20ffdbd" + integrity sha512-IhUx5yPkX+Fut3h0SqZycnaNLXLXsb2ECFq0Y29cxnK7d8r7auY2JWNbCW3IX+EqXUg3rwNJFlhrw5Ye/b6k7w== + dependencies: + use-sync-external-store "^1.2.0" symbol-tree@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -text-table@^0.2.0: +text-table@0.2, text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= @@ -7524,6 +8947,11 @@ toggle-selection@^1.0.6: resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32" integrity sha1-bkWxJj8gF/oKzH2J14sVuL932jI= +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + tough-cookie@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.2.tgz#e53e84b85f24e0b65dd526f46628db6c85f6b874" @@ -7554,11 +8982,6 @@ tr46@~0.0.3: resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= -tree-kill@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" - integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== - trim-lines@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338" @@ -7584,21 +9007,21 @@ tsconfig-paths@^3.14.1: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.0.3.tgz#8e0741ac45fc0c226e58a17bfc3e64b9bc6ca61c" - integrity sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ== - -tslib@2.3.1, tslib@^2.1.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" - integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== - -tslib@^1.8.1, tslib@^1.9.0: +tslib@^1.14.1, tslib@^1.8.1: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== +tslib@^2.0.1, tslib@^2.2.0, tslib@^2.3.0, tslib@^2.3.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + +tslib@^2.1.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" + integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== + tss-react@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/tss-react/-/tss-react-4.0.0.tgz#cdd9d4c4ae24de04c13b9deff59b50fdf6ce10ae" @@ -7765,6 +9188,11 @@ unist-util-visit@^4.0.0: unist-util-is "^5.0.0" unist-util-visit-parents "^5.1.1" +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" @@ -7775,11 +9203,21 @@ universalify@^2.0.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== +unpipe@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + untildify@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== +upath@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/upath/-/upath-2.0.1.tgz#50c73dea68d6f6b990f51d279ce6081665d61a8b" + integrity sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w== + update-browserslist-db@^1.0.9: version "1.0.10" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" @@ -7795,6 +9233,11 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" +urijs@^1.19.11: + version "1.19.11" + resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.11.tgz#204b0d6b605ae80bea54bea39280cdb7c9f923cc" + integrity sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ== + url-parse@^1.5.3: version "1.5.10" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" @@ -7803,7 +9246,15 @@ url-parse@^1.5.3: querystringify "^2.1.1" requires-port "^1.0.0" -use-sync-external-store@1.2.0: +url@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + integrity sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ== + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +use-sync-external-store@1.2.0, use-sync-external-store@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== @@ -7825,7 +9276,12 @@ util@^0.12.3: safe-buffer "^5.1.2" which-typed-array "^1.1.2" -uuid@8.3.2, uuid@^8.3.2: +utility-types@^3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.10.0.tgz#ea4148f9a741015f05ed74fd615e1d20e6bed82b" + integrity sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg== + +uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== @@ -7845,6 +9301,18 @@ uvu@^0.5.0: kleur "^4.0.3" sade "^1.7.3" +validate-npm-package-name@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz#5fa912d81eb7d0c74afc140de7317f0ca7df437e" + integrity sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw== + dependencies: + builtins "^1.0.3" + +validator@^13.7.0: + version "13.7.0" + resolved "https://registry.yarnpkg.com/validator/-/validator-13.7.0.tgz#4f9658ba13ba8f3d82ee881d3516489ea85c0857" + integrity sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw== + verror@1.10.0: version "1.10.0" resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" @@ -7951,6 +9419,14 @@ vitest@0.26.3: vite "^3.0.0 || ^4.0.0" vite-node "0.26.3" +vm2@^3.9.8: + version "3.9.13" + resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.13.tgz#774a1a3d73b9b90b1aa45bcc5f25e349f2eef649" + integrity sha512-0rvxpB8P8Shm4wX2EKOiMp7H2zq+HUE/UwodY0pCZXs9IffIKZq6vUti5OgkVCTakKo9e/fgO4X1fkwfjWxE3Q== + dependencies: + acorn "^8.7.0" + acorn-walk "^8.2.0" + w3c-keyname@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/w3c-keyname/-/w3c-keyname-2.2.4.tgz#4ade6916f6290224cdbd1db8ac49eab03d0eef6b" @@ -7963,7 +9439,7 @@ w3c-xmlserializer@^4.0.0: dependencies: xml-name-validator "^4.0.0" -wcwidth@>=1.0.1, wcwidth@^1.0.1: +wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g= @@ -8095,6 +9571,11 @@ xmlchars@^2.2.0: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== +xregexp@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943" + integrity sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA== + y18n@^5.0.5: version "5.0.8" resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" @@ -8110,33 +9591,38 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== +yaml-js@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/yaml-js/-/yaml-js-0.2.3.tgz#f4cf6c1b3c784f59f55547d7dfcdd06418303291" + integrity sha512-6xUQtVKl1qcd0EXtTEzUDVJy9Ji1fYa47LtkDtYKlIjhibPE9knNPmoRyf6SGREFHlOAUyDe9OdYqRP4DuSi5Q== + yaml@^1.10.0: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== -yargs-parser@^20.2.2: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== +yaml@^2.1.3: + version "2.2.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.2.1.tgz#3014bf0482dcd15147aa8e56109ce8632cd60ce4" + integrity sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw== yargs-parser@^21.0.0: version "21.0.1" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.0.1.tgz#0267f286c877a4f0f728fceb6f8a3e4cb95c6e35" integrity sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg== -yargs@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== +yargs@17.3.1: + version "17.3.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.3.1.tgz#da56b28f32e2fd45aefb402ed9c26f42be4c07b9" + integrity sha512-WUANQeVgjLbNsEmGk20f+nlHgOqzRFpiGWVaBrYGYIGANIIu3lWjoyi0fNlFmJkvfhCZ6BXINe7/W2O2bV4iaA== dependencies: cliui "^7.0.2" escalade "^3.1.1" get-caller-file "^2.0.5" require-directory "^2.1.1" - string-width "^4.2.0" + string-width "^4.2.3" y18n "^5.0.5" - yargs-parser "^20.2.2" + yargs-parser "^21.0.0" yargs@^17.0.1: version "17.6.0" diff --git a/src/lib/openapi/spec/sdk-context-schema.ts b/src/lib/openapi/spec/sdk-context-schema.ts index 49ac25666f..62f259152a 100644 --- a/src/lib/openapi/spec/sdk-context-schema.ts +++ b/src/lib/openapi/spec/sdk-context-schema.ts @@ -4,10 +4,7 @@ export const sdkContextSchema = { $id: '#/components/schemas/sdkContextSchema', description: 'The Unleash context as modeled in client SDKs', type: 'object', - additionalProperties: { - type: 'string', - example: 'top-level custom context value', - }, + additionalProperties: true, required: ['appName'], properties: { appName: { diff --git a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap index c526d268fe..3fedeeb901 100644 --- a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap +++ b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap @@ -2838,10 +2838,7 @@ exports[`should serve the OpenAPI spec 1`] = ` "type": "object", }, "sdkContextSchema": { - "additionalProperties": { - "example": "top-level custom context value", - "type": "string", - }, + "additionalProperties": true, "description": "The Unleash context as modeled in client SDKs", "properties": { "appName": {