@opra/common 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/document/api-document.js +211 -0
- package/cjs/document/constants.js +6 -0
- package/cjs/document/data-type/api-field.js +82 -0
- package/cjs/document/data-type/builtin/any.type.js +14 -0
- package/cjs/document/data-type/builtin/base64.type.js +38 -0
- package/cjs/document/data-type/builtin/bigint.type.js +33 -0
- package/cjs/document/data-type/builtin/boolean.type.js +28 -0
- package/cjs/document/data-type/builtin/date.type.js +18 -0
- package/cjs/document/data-type/builtin/guid.type.js +35 -0
- package/cjs/document/data-type/builtin/index.js +13 -0
- package/cjs/document/data-type/builtin/integer.type.js +28 -0
- package/cjs/document/data-type/builtin/number.type.js +33 -0
- package/cjs/document/data-type/builtin/object.type.js +20 -0
- package/cjs/document/data-type/builtin/string.type.js +24 -0
- package/cjs/document/data-type/builtin/time.type.js +32 -0
- package/cjs/document/data-type/builtin/timestamp.type.js +29 -0
- package/cjs/document/data-type/complex-type.js +154 -0
- package/cjs/document/data-type/data-type.js +46 -0
- package/cjs/document/data-type/enum-type.js +62 -0
- package/cjs/document/data-type/mapped-type.js +96 -0
- package/cjs/document/data-type/simple-type.js +61 -0
- package/cjs/document/data-type/union-type.js +81 -0
- package/cjs/document/factory/add-references.js +20 -0
- package/cjs/document/factory/create-document.js +81 -0
- package/cjs/document/factory/factory.js +62 -0
- package/cjs/document/factory/import-resource-class.js +53 -0
- package/cjs/document/factory/import-type-class.js +130 -0
- package/cjs/document/factory/index.js +4 -0
- package/cjs/document/factory/process-resources.js +55 -0
- package/cjs/document/factory/process-types.js +191 -0
- package/cjs/document/index.js +17 -0
- package/cjs/document/resource/collection.js +185 -0
- package/cjs/document/resource/resource.js +38 -0
- package/cjs/document/resource/singleton.js +91 -0
- package/cjs/exception/opra-exception.js +2 -0
- package/cjs/exception/resource-errors/resource-not-found.error.js +4 -0
- package/cjs/filter/parse.js +3 -1
- package/cjs/helpers/function-utils.js +25 -0
- package/cjs/helpers/get-stack-filename.js +24 -0
- package/cjs/helpers/index.js +7 -0
- package/cjs/{utils → helpers}/is-url.js +2 -2
- package/cjs/{schema/utils/clone-object.util.js → helpers/object-utils.js} +13 -1
- package/cjs/{utils/path-to-tree.js → helpers/path-to-object-tree.js} +9 -9
- package/cjs/helpers/responsive-map.js +62 -14
- package/cjs/{utils → helpers}/type-guards.js +12 -5
- package/cjs/http/{param-codec → codecs}/boolean-codec.js +1 -2
- package/cjs/http/{param-codec → codecs}/date-codec.js +1 -4
- package/cjs/http/{param-codec → codecs}/filter-codec.js +1 -2
- package/cjs/http/{param-codec → codecs}/number-codec.js +1 -3
- package/cjs/http/{param-codec → codecs}/string-codec.js +1 -3
- package/cjs/http/enums/http-headers-codes.enum.js +13 -4
- package/cjs/http/enums/http-status-messages.js +68 -0
- package/cjs/http/http-headers.js +138 -124
- package/cjs/http/http-message.host.js +251 -0
- package/cjs/http/http-params.js +78 -45
- package/cjs/http/http-request-message.js +152 -0
- package/cjs/http/http-response-message.js +238 -0
- package/cjs/http/index.js +8 -11
- package/cjs/http/multipart/batch-multipart.js +169 -153
- package/cjs/http/multipart/http-request-content.js +16 -11
- package/cjs/http/multipart/http-response-content.js +13 -10
- package/cjs/http/multipart/index.js +1 -3
- package/cjs/i18n/i18n.js +1 -1
- package/cjs/index.js +6 -5
- package/cjs/schema/constants.js +2 -9
- package/cjs/schema/data-type/complex-type.interface.js +7 -0
- package/cjs/schema/data-type/enum-type.interface.js +7 -0
- package/cjs/schema/data-type/mapped-type.interface.js +7 -0
- package/cjs/schema/data-type/simple-type.interface.js +7 -0
- package/cjs/schema/data-type/union-type.interface.js +7 -0
- package/cjs/schema/index.js +42 -26
- package/cjs/schema/resource/collection.interface.js +7 -0
- package/cjs/schema/resource/container.interface.js +7 -0
- package/cjs/schema/resource/resource.interface.js +2 -0
- package/cjs/schema/resource/singleton.interface.js +7 -0
- package/cjs/schema/type-guards.js +59 -0
- package/cjs/types.js +2 -0
- package/cjs/url/index.js +2 -2
- package/cjs/url/opra-url-path-component.js +2 -2
- package/cjs/url/opra-url-path.js +7 -4
- package/cjs/url/opra-url.js +84 -115
- package/cjs/url/utils/{path-utils.js → decode-path-component.js} +1 -46
- package/cjs/url/utils/encode-path-component.js +27 -0
- package/cjs/utils/path-utils.js +24 -0
- package/esm/document/api-document.d.ts +102 -0
- package/esm/document/api-document.js +207 -0
- package/esm/document/constants.d.ts +3 -0
- package/esm/document/constants.js +3 -0
- package/esm/document/data-type/api-field.d.ts +41 -0
- package/esm/document/data-type/api-field.js +79 -0
- package/esm/document/data-type/builtin/any.type.d.ts +2 -0
- package/esm/document/data-type/builtin/any.type.js +11 -0
- package/esm/document/data-type/builtin/base64.type.d.ts +6 -0
- package/esm/document/data-type/builtin/base64.type.js +35 -0
- package/esm/document/data-type/builtin/bigint.type.d.ts +6 -0
- package/esm/document/data-type/builtin/bigint.type.js +30 -0
- package/esm/document/data-type/builtin/boolean.type.d.ts +5 -0
- package/esm/document/data-type/builtin/boolean.type.js +25 -0
- package/esm/document/data-type/builtin/date.type.d.ts +4 -0
- package/esm/document/data-type/builtin/date.type.js +15 -0
- package/esm/document/data-type/builtin/guid.type.d.ts +7 -0
- package/esm/document/data-type/builtin/guid.type.js +32 -0
- package/esm/document/data-type/builtin/index.d.ts +10 -0
- package/esm/document/data-type/builtin/index.js +10 -0
- package/esm/document/data-type/builtin/integer.type.d.ts +6 -0
- package/esm/document/data-type/builtin/integer.type.js +25 -0
- package/esm/document/data-type/builtin/number.type.d.ts +6 -0
- package/esm/document/data-type/builtin/number.type.js +30 -0
- package/esm/document/data-type/builtin/object.type.d.ts +3 -0
- package/esm/document/data-type/builtin/object.type.js +17 -0
- package/esm/document/data-type/builtin/string.type.d.ts +5 -0
- package/esm/document/data-type/builtin/string.type.js +21 -0
- package/esm/document/data-type/builtin/time.type.d.ts +7 -0
- package/esm/document/data-type/builtin/time.type.js +29 -0
- package/esm/document/data-type/builtin/timestamp.type.d.ts +5 -0
- package/esm/document/data-type/builtin/timestamp.type.js +26 -0
- package/esm/document/data-type/complex-type.d.ts +50 -0
- package/esm/document/data-type/complex-type.js +150 -0
- package/esm/document/data-type/data-type.d.ts +33 -0
- package/esm/document/data-type/data-type.js +43 -0
- package/esm/document/data-type/enum-type.d.ts +32 -0
- package/esm/document/data-type/enum-type.js +58 -0
- package/esm/document/data-type/mapped-type.d.ts +53 -0
- package/esm/document/data-type/mapped-type.js +91 -0
- package/esm/document/data-type/simple-type.d.ts +33 -0
- package/esm/document/data-type/simple-type.js +57 -0
- package/esm/document/data-type/union-type.d.ts +42 -0
- package/esm/document/data-type/union-type.js +78 -0
- package/esm/document/factory/add-references.d.ts +4 -0
- package/esm/document/factory/add-references.js +16 -0
- package/esm/document/factory/create-document.d.ts +12 -0
- package/esm/document/factory/create-document.js +75 -0
- package/esm/document/factory/factory.d.ts +61 -0
- package/esm/document/factory/factory.js +58 -0
- package/esm/document/factory/import-resource-class.d.ts +9 -0
- package/esm/document/factory/import-resource-class.js +47 -0
- package/esm/document/factory/import-type-class.d.ts +17 -0
- package/esm/document/factory/import-type-class.js +120 -0
- package/esm/document/factory/index.d.ts +1 -0
- package/esm/document/factory/index.js +1 -0
- package/esm/document/factory/process-resources.d.ts +7 -0
- package/esm/document/factory/process-resources.js +49 -0
- package/esm/document/factory/process-types.d.ts +6 -0
- package/esm/document/factory/process-types.js +185 -0
- package/esm/document/index.d.ts +14 -0
- package/esm/document/index.js +14 -0
- package/esm/document/resource/collection.d.ts +67 -0
- package/esm/document/resource/collection.js +181 -0
- package/esm/document/resource/resource.d.ts +29 -0
- package/esm/document/resource/resource.js +35 -0
- package/esm/document/resource/singleton.d.ts +49 -0
- package/esm/document/resource/singleton.js +87 -0
- package/esm/exception/opra-exception.js +2 -0
- package/esm/exception/resource-errors/resource-not-found.error.d.ts +4 -0
- package/esm/exception/resource-errors/resource-not-found.error.js +4 -0
- package/esm/filter/parse.js +3 -1
- package/esm/helpers/function-utils.d.ts +4 -0
- package/esm/helpers/function-utils.js +19 -0
- package/esm/helpers/get-stack-filename.d.ts +1 -0
- package/esm/helpers/get-stack-filename.js +20 -0
- package/esm/helpers/index.d.ts +7 -0
- package/esm/helpers/index.js +7 -0
- package/esm/helpers/is-url.d.ts +1 -0
- package/esm/helpers/is-url.js +4 -0
- package/esm/{schema/utils/clone-object.util.d.ts → helpers/object-utils.d.ts} +1 -0
- package/esm/{schema/utils/clone-object.util.js → helpers/object-utils.js} +11 -0
- package/esm/helpers/path-to-object-tree.d.ts +4 -0
- package/esm/{utils/path-to-tree.js → helpers/path-to-object-tree.js} +7 -7
- package/esm/helpers/responsive-map.d.ts +15 -13
- package/esm/helpers/responsive-map.js +62 -14
- package/esm/{utils → helpers}/type-guards.d.ts +3 -1
- package/esm/{utils → helpers}/type-guards.js +9 -3
- package/esm/http/codecs/boolean-codec.d.ts +5 -0
- package/esm/http/{param-codec → codecs}/boolean-codec.js +1 -2
- package/esm/http/{param-codec → codecs}/date-codec.d.ts +2 -2
- package/esm/http/{param-codec → codecs}/date-codec.js +1 -4
- package/esm/http/{param-codec → codecs}/filter-codec.d.ts +2 -2
- package/esm/http/{param-codec → codecs}/filter-codec.js +1 -2
- package/esm/http/codecs/integer-codec.d.ts +11 -0
- package/esm/http/codecs/number-codec.d.ts +14 -0
- package/esm/http/{param-codec → codecs}/number-codec.js +1 -3
- package/esm/http/codecs/string-codec.d.ts +16 -0
- package/esm/http/{param-codec → codecs}/string-codec.js +1 -3
- package/esm/http/enums/http-headers-codes.enum.d.ts +13 -4
- package/esm/http/enums/http-headers-codes.enum.js +13 -4
- package/esm/http/enums/http-status-messages.d.ts +65 -0
- package/esm/http/enums/http-status-messages.js +65 -0
- package/esm/http/http-headers.d.ts +50 -34
- package/esm/http/http-headers.js +137 -123
- package/esm/http/http-message.host.d.ts +122 -0
- package/esm/http/http-message.host.js +246 -0
- package/esm/http/http-params.d.ts +43 -29
- package/esm/http/http-params.js +75 -43
- package/esm/http/http-request-message.d.ts +213 -0
- package/esm/http/http-request-message.js +148 -0
- package/esm/http/http-response-message.d.ts +318 -0
- package/esm/http/http-response-message.js +233 -0
- package/esm/http/index.d.ts +8 -11
- package/esm/http/index.js +8 -11
- package/esm/http/interfaces/cookie-options.interface.d.ts +4 -0
- package/esm/http/multipart/batch-multipart.d.ts +0 -31
- package/esm/http/multipart/batch-multipart.js +170 -149
- package/esm/http/multipart/http-request-content.d.ts +0 -8
- package/esm/http/multipart/http-request-content.js +17 -8
- package/esm/http/multipart/http-response-content.d.ts +0 -7
- package/esm/http/multipart/http-response-content.js +14 -7
- package/esm/http/multipart/index.d.ts +0 -1
- package/esm/http/multipart/index.js +2 -1
- package/esm/i18n/i18n.js +1 -1
- package/esm/index.d.ts +6 -5
- package/esm/index.js +6 -5
- package/esm/schema/constants.d.ts +2 -8
- package/esm/schema/constants.js +1 -8
- package/esm/schema/data-type/complex-type.interface.d.ts +16 -0
- package/esm/schema/data-type/complex-type.interface.js +4 -0
- package/esm/schema/data-type/data-type.interface.d.ts +14 -0
- package/esm/schema/data-type/enum-type.interface.d.ts +15 -0
- package/esm/schema/data-type/enum-type.interface.js +4 -0
- package/esm/schema/data-type/field.interface.d.ts +21 -0
- package/esm/schema/data-type/mapped-type.interface.d.ts +11 -0
- package/esm/schema/data-type/mapped-type.interface.js +4 -0
- package/esm/schema/data-type/simple-type.interface.d.ts +18 -0
- package/esm/schema/data-type/simple-type.interface.js +4 -0
- package/esm/schema/data-type/union-type.interface.d.ts +10 -0
- package/esm/schema/data-type/union-type.interface.js +4 -0
- package/esm/schema/document.interface.d.ts +34 -0
- package/esm/schema/index.d.ts +51 -25
- package/esm/schema/index.js +41 -25
- package/esm/schema/resource/collection.interface.d.ts +33 -0
- package/esm/schema/resource/collection.interface.js +4 -0
- package/esm/schema/resource/container.interface.d.ts +9 -0
- package/esm/schema/resource/container.interface.js +4 -0
- package/esm/schema/resource/endpoint.interface.d.ts +29 -0
- package/esm/schema/resource/resource.interface.d.ts +12 -0
- package/esm/schema/resource/resource.interface.js +1 -0
- package/esm/schema/resource/singleton.interface.d.ts +22 -0
- package/esm/schema/resource/singleton.interface.js +4 -0
- package/esm/schema/type-guards.d.ts +20 -0
- package/esm/schema/type-guards.js +46 -0
- package/esm/{schema/types.d.ts → types.d.ts} +0 -3
- package/esm/types.js +1 -0
- package/esm/url/index.d.ts +2 -2
- package/esm/url/index.js +2 -2
- package/esm/url/opra-url-path-component.js +1 -1
- package/esm/url/opra-url-path.js +6 -3
- package/esm/url/opra-url.d.ts +8 -27
- package/esm/url/opra-url.js +83 -114
- package/esm/url/utils/decode-path-component.d.ts +5 -0
- package/esm/url/utils/{path-utils.js → decode-path-component.js} +0 -41
- package/esm/url/utils/encode-path-component.d.ts +1 -0
- package/esm/url/utils/encode-path-component.js +22 -0
- package/esm/utils/path-utils.d.ts +2 -0
- package/esm/utils/path-utils.js +19 -0
- package/package.json +21 -6
- package/cjs/constants.js +0 -1
- package/cjs/http/http-param-codec.js +0 -6
- package/cjs/http/http-request-node.js +0 -105
- package/cjs/http/http-request.js +0 -89
- package/cjs/http/http-response.js +0 -23
- package/cjs/http/utils/encodeURIParam.js +0 -21
- package/cjs/http/utils/normalize-headers.js +0 -28
- package/cjs/schema/decorators/opr-collection-resource.decorator.js +0 -24
- package/cjs/schema/decorators/opr-complex-type.decorator.js +0 -28
- package/cjs/schema/decorators/opr-field.decorator.js +0 -29
- package/cjs/schema/decorators/opr-resolver.decorator.js +0 -81
- package/cjs/schema/decorators/opr-simple-type.decorator.js +0 -19
- package/cjs/schema/decorators/opr-singleton-resource.decorator.js +0 -24
- package/cjs/schema/implementation/data-type/builtin/any.type.js +0 -9
- package/cjs/schema/implementation/data-type/builtin/base64-binary.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/bigint.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/boolean.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/date-string.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/date.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/guid.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/integer.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/number.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/object.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin/string.type.js +0 -15
- package/cjs/schema/implementation/data-type/builtin-data-types.js +0 -37
- package/cjs/schema/implementation/data-type/complex-type.js +0 -110
- package/cjs/schema/implementation/data-type/data-type.js +0 -37
- package/cjs/schema/implementation/data-type/simple-type.js +0 -21
- package/cjs/schema/implementation/data-type/union-type.js +0 -24
- package/cjs/schema/implementation/document-builder.js +0 -140
- package/cjs/schema/implementation/opra-document.js +0 -183
- package/cjs/schema/implementation/query/collection-count-query.js +0 -17
- package/cjs/schema/implementation/query/collection-create-query.js +0 -23
- package/cjs/schema/implementation/query/collection-delete-many-query.js +0 -17
- package/cjs/schema/implementation/query/collection-delete-query.js +0 -25
- package/cjs/schema/implementation/query/collection-get-query.js +0 -32
- package/cjs/schema/implementation/query/collection-search-query.js +0 -45
- package/cjs/schema/implementation/query/collection-update-many-query.js +0 -18
- package/cjs/schema/implementation/query/collection-update-query.js +0 -33
- package/cjs/schema/implementation/query/field-get-query.js +0 -34
- package/cjs/schema/implementation/query/index.js +0 -22
- package/cjs/schema/implementation/query/singleton-get-query.js +0 -22
- package/cjs/schema/implementation/resource/collection-resource-info.js +0 -72
- package/cjs/schema/implementation/resource/container-resource-info.js +0 -30
- package/cjs/schema/implementation/resource/resource-info.js +0 -35
- package/cjs/schema/implementation/resource/singleton-resource-info.js +0 -44
- package/cjs/schema/implementation/schema-builder/extract-resource-metadata.util.js +0 -84
- package/cjs/schema/implementation/schema-builder/extract-type-metadata.util.js +0 -94
- package/cjs/schema/opra-schema.definition.js +0 -49
- package/cjs/schema/type-helpers/extend-type.helper.js +0 -65
- package/cjs/schema/type-helpers/mixin-type.helper.js +0 -46
- package/cjs/schema/utils/class.utils.js +0 -8
- package/cjs/schema/utils/normalize-field-array.util.js +0 -44
- package/cjs/schema/utils/path-to-tree.util.js +0 -26
- package/cjs/url/formats/boolean-format.js +0 -25
- package/cjs/url/formats/date-format.js +0 -44
- package/cjs/url/formats/filter-format.js +0 -18
- package/cjs/url/formats/format.js +0 -6
- package/cjs/url/formats/integer-format.js +0 -19
- package/cjs/url/formats/number-format.js +0 -26
- package/cjs/url/formats/string-format.js +0 -25
- package/cjs/url/opra-url-search-params.js +0 -28
- package/cjs/utils/index.js +0 -6
- package/esm/constants.d.ts +0 -0
- package/esm/constants.js +0 -1
- package/esm/http/http-param-codec.d.ts +0 -4
- package/esm/http/http-param-codec.js +0 -2
- package/esm/http/http-request-node.d.ts +0 -34
- package/esm/http/http-request-node.js +0 -101
- package/esm/http/http-request.d.ts +0 -76
- package/esm/http/http-request.js +0 -85
- package/esm/http/http-response.d.ts +0 -41
- package/esm/http/http-response.js +0 -19
- package/esm/http/param-codec/boolean-codec.d.ts +0 -5
- package/esm/http/param-codec/integer-codec.d.ts +0 -9
- package/esm/http/param-codec/number-codec.d.ts +0 -12
- package/esm/http/param-codec/string-codec.d.ts +0 -14
- package/esm/http/utils/encodeURIParam.d.ts +0 -1
- package/esm/http/utils/encodeURIParam.js +0 -17
- package/esm/http/utils/normalize-headers.d.ts +0 -1
- package/esm/http/utils/normalize-headers.js +0 -24
- package/esm/schema/decorators/opr-collection-resource.decorator.d.ts +0 -8
- package/esm/schema/decorators/opr-collection-resource.decorator.js +0 -19
- package/esm/schema/decorators/opr-complex-type.decorator.d.ts +0 -6
- package/esm/schema/decorators/opr-complex-type.decorator.js +0 -23
- package/esm/schema/decorators/opr-field.decorator.d.ts +0 -3
- package/esm/schema/decorators/opr-field.decorator.js +0 -24
- package/esm/schema/decorators/opr-resolver.decorator.d.ts +0 -8
- package/esm/schema/decorators/opr-resolver.decorator.js +0 -71
- package/esm/schema/decorators/opr-simple-type.decorator.d.ts +0 -6
- package/esm/schema/decorators/opr-simple-type.decorator.js +0 -14
- package/esm/schema/decorators/opr-singleton-resource.decorator.d.ts +0 -8
- package/esm/schema/decorators/opr-singleton-resource.decorator.js +0 -19
- package/esm/schema/implementation/data-type/builtin/any.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/any.type.js +0 -6
- package/esm/schema/implementation/data-type/builtin/base64-binary.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/base64-binary.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/bigint.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/bigint.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/boolean.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/boolean.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/date-string.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/date-string.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/date.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/date.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/guid.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/guid.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/integer.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/integer.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/number.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/number.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/object.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/object.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin/string.type.d.ts +0 -2
- package/esm/schema/implementation/data-type/builtin/string.type.js +0 -12
- package/esm/schema/implementation/data-type/builtin-data-types.d.ts +0 -4
- package/esm/schema/implementation/data-type/builtin-data-types.js +0 -34
- package/esm/schema/implementation/data-type/complex-type.d.ts +0 -29
- package/esm/schema/implementation/data-type/complex-type.js +0 -106
- package/esm/schema/implementation/data-type/data-type.d.ts +0 -17
- package/esm/schema/implementation/data-type/data-type.js +0 -33
- package/esm/schema/implementation/data-type/simple-type.d.ts +0 -12
- package/esm/schema/implementation/data-type/simple-type.js +0 -17
- package/esm/schema/implementation/data-type/union-type.d.ts +0 -16
- package/esm/schema/implementation/data-type/union-type.js +0 -19
- package/esm/schema/implementation/document-builder.d.ts +0 -16
- package/esm/schema/implementation/document-builder.js +0 -135
- package/esm/schema/implementation/opra-document.d.ts +0 -44
- package/esm/schema/implementation/opra-document.js +0 -178
- package/esm/schema/implementation/query/collection-count-query.d.ts +0 -14
- package/esm/schema/implementation/query/collection-count-query.js +0 -13
- package/esm/schema/implementation/query/collection-create-query.d.ts +0 -18
- package/esm/schema/implementation/query/collection-create-query.js +0 -19
- package/esm/schema/implementation/query/collection-delete-many-query.d.ts +0 -14
- package/esm/schema/implementation/query/collection-delete-many-query.js +0 -13
- package/esm/schema/implementation/query/collection-delete-query.d.ts +0 -10
- package/esm/schema/implementation/query/collection-delete-query.js +0 -21
- package/esm/schema/implementation/query/collection-get-query.d.ts +0 -21
- package/esm/schema/implementation/query/collection-get-query.js +0 -28
- package/esm/schema/implementation/query/collection-search-query.d.ts +0 -30
- package/esm/schema/implementation/query/collection-search-query.js +0 -41
- package/esm/schema/implementation/query/collection-update-many-query.d.ts +0 -15
- package/esm/schema/implementation/query/collection-update-many-query.js +0 -14
- package/esm/schema/implementation/query/collection-update-query.d.ts +0 -19
- package/esm/schema/implementation/query/collection-update-query.js +0 -29
- package/esm/schema/implementation/query/field-get-query.d.ts +0 -30
- package/esm/schema/implementation/query/field-get-query.js +0 -30
- package/esm/schema/implementation/query/index.d.ts +0 -27
- package/esm/schema/implementation/query/index.js +0 -17
- package/esm/schema/implementation/query/singleton-get-query.d.ts +0 -20
- package/esm/schema/implementation/query/singleton-get-query.js +0 -18
- package/esm/schema/implementation/resource/collection-resource-info.d.ts +0 -22
- package/esm/schema/implementation/resource/collection-resource-info.js +0 -68
- package/esm/schema/implementation/resource/container-resource-info.d.ts +0 -13
- package/esm/schema/implementation/resource/container-resource-info.js +0 -26
- package/esm/schema/implementation/resource/resource-info.d.ts +0 -17
- package/esm/schema/implementation/resource/resource-info.js +0 -31
- package/esm/schema/implementation/resource/singleton-resource-info.d.ts +0 -15
- package/esm/schema/implementation/resource/singleton-resource-info.js +0 -40
- package/esm/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +0 -3
- package/esm/schema/implementation/schema-builder/extract-resource-metadata.util.js +0 -80
- package/esm/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +0 -4
- package/esm/schema/implementation/schema-builder/extract-type-metadata.util.js +0 -90
- package/esm/schema/interfaces/child-field-query.interface.d.ts +0 -4
- package/esm/schema/interfaces/data-type.metadata.d.ts +0 -18
- package/esm/schema/interfaces/resource-container.interface.d.ts +0 -8
- package/esm/schema/interfaces/resource.metadata.d.ts +0 -18
- package/esm/schema/opra-schema.definition.d.ts +0 -178
- package/esm/schema/opra-schema.definition.js +0 -46
- package/esm/schema/type-helpers/extend-type.helper.d.ts +0 -3
- package/esm/schema/type-helpers/extend-type.helper.js +0 -60
- package/esm/schema/type-helpers/mixin-type.helper.d.ts +0 -2
- package/esm/schema/type-helpers/mixin-type.helper.js +0 -42
- package/esm/schema/utils/class.utils.d.ts +0 -2
- package/esm/schema/utils/class.utils.js +0 -4
- package/esm/schema/utils/normalize-field-array.util.d.ts +0 -3
- package/esm/schema/utils/normalize-field-array.util.js +0 -40
- package/esm/schema/utils/path-to-tree.util.d.ts +0 -4
- package/esm/schema/utils/path-to-tree.util.js +0 -22
- package/esm/url/formats/boolean-format.d.ts +0 -5
- package/esm/url/formats/boolean-format.js +0 -21
- package/esm/url/formats/date-format.d.ts +0 -16
- package/esm/url/formats/date-format.js +0 -40
- package/esm/url/formats/filter-format.d.ts +0 -6
- package/esm/url/formats/filter-format.js +0 -14
- package/esm/url/formats/format.d.ts +0 -4
- package/esm/url/formats/format.js +0 -2
- package/esm/url/formats/integer-format.d.ts +0 -9
- package/esm/url/formats/integer-format.js +0 -15
- package/esm/url/formats/number-format.d.ts +0 -12
- package/esm/url/formats/number-format.js +0 -22
- package/esm/url/formats/string-format.d.ts +0 -14
- package/esm/url/formats/string-format.js +0 -21
- package/esm/url/opra-url-search-params.d.ts +0 -5
- package/esm/url/opra-url-search-params.js +0 -24
- package/esm/url/utils/path-utils.d.ts +0 -8
- package/esm/utils/index.d.ts +0 -3
- package/esm/utils/index.js +0 -3
- package/esm/utils/is-url.d.ts +0 -1
- package/esm/utils/is-url.js +0 -4
- package/esm/utils/path-to-tree.d.ts +0 -4
- /package/cjs/{schema → document}/utils/inspect.util.js +0 -0
- /package/cjs/{schema → document}/utils/string-compare.util.js +0 -0
- /package/cjs/{schema/type-helpers/mixin.utils.js → helpers/mixin-utils.js} +0 -0
- /package/cjs/http/{param-codec → codecs}/integer-codec.js +0 -0
- /package/cjs/{schema/interfaces/child-field-query.interface.js → http/interfaces/cookie-options.interface.js} +0 -0
- /package/cjs/schema/{interfaces/data-type.metadata.js → data-type/data-type.interface.js} +0 -0
- /package/cjs/schema/{interfaces/resource-container.interface.js → data-type/field.interface.js} +0 -0
- /package/cjs/schema/{interfaces/resource.metadata.js → document.interface.js} +0 -0
- /package/cjs/schema/{types.js → resource/endpoint.interface.js} +0 -0
- /package/esm/{schema → document}/utils/inspect.util.d.ts +0 -0
- /package/esm/{schema → document}/utils/inspect.util.js +0 -0
- /package/esm/{schema → document}/utils/string-compare.util.d.ts +0 -0
- /package/esm/{schema → document}/utils/string-compare.util.js +0 -0
- /package/esm/{schema/type-helpers/mixin.utils.d.ts → helpers/mixin-utils.d.ts} +0 -0
- /package/esm/{schema/type-helpers/mixin.utils.js → helpers/mixin-utils.js} +0 -0
- /package/esm/http/{param-codec → codecs}/integer-codec.js +0 -0
- /package/esm/{schema/interfaces/child-field-query.interface.js → http/interfaces/cookie-options.interface.js} +0 -0
- /package/esm/schema/{interfaces/data-type.metadata.js → data-type/data-type.interface.js} +0 -0
- /package/esm/schema/{interfaces/resource-container.interface.js → data-type/field.interface.js} +0 -0
- /package/esm/schema/{interfaces/resource.metadata.js → document.interface.js} +0 -0
- /package/esm/schema/{types.js → resource/endpoint.interface.js} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HttpParams } from '../http-params.js';
|
|
2
|
+
export declare namespace NumberCodec {
|
|
3
|
+
interface Options {
|
|
4
|
+
max?: number;
|
|
5
|
+
min?: number;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class NumberCodec implements HttpParams.Codec {
|
|
9
|
+
max?: number;
|
|
10
|
+
min?: number;
|
|
11
|
+
constructor(options?: NumberCodec.Options);
|
|
12
|
+
decode(value: string): number;
|
|
13
|
+
encode(value: any): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HttpParams } from '../http-params.js';
|
|
2
|
+
export declare namespace StringCodec {
|
|
3
|
+
interface Options {
|
|
4
|
+
maxLength?: number;
|
|
5
|
+
minLength?: number;
|
|
6
|
+
enum?: string[];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class StringCodec implements HttpParams.Codec {
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
minLength?: number;
|
|
12
|
+
enum?: string[];
|
|
13
|
+
constructor(options?: StringCodec.Options);
|
|
14
|
+
decode(value: string): string;
|
|
15
|
+
encode(value: any): string;
|
|
16
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export class StringCodec extends HttpParamCodec {
|
|
1
|
+
export class StringCodec {
|
|
3
2
|
constructor(options) {
|
|
4
|
-
super();
|
|
5
3
|
this.maxLength = options?.maxLength;
|
|
6
4
|
this.minLength = options?.minLength;
|
|
7
5
|
this.enum = options?.enum;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#controls
|
|
3
3
|
*/
|
|
4
4
|
export declare enum HttpHeaderCodes {
|
|
5
|
-
X_Opra_Version = "X-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
X_Opra_Version = "X-OPRA-Version",
|
|
6
|
+
X_Opra_Data_Type = "X-OPRA-Data-Type",
|
|
7
|
+
X_Opra_Operation = "X-OPRA-Operation",
|
|
8
|
+
X_Opra_Total_Matches = "X-OPRA-Total_Matches",
|
|
8
9
|
/**
|
|
9
10
|
* Defines the authentication method that should be used to access a resource.
|
|
10
11
|
*/
|
|
@@ -304,6 +305,10 @@ export declare enum HttpHeaderCodes {
|
|
|
304
305
|
* Force communication using HTTPS instead of HTTP.
|
|
305
306
|
*/
|
|
306
307
|
Strict_Transport_Security = "Strict-Transport-Security",
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
*/
|
|
311
|
+
Upgrade = "Upgrade",
|
|
307
312
|
/**
|
|
308
313
|
* Sends a signal to the server expressing the client's preference for an encrypted and authenticated response,
|
|
309
314
|
* and that it can successfully handle the upgrade-insecure-requests directive.
|
|
@@ -375,5 +380,9 @@ export declare enum HttpHeaderCodes {
|
|
|
375
380
|
* resolution on both links that the user may choose to follow as well as URLs for items
|
|
376
381
|
* referenced by the document, including images, CSS, JavaScript, and so forth.
|
|
377
382
|
*/
|
|
378
|
-
X_DNS_Prefetch_Control = "X-DNS-Prefetch-Control"
|
|
383
|
+
X_DNS_Prefetch_Control = "X-DNS-Prefetch-Control",
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
*/
|
|
387
|
+
Max_Forwards = "Max-Forwards"
|
|
379
388
|
}
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export var HttpHeaderCodes;
|
|
6
6
|
(function (HttpHeaderCodes) {
|
|
7
|
-
/* ***
|
|
8
|
-
HttpHeaderCodes["X_Opra_Version"] = "X-
|
|
9
|
-
HttpHeaderCodes["
|
|
10
|
-
HttpHeaderCodes["
|
|
7
|
+
/* *** Opra Headers *** */
|
|
8
|
+
HttpHeaderCodes["X_Opra_Version"] = "X-OPRA-Version";
|
|
9
|
+
HttpHeaderCodes["X_Opra_Data_Type"] = "X-OPRA-Data-Type";
|
|
10
|
+
HttpHeaderCodes["X_Opra_Operation"] = "X-OPRA-Operation";
|
|
11
|
+
HttpHeaderCodes["X_Opra_Total_Matches"] = "X-OPRA-Total_Matches";
|
|
11
12
|
/* *** Authentication *** */
|
|
12
13
|
/**
|
|
13
14
|
* Defines the authentication method that should be used to access a resource.
|
|
@@ -323,6 +324,10 @@ export var HttpHeaderCodes;
|
|
|
323
324
|
* Force communication using HTTPS instead of HTTP.
|
|
324
325
|
*/
|
|
325
326
|
HttpHeaderCodes["Strict_Transport_Security"] = "Strict-Transport-Security";
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
*/
|
|
330
|
+
HttpHeaderCodes["Upgrade"] = "Upgrade";
|
|
326
331
|
/**
|
|
327
332
|
* Sends a signal to the server expressing the client's preference for an encrypted and authenticated response,
|
|
328
333
|
* and that it can successfully handle the upgrade-insecure-requests directive.
|
|
@@ -398,4 +403,8 @@ export var HttpHeaderCodes;
|
|
|
398
403
|
* referenced by the document, including images, CSS, JavaScript, and so forth.
|
|
399
404
|
*/
|
|
400
405
|
HttpHeaderCodes["X_DNS_Prefetch_Control"] = "X-DNS-Prefetch-Control";
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
*/
|
|
409
|
+
HttpHeaderCodes["Max_Forwards"] = "Max-Forwards";
|
|
401
410
|
})(HttpHeaderCodes || (HttpHeaderCodes = {}));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const HttpStatusMessages: {
|
|
2
|
+
"100": string;
|
|
3
|
+
"101": string;
|
|
4
|
+
"102": string;
|
|
5
|
+
"103": string;
|
|
6
|
+
"200": string;
|
|
7
|
+
"201": string;
|
|
8
|
+
"202": string;
|
|
9
|
+
"203": string;
|
|
10
|
+
"204": string;
|
|
11
|
+
"205": string;
|
|
12
|
+
"206": string;
|
|
13
|
+
"207": string;
|
|
14
|
+
"208": string;
|
|
15
|
+
"226": string;
|
|
16
|
+
"300": string;
|
|
17
|
+
"301": string;
|
|
18
|
+
"302": string;
|
|
19
|
+
"303": string;
|
|
20
|
+
"304": string;
|
|
21
|
+
"305": string;
|
|
22
|
+
"307": string;
|
|
23
|
+
"308": string;
|
|
24
|
+
"400": string;
|
|
25
|
+
"401": string;
|
|
26
|
+
"402": string;
|
|
27
|
+
"403": string;
|
|
28
|
+
"404": string;
|
|
29
|
+
"405": string;
|
|
30
|
+
"406": string;
|
|
31
|
+
"407": string;
|
|
32
|
+
"408": string;
|
|
33
|
+
"409": string;
|
|
34
|
+
"410": string;
|
|
35
|
+
"411": string;
|
|
36
|
+
"412": string;
|
|
37
|
+
"413": string;
|
|
38
|
+
"414": string;
|
|
39
|
+
"415": string;
|
|
40
|
+
"416": string;
|
|
41
|
+
"417": string;
|
|
42
|
+
"418": string;
|
|
43
|
+
"421": string;
|
|
44
|
+
"422": string;
|
|
45
|
+
"423": string;
|
|
46
|
+
"424": string;
|
|
47
|
+
"425": string;
|
|
48
|
+
"426": string;
|
|
49
|
+
"428": string;
|
|
50
|
+
"429": string;
|
|
51
|
+
"431": string;
|
|
52
|
+
"451": string;
|
|
53
|
+
"500": string;
|
|
54
|
+
"501": string;
|
|
55
|
+
"502": string;
|
|
56
|
+
"503": string;
|
|
57
|
+
"504": string;
|
|
58
|
+
"505": string;
|
|
59
|
+
"506": string;
|
|
60
|
+
"507": string;
|
|
61
|
+
"508": string;
|
|
62
|
+
"509": string;
|
|
63
|
+
"510": string;
|
|
64
|
+
"511": string;
|
|
65
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export const HttpStatusMessages = {
|
|
2
|
+
"100": "Continue",
|
|
3
|
+
"101": "Switching Protocols",
|
|
4
|
+
"102": "Processing",
|
|
5
|
+
"103": "Early Hints",
|
|
6
|
+
"200": "OK",
|
|
7
|
+
"201": "Created",
|
|
8
|
+
"202": "Accepted",
|
|
9
|
+
"203": "Non-Authoritative Information",
|
|
10
|
+
"204": "No Content",
|
|
11
|
+
"205": "Reset Content",
|
|
12
|
+
"206": "Partial Content",
|
|
13
|
+
"207": "Multi-Status",
|
|
14
|
+
"208": "Already Reported",
|
|
15
|
+
"226": "IM Used",
|
|
16
|
+
"300": "Multiple Choices",
|
|
17
|
+
"301": "Moved Permanently",
|
|
18
|
+
"302": "Found",
|
|
19
|
+
"303": "See Other",
|
|
20
|
+
"304": "Not Modified",
|
|
21
|
+
"305": "Use Proxy",
|
|
22
|
+
"307": "Temporary Redirect",
|
|
23
|
+
"308": "Permanent Redirect",
|
|
24
|
+
"400": "Bad Request",
|
|
25
|
+
"401": "Unauthorized",
|
|
26
|
+
"402": "Payment Required",
|
|
27
|
+
"403": "Forbidden",
|
|
28
|
+
"404": "Not Found",
|
|
29
|
+
"405": "Method Not Allowed",
|
|
30
|
+
"406": "Not Acceptable",
|
|
31
|
+
"407": "Proxy Authentication Required",
|
|
32
|
+
"408": "Request Timeout",
|
|
33
|
+
"409": "Conflict",
|
|
34
|
+
"410": "Gone",
|
|
35
|
+
"411": "Length Required",
|
|
36
|
+
"412": "Precondition Failed",
|
|
37
|
+
"413": "Payload Too Large",
|
|
38
|
+
"414": "URI Too Long",
|
|
39
|
+
"415": "Unsupported Media Type",
|
|
40
|
+
"416": "Range Not Satisfiable",
|
|
41
|
+
"417": "Expectation Failed",
|
|
42
|
+
"418": "I'm a Teapot",
|
|
43
|
+
"421": "Misdirected Request",
|
|
44
|
+
"422": "Unprocessable Entity",
|
|
45
|
+
"423": "Locked",
|
|
46
|
+
"424": "Failed Dependency",
|
|
47
|
+
"425": "Too Early",
|
|
48
|
+
"426": "Upgrade Required",
|
|
49
|
+
"428": "Precondition Required",
|
|
50
|
+
"429": "Too Many Requests",
|
|
51
|
+
"431": "Request Header Fields Too Large",
|
|
52
|
+
"451": "Unavailable For Legal Reasons",
|
|
53
|
+
"500": "Internal Server Error",
|
|
54
|
+
"501": "Not Implemented",
|
|
55
|
+
"502": "Bad Gateway",
|
|
56
|
+
"503": "Service Unavailable",
|
|
57
|
+
"504": "Gateway Timeout",
|
|
58
|
+
"505": "HTTP Version Not Supported",
|
|
59
|
+
"506": "Variant Also Negotiates",
|
|
60
|
+
"507": "Insufficient Storage",
|
|
61
|
+
"508": "Loop Detected",
|
|
62
|
+
"509": "Bandwidth Limit Exceeded",
|
|
63
|
+
"510": "Not Extended",
|
|
64
|
+
"511": "Network Authentication Required"
|
|
65
|
+
};
|
|
@@ -1,51 +1,67 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference lib="dom" />
|
|
3
|
+
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
|
|
4
|
+
import { ResponsiveMap } from '../helpers/index.js';
|
|
2
5
|
declare const nodeInspectCustom: unique symbol;
|
|
3
6
|
declare const kEntries: unique symbol;
|
|
4
|
-
declare const kSize: unique symbol;
|
|
5
7
|
declare const kOptions: unique symbol;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @namespace HttpHeaders
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace HttpHeaders {
|
|
13
|
+
type Initiator = Headers | HttpHeaders | IncomingHttpHeaders | OutgoingHttpHeaders | HeadersObject | Map<string, string | string[]>;
|
|
14
|
+
type HeadersObject = Record<string, string | string[]>;
|
|
15
|
+
interface Options {
|
|
16
|
+
onChange?: () => void;
|
|
17
|
+
}
|
|
10
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @class HttpHeaders
|
|
22
|
+
*/
|
|
11
23
|
export declare class HttpHeaders {
|
|
12
24
|
protected static kEntries: symbol;
|
|
13
|
-
protected static kSize: symbol;
|
|
14
25
|
protected static kOptions: symbol;
|
|
15
|
-
protected [kEntries]: ResponsiveMap<string
|
|
16
|
-
protected [
|
|
17
|
-
|
|
18
|
-
constructor(init?: HttpHeadersInit, options?: HttpHeadersOptions);
|
|
26
|
+
protected [kEntries]: ResponsiveMap<string | string[]>;
|
|
27
|
+
protected [kOptions]: HttpHeaders.Options;
|
|
28
|
+
constructor(init?: HttpHeaders.Initiator | string, options?: HttpHeaders.Options);
|
|
19
29
|
get size(): number;
|
|
20
30
|
/**
|
|
21
31
|
* Appends a new value to the existing set of values for a header
|
|
22
32
|
* and returns this instance
|
|
23
33
|
*/
|
|
24
|
-
append(name: string, value:
|
|
34
|
+
append(name: string, value: string | number | string[]): this;
|
|
25
35
|
/**
|
|
26
36
|
* Appends multiple values to the existing set of values for a header
|
|
27
37
|
* and returns this instance
|
|
28
38
|
*/
|
|
29
|
-
appendAll(headers:
|
|
30
|
-
changed(): void;
|
|
31
|
-
clear(): void;
|
|
39
|
+
appendAll(headers: HttpHeaders.Initiator): this;
|
|
32
40
|
/**
|
|
33
|
-
*
|
|
41
|
+
* Appends multiple values to the existing set of values for a header
|
|
42
|
+
* and returns this instance
|
|
34
43
|
*/
|
|
35
|
-
|
|
44
|
+
set(init: HttpHeaders.Initiator): this;
|
|
36
45
|
/**
|
|
37
|
-
*
|
|
46
|
+
* Sets or modifies a value for a given header.
|
|
47
|
+
* If the header already exists, its value is replaced with the given value
|
|
48
|
+
*/
|
|
49
|
+
set(name: string, value: number | string | string[] | undefined): this;
|
|
50
|
+
parse(init: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves value of a given header
|
|
38
53
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
54
|
+
get(name: string): string | string[] | undefined;
|
|
55
|
+
clear(): void;
|
|
41
56
|
/**
|
|
42
|
-
*
|
|
57
|
+
* Deletes a header entry
|
|
43
58
|
*/
|
|
44
|
-
|
|
59
|
+
delete(name: string): boolean;
|
|
45
60
|
/**
|
|
46
|
-
*
|
|
61
|
+
* Returns an iterable of key, value pairs for every entry in the map.
|
|
47
62
|
*/
|
|
48
|
-
|
|
63
|
+
entries(): IterableIterator<[string, string | string[]]>;
|
|
64
|
+
forEach(callbackFn: (value: number | string | string[], key: string, parent: HttpHeaders) => void, thisArg?: any): void;
|
|
49
65
|
/**
|
|
50
66
|
* Retrieves the names of the headers.
|
|
51
67
|
*/
|
|
@@ -54,17 +70,17 @@ export declare class HttpHeaders {
|
|
|
54
70
|
* Checks for existence of a given header.
|
|
55
71
|
*/
|
|
56
72
|
has(name: string): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Sets or modifies a value for a given header.
|
|
59
|
-
* If the header already exists, its value is replaced with the given value
|
|
60
|
-
*/
|
|
61
|
-
set(name: string, value: HeaderValueType | HeaderValueType[]): this;
|
|
62
73
|
sort(compareFn?: (a: string, b: string) => number): this;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
[
|
|
67
|
-
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
74
|
+
toObject(): Record<string, string>;
|
|
75
|
+
getProxy(): HttpHeaders.HeadersObject;
|
|
76
|
+
[nodeInspectCustom](): ResponsiveMap<string | string[]>;
|
|
77
|
+
[Symbol.iterator](): IterableIterator<[string, number | string | string[]]>;
|
|
68
78
|
get [Symbol.toStringTag](): string;
|
|
79
|
+
protected _append(name: string, value: any): void;
|
|
80
|
+
protected _set(name: string, value: any): void;
|
|
81
|
+
protected changed(): void;
|
|
82
|
+
static NON_DELIMITED_HEADERS: any;
|
|
83
|
+
static SEMICOLON_DELIMITED_HEADERS: any;
|
|
84
|
+
static ARRAY_HEADERS: any;
|
|
69
85
|
}
|
|
70
86
|
export {};
|