@tsed/schema 8.0.0-alpha.1 → 8.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/schema.umd.min.js +1 -1
- package/lib/browser/schema.umd.min.js.map +1 -1
- package/lib/esm/components/async-api/channelsMapper.js.map +1 -1
- package/lib/esm/components/async-api/generate.js.map +1 -1
- package/lib/esm/components/async-api/messageMapper.js.map +1 -1
- package/lib/esm/components/async-api/payloadMapper.js.map +1 -1
- package/lib/esm/components/async-api/responseMapper.js.map +1 -1
- package/lib/esm/components/default/anyMapper.js.map +1 -1
- package/lib/esm/components/default/classMapper.js.map +1 -1
- package/lib/esm/components/default/genericsMapper.js.map +1 -1
- package/lib/esm/components/default/inheritedClassMapper.js.map +1 -1
- package/lib/esm/components/default/inlineEnumsMapper.js.map +1 -1
- package/lib/esm/components/default/lazyRefMapper.js.map +1 -1
- package/lib/esm/components/default/mapMapper.js +1 -1
- package/lib/esm/components/default/mapMapper.js.map +1 -1
- package/lib/esm/components/default/nullableMapper.js.map +1 -1
- package/lib/esm/components/default/objectMapper.js.map +1 -1
- package/lib/esm/components/default/ofMapper.js.map +1 -1
- package/lib/esm/components/default/propertiesMapper.js.map +1 -1
- package/lib/esm/components/default/requiredMapper.js.map +1 -1
- package/lib/esm/components/default/schemaMapper.js.map +1 -1
- package/lib/esm/components/open-spec/generate.js.map +1 -1
- package/lib/esm/components/open-spec/nullableMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationInFilesMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationInParameterMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationInQueryMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationRequestBodyMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationResponseMapper.js.map +1 -1
- package/lib/esm/components/open-spec/pathsMapper.js.map +1 -1
- package/lib/esm/constants/OperationVerbs.js +0 -4
- package/lib/esm/constants/OperationVerbs.js.map +1 -1
- package/lib/esm/constants/httpStatusMessages.js +1 -1
- package/lib/esm/constants/httpStatusMessages.js.map +1 -1
- package/lib/esm/decorators/class/children.js.map +1 -1
- package/lib/esm/decorators/class/discriminatorValue.js.map +1 -1
- package/lib/esm/decorators/collections/collectionOf.js.map +1 -1
- package/lib/esm/decorators/collections/maxItems.js.map +1 -1
- package/lib/esm/decorators/collections/maxProperties.js.map +1 -1
- package/lib/esm/decorators/collections/minItems.js.map +1 -1
- package/lib/esm/decorators/collections/minProperties.js.map +1 -1
- package/lib/esm/decorators/common/allow.js.map +1 -1
- package/lib/esm/decorators/common/any.js.map +1 -1
- package/lib/esm/decorators/common/const.js.map +1 -1
- package/lib/esm/decorators/common/defaultMsg.js.map +1 -1
- package/lib/esm/decorators/common/description.js.map +1 -1
- package/lib/esm/decorators/common/discriminatorKey.js.map +1 -1
- package/lib/esm/decorators/common/enum.js.map +1 -1
- package/lib/esm/decorators/common/examples.js.map +1 -1
- package/lib/esm/decorators/common/format.js.map +1 -1
- package/lib/esm/decorators/common/groups.js.map +1 -1
- package/lib/esm/decorators/common/ignore.js +2 -1
- package/lib/esm/decorators/common/ignore.js.map +1 -1
- package/lib/esm/decorators/common/integer.js.map +1 -1
- package/lib/esm/decorators/common/jsonEntityFn.js.map +1 -1
- package/lib/esm/decorators/common/maxLength.js.map +1 -1
- package/lib/esm/decorators/common/minLength.js.map +1 -1
- package/lib/esm/decorators/common/multipleOf.js.map +1 -1
- package/lib/esm/decorators/common/name.js.map +1 -1
- package/lib/esm/decorators/common/nullable.js.map +1 -1
- package/lib/esm/decorators/common/optional.js.map +1 -1
- package/lib/esm/decorators/common/property.js.map +1 -1
- package/lib/esm/decorators/common/requiredGroups.js.map +1 -1
- package/lib/esm/decorators/common/typeError.js.map +1 -1
- package/lib/esm/decorators/config/jsonEntityComponent.js.map +1 -1
- package/lib/esm/decorators/generics/genericOf.js.map +1 -1
- package/lib/esm/decorators/operations/acceptMime.js.map +1 -1
- package/lib/esm/decorators/operations/consumes.js.map +1 -1
- package/lib/esm/decorators/operations/deprecated.js.map +1 -1
- package/lib/esm/decorators/operations/header.js.map +1 -1
- package/lib/esm/decorators/operations/in.js.map +1 -1
- package/lib/esm/decorators/operations/inFile.js +2 -2
- package/lib/esm/decorators/operations/inFile.js.map +1 -1
- package/lib/esm/decorators/operations/operation.js.map +1 -1
- package/lib/esm/decorators/operations/operationId.js.map +1 -1
- package/lib/esm/decorators/operations/operationPath.js.map +1 -1
- package/lib/esm/decorators/operations/path.js.map +1 -1
- package/lib/esm/decorators/operations/produces.js.map +1 -1
- package/lib/esm/decorators/operations/redirect.js.map +1 -1
- package/lib/esm/decorators/operations/returns.js.map +1 -1
- package/lib/esm/decorators/operations/route.js +0 -4
- package/lib/esm/decorators/operations/route.js.map +1 -1
- package/lib/esm/decorators/operations/security.js.map +1 -1
- package/lib/esm/decorators/operations/status.js +1 -2
- package/lib/esm/decorators/operations/status.js.map +1 -1
- package/lib/esm/decorators/operations/summary.js.map +1 -1
- package/lib/esm/decorators/operations/tags.js.map +1 -1
- package/lib/esm/domain/DecoratorContext.js.map +1 -1
- package/lib/esm/domain/JsonClassStore.js +1 -1
- package/lib/esm/domain/JsonClassStore.js.map +1 -1
- package/lib/esm/domain/JsonEntityStore.js.map +1 -1
- package/lib/esm/domain/JsonLazyRef.js.map +1 -1
- package/lib/esm/domain/JsonMap.js.map +1 -1
- package/lib/esm/domain/JsonMedia.js.map +1 -1
- package/lib/esm/domain/JsonMethodStore.js.map +1 -1
- package/lib/esm/domain/JsonOperation.js.map +1 -1
- package/lib/esm/domain/JsonOperationRoute.js.map +1 -1
- package/lib/esm/domain/JsonParameter.js.map +1 -1
- package/lib/esm/domain/JsonParameterStore.js +1 -1
- package/lib/esm/domain/JsonParameterStore.js.map +1 -1
- package/lib/esm/domain/JsonPropertyStore.js +1 -1
- package/lib/esm/domain/JsonPropertyStore.js.map +1 -1
- package/lib/esm/domain/JsonRequestBody.js.map +1 -1
- package/lib/esm/domain/JsonResponse.js.map +1 -1
- package/lib/esm/domain/JsonSchema.js.map +1 -1
- package/lib/esm/hooks/alterIgnore.js.map +1 -1
- package/lib/esm/hooks/alterOneOf.js.map +1 -1
- package/lib/esm/hooks/alterRequiredGroups.js.map +1 -1
- package/lib/esm/registries/JsonSchemaMapperContainer.js.map +1 -1
- package/lib/esm/utils/concatPath.js.map +1 -1
- package/lib/esm/utils/from.js.map +1 -1
- package/lib/esm/utils/generateSpec.js.map +1 -1
- package/lib/esm/utils/generics.js.map +1 -1
- package/lib/esm/utils/getComputedType.js.map +1 -1
- package/lib/esm/utils/getInheritedStores.js.map +1 -1
- package/lib/esm/utils/getJsonEntityStore.js +3 -3
- package/lib/esm/utils/getJsonEntityStore.js.map +1 -1
- package/lib/esm/utils/getJsonPathParameters.js.map +1 -1
- package/lib/esm/utils/getJsonSchema.js +1 -1
- package/lib/esm/utils/getJsonSchema.js.map +1 -1
- package/lib/esm/utils/getJsonType.js.map +1 -1
- package/lib/esm/utils/getOperationsRoutes.js.map +1 -1
- package/lib/esm/utils/getOperationsStores.js.map +1 -1
- package/lib/esm/utils/getPropertiesStores.js.map +1 -1
- package/lib/esm/utils/getSpec.js.map +1 -1
- package/lib/esm/utils/getSpecType.js.map +1 -1
- package/lib/esm/utils/mapHeaders.js.map +1 -1
- package/lib/esm/utils/mapOpenSpec.js +1 -1
- package/lib/esm/utils/mapOpenSpec.js.map +1 -1
- package/lib/esm/utils/mapOpenSpec2.js.map +1 -1
- package/lib/esm/utils/mapOpenSpec3.js.map +1 -1
- package/lib/esm/utils/mapOperationOptions.js.map +1 -1
- package/lib/esm/utils/matchGroups.js.map +1 -1
- package/lib/esm/utils/mergeSpec.js +1 -1
- package/lib/esm/utils/mergeSpec.js.map +1 -1
- package/lib/esm/utils/operationIdFormatter.js.map +1 -1
- package/lib/esm/utils/ref.js.map +1 -1
- package/lib/esm/utils/serializeEnumValues.js.map +1 -1
- package/lib/esm/utils/somethingOf.js.map +1 -1
- package/lib/esm/utils/transformToOS2.js.map +1 -1
- package/lib/esm/utils/withErrorMsg.js.map +1 -1
- package/lib/types/constants/OperationVerbs.d.ts +1 -5
- package/lib/types/decorators/common/ignore.d.ts +2 -1
- package/lib/types/decorators/operations/returns.d.ts +1 -2
- package/lib/types/decorators/operations/route.d.ts +0 -5
- package/lib/types/decorators/operations/status.d.ts +1 -2
- package/lib/types/domain/JsonClassStore.d.ts +1 -1
- package/lib/types/domain/JsonPropertyStore.d.ts +1 -1
- package/lib/types/utils/getJsonEntityStore.d.ts +3 -3
- package/lib/types/utils/getJsonSchema.d.ts +1 -1
- package/package.json +20 -19
- package/lib/cjs/components/async-api/channelsMapper.js +0 -62
- package/lib/cjs/components/async-api/channelsMapper.js.map +0 -1
- package/lib/cjs/components/async-api/generate.js +0 -20
- package/lib/cjs/components/async-api/generate.js.map +0 -1
- package/lib/cjs/components/async-api/messageMapper.js +0 -44
- package/lib/cjs/components/async-api/messageMapper.js.map +0 -1
- package/lib/cjs/components/async-api/payloadMapper.js +0 -52
- package/lib/cjs/components/async-api/payloadMapper.js.map +0 -1
- package/lib/cjs/components/async-api/responseMapper.js +0 -58
- package/lib/cjs/components/async-api/responseMapper.js.map +0 -1
- package/lib/cjs/components/default/anyMapper.js +0 -29
- package/lib/cjs/components/default/anyMapper.js.map +0 -1
- package/lib/cjs/components/default/classMapper.js +0 -43
- package/lib/cjs/components/default/classMapper.js.map +0 -1
- package/lib/cjs/components/default/genericsMapper.js +0 -62
- package/lib/cjs/components/default/genericsMapper.js.map +0 -1
- package/lib/cjs/components/default/inheritedClassMapper.js +0 -22
- package/lib/cjs/components/default/inheritedClassMapper.js.map +0 -1
- package/lib/cjs/components/default/inlineEnumsMapper.js +0 -16
- package/lib/cjs/components/default/inlineEnumsMapper.js.map +0 -1
- package/lib/cjs/components/default/itemMapper.js +0 -10
- package/lib/cjs/components/default/itemMapper.js.map +0 -1
- package/lib/cjs/components/default/lazyRefMapper.js +0 -18
- package/lib/cjs/components/default/lazyRefMapper.js.map +0 -1
- package/lib/cjs/components/default/mapMapper.js +0 -25
- package/lib/cjs/components/default/mapMapper.js.map +0 -1
- package/lib/cjs/components/default/nullableMapper.js +0 -54
- package/lib/cjs/components/default/nullableMapper.js.map +0 -1
- package/lib/cjs/components/default/objectMapper.js +0 -30
- package/lib/cjs/components/default/objectMapper.js.map +0 -1
- package/lib/cjs/components/default/ofMapper.js +0 -17
- package/lib/cjs/components/default/ofMapper.js.map +0 -1
- package/lib/cjs/components/default/propertiesMapper.js +0 -25
- package/lib/cjs/components/default/propertiesMapper.js.map +0 -1
- package/lib/cjs/components/default/requiredMapper.js +0 -56
- package/lib/cjs/components/default/requiredMapper.js.map +0 -1
- package/lib/cjs/components/default/schemaMapper.js +0 -124
- package/lib/cjs/components/default/schemaMapper.js.map +0 -1
- package/lib/cjs/components/index.js +0 -37
- package/lib/cjs/components/index.js.map +0 -1
- package/lib/cjs/components/open-spec/generate.js +0 -24
- package/lib/cjs/components/open-spec/generate.js.map +0 -1
- package/lib/cjs/components/open-spec/nullableMapper.js +0 -49
- package/lib/cjs/components/open-spec/nullableMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInFilesMapper.js +0 -28
- package/lib/cjs/components/open-spec/operationInFilesMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInParameterMapper.js +0 -39
- package/lib/cjs/components/open-spec/operationInParameterMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInParametersMapper.js +0 -10
- package/lib/cjs/components/open-spec/operationInParametersMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInQueryMapper.js +0 -61
- package/lib/cjs/components/open-spec/operationInQueryMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationMapper.js +0 -49
- package/lib/cjs/components/open-spec/operationMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationMediaMapper.js +0 -11
- package/lib/cjs/components/open-spec/operationMediaMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationRequestBodyMapper.js +0 -67
- package/lib/cjs/components/open-spec/operationRequestBodyMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationResponseMapper.js +0 -24
- package/lib/cjs/components/open-spec/operationResponseMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/pathsMapper.js +0 -95
- package/lib/cjs/components/open-spec/pathsMapper.js.map +0 -1
- package/lib/cjs/constants/OperationVerbs.js +0 -36
- package/lib/cjs/constants/OperationVerbs.js.map +0 -1
- package/lib/cjs/constants/httpStatusMessages.js +0 -24
- package/lib/cjs/constants/httpStatusMessages.js.map +0 -1
- package/lib/cjs/constants/jsonSchemaProperties.js +0 -21
- package/lib/cjs/constants/jsonSchemaProperties.js.map +0 -1
- package/lib/cjs/decorators/class/children.js +0 -24
- package/lib/cjs/decorators/class/children.js.map +0 -1
- package/lib/cjs/decorators/class/discriminatorValue.js +0 -56
- package/lib/cjs/decorators/class/discriminatorValue.js.map +0 -1
- package/lib/cjs/decorators/collections/collectionContains.js +0 -29
- package/lib/cjs/decorators/collections/collectionContains.js.map +0 -1
- package/lib/cjs/decorators/collections/collectionOf.js +0 -102
- package/lib/cjs/decorators/collections/collectionOf.js.map +0 -1
- package/lib/cjs/decorators/collections/maxItems.js +0 -61
- package/lib/cjs/decorators/collections/maxItems.js.map +0 -1
- package/lib/cjs/decorators/collections/maxProperties.js +0 -84
- package/lib/cjs/decorators/collections/maxProperties.js.map +0 -1
- package/lib/cjs/decorators/collections/minItems.js +0 -65
- package/lib/cjs/decorators/collections/minItems.js.map +0 -1
- package/lib/cjs/decorators/collections/minProperties.js +0 -83
- package/lib/cjs/decorators/collections/minProperties.js.map +0 -1
- package/lib/cjs/decorators/collections/uniqueItems.js +0 -61
- package/lib/cjs/decorators/collections/uniqueItems.js.map +0 -1
- package/lib/cjs/decorators/common/additionalProperties.js +0 -20
- package/lib/cjs/decorators/common/additionalProperties.js.map +0 -1
- package/lib/cjs/decorators/common/allOf.js +0 -22
- package/lib/cjs/decorators/common/allOf.js.map +0 -1
- package/lib/cjs/decorators/common/allow.js +0 -47
- package/lib/cjs/decorators/common/allow.js.map +0 -1
- package/lib/cjs/decorators/common/any.js +0 -46
- package/lib/cjs/decorators/common/any.js.map +0 -1
- package/lib/cjs/decorators/common/anyOf.js +0 -26
- package/lib/cjs/decorators/common/anyOf.js.map +0 -1
- package/lib/cjs/decorators/common/const.js +0 -70
- package/lib/cjs/decorators/common/const.js.map +0 -1
- package/lib/cjs/decorators/common/customKey.js +0 -43
- package/lib/cjs/decorators/common/customKey.js.map +0 -1
- package/lib/cjs/decorators/common/default.js +0 -51
- package/lib/cjs/decorators/common/default.js.map +0 -1
- package/lib/cjs/decorators/common/defaultMsg.js +0 -41
- package/lib/cjs/decorators/common/defaultMsg.js.map +0 -1
- package/lib/cjs/decorators/common/description.js +0 -75
- package/lib/cjs/decorators/common/description.js.map +0 -1
- package/lib/cjs/decorators/common/discriminatorKey.js +0 -13
- package/lib/cjs/decorators/common/discriminatorKey.js.map +0 -1
- package/lib/cjs/decorators/common/enum.js +0 -109
- package/lib/cjs/decorators/common/enum.js.map +0 -1
- package/lib/cjs/decorators/common/errorMsg.js +0 -18
- package/lib/cjs/decorators/common/errorMsg.js.map +0 -1
- package/lib/cjs/decorators/common/example.js +0 -21
- package/lib/cjs/decorators/common/example.js.map +0 -1
- package/lib/cjs/decorators/common/examples.js +0 -21
- package/lib/cjs/decorators/common/examples.js.map +0 -1
- package/lib/cjs/decorators/common/exclusiveMaximum.js +0 -78
- package/lib/cjs/decorators/common/exclusiveMaximum.js.map +0 -1
- package/lib/cjs/decorators/common/exclusiveMinimum.js +0 -78
- package/lib/cjs/decorators/common/exclusiveMinimum.js.map +0 -1
- package/lib/cjs/decorators/common/format.js +0 -487
- package/lib/cjs/decorators/common/format.js.map +0 -1
- package/lib/cjs/decorators/common/forwardGroups.js +0 -20
- package/lib/cjs/decorators/common/forwardGroups.js.map +0 -1
- package/lib/cjs/decorators/common/groups.js +0 -49
- package/lib/cjs/decorators/common/groups.js.map +0 -1
- package/lib/cjs/decorators/common/hidden.js +0 -40
- package/lib/cjs/decorators/common/hidden.js.map +0 -1
- package/lib/cjs/decorators/common/ignore.js +0 -68
- package/lib/cjs/decorators/common/ignore.js.map +0 -1
- package/lib/cjs/decorators/common/integer.js +0 -71
- package/lib/cjs/decorators/common/integer.js.map +0 -1
- package/lib/cjs/decorators/common/jsonEntityFn.js +0 -32
- package/lib/cjs/decorators/common/jsonEntityFn.js.map +0 -1
- package/lib/cjs/decorators/common/maxLength.js +0 -90
- package/lib/cjs/decorators/common/maxLength.js.map +0 -1
- package/lib/cjs/decorators/common/maximum.js +0 -149
- package/lib/cjs/decorators/common/maximum.js.map +0 -1
- package/lib/cjs/decorators/common/minLength.js +0 -91
- package/lib/cjs/decorators/common/minLength.js.map +0 -1
- package/lib/cjs/decorators/common/minimum.js +0 -147
- package/lib/cjs/decorators/common/minimum.js.map +0 -1
- package/lib/cjs/decorators/common/multipleOf.js +0 -82
- package/lib/cjs/decorators/common/multipleOf.js.map +0 -1
- package/lib/cjs/decorators/common/name.js +0 -52
- package/lib/cjs/decorators/common/name.js.map +0 -1
- package/lib/cjs/decorators/common/nullable.js +0 -34
- package/lib/cjs/decorators/common/nullable.js.map +0 -1
- package/lib/cjs/decorators/common/oneOf.js +0 -27
- package/lib/cjs/decorators/common/oneOf.js.map +0 -1
- package/lib/cjs/decorators/common/optional.js +0 -28
- package/lib/cjs/decorators/common/optional.js.map +0 -1
- package/lib/cjs/decorators/common/pattern.js +0 -104
- package/lib/cjs/decorators/common/pattern.js.map +0 -1
- package/lib/cjs/decorators/common/property.js +0 -27
- package/lib/cjs/decorators/common/property.js.map +0 -1
- package/lib/cjs/decorators/common/readOnly.js +0 -21
- package/lib/cjs/decorators/common/readOnly.js.map +0 -1
- package/lib/cjs/decorators/common/recordOf.js +0 -63
- package/lib/cjs/decorators/common/recordOf.js.map +0 -1
- package/lib/cjs/decorators/common/required.js +0 -53
- package/lib/cjs/decorators/common/required.js.map +0 -1
- package/lib/cjs/decorators/common/requiredGroups.js +0 -26
- package/lib/cjs/decorators/common/requiredGroups.js.map +0 -1
- package/lib/cjs/decorators/common/schema.js +0 -66
- package/lib/cjs/decorators/common/schema.js.map +0 -1
- package/lib/cjs/decorators/common/title.js +0 -49
- package/lib/cjs/decorators/common/title.js.map +0 -1
- package/lib/cjs/decorators/common/typeError.js +0 -18
- package/lib/cjs/decorators/common/typeError.js.map +0 -1
- package/lib/cjs/decorators/common/writeOnly.js +0 -21
- package/lib/cjs/decorators/common/writeOnly.js.map +0 -1
- package/lib/cjs/decorators/config/jsonEntityComponent.js +0 -18
- package/lib/cjs/decorators/config/jsonEntityComponent.js.map +0 -1
- package/lib/cjs/decorators/generics/genericOf.js +0 -99
- package/lib/cjs/decorators/generics/genericOf.js.map +0 -1
- package/lib/cjs/decorators/generics/generics.js +0 -25
- package/lib/cjs/decorators/generics/generics.js.map +0 -1
- package/lib/cjs/decorators/operations/acceptMime.js +0 -28
- package/lib/cjs/decorators/operations/acceptMime.js.map +0 -1
- package/lib/cjs/decorators/operations/consumes.js +0 -39
- package/lib/cjs/decorators/operations/consumes.js.map +0 -1
- package/lib/cjs/decorators/operations/contentType.js +0 -28
- package/lib/cjs/decorators/operations/contentType.js.map +0 -1
- package/lib/cjs/decorators/operations/deprecated.js +0 -49
- package/lib/cjs/decorators/operations/deprecated.js.map +0 -1
- package/lib/cjs/decorators/operations/header.js +0 -63
- package/lib/cjs/decorators/operations/header.js.map +0 -1
- package/lib/cjs/decorators/operations/in.js +0 -80
- package/lib/cjs/decorators/operations/in.js.map +0 -1
- package/lib/cjs/decorators/operations/inFile.js +0 -45
- package/lib/cjs/decorators/operations/inFile.js.map +0 -1
- package/lib/cjs/decorators/operations/location.js +0 -29
- package/lib/cjs/decorators/operations/location.js.map +0 -1
- package/lib/cjs/decorators/operations/operation.js +0 -48
- package/lib/cjs/decorators/operations/operation.js.map +0 -1
- package/lib/cjs/decorators/operations/operationId.js +0 -24
- package/lib/cjs/decorators/operations/operationId.js.map +0 -1
- package/lib/cjs/decorators/operations/operationPath.js +0 -34
- package/lib/cjs/decorators/operations/operationPath.js.map +0 -1
- package/lib/cjs/decorators/operations/partial.js +0 -18
- package/lib/cjs/decorators/operations/partial.js.map +0 -1
- package/lib/cjs/decorators/operations/path.js +0 -29
- package/lib/cjs/decorators/operations/path.js.map +0 -1
- package/lib/cjs/decorators/operations/produces.js +0 -46
- package/lib/cjs/decorators/operations/produces.js.map +0 -1
- package/lib/cjs/decorators/operations/publish.js +0 -10
- package/lib/cjs/decorators/operations/publish.js.map +0 -1
- package/lib/cjs/decorators/operations/redirect.js +0 -25
- package/lib/cjs/decorators/operations/redirect.js.map +0 -1
- package/lib/cjs/decorators/operations/returns.js +0 -293
- package/lib/cjs/decorators/operations/returns.js.map +0 -1
- package/lib/cjs/decorators/operations/route.js +0 -162
- package/lib/cjs/decorators/operations/route.js.map +0 -1
- package/lib/cjs/decorators/operations/security.js +0 -31
- package/lib/cjs/decorators/operations/security.js.map +0 -1
- package/lib/cjs/decorators/operations/status.js +0 -133
- package/lib/cjs/decorators/operations/status.js.map +0 -1
- package/lib/cjs/decorators/operations/subscribe.js +0 -10
- package/lib/cjs/decorators/operations/subscribe.js.map +0 -1
- package/lib/cjs/decorators/operations/summary.js +0 -34
- package/lib/cjs/decorators/operations/summary.js.map +0 -1
- package/lib/cjs/decorators/operations/tags.js +0 -52
- package/lib/cjs/decorators/operations/tags.js.map +0 -1
- package/lib/cjs/decorators/operations/view.js +0 -31
- package/lib/cjs/decorators/operations/view.js.map +0 -1
- package/lib/cjs/domain/DecoratorContext.js +0 -88
- package/lib/cjs/domain/DecoratorContext.js.map +0 -1
- package/lib/cjs/domain/JsonAliasMap.js +0 -15
- package/lib/cjs/domain/JsonAliasMap.js.map +0 -1
- package/lib/cjs/domain/JsonClassStore.js +0 -37
- package/lib/cjs/domain/JsonClassStore.js.map +0 -1
- package/lib/cjs/domain/JsonDiscriminator.js +0 -38
- package/lib/cjs/domain/JsonDiscriminator.js.map +0 -1
- package/lib/cjs/domain/JsonEntityStore.js +0 -158
- package/lib/cjs/domain/JsonEntityStore.js.map +0 -1
- package/lib/cjs/domain/JsonFormatTypes.js +0 -22
- package/lib/cjs/domain/JsonFormatTypes.js.map +0 -1
- package/lib/cjs/domain/JsonLazyRef.js +0 -22
- package/lib/cjs/domain/JsonLazyRef.js.map +0 -1
- package/lib/cjs/domain/JsonMap.js +0 -29
- package/lib/cjs/domain/JsonMap.js.map +0 -1
- package/lib/cjs/domain/JsonMedia.js +0 -21
- package/lib/cjs/domain/JsonMedia.js.map +0 -1
- package/lib/cjs/domain/JsonMethodStore.js +0 -147
- package/lib/cjs/domain/JsonMethodStore.js.map +0 -1
- package/lib/cjs/domain/JsonOperation.js +0 -156
- package/lib/cjs/domain/JsonOperation.js.map +0 -1
- package/lib/cjs/domain/JsonOperationPathsMap.js +0 -19
- package/lib/cjs/domain/JsonOperationPathsMap.js.map +0 -1
- package/lib/cjs/domain/JsonOperationRoute.js +0 -54
- package/lib/cjs/domain/JsonOperationRoute.js.map +0 -1
- package/lib/cjs/domain/JsonParameter.js +0 -50
- package/lib/cjs/domain/JsonParameter.js.map +0 -1
- package/lib/cjs/domain/JsonParameterStore.js +0 -99
- package/lib/cjs/domain/JsonParameterStore.js.map +0 -1
- package/lib/cjs/domain/JsonParameterTypes.js +0 -27
- package/lib/cjs/domain/JsonParameterTypes.js.map +0 -1
- package/lib/cjs/domain/JsonPropertyStore.js +0 -80
- package/lib/cjs/domain/JsonPropertyStore.js.map +0 -1
- package/lib/cjs/domain/JsonRequestBody.js +0 -34
- package/lib/cjs/domain/JsonRequestBody.js.map +0 -1
- package/lib/cjs/domain/JsonResponse.js +0 -45
- package/lib/cjs/domain/JsonResponse.js.map +0 -1
- package/lib/cjs/domain/JsonSchema.js +0 -822
- package/lib/cjs/domain/JsonSchema.js.map +0 -1
- package/lib/cjs/domain/SpecTypes.js +0 -11
- package/lib/cjs/domain/SpecTypes.js.map +0 -1
- package/lib/cjs/hooks/alterIgnore.js +0 -24
- package/lib/cjs/hooks/alterIgnore.js.map +0 -1
- package/lib/cjs/hooks/alterOneOf.js +0 -50
- package/lib/cjs/hooks/alterOneOf.js.map +0 -1
- package/lib/cjs/hooks/alterRequiredGroups.js +0 -14
- package/lib/cjs/hooks/alterRequiredGroups.js.map +0 -1
- package/lib/cjs/index.js +0 -186
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/interfaces/IgnoreCallback.js +0 -3
- package/lib/cjs/interfaces/IgnoreCallback.js.map +0 -1
- package/lib/cjs/interfaces/JsonHookContext.js +0 -3
- package/lib/cjs/interfaces/JsonHookContext.js.map +0 -1
- package/lib/cjs/interfaces/JsonOpenSpec.js +0 -3
- package/lib/cjs/interfaces/JsonOpenSpec.js.map +0 -1
- package/lib/cjs/interfaces/JsonSchemaOptions.js +0 -3
- package/lib/cjs/interfaces/JsonSchemaOptions.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/registries/JsonSchemaMapperContainer.js +0 -43
- package/lib/cjs/registries/JsonSchemaMapperContainer.js.map +0 -1
- package/lib/cjs/registries/enumRegistries.js +0 -5
- package/lib/cjs/registries/enumRegistries.js.map +0 -1
- package/lib/cjs/utils/buildPath.js +0 -13
- package/lib/cjs/utils/buildPath.js.map +0 -1
- package/lib/cjs/utils/concatParameters.js +0 -16
- package/lib/cjs/utils/concatParameters.js.map +0 -1
- package/lib/cjs/utils/concatPath.js +0 -23
- package/lib/cjs/utils/concatPath.js.map +0 -1
- package/lib/cjs/utils/defineStatusModel.js +0 -13
- package/lib/cjs/utils/defineStatusModel.js.map +0 -1
- package/lib/cjs/utils/from.js +0 -280
- package/lib/cjs/utils/from.js.map +0 -1
- package/lib/cjs/utils/generateSpec.js +0 -47
- package/lib/cjs/utils/generateSpec.js.map +0 -1
- package/lib/cjs/utils/generics.js +0 -40
- package/lib/cjs/utils/generics.js.map +0 -1
- package/lib/cjs/utils/getComputedType.js +0 -26
- package/lib/cjs/utils/getComputedType.js.map +0 -1
- package/lib/cjs/utils/getInheritedStores.js +0 -23
- package/lib/cjs/utils/getInheritedStores.js.map +0 -1
- package/lib/cjs/utils/getJsonEntityStore.js +0 -18
- package/lib/cjs/utils/getJsonEntityStore.js.map +0 -1
- package/lib/cjs/utils/getJsonPathParameters.js +0 -87
- package/lib/cjs/utils/getJsonPathParameters.js.map +0 -1
- package/lib/cjs/utils/getJsonSchema.js +0 -59
- package/lib/cjs/utils/getJsonSchema.js.map +0 -1
- package/lib/cjs/utils/getJsonType.js +0 -40
- package/lib/cjs/utils/getJsonType.js.map +0 -1
- package/lib/cjs/utils/getOperationsRoutes.js +0 -37
- package/lib/cjs/utils/getOperationsRoutes.js.map +0 -1
- package/lib/cjs/utils/getOperationsStores.js +0 -33
- package/lib/cjs/utils/getOperationsStores.js.map +0 -1
- package/lib/cjs/utils/getPropertiesStores.js +0 -45
- package/lib/cjs/utils/getPropertiesStores.js.map +0 -1
- package/lib/cjs/utils/getSpec.js +0 -79
- package/lib/cjs/utils/getSpec.js.map +0 -1
- package/lib/cjs/utils/getSpecType.js +0 -21
- package/lib/cjs/utils/getSpecType.js.map +0 -1
- package/lib/cjs/utils/isSuccessStatus.js +0 -8
- package/lib/cjs/utils/isSuccessStatus.js.map +0 -1
- package/lib/cjs/utils/mapHeaders.js +0 -29
- package/lib/cjs/utils/mapHeaders.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpec.js +0 -41
- package/lib/cjs/utils/mapOpenSpec.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpec2.js +0 -34
- package/lib/cjs/utils/mapOpenSpec2.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpec3.js +0 -26
- package/lib/cjs/utils/mapOpenSpec3.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpecInfo.js +0 -21
- package/lib/cjs/utils/mapOpenSpecInfo.js.map +0 -1
- package/lib/cjs/utils/mapOperationOptions.js +0 -31
- package/lib/cjs/utils/mapOperationOptions.js.map +0 -1
- package/lib/cjs/utils/matchGroups.js +0 -56
- package/lib/cjs/utils/matchGroups.js.map +0 -1
- package/lib/cjs/utils/mergeSpec.js +0 -51
- package/lib/cjs/utils/mergeSpec.js.map +0 -1
- package/lib/cjs/utils/operationIdFormatter.js +0 -41
- package/lib/cjs/utils/operationIdFormatter.js.map +0 -1
- package/lib/cjs/utils/ref.js +0 -55
- package/lib/cjs/utils/ref.js.map +0 -1
- package/lib/cjs/utils/removeHiddenOperation.js +0 -8
- package/lib/cjs/utils/removeHiddenOperation.js.map +0 -1
- package/lib/cjs/utils/serializeEnumValues.js +0 -26
- package/lib/cjs/utils/serializeEnumValues.js.map +0 -1
- package/lib/cjs/utils/somethingOf.js +0 -16
- package/lib/cjs/utils/somethingOf.js.map +0 -1
- package/lib/cjs/utils/toJsonMapCollection.js +0 -15
- package/lib/cjs/utils/toJsonMapCollection.js.map +0 -1
- package/lib/cjs/utils/toJsonRegex.js +0 -12
- package/lib/cjs/utils/toJsonRegex.js.map +0 -1
- package/lib/cjs/utils/transformToOS2.js +0 -509
- package/lib/cjs/utils/transformToOS2.js.map +0 -1
- package/lib/cjs/utils/withErrorMsg.js +0 -34
- package/lib/cjs/utils/withErrorMsg.js.map +0 -1
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/components/async-api/channelsMapper.d.ts +0 -2
- package/lib/types-esm/components/async-api/generate.d.ts +0 -1
- package/lib/types-esm/components/async-api/messageMapper.d.ts +0 -6
- package/lib/types-esm/components/async-api/payloadMapper.d.ts +0 -4
- package/lib/types-esm/components/async-api/responseMapper.d.ts +0 -6
- package/lib/types-esm/components/default/anyMapper.d.ts +0 -2
- package/lib/types-esm/components/default/classMapper.d.ts +0 -3
- package/lib/types-esm/components/default/genericsMapper.d.ts +0 -5
- package/lib/types-esm/components/default/inheritedClassMapper.d.ts +0 -5
- package/lib/types-esm/components/default/inlineEnumsMapper.d.ts +0 -3
- package/lib/types-esm/components/default/itemMapper.d.ts +0 -2
- package/lib/types-esm/components/default/lazyRefMapper.d.ts +0 -3
- package/lib/types-esm/components/default/mapMapper.d.ts +0 -9
- package/lib/types-esm/components/default/nullableMapper.d.ts +0 -2
- package/lib/types-esm/components/default/objectMapper.d.ts +0 -8
- package/lib/types-esm/components/default/ofMapper.d.ts +0 -3
- package/lib/types-esm/components/default/propertiesMapper.d.ts +0 -3
- package/lib/types-esm/components/default/requiredMapper.d.ts +0 -3
- package/lib/types-esm/components/default/schemaMapper.d.ts +0 -3
- package/lib/types-esm/components/index.d.ts +0 -33
- package/lib/types-esm/components/open-spec/generate.d.ts +0 -1
- package/lib/types-esm/components/open-spec/nullableMapper.d.ts +0 -2
- package/lib/types-esm/components/open-spec/operationInFilesMapper.d.ts +0 -2
- package/lib/types-esm/components/open-spec/operationInParameterMapper.d.ts +0 -10
- package/lib/types-esm/components/open-spec/operationInParametersMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationInQueryMapper.d.ts +0 -2
- package/lib/types-esm/components/open-spec/operationMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationMediaMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationRequestBodyMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationResponseMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/pathsMapper.d.ts +0 -2
- package/lib/types-esm/constants/OperationVerbs.d.ts +0 -20
- package/lib/types-esm/constants/httpStatusMessages.d.ts +0 -11
- package/lib/types-esm/constants/jsonSchemaProperties.d.ts +0 -7
- package/lib/types-esm/decorators/class/children.d.ts +0 -11
- package/lib/types-esm/decorators/class/discriminatorValue.d.ts +0 -42
- package/lib/types-esm/decorators/collections/collectionContains.d.ts +0 -21
- package/lib/types-esm/decorators/collections/collectionOf.d.ts +0 -101
- package/lib/types-esm/decorators/collections/maxItems.d.ts +0 -48
- package/lib/types-esm/decorators/collections/maxProperties.d.ts +0 -71
- package/lib/types-esm/decorators/collections/minItems.d.ts +0 -52
- package/lib/types-esm/decorators/collections/minProperties.d.ts +0 -70
- package/lib/types-esm/decorators/collections/uniqueItems.d.ts +0 -51
- package/lib/types-esm/decorators/common/additionalProperties.d.ts +0 -11
- package/lib/types-esm/decorators/common/allOf.d.ts +0 -13
- package/lib/types-esm/decorators/common/allow.d.ts +0 -28
- package/lib/types-esm/decorators/common/any.d.ts +0 -38
- package/lib/types-esm/decorators/common/anyOf.d.ts +0 -17
- package/lib/types-esm/decorators/common/const.d.ts +0 -61
- package/lib/types-esm/decorators/common/customKey.d.ts +0 -26
- package/lib/types-esm/decorators/common/default.d.ts +0 -41
- package/lib/types-esm/decorators/common/defaultMsg.d.ts +0 -32
- package/lib/types-esm/decorators/common/description.d.ts +0 -53
- package/lib/types-esm/decorators/common/discriminatorKey.d.ts +0 -1
- package/lib/types-esm/decorators/common/enum.d.ts +0 -101
- package/lib/types-esm/decorators/common/errorMsg.d.ts +0 -6
- package/lib/types-esm/decorators/common/example.d.ts +0 -11
- package/lib/types-esm/decorators/common/examples.d.ts +0 -12
- package/lib/types-esm/decorators/common/exclusiveMaximum.d.ts +0 -70
- package/lib/types-esm/decorators/common/exclusiveMinimum.d.ts +0 -70
- package/lib/types-esm/decorators/common/format.d.ts +0 -466
- package/lib/types-esm/decorators/common/forwardGroups.d.ts +0 -10
- package/lib/types-esm/decorators/common/groups.d.ts +0 -12
- package/lib/types-esm/decorators/common/hidden.d.ts +0 -32
- package/lib/types-esm/decorators/common/ignore.d.ts +0 -59
- package/lib/types-esm/decorators/common/integer.d.ts +0 -61
- package/lib/types-esm/decorators/common/jsonEntityFn.d.ts +0 -21
- package/lib/types-esm/decorators/common/maxLength.d.ts +0 -77
- package/lib/types-esm/decorators/common/maximum.d.ts +0 -139
- package/lib/types-esm/decorators/common/minLength.d.ts +0 -78
- package/lib/types-esm/decorators/common/minimum.d.ts +0 -137
- package/lib/types-esm/decorators/common/multipleOf.d.ts +0 -69
- package/lib/types-esm/decorators/common/name.d.ts +0 -32
- package/lib/types-esm/decorators/common/nullable.d.ts +0 -25
- package/lib/types-esm/decorators/common/oneOf.d.ts +0 -17
- package/lib/types-esm/decorators/common/optional.d.ts +0 -10
- package/lib/types-esm/decorators/common/pattern.d.ts +0 -94
- package/lib/types-esm/decorators/common/property.d.ts +0 -11
- package/lib/types-esm/decorators/common/readOnly.d.ts +0 -11
- package/lib/types-esm/decorators/common/recordOf.d.ts +0 -46
- package/lib/types-esm/decorators/common/required.d.ts +0 -44
- package/lib/types-esm/decorators/common/requiredGroups.d.ts +0 -10
- package/lib/types-esm/decorators/common/schema.d.ts +0 -53
- package/lib/types-esm/decorators/common/title.d.ts +0 -39
- package/lib/types-esm/decorators/common/typeError.d.ts +0 -8
- package/lib/types-esm/decorators/common/writeOnly.d.ts +0 -11
- package/lib/types-esm/decorators/config/jsonEntityComponent.d.ts +0 -10
- package/lib/types-esm/decorators/generics/genericOf.d.ts +0 -76
- package/lib/types-esm/decorators/generics/generics.d.ts +0 -14
- package/lib/types-esm/decorators/operations/acceptMime.d.ts +0 -19
- package/lib/types-esm/decorators/operations/consumes.d.ts +0 -19
- package/lib/types-esm/decorators/operations/contentType.d.ts +0 -20
- package/lib/types-esm/decorators/operations/deprecated.d.ts +0 -23
- package/lib/types-esm/decorators/operations/header.d.ts +0 -49
- package/lib/types-esm/decorators/operations/in.d.ts +0 -64
- package/lib/types-esm/decorators/operations/inFile.d.ts +0 -25
- package/lib/types-esm/decorators/operations/location.d.ts +0 -22
- package/lib/types-esm/decorators/operations/operation.d.ts +0 -60
- package/lib/types-esm/decorators/operations/operationId.d.ts +0 -10
- package/lib/types-esm/decorators/operations/operationPath.d.ts +0 -21
- package/lib/types-esm/decorators/operations/partial.d.ts +0 -10
- package/lib/types-esm/decorators/operations/path.d.ts +0 -15
- package/lib/types-esm/decorators/operations/produces.d.ts +0 -26
- package/lib/types-esm/decorators/operations/publish.d.ts +0 -1
- package/lib/types-esm/decorators/operations/redirect.d.ts +0 -52
- package/lib/types-esm/decorators/operations/returns.d.ts +0 -267
- package/lib/types-esm/decorators/operations/route.d.ts +0 -133
- package/lib/types-esm/decorators/operations/security.d.ts +0 -56
- package/lib/types-esm/decorators/operations/status.d.ts +0 -127
- package/lib/types-esm/decorators/operations/subscribe.d.ts +0 -1
- package/lib/types-esm/decorators/operations/summary.d.ts +0 -20
- package/lib/types-esm/decorators/operations/tags.d.ts +0 -23
- package/lib/types-esm/decorators/operations/view.d.ts +0 -23
- package/lib/types-esm/domain/DecoratorContext.d.ts +0 -28
- package/lib/types-esm/domain/JsonAliasMap.d.ts +0 -12
- package/lib/types-esm/domain/JsonClassStore.d.ts +0 -12
- package/lib/types-esm/domain/JsonDiscriminator.d.ts +0 -18
- package/lib/types-esm/domain/JsonEntityStore.d.ts +0 -110
- package/lib/types-esm/domain/JsonFormatTypes.d.ts +0 -17
- package/lib/types-esm/domain/JsonLazyRef.d.ts +0 -9
- package/lib/types-esm/domain/JsonMap.d.ts +0 -9
- package/lib/types-esm/domain/JsonMedia.d.ts +0 -11
- package/lib/types-esm/domain/JsonMethodStore.d.ts +0 -92
- package/lib/types-esm/domain/JsonOperation.d.ts +0 -51
- package/lib/types-esm/domain/JsonOperationPathsMap.d.ts +0 -7
- package/lib/types-esm/domain/JsonOperationRoute.d.ts +0 -25
- package/lib/types-esm/domain/JsonParameter.d.ts +0 -22
- package/lib/types-esm/domain/JsonParameterStore.d.ts +0 -52
- package/lib/types-esm/domain/JsonParameterTypes.d.ts +0 -16
- package/lib/types-esm/domain/JsonPropertyStore.d.ts +0 -32
- package/lib/types-esm/domain/JsonRequestBody.d.ts +0 -12
- package/lib/types-esm/domain/JsonResponse.d.ts +0 -18
- package/lib/types-esm/domain/JsonSchema.d.ts +0 -340
- package/lib/types-esm/domain/SpecTypes.d.ts +0 -6
- package/lib/types-esm/hooks/alterIgnore.d.ts +0 -10
- package/lib/types-esm/hooks/alterOneOf.d.ts +0 -3
- package/lib/types-esm/hooks/alterRequiredGroups.d.ts +0 -6
- package/lib/types-esm/index.d.ts +0 -182
- package/lib/types-esm/interfaces/IgnoreCallback.d.ts +0 -4
- package/lib/types-esm/interfaces/JsonHookContext.d.ts +0 -17
- package/lib/types-esm/interfaces/JsonOpenSpec.d.ts +0 -9
- package/lib/types-esm/interfaces/JsonSchemaOptions.d.ts +0 -30
- package/lib/types-esm/registries/JsonSchemaMapperContainer.d.ts +0 -21
- package/lib/types-esm/registries/enumRegistries.d.ts +0 -2
- package/lib/types-esm/utils/buildPath.d.ts +0 -6
- package/lib/types-esm/utils/concatParameters.d.ts +0 -4
- package/lib/types-esm/utils/concatPath.d.ts +0 -1
- package/lib/types-esm/utils/defineStatusModel.d.ts +0 -3
- package/lib/types-esm/utils/from.d.ts +0 -190
- package/lib/types-esm/utils/generateSpec.d.ts +0 -16
- package/lib/types-esm/utils/generics.d.ts +0 -50
- package/lib/types-esm/utils/getComputedType.d.ts +0 -5
- package/lib/types-esm/utils/getInheritedStores.d.ts +0 -8
- package/lib/types-esm/utils/getJsonEntityStore.d.ts +0 -15
- package/lib/types-esm/utils/getJsonPathParameters.d.ts +0 -7
- package/lib/types-esm/utils/getJsonSchema.d.ts +0 -4
- package/lib/types-esm/utils/getJsonType.d.ts +0 -5
- package/lib/types-esm/utils/getOperationsRoutes.d.ts +0 -10
- package/lib/types-esm/utils/getOperationsStores.d.ts +0 -6
- package/lib/types-esm/utils/getPropertiesStores.d.ts +0 -20
- package/lib/types-esm/utils/getSpec.d.ts +0 -34
- package/lib/types-esm/utils/getSpecType.d.ts +0 -12
- package/lib/types-esm/utils/isSuccessStatus.d.ts +0 -2
- package/lib/types-esm/utils/mapHeaders.d.ts +0 -9
- package/lib/types-esm/utils/mapOpenSpec.d.ts +0 -10
- package/lib/types-esm/utils/mapOpenSpec2.d.ts +0 -9
- package/lib/types-esm/utils/mapOpenSpec3.d.ts +0 -8
- package/lib/types-esm/utils/mapOpenSpecInfo.d.ts +0 -6
- package/lib/types-esm/utils/mapOperationOptions.d.ts +0 -5
- package/lib/types-esm/utils/matchGroups.d.ts +0 -4
- package/lib/types-esm/utils/mergeSpec.d.ts +0 -23
- package/lib/types-esm/utils/operationIdFormatter.d.ts +0 -6
- package/lib/types-esm/utils/ref.d.ts +0 -14
- package/lib/types-esm/utils/removeHiddenOperation.d.ts +0 -2
- package/lib/types-esm/utils/serializeEnumValues.d.ts +0 -5
- package/lib/types-esm/utils/somethingOf.d.ts +0 -1
- package/lib/types-esm/utils/toJsonMapCollection.d.ts +0 -7
- package/lib/types-esm/utils/toJsonRegex.d.ts +0 -5
- package/lib/types-esm/utils/transformToOS2.d.ts +0 -25
- package/lib/types-esm/utils/withErrorMsg.d.ts +0 -6
- /package/{webpack.config.js → webpack.config.cjs} +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { OperationVerbs } from "../../constants/OperationVerbs.js";
|
|
2
|
-
export interface RouteChainedDecorators {
|
|
3
|
-
<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
|
|
4
|
-
/**
|
|
5
|
-
* @param string
|
|
6
|
-
* @constructor
|
|
7
|
-
*/
|
|
8
|
-
Path(string: string): this;
|
|
9
|
-
/**
|
|
10
|
-
* Set the operation method
|
|
11
|
-
* @param method
|
|
12
|
-
*/
|
|
13
|
-
Method(method: OperationVerbs | string): this;
|
|
14
|
-
/**
|
|
15
|
-
* Set the operation id
|
|
16
|
-
* @param id
|
|
17
|
-
*/
|
|
18
|
-
Id(id: string): this;
|
|
19
|
-
/**
|
|
20
|
-
* Set the operation id
|
|
21
|
-
* @param name
|
|
22
|
-
*/
|
|
23
|
-
Name(name: string): this;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @param description
|
|
27
|
-
*/
|
|
28
|
-
Description(description: string): this;
|
|
29
|
-
/**
|
|
30
|
-
* Summary
|
|
31
|
-
* @constructor
|
|
32
|
-
* @param Summary
|
|
33
|
-
*/
|
|
34
|
-
Summary(Summary: string): this;
|
|
35
|
-
Use(...args: any[]): this;
|
|
36
|
-
UseAfter(...args: any[]): this;
|
|
37
|
-
UseBefore(...args: any[]): this;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Describe a new route with a method and path.
|
|
41
|
-
*
|
|
42
|
-
* ```typescript
|
|
43
|
-
* @Controller('/')
|
|
44
|
-
* export class Ctrl {
|
|
45
|
-
*
|
|
46
|
-
* @Route('GET', '/')
|
|
47
|
-
* get() { }
|
|
48
|
-
* }
|
|
49
|
-
*
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @returns {Function}
|
|
53
|
-
* @param method
|
|
54
|
-
* @param path
|
|
55
|
-
* @param args
|
|
56
|
-
* @decorator
|
|
57
|
-
* @operation
|
|
58
|
-
*/
|
|
59
|
-
export declare function Operation(method: string, path: string, ...args: any[]): RouteChainedDecorators;
|
|
60
|
-
export declare function Operation(...args: any[]): RouteChainedDecorators;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OperationVerbs } from "../../constants/OperationVerbs.js";
|
|
2
|
-
/**
|
|
3
|
-
* Declare new Operation with his path and http method.
|
|
4
|
-
*
|
|
5
|
-
* ::: warning
|
|
6
|
-
* Don't use decorator with Ts.ED application.
|
|
7
|
-
*
|
|
8
|
-
* Use theses decorators instead:
|
|
9
|
-
*
|
|
10
|
-
* <ApiList query="status.includes('decorator') && status.includes('httpMethod')" />
|
|
11
|
-
*
|
|
12
|
-
* :::
|
|
13
|
-
*
|
|
14
|
-
* @param method
|
|
15
|
-
* @param path
|
|
16
|
-
* @decorator
|
|
17
|
-
* @swagger
|
|
18
|
-
* @schema
|
|
19
|
-
* @operation
|
|
20
|
-
*/
|
|
21
|
-
export declare function OperationPath(method: OperationVerbs | string, path?: string | RegExp): (...args: any[]) => any;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set class path to expose all endpoints
|
|
3
|
-
*
|
|
4
|
-
* ::: warning
|
|
5
|
-
* Don't use this decorator to change the path if you develop your application with Ts.ED.
|
|
6
|
-
* :::
|
|
7
|
-
*
|
|
8
|
-
* @param path
|
|
9
|
-
* @decorator
|
|
10
|
-
* @swagger
|
|
11
|
-
* @schema
|
|
12
|
-
* @classDecorator
|
|
13
|
-
* @operation
|
|
14
|
-
*/
|
|
15
|
-
export declare function Path(path: string): (...args: any[]) => any;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add produces metadata on the decorated element.
|
|
3
|
-
*
|
|
4
|
-
* ## Examples
|
|
5
|
-
* ### On method
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* class Model {
|
|
9
|
-
* @Produces("text/html")
|
|
10
|
-
* id: string;
|
|
11
|
-
* }
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* ::: warning
|
|
15
|
-
* For openspec v3 prefer `@Returns().ContentType()` usage (see @@Returns@@).
|
|
16
|
-
* :::
|
|
17
|
-
*
|
|
18
|
-
* @param produces
|
|
19
|
-
* @decorator
|
|
20
|
-
* @swagger
|
|
21
|
-
* @methodDecorator
|
|
22
|
-
* @classDecorator
|
|
23
|
-
* @operation
|
|
24
|
-
* @response
|
|
25
|
-
*/
|
|
26
|
-
export declare function Produces(...produces: string[]): (...args: any[]) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function Publish(event: string): import("./operation.js").RouteChainedDecorators;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { JsonHeader } from "../../interfaces/JsonOpenSpec.js";
|
|
2
|
-
/**
|
|
3
|
-
* Redirects to the URL derived from the specified path, with specified status, a positive integer that corresponds to an HTTP status code . If not specified, status defaults to “302 “Found”.
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* @Redirect('/foo/bar')
|
|
7
|
-
* @Redirect(301, 'http://example.com').Type(Model)
|
|
8
|
-
* private myMethod() {}
|
|
9
|
-
* ```
|
|
10
|
-
* Redirects can be a fully-qualified URL for redirecting to a different site:
|
|
11
|
-
*
|
|
12
|
-
* ```typescript
|
|
13
|
-
* @Redirect('http://google.com');
|
|
14
|
-
* private myMethod() {}
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* Redirects can be relative to the root of the host name. For example, if the application is on http://example.com/admin/post/new, the following would redirect to the URL http://example.com/admin:
|
|
18
|
-
*
|
|
19
|
-
* ```typescript
|
|
20
|
-
* @Redirect('/admin');
|
|
21
|
-
* ```
|
|
22
|
-
* Redirects can be relative to the current URL. For example, from http://example.com/blog/admin/ (notice the trailing slash), the following would redirect to the URL http://example.com/blog/admin/post/new.
|
|
23
|
-
*
|
|
24
|
-
* ```typescript
|
|
25
|
-
* @Redirect('post/new');
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* Redirecting to post/new from http://example.com/blog/admin (no trailing slash), will redirect to http://example.com/blog/post/new.
|
|
29
|
-
*
|
|
30
|
-
* If you found the above behavior confusing, think of path segments as directories (with trailing slashes) and files, it will start to make sense.
|
|
31
|
-
*
|
|
32
|
-
* Path-relative redirects are also possible. If you were on http://example.com/admin/post/new, the following would redirect to http//example.com/admin/post:
|
|
33
|
-
*
|
|
34
|
-
* ```typescript
|
|
35
|
-
* @Redirect('..');
|
|
36
|
-
* ``
|
|
37
|
-
*
|
|
38
|
-
* A back redirection redirects the request back to the referer, defaulting to / when the referer is missing.
|
|
39
|
-
*
|
|
40
|
-
* ```typescript
|
|
41
|
-
* @Redirect('back');
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @param url
|
|
45
|
-
* @param meta
|
|
46
|
-
* @decorator
|
|
47
|
-
* @operation
|
|
48
|
-
* @response
|
|
49
|
-
* @headers
|
|
50
|
-
*/
|
|
51
|
-
export declare function Redirect(url: string, meta?: JsonHeader): Function;
|
|
52
|
-
export declare function Redirect(status: number, url: string, meta?: JsonHeader): Function;
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { Type } from "@tsed/core";
|
|
2
|
-
import { OS3Example } from "@tsed/openspec";
|
|
3
|
-
import { JsonSchema, JsonSchemaObject } from "../../domain/JsonSchema.js";
|
|
4
|
-
import { JsonHeader, JsonHeaders } from "../../interfaces/JsonOpenSpec.js";
|
|
5
|
-
import { GenericValue } from "../../utils/generics.js";
|
|
6
|
-
export interface ReturnsChainedDecorators {
|
|
7
|
-
<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
|
|
8
|
-
(target: Function): void;
|
|
9
|
-
/**
|
|
10
|
-
* Set a Content-Type for the current response
|
|
11
|
-
* @param value
|
|
12
|
-
* @constructor
|
|
13
|
-
*/
|
|
14
|
-
ContentType(value: string): this;
|
|
15
|
-
/**
|
|
16
|
-
* Add a description
|
|
17
|
-
* @param description
|
|
18
|
-
*/
|
|
19
|
-
Description(description: string): this;
|
|
20
|
-
/**
|
|
21
|
-
* Add examples
|
|
22
|
-
* @param examples
|
|
23
|
-
*/
|
|
24
|
-
Examples(examples: Record<string, OS3Example>): this;
|
|
25
|
-
Examples(examples: Record<string, any>): this;
|
|
26
|
-
Examples(examples: any): this;
|
|
27
|
-
/**
|
|
28
|
-
* Change the model type
|
|
29
|
-
* @param type
|
|
30
|
-
*/
|
|
31
|
-
Type(type: Type<any> | any): this;
|
|
32
|
-
/**
|
|
33
|
-
* Change the status
|
|
34
|
-
* @param status
|
|
35
|
-
* @constructor
|
|
36
|
-
*/
|
|
37
|
-
Status(status: string | number): this;
|
|
38
|
-
/**
|
|
39
|
-
* Add the nested types
|
|
40
|
-
* @param types
|
|
41
|
-
*/
|
|
42
|
-
Of(...types: GenericValue[]): this;
|
|
43
|
-
/**
|
|
44
|
-
* For the integer type
|
|
45
|
-
*/
|
|
46
|
-
OfInteger(): this;
|
|
47
|
-
/**
|
|
48
|
-
* Add the nested types
|
|
49
|
-
* @param types
|
|
50
|
-
*/
|
|
51
|
-
OneOf(...types: GenericValue[]): this;
|
|
52
|
-
/**
|
|
53
|
-
* Add the nested types
|
|
54
|
-
* @param types
|
|
55
|
-
*/
|
|
56
|
-
AllOf(...types: GenericValue[]): this;
|
|
57
|
-
/**
|
|
58
|
-
* Add the nested types
|
|
59
|
-
* @param types
|
|
60
|
-
*/
|
|
61
|
-
AnyOf(...types: GenericValue[]): this;
|
|
62
|
-
/**
|
|
63
|
-
* Declare a nested generic models
|
|
64
|
-
* @param generics
|
|
65
|
-
*/
|
|
66
|
-
Nested(...generics: GenericValue[]): this;
|
|
67
|
-
/**
|
|
68
|
-
* Add header.
|
|
69
|
-
* @param key
|
|
70
|
-
* @param value
|
|
71
|
-
*/
|
|
72
|
-
Header(key: string, value?: number | string | (JsonHeader & {
|
|
73
|
-
value?: string | number | boolean;
|
|
74
|
-
})): this;
|
|
75
|
-
/**
|
|
76
|
-
* Add headers
|
|
77
|
-
*/
|
|
78
|
-
Headers(headers: JsonHeaders): this;
|
|
79
|
-
/**
|
|
80
|
-
* Add location hea
|
|
81
|
-
*/
|
|
82
|
-
Location(location: string, meta?: JsonHeader): this;
|
|
83
|
-
/**
|
|
84
|
-
* Assign partial schema
|
|
85
|
-
* @param schema
|
|
86
|
-
*/
|
|
87
|
-
Schema(schema: Partial<JsonSchemaObject> | JsonSchema): this;
|
|
88
|
-
/**
|
|
89
|
-
* Add an inline title for the return model.
|
|
90
|
-
* @param title
|
|
91
|
-
*/
|
|
92
|
-
Title(title: string): this;
|
|
93
|
-
/**
|
|
94
|
-
* Use group to filter model
|
|
95
|
-
* @param groups
|
|
96
|
-
*/
|
|
97
|
-
Groups(...groups: string[]): this;
|
|
98
|
-
Groups(groupName: string, groups: string[]): this;
|
|
99
|
-
/**
|
|
100
|
-
* Add a list of allowed groups to filter dynamically fields. Listed groups can be used by the consumer to change
|
|
101
|
-
* the mapped response.
|
|
102
|
-
* @param allowedGroups
|
|
103
|
-
*/
|
|
104
|
-
AllowedGroups(...allowedGroups: string[]): this;
|
|
105
|
-
/**
|
|
106
|
-
* Apply the application/octet-stream and binary format on Open API documentation
|
|
107
|
-
*/
|
|
108
|
-
Binary(): this;
|
|
109
|
-
[key: string]: any;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Add responses documentation for a specific status code.
|
|
113
|
-
*
|
|
114
|
-
* ## Usage
|
|
115
|
-
*
|
|
116
|
-
* Ts.ED v5/v6 API introducing the chaining decorator concept. Now a decorator like Returns can be used with another decorators like Description.
|
|
117
|
-
*
|
|
118
|
-
* ::: warning
|
|
119
|
-
* v5 has a basic support of the chaining decorator to facilitate the migration to v6!
|
|
120
|
-
* :::
|
|
121
|
-
*
|
|
122
|
-
* ```typescript
|
|
123
|
-
* import {Returns} from "@tsed/schema";
|
|
124
|
-
*
|
|
125
|
-
* @Controller("/")
|
|
126
|
-
* class MyController {
|
|
127
|
-
* @Returns(404, String).Description("Not Found")
|
|
128
|
-
* @Returns(200, Model).Description("Success")
|
|
129
|
-
* async myMethod(): Promise<Model> {}
|
|
130
|
-
* }
|
|
131
|
-
* ```
|
|
132
|
-
*
|
|
133
|
-
* ::: tip
|
|
134
|
-
* TypeScript and your IDE will discover automatically the chained decorators. But for more details you can look on @@ReturnsChainedDecorators@@ interface, to know
|
|
135
|
-
* what chained decorators are available under Returns decorator.
|
|
136
|
-
* :::
|
|
137
|
-
*
|
|
138
|
-
* This example will produce this documentation in swagger:
|
|
139
|
-
*
|
|
140
|
-
* ```json
|
|
141
|
-
* {
|
|
142
|
-
* "responses": {
|
|
143
|
-
* "404": {
|
|
144
|
-
* "description": "Description",
|
|
145
|
-
* "schema": {"type": "string"}
|
|
146
|
-
* },
|
|
147
|
-
* "2OO": {
|
|
148
|
-
* "description": "Description",
|
|
149
|
-
* "schema": {"$ref": "..."}
|
|
150
|
-
* }
|
|
151
|
-
* }
|
|
152
|
-
* }
|
|
153
|
-
* ```
|
|
154
|
-
*
|
|
155
|
-
* ## Declaring an Array
|
|
156
|
-
*
|
|
157
|
-
* Use chained decorators to declare an array with model as following:
|
|
158
|
-
*
|
|
159
|
-
* ```typescript
|
|
160
|
-
* import {Returns} from "@tsed/schema";
|
|
161
|
-
*
|
|
162
|
-
* @Controller("/models")
|
|
163
|
-
* class ModelCtrl {
|
|
164
|
-
* @Get("/")
|
|
165
|
-
* @Returns(200, Array).Of(Model).Description("Success")
|
|
166
|
-
* async myMethod(): Promise<Model> {
|
|
167
|
-
* }
|
|
168
|
-
* }
|
|
169
|
-
* ```
|
|
170
|
-
*
|
|
171
|
-
* Deprecated version:
|
|
172
|
-
*
|
|
173
|
-
* ```typescript
|
|
174
|
-
* import {ReturnsArray} from "@tsed/common";
|
|
175
|
-
* import {Returns} from "@tsed/schema";
|
|
176
|
-
*
|
|
177
|
-
* @Controller("/")
|
|
178
|
-
* class MyController {
|
|
179
|
-
* @ReturnsArray(200, Model) // deprecated
|
|
180
|
-
* async myMethod(): Promise<Model> {}
|
|
181
|
-
* }
|
|
182
|
-
* ```
|
|
183
|
-
*
|
|
184
|
-
* ### Declaring a generic model <Badge text="6+"/>
|
|
185
|
-
*
|
|
186
|
-
* Sometime, it might be useful to use generic models. TypeScript doesn't store the generic type in the metadata. This is why we need to
|
|
187
|
-
* declare explicitly the generic models with the decorators.
|
|
188
|
-
*
|
|
189
|
-
* One of the generic's usage, can be a paginated list. With Returns decorator it's now possible to declare generic type and generate the appropriate OpenSpec documentation.
|
|
190
|
-
*
|
|
191
|
-
* Starting with the pagination model, by using @@Generics@@ and @@CollectionOf@@:
|
|
192
|
-
*
|
|
193
|
-
* ```typescript
|
|
194
|
-
* @Generics("T")
|
|
195
|
-
* class Pagination<T> {
|
|
196
|
-
* @CollectionOf("T")
|
|
197
|
-
* data: T[];
|
|
198
|
-
*
|
|
199
|
-
* @Property()
|
|
200
|
-
* totalCount: number;
|
|
201
|
-
* }
|
|
202
|
-
* ```
|
|
203
|
-
*
|
|
204
|
-
* Now, we need a model to be used with the generic Pagination model:
|
|
205
|
-
*
|
|
206
|
-
* ```typescript
|
|
207
|
-
* class Product {
|
|
208
|
-
* @Property()
|
|
209
|
-
* id: string;
|
|
210
|
-
*
|
|
211
|
-
* @Property()
|
|
212
|
-
* title: string;
|
|
213
|
-
* }
|
|
214
|
-
* ```
|
|
215
|
-
*
|
|
216
|
-
* Finally, we can use our models on a method as following:
|
|
217
|
-
*
|
|
218
|
-
* ```typescript
|
|
219
|
-
* class Controller {
|
|
220
|
-
* @OperationPath("POST", "/")
|
|
221
|
-
* @Returns(200, Pagination).Of(Product).Description("description")
|
|
222
|
-
* async method(): Promise<Pagination<Product> | null> {
|
|
223
|
-
* return null;
|
|
224
|
-
* }
|
|
225
|
-
* }
|
|
226
|
-
* ```
|
|
227
|
-
*
|
|
228
|
-
* ### Declaring a nested generics models <Badge text="6+"/>
|
|
229
|
-
*
|
|
230
|
-
* It's also possible to declare a nested generics models in order to have this type `Pagination<Submission<Product>>`:
|
|
231
|
-
*
|
|
232
|
-
* ```typescript
|
|
233
|
-
* import {Generics, Property, Returns} from "@tsed/schema";
|
|
234
|
-
* import {Post} from "@tsed/common";
|
|
235
|
-
*
|
|
236
|
-
* class Controller {
|
|
237
|
-
* @Post("/")
|
|
238
|
-
* @Returns(200, Pagination).Of(Submission).Nested(Product).Description("description")
|
|
239
|
-
* async method(): Promise<Pagination<Submission<Product>> | null> {
|
|
240
|
-
* return null;
|
|
241
|
-
* }
|
|
242
|
-
* }
|
|
243
|
-
* ```
|
|
244
|
-
*
|
|
245
|
-
* And here is the Submission model:
|
|
246
|
-
*
|
|
247
|
-
* ```typescript
|
|
248
|
-
* import {Generics, Property} from "@tsed/schema";
|
|
249
|
-
*
|
|
250
|
-
* @Generics("T")
|
|
251
|
-
* class Submission<T> {
|
|
252
|
-
* @Property()
|
|
253
|
-
* _id: string;
|
|
254
|
-
* @Property("T")
|
|
255
|
-
* data: T;
|
|
256
|
-
* }
|
|
257
|
-
* ```
|
|
258
|
-
*
|
|
259
|
-
* @param status
|
|
260
|
-
* @param model
|
|
261
|
-
* @decorator
|
|
262
|
-
* @swagger
|
|
263
|
-
* @schema
|
|
264
|
-
* @response
|
|
265
|
-
* @operation
|
|
266
|
-
*/
|
|
267
|
-
export declare function Returns(status?: string | number, model?: Type<any> | Type<any>[]): ReturnsChainedDecorators;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { Operation } from "./operation.js";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use Operation instead of Route
|
|
4
|
-
*/
|
|
5
|
-
export declare const Route: typeof Operation;
|
|
6
|
-
/**
|
|
7
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
8
|
-
*
|
|
9
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
10
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
11
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
12
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
13
|
-
* to continue matching subsequent routes.
|
|
14
|
-
* @param path
|
|
15
|
-
* @param args
|
|
16
|
-
* @returns {Function}
|
|
17
|
-
* @decorator
|
|
18
|
-
* @operation
|
|
19
|
-
* @httpMethod
|
|
20
|
-
*/
|
|
21
|
-
export declare function All(path?: string | RegExp | unknown, ...args: unknown[]): import("./operation.js").RouteChainedDecorators;
|
|
22
|
-
/**
|
|
23
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
24
|
-
*
|
|
25
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
26
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
27
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
28
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
29
|
-
* to continue matching subsequent routes.
|
|
30
|
-
* @param path
|
|
31
|
-
* @param args
|
|
32
|
-
* @returns {Function}
|
|
33
|
-
* @decorator
|
|
34
|
-
* @operation
|
|
35
|
-
* @httpMethod
|
|
36
|
-
*/
|
|
37
|
-
export declare function Get(path?: string | RegExp | unknown, ...args: unknown[]): import("./operation.js").RouteChainedDecorators;
|
|
38
|
-
/**
|
|
39
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
40
|
-
*
|
|
41
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
42
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
43
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
44
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
45
|
-
* to continue matching subsequent routes.
|
|
46
|
-
* @param path
|
|
47
|
-
* @param args
|
|
48
|
-
* @returns {Function}
|
|
49
|
-
* @decorator
|
|
50
|
-
* @operation
|
|
51
|
-
* @httpMethod
|
|
52
|
-
*/
|
|
53
|
-
export declare function Post(path?: string | RegExp | unknown, ...args: unknown[]): import("./operation.js").RouteChainedDecorators;
|
|
54
|
-
/**
|
|
55
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
56
|
-
*
|
|
57
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
58
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
59
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
60
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
61
|
-
* to continue matching subsequent routes.
|
|
62
|
-
* @param path
|
|
63
|
-
* @param args
|
|
64
|
-
* @returns {Function}
|
|
65
|
-
* @decorator
|
|
66
|
-
* @operation
|
|
67
|
-
* @httpMethod
|
|
68
|
-
*/
|
|
69
|
-
export declare function Put(path?: string | RegExp | unknown, ...args: unknown[]): import("./operation.js").RouteChainedDecorators;
|
|
70
|
-
/**
|
|
71
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
72
|
-
*
|
|
73
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
74
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
75
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
76
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
77
|
-
* to continue matching subsequent routes.
|
|
78
|
-
* @param path
|
|
79
|
-
* @param args
|
|
80
|
-
* @returns {Function}
|
|
81
|
-
* @decorator
|
|
82
|
-
* @operation
|
|
83
|
-
* @httpMethod
|
|
84
|
-
*/
|
|
85
|
-
export declare function Delete(path?: string | RegExp | unknown, ...args: unknown[]): import("./operation.js").RouteChainedDecorators;
|
|
86
|
-
/**
|
|
87
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
88
|
-
*
|
|
89
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
90
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
91
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
92
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
93
|
-
* to continue matching subsequent routes.
|
|
94
|
-
* @param path
|
|
95
|
-
* @param args
|
|
96
|
-
* @returns {Function}
|
|
97
|
-
* @decorator
|
|
98
|
-
* @operation
|
|
99
|
-
* @httpMethod
|
|
100
|
-
*/
|
|
101
|
-
export declare function Head(path?: string | RegExp | unknown, ...args: unknown[]): import("./operation.js").RouteChainedDecorators;
|
|
102
|
-
/**
|
|
103
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
104
|
-
*
|
|
105
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
106
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
107
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
108
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
109
|
-
* to continue matching subsequent routes.
|
|
110
|
-
* @param path
|
|
111
|
-
* @param args
|
|
112
|
-
* @returns {Function}
|
|
113
|
-
* @decorator
|
|
114
|
-
* @operation
|
|
115
|
-
* @httpMethod
|
|
116
|
-
*/
|
|
117
|
-
export declare function Patch(path?: string | RegExp | any, ...args: any[]): import("./operation.js").RouteChainedDecorators;
|
|
118
|
-
/**
|
|
119
|
-
* This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs).
|
|
120
|
-
*
|
|
121
|
-
* This method is extremely useful for mapping “global” logic for specific path prefixes or arbitrary matches.
|
|
122
|
-
* For example, if you placed the following route at the top of all other route definitions, it would require that
|
|
123
|
-
* all routes from that point on would require authentication, and automatically load a user.
|
|
124
|
-
* Keep in mind that these callbacks do not have to act as end points; loadUser can perform a task, then call next()
|
|
125
|
-
* to continue matching subsequent routes.
|
|
126
|
-
* @param path
|
|
127
|
-
* @param args
|
|
128
|
-
* @returns {Function}
|
|
129
|
-
* @decorator
|
|
130
|
-
* @operation
|
|
131
|
-
* @httpMethod
|
|
132
|
-
*/
|
|
133
|
-
export declare function Options(path?: string | RegExp | unknown, ...args: unknown[]): import("./operation.js").RouteChainedDecorators;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { OpenSpecSecurity } from "@tsed/openspec";
|
|
2
|
-
/**
|
|
3
|
-
* Add security metadata on the decorated method.
|
|
4
|
-
*
|
|
5
|
-
* ## Examples
|
|
6
|
-
* ### On method
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* @Controller("/")
|
|
10
|
-
* class ModelCtrl {
|
|
11
|
-
* @Security("write:calendars")
|
|
12
|
-
* async method() {}
|
|
13
|
-
* }
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @param name
|
|
17
|
-
* @param scopes
|
|
18
|
-
* @decorator
|
|
19
|
-
* @swagger
|
|
20
|
-
* @schema
|
|
21
|
-
* @classDecorator
|
|
22
|
-
* @operation
|
|
23
|
-
*/
|
|
24
|
-
export declare function Security(name: string, ...scopes: string[]): Function;
|
|
25
|
-
/**
|
|
26
|
-
* Add security metadata on the decorated method.
|
|
27
|
-
*
|
|
28
|
-
* You can use it to add multiple authentication types.
|
|
29
|
-
* See <https://swagger.io/docs/specification/authentication/#multiple>.
|
|
30
|
-
*
|
|
31
|
-
* ## Examples
|
|
32
|
-
* ### On method
|
|
33
|
-
*
|
|
34
|
-
* ```typescript
|
|
35
|
-
* @Controller("/")
|
|
36
|
-
* class ModelCtrl {
|
|
37
|
-
* @Security([{ "A": ["scope-1"] }, { "B": [], "C": ["scope-2", "scope-3"]}])
|
|
38
|
-
* async method() {}
|
|
39
|
-
* }
|
|
40
|
-
* ```
|
|
41
|
-
* this will add the following security metadata
|
|
42
|
-
* ```yaml
|
|
43
|
-
* security: # A OR (B AND C)
|
|
44
|
-
* - A: ["scope-1"]
|
|
45
|
-
* - B: []
|
|
46
|
-
* C: ["scope-2", "scope-3"]
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @param security
|
|
50
|
-
* @decorator
|
|
51
|
-
* @swagger
|
|
52
|
-
* @schema
|
|
53
|
-
* @classDecorator
|
|
54
|
-
* @operation
|
|
55
|
-
*/
|
|
56
|
-
export declare function Security(security: OpenSpecSecurity): Function;
|