@opra/common 1.20.0 → 1.22.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/README.md +3 -0
- package/browser.js +12 -0
- package/{esm/document → document}/api-document.js +7 -7
- package/{esm/document → document}/common/api-base.js +2 -1
- package/{esm/document → document}/common/data-type-map.js +3 -6
- package/{esm/document → document}/common/document-init-context.js +4 -3
- package/{esm/document → document}/common/document-node.js +4 -0
- package/{esm/document → document}/common/opra-document-error.js +1 -1
- package/{esm/document → document}/common/value.js +4 -0
- package/{esm/document → document}/data-type/api-field.js +1 -0
- package/{types/document → document}/data-type/array-type.d.ts +1 -1
- package/{esm/document → document}/data-type/complex-type-base.js +3 -0
- package/{esm/document → document}/data-type/complex-type.js +1 -0
- package/{esm/document → document}/data-type/extended-types/base64.type.js +1 -0
- package/{esm/document → document}/data-type/extended-types/date-time-tz.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/date-time.type.js +3 -0
- package/{esm/document → document}/data-type/extended-types/date.type.js +3 -0
- package/{esm/document → document}/data-type/extended-types/email.type.js +9 -0
- package/{esm/document → document}/data-type/extended-types/field-path.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/filter.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/partial-date.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/time.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/uuid.type.js +1 -0
- package/{esm/document → document}/data-type/mapped-type.js +4 -0
- package/{esm/document → document}/data-type/primitive-types/number.type.js +2 -0
- package/{esm/document → document}/data-type/primitive-types/string.type.js +4 -0
- package/{esm/document → document}/data-type/simple-type.js +3 -0
- package/document/decorators/ws-param.decorator.d.ts +7 -0
- package/{esm/document → document}/decorators/ws-param.decorator.js +2 -2
- package/{esm/document → document}/factory/api-document.factory.js +1 -3
- package/{esm/document → document}/factory/ws-api.factory.js +14 -3
- package/{esm/document → document}/http/http-api.js +5 -4
- package/{esm/document → document}/http/http-multipart-field.js +3 -0
- package/{esm/document → document}/http/http-operation-response.js +3 -0
- package/{esm/document → document}/http/http-request-body.js +8 -1
- package/{esm/document → document}/http/http-status-range.js +2 -2
- package/{esm/document → document}/mq/mq-api.js +5 -4
- package/{esm/document → document}/mq/mq-operation-response.js +7 -1
- package/{esm/document → document}/ws/ws-api.js +4 -4
- package/{types/document → document}/ws/ws-operation.d.ts +15 -3
- package/{esm/document → document}/ws/ws-operation.js +10 -2
- package/{esm/exception → exception}/http-errors/bad-request.error.js +1 -4
- package/{esm/exception → exception}/http-errors/conflict.error.js +1 -4
- package/{esm/exception → exception}/http-errors/failed-dependency.error.js +1 -4
- package/{esm/exception → exception}/http-errors/forbidden.error.js +1 -4
- package/{esm/exception → exception}/http-errors/internal-server.error.js +1 -4
- package/{esm/exception → exception}/http-errors/method-not-allowed.error.js +1 -4
- package/{esm/exception → exception}/http-errors/not-acceptable.error.js +1 -4
- package/{esm/exception → exception}/http-errors/not-found.error.js +1 -4
- package/{esm/exception → exception}/http-errors/resource-conflict.error.js +1 -1
- package/{esm/exception → exception}/http-errors/unauthorized.error.js +1 -4
- package/{esm/exception → exception}/http-errors/unprocessable-entity.error.js +1 -4
- package/{esm/exception → exception}/opra-exception.js +5 -1
- package/{esm/exception → exception}/opra-http-error.js +1 -0
- package/filter/antlr/OpraFilterLexer.js +425 -0
- package/filter/antlr/OpraFilterListener.js +302 -0
- package/{esm/filter → filter}/antlr/OpraFilterParser.js +218 -214
- package/filter/antlr/OpraFilterVisitor.js +185 -0
- package/{esm/filter → filter}/ast/abstract/ast.js +1 -0
- package/{esm/filter → filter}/ast/expressions/arithmetic-expression.js +3 -1
- package/{esm/filter → filter}/ast/expressions/array-expression.js +1 -0
- package/{esm/filter → filter}/ast/expressions/comparison-expression.js +4 -0
- package/{esm/filter → filter}/ast/expressions/logical-expression.js +2 -0
- package/{esm/filter → filter}/ast/expressions/negative-expression.js +1 -0
- package/{esm/filter → filter}/ast/expressions/parenthesized-expression.js +1 -0
- package/{esm/filter → filter}/ast/terms/date-literal.js +1 -0
- package/{esm/filter → filter}/ast/terms/date-time-literal.js +1 -0
- package/{esm/filter → filter}/ast/terms/null-literal.js +1 -1
- package/{esm/filter → filter}/ast/terms/number-literal.js +1 -0
- package/{esm/filter → filter}/ast/terms/time-literal.js +1 -0
- package/{esm/filter → filter}/filter-rules.js +2 -2
- package/{esm/filter → filter}/filter-tree-visitor.js +1 -0
- package/{esm/filter → filter}/opra-error-listener.js +1 -0
- package/{esm/helpers → helpers}/parse-fields-projection.js +2 -0
- package/package.json +15 -35
- package/{types/schema → schema}/ws/ws-api.interface.d.ts +4 -0
- package/browser/index.cjs +0 -12
- package/browser/index.mjs +0 -12
- package/cjs/document/api-document.js +0 -182
- package/cjs/document/common/api-base.js +0 -31
- package/cjs/document/common/data-type-map.js +0 -77
- package/cjs/document/common/document-element.js +0 -34
- package/cjs/document/common/document-init-context.js +0 -69
- package/cjs/document/common/document-node.js +0 -145
- package/cjs/document/common/opra-document-error.js +0 -15
- package/cjs/document/common/value.js +0 -39
- package/cjs/document/constants.js +0 -18
- package/cjs/document/data-type/api-field.js +0 -124
- package/cjs/document/data-type/array-type.js +0 -78
- package/cjs/document/data-type/complex-type-base.js +0 -346
- package/cjs/document/data-type/complex-type.js +0 -127
- package/cjs/document/data-type/data-type.js +0 -67
- package/cjs/document/data-type/enum-type.js +0 -128
- package/cjs/document/data-type/extended-types/base64.type.js +0 -49
- package/cjs/document/data-type/extended-types/date-time-tz.type.js +0 -63
- package/cjs/document/data-type/extended-types/date-time.type.js +0 -76
- package/cjs/document/data-type/extended-types/date.type.js +0 -74
- package/cjs/document/data-type/extended-types/email.type.js +0 -95
- package/cjs/document/data-type/extended-types/field-path.type.js +0 -65
- package/cjs/document/data-type/extended-types/filter.type.js +0 -88
- package/cjs/document/data-type/extended-types/index.js +0 -16
- package/cjs/document/data-type/extended-types/object-id.type.js +0 -31
- package/cjs/document/data-type/extended-types/operation-result.type.js +0 -67
- package/cjs/document/data-type/extended-types/partial-date.type.js +0 -85
- package/cjs/document/data-type/extended-types/time.type.js +0 -55
- package/cjs/document/data-type/extended-types/url.type.js +0 -31
- package/cjs/document/data-type/extended-types/uuid.type.js +0 -37
- package/cjs/document/data-type/mapped-type.js +0 -120
- package/cjs/document/data-type/mixin-type.js +0 -123
- package/cjs/document/data-type/omit-type.js +0 -10
- package/cjs/document/data-type/partial-type.js +0 -12
- package/cjs/document/data-type/pick-type.js +0 -10
- package/cjs/document/data-type/primitive-types/any.type.js +0 -27
- package/cjs/document/data-type/primitive-types/bigint.type.js +0 -38
- package/cjs/document/data-type/primitive-types/boolean.type.js +0 -31
- package/cjs/document/data-type/primitive-types/index.js +0 -11
- package/cjs/document/data-type/primitive-types/integer.type.js +0 -38
- package/cjs/document/data-type/primitive-types/null.type.js +0 -31
- package/cjs/document/data-type/primitive-types/number.type.js +0 -50
- package/cjs/document/data-type/primitive-types/object.type.js +0 -20
- package/cjs/document/data-type/primitive-types/string.type.js +0 -70
- package/cjs/document/data-type/required-type.js +0 -12
- package/cjs/document/data-type/simple-type.js +0 -133
- package/cjs/document/data-type/union-type.js +0 -84
- package/cjs/document/data-type/utils/create-mapped-class.js +0 -56
- package/cjs/document/data-type/utils/get-is-inherited-predicate-fn.js +0 -14
- package/cjs/document/decorators/api-field-decorator.js +0 -50
- package/cjs/document/decorators/complex-type.decorator.js +0 -31
- package/cjs/document/decorators/http-controller.decorator.js +0 -145
- package/cjs/document/decorators/http-operation-entity-create.decorator.js +0 -58
- package/cjs/document/decorators/http-operation-entity-delete-many.decorator.js +0 -41
- package/cjs/document/decorators/http-operation-entity-delete.decorator.js +0 -41
- package/cjs/document/decorators/http-operation-entity-find-many.decorator.js +0 -85
- package/cjs/document/decorators/http-operation-entity-get.decorator.js +0 -56
- package/cjs/document/decorators/http-operation-entity-replace.decorator.js +0 -56
- package/cjs/document/decorators/http-operation-entity-update-many.decorator.js +0 -50
- package/cjs/document/decorators/http-operation-entity-update.decorator.js +0 -66
- package/cjs/document/decorators/http-operation-entity.decorator.js +0 -143
- package/cjs/document/decorators/http-operation.decorator.js +0 -213
- package/cjs/document/decorators/mq-controller.decorator.js +0 -67
- package/cjs/document/decorators/mq-operation.decorator.js +0 -82
- package/cjs/document/decorators/simple-type.decorator.js +0 -67
- package/cjs/document/decorators/ws-controller.decorator.js +0 -51
- package/cjs/document/decorators/ws-operation.decorator.js +0 -42
- package/cjs/document/decorators/ws-param.decorator.js +0 -22
- package/cjs/document/factory/api-document.factory.js +0 -192
- package/cjs/document/factory/data-type.factory.js +0 -647
- package/cjs/document/factory/http-api.factory.js +0 -302
- package/cjs/document/factory/mq-api.factory.js +0 -203
- package/cjs/document/factory/ws-api.factory.js +0 -145
- package/cjs/document/http/http-api.js +0 -40
- package/cjs/document/http/http-controller.js +0 -159
- package/cjs/document/http/http-media-type.js +0 -104
- package/cjs/document/http/http-multipart-field.js +0 -32
- package/cjs/document/http/http-operation-response.js +0 -47
- package/cjs/document/http/http-operation.js +0 -126
- package/cjs/document/http/http-parameter.js +0 -57
- package/cjs/document/http/http-request-body.js +0 -27
- package/cjs/document/http/http-status-range.js +0 -45
- package/cjs/document/index.js +0 -70
- package/cjs/document/mq/mq-api.js +0 -54
- package/cjs/document/mq/mq-controller.js +0 -101
- package/cjs/document/mq/mq-header.js +0 -48
- package/cjs/document/mq/mq-operation-response.js +0 -66
- package/cjs/document/mq/mq-operation.js +0 -101
- package/cjs/document/utils/inspect.util.js +0 -7
- package/cjs/document/utils/parse-regexp.util.js +0 -21
- package/cjs/document/utils/string-compare.util.js +0 -10
- package/cjs/document/utils/test-scope-match.js +0 -15
- package/cjs/document/ws/ws-api.js +0 -52
- package/cjs/document/ws/ws-controller.js +0 -78
- package/cjs/document/ws/ws-operation.js +0 -64
- package/cjs/enums/http-headers-codes.enum.js +0 -411
- package/cjs/enums/http-status-codes.enum.js +0 -300
- package/cjs/enums/http-status-messages.js +0 -68
- package/cjs/enums/index.js +0 -7
- package/cjs/enums/mime-types.enum.js +0 -17
- package/cjs/exception/error-issue.js +0 -2
- package/cjs/exception/http-errors/bad-request.error.js +0 -23
- package/cjs/exception/http-errors/conflict.error.js +0 -22
- package/cjs/exception/http-errors/failed-dependency.error.js +0 -22
- package/cjs/exception/http-errors/forbidden.error.js +0 -25
- package/cjs/exception/http-errors/internal-server.error.js +0 -23
- package/cjs/exception/http-errors/method-not-allowed.error.js +0 -23
- package/cjs/exception/http-errors/not-acceptable.error.js +0 -23
- package/cjs/exception/http-errors/not-found.error.js +0 -26
- package/cjs/exception/http-errors/permission.error.js +0 -20
- package/cjs/exception/http-errors/resource-conflict.error.js +0 -19
- package/cjs/exception/http-errors/resource-not.available.error.js +0 -23
- package/cjs/exception/http-errors/unauthorized.error.js +0 -23
- package/cjs/exception/http-errors/unprocessable-entity.error.js +0 -23
- package/cjs/exception/index.js +0 -20
- package/cjs/exception/issue-severity.enum.js +0 -23
- package/cjs/exception/opra-exception.js +0 -70
- package/cjs/exception/opra-http-error.js +0 -25
- package/cjs/filter/antlr/OpraFilterLexer.js +0 -427
- package/cjs/filter/antlr/OpraFilterListener.js +0 -11
- package/cjs/filter/antlr/OpraFilterParser.js +0 -1851
- package/cjs/filter/antlr/OpraFilterVisitor.js +0 -14
- package/cjs/filter/ast/abstract/ast.js +0 -9
- package/cjs/filter/ast/abstract/expression.js +0 -7
- package/cjs/filter/ast/abstract/literal.js +0 -14
- package/cjs/filter/ast/abstract/term.js +0 -7
- package/cjs/filter/ast/expressions/arithmetic-expression.js +0 -29
- package/cjs/filter/ast/expressions/array-expression.js +0 -14
- package/cjs/filter/ast/expressions/comparison-expression.js +0 -15
- package/cjs/filter/ast/expressions/logical-expression.js +0 -18
- package/cjs/filter/ast/expressions/negative-expression.js +0 -14
- package/cjs/filter/ast/expressions/parenthesized-expression.js +0 -14
- package/cjs/filter/ast/index.js +0 -21
- package/cjs/filter/ast/terms/boolean-literal.js +0 -10
- package/cjs/filter/ast/terms/date-literal.js +0 -28
- package/cjs/filter/ast/terms/date-time-literal.js +0 -27
- package/cjs/filter/ast/terms/external-constant.js +0 -13
- package/cjs/filter/ast/terms/null-literal.js +0 -11
- package/cjs/filter/ast/terms/number-literal.js +0 -39
- package/cjs/filter/ast/terms/qualified-identifier.js +0 -10
- package/cjs/filter/ast/terms/string-literal.js +0 -14
- package/cjs/filter/ast/terms/time-literal.js +0 -34
- package/cjs/filter/build.js +0 -126
- package/cjs/filter/errors.js +0 -21
- package/cjs/filter/filter-rules.js +0 -150
- package/cjs/filter/filter-tree-visitor.js +0 -97
- package/cjs/filter/index.js +0 -5
- package/cjs/filter/opra-error-listener.js +0 -21
- package/cjs/filter/opra-filter.ns.js +0 -8
- package/cjs/filter/parse.js +0 -38
- package/cjs/filter/utils.js +0 -25
- package/cjs/helpers/function-utils.js +0 -15
- package/cjs/helpers/get-stack-filename.js +0 -51
- package/cjs/helpers/index.js +0 -12
- package/cjs/helpers/mixin-utils.js +0 -35
- package/cjs/helpers/object-utils.js +0 -19
- package/cjs/helpers/parse-fields-projection.js +0 -67
- package/cjs/helpers/responsive-map.js +0 -155
- package/cjs/helpers/safe-json-stringify.js +0 -16
- package/cjs/helpers/type-guards.js +0 -46
- package/cjs/i18n/i18n.js +0 -139
- package/cjs/i18n/index.js +0 -10
- package/cjs/i18n/string-utils.js +0 -12
- package/cjs/i18n/translate.js +0 -16
- package/cjs/index.js +0 -14
- package/cjs/package.json +0 -3
- package/cjs/polifils/array-find-last.js +0 -22
- package/cjs/schema/api-document.interface.js +0 -2
- package/cjs/schema/api.interface.js +0 -2
- package/cjs/schema/constants.js +0 -4
- package/cjs/schema/data-type/array-type.interface.js +0 -7
- package/cjs/schema/data-type/complex-type.interface.js +0 -7
- package/cjs/schema/data-type/data-type.interface.js +0 -2
- package/cjs/schema/data-type/enum-type.interface.js +0 -7
- package/cjs/schema/data-type/field.interface.js +0 -2
- package/cjs/schema/data-type/mapped-type.interface.js +0 -7
- package/cjs/schema/data-type/mixin-type.interface.js +0 -7
- package/cjs/schema/data-type/simple-type.interface.js +0 -7
- package/cjs/schema/data-type/union-type.interface.js +0 -7
- package/cjs/schema/data-type-container.interface.js +0 -2
- package/cjs/schema/http/http-api.interface.js +0 -2
- package/cjs/schema/http/http-controller.interface.js +0 -11
- package/cjs/schema/http/http-media-type.interface.js +0 -2
- package/cjs/schema/http/http-multipart-field.interface.js +0 -2
- package/cjs/schema/http/http-operation-response.interface.js +0 -2
- package/cjs/schema/http/http-operation.interface.js +0 -7
- package/cjs/schema/http/http-parameter.interface.js +0 -2
- package/cjs/schema/http/http-request-body.interface.js +0 -2
- package/cjs/schema/http/http-status-range.interface.js +0 -2
- package/cjs/schema/index.js +0 -6
- package/cjs/schema/mq/mq-api.interface.js +0 -2
- package/cjs/schema/mq/mq-controller.interface.js +0 -11
- package/cjs/schema/mq/mq-header.interface.js +0 -2
- package/cjs/schema/mq/mq-operation.interface.js +0 -7
- package/cjs/schema/opra-schema.js +0 -35
- package/cjs/schema/type-guards.js +0 -54
- package/cjs/schema/types.js +0 -2
- package/cjs/schema/value.interface.js +0 -2
- package/cjs/schema/ws/ws-api.interface.js +0 -2
- package/cjs/schema/ws/ws-controller.interface.js +0 -11
- package/cjs/schema/ws/ws-operation.interface.js +0 -7
- package/cjs/types.js +0 -2
- package/esm/filter/antlr/OpraFilterLexer.js +0 -425
- package/esm/filter/antlr/OpraFilterListener.js +0 -8
- package/esm/filter/antlr/OpraFilterVisitor.js +0 -11
- package/esm/helpers/monkey-patches.js +0 -14
- package/esm/package.json +0 -3
- package/types/document/decorators/ws-param.decorator.d.ts +0 -2
- package/types/index.d.cts +0 -9
- /package/{types/document → document}/api-document.d.ts +0 -0
- /package/{types/document → document}/common/api-base.d.ts +0 -0
- /package/{types/document → document}/common/data-type-map.d.ts +0 -0
- /package/{types/document → document}/common/document-element.d.ts +0 -0
- /package/{esm/document → document}/common/document-element.js +0 -0
- /package/{types/document → document}/common/document-init-context.d.ts +0 -0
- /package/{types/document → document}/common/document-node.d.ts +0 -0
- /package/{types/document → document}/common/opra-document-error.d.ts +0 -0
- /package/{types/document → document}/common/value.d.ts +0 -0
- /package/{types/document → document}/constants.d.ts +0 -0
- /package/{esm/document → document}/constants.js +0 -0
- /package/{types/document → document}/data-type/api-field.d.ts +0 -0
- /package/{esm/document → document}/data-type/array-type.js +0 -0
- /package/{types/document → document}/data-type/complex-type-base.d.ts +0 -0
- /package/{types/document → document}/data-type/complex-type.d.ts +0 -0
- /package/{types/document → document}/data-type/data-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/data-type.js +0 -0
- /package/{types/document → document}/data-type/enum-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/enum-type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/base64.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/date-time-tz.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/date-time.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/date.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/email.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/field-path.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/filter.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/index.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/index.js +0 -0
- /package/{types/document → document}/data-type/extended-types/object-id.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/object-id.type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/operation-result.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/operation-result.type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/partial-date.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/time.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/url.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/url.type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/uuid.type.d.ts +0 -0
- /package/{types/document → document}/data-type/mapped-type.d.ts +0 -0
- /package/{types/document → document}/data-type/mixin-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/mixin-type.js +0 -0
- /package/{types/document → document}/data-type/omit-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/omit-type.js +0 -0
- /package/{types/document → document}/data-type/partial-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/partial-type.js +0 -0
- /package/{types/document → document}/data-type/pick-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/pick-type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/any.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/any.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/bigint.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/bigint.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/boolean.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/boolean.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/index.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/index.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/integer.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/integer.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/null.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/null.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/number.type.d.ts +0 -0
- /package/{types/document → document}/data-type/primitive-types/object.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/object.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/string.type.d.ts +0 -0
- /package/{types/document → document}/data-type/required-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/required-type.js +0 -0
- /package/{types/document → document}/data-type/simple-type.d.ts +0 -0
- /package/{types/document → document}/data-type/union-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/union-type.js +0 -0
- /package/{types/document → document}/data-type/utils/create-mapped-class.d.ts +0 -0
- /package/{esm/document → document}/data-type/utils/create-mapped-class.js +0 -0
- /package/{types/document → document}/data-type/utils/get-is-inherited-predicate-fn.d.ts +0 -0
- /package/{esm/document → document}/data-type/utils/get-is-inherited-predicate-fn.js +0 -0
- /package/{types/document → document}/decorators/api-field-decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/api-field-decorator.js +0 -0
- /package/{types/document → document}/decorators/complex-type.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/complex-type.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-controller.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-controller.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-create.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-create.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-delete-many.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-delete-many.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-delete.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-delete.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-find-many.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-find-many.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-get.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-get.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-replace.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-replace.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-update-many.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-update-many.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-update.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-update.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation.decorator.js +0 -0
- /package/{types/document → document}/decorators/mq-controller.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/mq-controller.decorator.js +0 -0
- /package/{types/document → document}/decorators/mq-operation.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/mq-operation.decorator.js +0 -0
- /package/{types/document → document}/decorators/simple-type.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/simple-type.decorator.js +0 -0
- /package/{types/document → document}/decorators/ws-controller.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/ws-controller.decorator.js +0 -0
- /package/{types/document → document}/decorators/ws-operation.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/ws-operation.decorator.js +0 -0
- /package/{types/document → document}/factory/api-document.factory.d.ts +0 -0
- /package/{types/document → document}/factory/data-type.factory.d.ts +0 -0
- /package/{esm/document → document}/factory/data-type.factory.js +0 -0
- /package/{types/document → document}/factory/http-api.factory.d.ts +0 -0
- /package/{esm/document → document}/factory/http-api.factory.js +0 -0
- /package/{types/document → document}/factory/mq-api.factory.d.ts +0 -0
- /package/{esm/document → document}/factory/mq-api.factory.js +0 -0
- /package/{types/document → document}/factory/ws-api.factory.d.ts +0 -0
- /package/{types/document → document}/http/http-api.d.ts +0 -0
- /package/{types/document → document}/http/http-controller.d.ts +0 -0
- /package/{esm/document → document}/http/http-controller.js +0 -0
- /package/{types/document → document}/http/http-media-type.d.ts +0 -0
- /package/{esm/document → document}/http/http-media-type.js +0 -0
- /package/{types/document → document}/http/http-multipart-field.d.ts +0 -0
- /package/{types/document → document}/http/http-operation-response.d.ts +0 -0
- /package/{types/document → document}/http/http-operation.d.ts +0 -0
- /package/{esm/document → document}/http/http-operation.js +0 -0
- /package/{types/document → document}/http/http-parameter.d.ts +0 -0
- /package/{esm/document → document}/http/http-parameter.js +0 -0
- /package/{types/document → document}/http/http-request-body.d.ts +0 -0
- /package/{types/document → document}/http/http-status-range.d.ts +0 -0
- /package/{types/document → document}/index.d.ts +0 -0
- /package/{esm/document → document}/index.js +0 -0
- /package/{types/document → document}/mq/mq-api.d.ts +0 -0
- /package/{types/document → document}/mq/mq-controller.d.ts +0 -0
- /package/{esm/document → document}/mq/mq-controller.js +0 -0
- /package/{types/document → document}/mq/mq-header.d.ts +0 -0
- /package/{esm/document → document}/mq/mq-header.js +0 -0
- /package/{types/document → document}/mq/mq-operation-response.d.ts +0 -0
- /package/{types/document → document}/mq/mq-operation.d.ts +0 -0
- /package/{esm/document → document}/mq/mq-operation.js +0 -0
- /package/{types/document → document}/utils/inspect.util.d.ts +0 -0
- /package/{esm/document → document}/utils/inspect.util.js +0 -0
- /package/{types/document → document}/utils/parse-regexp.util.d.ts +0 -0
- /package/{esm/document → document}/utils/parse-regexp.util.js +0 -0
- /package/{types/document → document}/utils/string-compare.util.d.ts +0 -0
- /package/{esm/document → document}/utils/string-compare.util.js +0 -0
- /package/{types/document → document}/utils/test-scope-match.d.ts +0 -0
- /package/{esm/document → document}/utils/test-scope-match.js +0 -0
- /package/{types/document → document}/ws/ws-api.d.ts +0 -0
- /package/{types/document → document}/ws/ws-controller.d.ts +0 -0
- /package/{esm/document → document}/ws/ws-controller.js +0 -0
- /package/{types/enums → enums}/http-headers-codes.enum.d.ts +0 -0
- /package/{esm/enums → enums}/http-headers-codes.enum.js +0 -0
- /package/{types/enums → enums}/http-status-codes.enum.d.ts +0 -0
- /package/{esm/enums → enums}/http-status-codes.enum.js +0 -0
- /package/{types/enums → enums}/http-status-messages.d.ts +0 -0
- /package/{esm/enums → enums}/http-status-messages.js +0 -0
- /package/{types/enums → enums}/index.d.ts +0 -0
- /package/{esm/enums → enums}/index.js +0 -0
- /package/{types/enums → enums}/mime-types.enum.d.ts +0 -0
- /package/{esm/enums → enums}/mime-types.enum.js +0 -0
- /package/{types/exception → exception}/error-issue.d.ts +0 -0
- /package/{esm/exception → exception}/error-issue.js +0 -0
- /package/{types/exception → exception}/http-errors/bad-request.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/conflict.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/failed-dependency.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/forbidden.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/internal-server.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/method-not-allowed.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/not-acceptable.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/not-found.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/permission.error.d.ts +0 -0
- /package/{esm/exception → exception}/http-errors/permission.error.js +0 -0
- /package/{types/exception → exception}/http-errors/resource-conflict.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/resource-not.available.error.d.ts +0 -0
- /package/{esm/exception → exception}/http-errors/resource-not.available.error.js +0 -0
- /package/{types/exception → exception}/http-errors/unauthorized.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/unprocessable-entity.error.d.ts +0 -0
- /package/{types/exception → exception}/index.d.ts +0 -0
- /package/{esm/exception → exception}/index.js +0 -0
- /package/{types/exception → exception}/issue-severity.enum.d.ts +0 -0
- /package/{esm/exception → exception}/issue-severity.enum.js +0 -0
- /package/{types/exception → exception}/opra-exception.d.ts +0 -0
- /package/{types/exception → exception}/opra-http-error.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterLexer.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterListener.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterParser.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterVisitor.d.ts +0 -0
- /package/{types/filter → filter}/ast/abstract/ast.d.ts +0 -0
- /package/{types/filter → filter}/ast/abstract/expression.d.ts +0 -0
- /package/{esm/filter → filter}/ast/abstract/expression.js +0 -0
- /package/{types/filter → filter}/ast/abstract/literal.d.ts +0 -0
- /package/{esm/filter → filter}/ast/abstract/literal.js +0 -0
- /package/{types/filter → filter}/ast/abstract/term.d.ts +0 -0
- /package/{esm/filter → filter}/ast/abstract/term.js +0 -0
- /package/{types/filter → filter}/ast/expressions/arithmetic-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/array-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/comparison-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/logical-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/negative-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/parenthesized-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/index.d.ts +0 -0
- /package/{esm/filter → filter}/ast/index.js +0 -0
- /package/{types/filter → filter}/ast/terms/boolean-literal.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/boolean-literal.js +0 -0
- /package/{types/filter → filter}/ast/terms/date-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/date-time-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/external-constant.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/external-constant.js +0 -0
- /package/{types/filter → filter}/ast/terms/null-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/number-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/qualified-identifier.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/qualified-identifier.js +0 -0
- /package/{types/filter → filter}/ast/terms/string-literal.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/string-literal.js +0 -0
- /package/{types/filter → filter}/ast/terms/time-literal.d.ts +0 -0
- /package/{types/filter → filter}/build.d.ts +0 -0
- /package/{esm/filter → filter}/build.js +0 -0
- /package/{types/filter → filter}/errors.d.ts +0 -0
- /package/{esm/filter → filter}/errors.js +0 -0
- /package/{types/filter → filter}/filter-rules.d.ts +0 -0
- /package/{types/filter → filter}/filter-tree-visitor.d.ts +0 -0
- /package/{types/filter → filter}/index.d.ts +0 -0
- /package/{esm/filter → filter}/index.js +0 -0
- /package/{types/filter → filter}/opra-error-listener.d.ts +0 -0
- /package/{types/filter → filter}/opra-filter.ns.d.ts +0 -0
- /package/{esm/filter → filter}/opra-filter.ns.js +0 -0
- /package/{types/filter → filter}/parse.d.ts +0 -0
- /package/{esm/filter → filter}/parse.js +0 -0
- /package/{types/filter → filter}/utils.d.ts +0 -0
- /package/{esm/filter → filter}/utils.js +0 -0
- /package/{types/helpers → helpers}/function-utils.d.ts +0 -0
- /package/{esm/helpers → helpers}/function-utils.js +0 -0
- /package/{types/helpers → helpers}/get-stack-filename.d.ts +0 -0
- /package/{esm/helpers → helpers}/get-stack-filename.js +0 -0
- /package/{types/helpers → helpers}/index.d.ts +0 -0
- /package/{esm/helpers → helpers}/index.js +0 -0
- /package/{types/helpers → helpers}/mixin-utils.d.ts +0 -0
- /package/{esm/helpers → helpers}/mixin-utils.js +0 -0
- /package/{types/helpers → helpers}/monkey-patches.d.ts +0 -0
- /package/{cjs/helpers → helpers}/monkey-patches.js +0 -0
- /package/{types/helpers → helpers}/object-utils.d.ts +0 -0
- /package/{esm/helpers → helpers}/object-utils.js +0 -0
- /package/{types/helpers → helpers}/parse-fields-projection.d.ts +0 -0
- /package/{types/helpers → helpers}/responsive-map.d.ts +0 -0
- /package/{esm/helpers → helpers}/responsive-map.js +0 -0
- /package/{types/helpers → helpers}/safe-json-stringify.d.ts +0 -0
- /package/{esm/helpers → helpers}/safe-json-stringify.js +0 -0
- /package/{types/helpers → helpers}/type-guards.d.ts +0 -0
- /package/{esm/helpers → helpers}/type-guards.js +0 -0
- /package/{types/i18n → i18n}/i18n.d.ts +0 -0
- /package/{esm/i18n → i18n}/i18n.js +0 -0
- /package/{types/i18n → i18n}/index.d.ts +0 -0
- /package/{esm/i18n → i18n}/index.js +0 -0
- /package/{types/i18n → i18n}/string-utils.d.ts +0 -0
- /package/{esm/i18n → i18n}/string-utils.js +0 -0
- /package/{types/i18n → i18n}/translate.d.ts +0 -0
- /package/{esm/i18n → i18n}/translate.js +0 -0
- /package/{types/index.d.ts → index.d.ts} +0 -0
- /package/{esm/index.js → index.js} +0 -0
- /package/{types/polifils → polifils}/array-find-last.d.ts +0 -0
- /package/{esm/polifils → polifils}/array-find-last.js +0 -0
- /package/{types/schema → schema}/api-document.interface.d.ts +0 -0
- /package/{esm/schema → schema}/api-document.interface.js +0 -0
- /package/{types/schema → schema}/api.interface.d.ts +0 -0
- /package/{esm/schema → schema}/api.interface.js +0 -0
- /package/{types/schema → schema}/constants.d.ts +0 -0
- /package/{esm/schema → schema}/constants.js +0 -0
- /package/{types/schema → schema}/data-type/array-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/array-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/complex-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/complex-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/data-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/data-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/enum-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/enum-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/field.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/field.interface.js +0 -0
- /package/{types/schema → schema}/data-type/mapped-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/mapped-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/mixin-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/mixin-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/simple-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/simple-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/union-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/union-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type-container.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type-container.interface.js +0 -0
- /package/{types/schema → schema}/http/http-api.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-api.interface.js +0 -0
- /package/{types/schema → schema}/http/http-controller.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-controller.interface.js +0 -0
- /package/{types/schema → schema}/http/http-media-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-media-type.interface.js +0 -0
- /package/{types/schema → schema}/http/http-multipart-field.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-multipart-field.interface.js +0 -0
- /package/{types/schema → schema}/http/http-operation-response.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-operation-response.interface.js +0 -0
- /package/{types/schema → schema}/http/http-operation.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-operation.interface.js +0 -0
- /package/{types/schema → schema}/http/http-parameter.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-parameter.interface.js +0 -0
- /package/{types/schema → schema}/http/http-request-body.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-request-body.interface.js +0 -0
- /package/{types/schema → schema}/http/http-status-range.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-status-range.interface.js +0 -0
- /package/{types/schema → schema}/index.d.ts +0 -0
- /package/{esm/schema → schema}/index.js +0 -0
- /package/{types/schema → schema}/mq/mq-api.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-api.interface.js +0 -0
- /package/{types/schema → schema}/mq/mq-controller.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-controller.interface.js +0 -0
- /package/{types/schema → schema}/mq/mq-header.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-header.interface.js +0 -0
- /package/{types/schema → schema}/mq/mq-operation.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-operation.interface.js +0 -0
- /package/{types/schema → schema}/opra-schema.d.ts +0 -0
- /package/{esm/schema → schema}/opra-schema.js +0 -0
- /package/{types/schema → schema}/type-guards.d.ts +0 -0
- /package/{esm/schema → schema}/type-guards.js +0 -0
- /package/{types/schema → schema}/types.d.ts +0 -0
- /package/{esm/schema → schema}/types.js +0 -0
- /package/{types/schema → schema}/value.interface.d.ts +0 -0
- /package/{esm/schema → schema}/value.interface.js +0 -0
- /package/{esm/schema → schema}/ws/ws-api.interface.js +0 -0
- /package/{types/schema → schema}/ws/ws-controller.interface.d.ts +0 -0
- /package/{esm/schema → schema}/ws/ws-controller.interface.js +0 -0
- /package/{types/schema → schema}/ws/ws-operation.interface.d.ts +0 -0
- /package/{esm/schema → schema}/ws/ws-operation.interface.js +0 -0
- /package/{types/types.d.ts → types.d.ts} +0 -0
- /package/{esm/types.js → types.js} +0 -0
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// noinspection JSUnusedGlobalSymbols
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.HttpHeaderCodes = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#controls
|
|
7
|
-
*/
|
|
8
|
-
var HttpHeaderCodes;
|
|
9
|
-
(function (HttpHeaderCodes) {
|
|
10
|
-
/* *** Opra Custom Headers *** */
|
|
11
|
-
HttpHeaderCodes["X_Opra_Version"] = "X-Opra-Version";
|
|
12
|
-
HttpHeaderCodes["X_Total_Count"] = "X-Total-Count";
|
|
13
|
-
/* *** Authentication *** */
|
|
14
|
-
/**
|
|
15
|
-
* Defines the authentication method that should be used to access a resource.
|
|
16
|
-
*/
|
|
17
|
-
HttpHeaderCodes["WWW_Authenticate"] = "WWW-Authenticate";
|
|
18
|
-
/**
|
|
19
|
-
* Contains the credentials to authenticate a user-agent with a server.
|
|
20
|
-
*/
|
|
21
|
-
HttpHeaderCodes["Authorization"] = "Authorization";
|
|
22
|
-
/**
|
|
23
|
-
* Defines the authentication method that should be used to access a resource behind a proxy server.
|
|
24
|
-
*/
|
|
25
|
-
HttpHeaderCodes["Proxy_Authenticate"] = "Proxy-Authenticate";
|
|
26
|
-
/**
|
|
27
|
-
* Contains the credentials to authenticate a user agent with a proxy server.
|
|
28
|
-
*/
|
|
29
|
-
HttpHeaderCodes["Proxy_Authorization"] = "Proxy-Authorization";
|
|
30
|
-
/* *** Caching *** */
|
|
31
|
-
/**
|
|
32
|
-
* The time, in seconds, that the object has been in a proxy cache.
|
|
33
|
-
*/
|
|
34
|
-
HttpHeaderCodes["Age"] = "Age";
|
|
35
|
-
/**
|
|
36
|
-
* Directives for caching mechanisms in both requests and responses.
|
|
37
|
-
*/
|
|
38
|
-
HttpHeaderCodes["Cache_Control"] = "Cache-Control";
|
|
39
|
-
/**
|
|
40
|
-
* Clears browsing data (e.g. cookies, storage, cache) associated with the requesting website.
|
|
41
|
-
*/
|
|
42
|
-
HttpHeaderCodes["Clear_Site_Data"] = "Clear-Site-Data";
|
|
43
|
-
/**
|
|
44
|
-
* The date/time after which the response is considered stale.
|
|
45
|
-
*/
|
|
46
|
-
HttpHeaderCodes["Expires"] = "Expires";
|
|
47
|
-
/**
|
|
48
|
-
* Implementation-specific header that may have various effects anywhere along the request-response chain.
|
|
49
|
-
* Used for backwards compatibility with HTTP/1.0 caches where the Cache-Control header is not yet present.
|
|
50
|
-
*/
|
|
51
|
-
HttpHeaderCodes["Pragma"] = "Pragma";
|
|
52
|
-
/* *** Conditionals *** */
|
|
53
|
-
/**
|
|
54
|
-
* The last modification date of the resource, used to compare several versions of the same resource.
|
|
55
|
-
* It is less accurate than ETag, but easier to calculate in some environments.
|
|
56
|
-
* Conditional requests using If-Modified-Since and If-Unmodified-Since
|
|
57
|
-
* use this value to change the behavior of the request.
|
|
58
|
-
*/
|
|
59
|
-
HttpHeaderCodes["Last_Modified"] = "Last-Modified";
|
|
60
|
-
/**
|
|
61
|
-
* A unique string identifying the version of the resource.
|
|
62
|
-
* Conditional requests using If-Match and If-None-Match use this value to change the behavior of the request.
|
|
63
|
-
*/
|
|
64
|
-
HttpHeaderCodes["ETag"] = "ETag";
|
|
65
|
-
/**
|
|
66
|
-
* Makes the request conditional, and applies the method only if the stored resource matches one of the given ETags.
|
|
67
|
-
*/
|
|
68
|
-
HttpHeaderCodes["If_Match"] = "If-Match";
|
|
69
|
-
/**
|
|
70
|
-
* Makes the request conditional, and applies the method only if the stored resource doesn't match
|
|
71
|
-
* any of the given ETags. This is used to update caches (for safe requests), or to prevent uploading
|
|
72
|
-
* a new resource when one already exists.
|
|
73
|
-
*/
|
|
74
|
-
HttpHeaderCodes["If_None_Match"] = "If-None-Match";
|
|
75
|
-
/**
|
|
76
|
-
* Makes the request conditional, and expects the resource to be transmitted only if it has been modified
|
|
77
|
-
* after the given date. This is used to transmit data only when the cache is out of date.
|
|
78
|
-
*/
|
|
79
|
-
HttpHeaderCodes["If_Modified_Since"] = "If-Modified-Since";
|
|
80
|
-
/**
|
|
81
|
-
* Makes the request conditional, and expects the resource to be transmitted only if
|
|
82
|
-
* it has not been modified after the given date. This ensures the coherence of a new
|
|
83
|
-
* fragment of a specific range with previous ones, or to implement an optimistic
|
|
84
|
-
* concurrency control system when modifying existing documents.
|
|
85
|
-
*/
|
|
86
|
-
HttpHeaderCodes["If_Unmodified_Since"] = "If-Unmodified-Since";
|
|
87
|
-
/**
|
|
88
|
-
* Determines how to match request headers to decide whether a cached response can be used
|
|
89
|
-
* rather than requesting a fresh one from the origin server.
|
|
90
|
-
*/
|
|
91
|
-
HttpHeaderCodes["Vary"] = "Vary";
|
|
92
|
-
/* *** Connection management *** */
|
|
93
|
-
/**
|
|
94
|
-
* Controls whether the network connection stays open after the current transaction finishes.
|
|
95
|
-
*/
|
|
96
|
-
HttpHeaderCodes["Connection"] = "Connection";
|
|
97
|
-
/**
|
|
98
|
-
* Controls how long a persistent connection should stay open.
|
|
99
|
-
*/
|
|
100
|
-
HttpHeaderCodes["Keep_Alive"] = "Keep-Alive";
|
|
101
|
-
// Content negotiation
|
|
102
|
-
/**
|
|
103
|
-
* Informs the server about the types of data that can be sent back.
|
|
104
|
-
*/
|
|
105
|
-
HttpHeaderCodes["Accept"] = "Accept";
|
|
106
|
-
/**
|
|
107
|
-
* The encoding algorithm, usually a compression algorithm, that can be used on the resource sent back.
|
|
108
|
-
*/
|
|
109
|
-
HttpHeaderCodes["Accept_Encoding"] = "Accept-Encoding";
|
|
110
|
-
/**
|
|
111
|
-
* Informs the server about the human language the server is expected to send back.
|
|
112
|
-
* This is a hint and is not necessarily under the full control of the user:
|
|
113
|
-
* the server should always pay attention not to override an explicit user choice
|
|
114
|
-
* (like selecting a language from a dropdown).
|
|
115
|
-
*/
|
|
116
|
-
HttpHeaderCodes["Accept_Language"] = "Accept-Language";
|
|
117
|
-
/* *** Controls *** */
|
|
118
|
-
/**
|
|
119
|
-
* Indicates expectations that need to be fulfilled by the server to properly handle the request.
|
|
120
|
-
*/
|
|
121
|
-
HttpHeaderCodes["Expect"] = "Expect";
|
|
122
|
-
/* *** Cookies *** */
|
|
123
|
-
/**
|
|
124
|
-
* Contains stored HTTP cookies previously sent by the server with the Set-Cookie header.
|
|
125
|
-
*/
|
|
126
|
-
HttpHeaderCodes["Cookie"] = "Cookie";
|
|
127
|
-
/**
|
|
128
|
-
* Send cookies from the server to the user-agent.
|
|
129
|
-
*/
|
|
130
|
-
HttpHeaderCodes["Set_Cookie"] = "Set-Cookie";
|
|
131
|
-
/* *** CORS *** */
|
|
132
|
-
/**
|
|
133
|
-
* Indicates whether the response can be shared.
|
|
134
|
-
*/
|
|
135
|
-
HttpHeaderCodes["Access_Control_Allow_Origin"] = "Access-Control-Allow-Origin";
|
|
136
|
-
/**
|
|
137
|
-
* Indicates whether the response to the request can be exposed when the credentials flag is true.
|
|
138
|
-
*/
|
|
139
|
-
HttpHeaderCodes["Access_Control_Allow_Credentials"] = "Access-Control-Allow-Credentials";
|
|
140
|
-
/**
|
|
141
|
-
* Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request.
|
|
142
|
-
*/
|
|
143
|
-
HttpHeaderCodes["Access_Control_Allow_Headers"] = "Access-Control-Allow-Headers";
|
|
144
|
-
/**
|
|
145
|
-
* Specifies the methods allowed when accessing the resource in response to a preflight request.
|
|
146
|
-
*/
|
|
147
|
-
HttpHeaderCodes["Access_Control_Allow_Methods"] = "Access-Control-Allow-Methods";
|
|
148
|
-
/**
|
|
149
|
-
* Indicates which headers can be exposed as part of the response by listing their names.
|
|
150
|
-
*/
|
|
151
|
-
HttpHeaderCodes["Access_Control_Expose_Headers"] = "Access-Control-Expose-Headers";
|
|
152
|
-
/**
|
|
153
|
-
* Indicates how long the results of a preflight request can be cached.
|
|
154
|
-
*/
|
|
155
|
-
HttpHeaderCodes["Access_Control_Max_Age"] = "Access-Control-Max-Age";
|
|
156
|
-
/**
|
|
157
|
-
* Used when issuing a preflight request to let the server know which HTTP headers will be
|
|
158
|
-
* used when the actual request is made.
|
|
159
|
-
*/
|
|
160
|
-
HttpHeaderCodes["Access_Control_Request_Headers"] = "Access-Control-Request-Headers";
|
|
161
|
-
/**
|
|
162
|
-
* Used when issuing a preflight request to let the server know which HTTP method
|
|
163
|
-
* will be used when the actual request is made.
|
|
164
|
-
*/
|
|
165
|
-
HttpHeaderCodes["Access_Control_Request_Method"] = "Access-Control-Request-Method";
|
|
166
|
-
/**
|
|
167
|
-
* Indicates where a fetch originates from.
|
|
168
|
-
*/
|
|
169
|
-
HttpHeaderCodes["Origin"] = "Origin";
|
|
170
|
-
/**
|
|
171
|
-
* Specifies origins that are allowed to see values of attributes retrieved via features of the Resource Timing API,
|
|
172
|
-
* which would otherwise be reported as zero due to cross-origin restrictions.
|
|
173
|
-
*/
|
|
174
|
-
HttpHeaderCodes["Timing_Allow_Origin"] = "Timing-Allow-Origin";
|
|
175
|
-
/* *** Downloads *** */
|
|
176
|
-
/**
|
|
177
|
-
* Indicates if the resource transmitted should be displayed inline (default behavior without the header),
|
|
178
|
-
* or if it should be handled like a download and the browser should present a "Save As" dialog.
|
|
179
|
-
*/
|
|
180
|
-
HttpHeaderCodes["Content_Disposition"] = "Content-Disposition";
|
|
181
|
-
/* *** Message body information *** */
|
|
182
|
-
/**
|
|
183
|
-
* Indicates to uniquely identifies MIME entities in several contexts.
|
|
184
|
-
*/
|
|
185
|
-
HttpHeaderCodes["Content_ID"] = "Content-ID";
|
|
186
|
-
/**
|
|
187
|
-
* The size of the resource, in decimal number of bytes.
|
|
188
|
-
*/
|
|
189
|
-
HttpHeaderCodes["Content_Length"] = "Content-Length";
|
|
190
|
-
/**
|
|
191
|
-
* Indicates the media type of the resource.
|
|
192
|
-
*/
|
|
193
|
-
HttpHeaderCodes["Content_Type"] = "Content-Type";
|
|
194
|
-
/**
|
|
195
|
-
* Indicates to specify how a MIME message or body part has been encoded,
|
|
196
|
-
* so that it can be decoded by its recipient.
|
|
197
|
-
*/
|
|
198
|
-
HttpHeaderCodes["Content_Transfer_Encoding"] = "Content-Transfer-Encoding";
|
|
199
|
-
/**
|
|
200
|
-
* Used to specify the compression algorithm.
|
|
201
|
-
*/
|
|
202
|
-
HttpHeaderCodes["Content_Encoding"] = "Content-Encoding";
|
|
203
|
-
/**
|
|
204
|
-
* Describes the human language(s) intended for the audience, so that it allows a user to
|
|
205
|
-
* differentiate according to the users' own preferred language.
|
|
206
|
-
*/
|
|
207
|
-
HttpHeaderCodes["Content_Language"] = "Content-Language";
|
|
208
|
-
/**
|
|
209
|
-
* Indicates an alternate location for the returned data.
|
|
210
|
-
*/
|
|
211
|
-
HttpHeaderCodes["Content_Location"] = "Content-Location";
|
|
212
|
-
// Proxies
|
|
213
|
-
/**
|
|
214
|
-
* Contains information from the client-facing side of proxy servers that is altered or
|
|
215
|
-
* lost when a proxy is involved in the path of the request.
|
|
216
|
-
*/
|
|
217
|
-
HttpHeaderCodes["Forwarded"] = "Forwarded";
|
|
218
|
-
/**
|
|
219
|
-
* Identifies the originating IP addresses of a client connecting to a web server
|
|
220
|
-
* through an HTTP proxy or a load balancer.
|
|
221
|
-
*/
|
|
222
|
-
HttpHeaderCodes["X_Forwarded_For"] = "X-Forwarded-For";
|
|
223
|
-
/**
|
|
224
|
-
* Identifies the original host requested that a client used to connect to your proxy or load balancer.
|
|
225
|
-
*/
|
|
226
|
-
HttpHeaderCodes["X_Forwarded_Host"] = "X-Forwarded-Host";
|
|
227
|
-
/**
|
|
228
|
-
* Identifies the protocol (HTTP or HTTPS) that a client used to connect to your proxy or load balancer.
|
|
229
|
-
*/
|
|
230
|
-
HttpHeaderCodes["X_Forwarded_Proto"] = "X-Forwarded-Proto";
|
|
231
|
-
/**
|
|
232
|
-
* Added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers.
|
|
233
|
-
*/
|
|
234
|
-
HttpHeaderCodes["Via"] = "Via";
|
|
235
|
-
/* *** Redirects *** */
|
|
236
|
-
/**
|
|
237
|
-
* Indicates the URL to redirect a page to.
|
|
238
|
-
*/
|
|
239
|
-
HttpHeaderCodes["Location"] = "Location";
|
|
240
|
-
/* *** Request context *** */
|
|
241
|
-
/**
|
|
242
|
-
* Contains an Internet email address for a human user who controls the requesting user agent.
|
|
243
|
-
*/
|
|
244
|
-
HttpHeaderCodes["From"] = "From";
|
|
245
|
-
/**
|
|
246
|
-
* Specifies the domain name of the server (for virtual hosting), and (optionally)
|
|
247
|
-
* the TCP port number on which the server is listening.
|
|
248
|
-
*/
|
|
249
|
-
HttpHeaderCodes["Host"] = "Host";
|
|
250
|
-
/**
|
|
251
|
-
* The address of the previous web page from which a link to the currently requested page was followed.
|
|
252
|
-
*/
|
|
253
|
-
HttpHeaderCodes["Referer"] = "Referer";
|
|
254
|
-
/**
|
|
255
|
-
* Governs which referrer information sent in the Referer header should be included with requests made.
|
|
256
|
-
*/
|
|
257
|
-
HttpHeaderCodes["Referrer_Policy"] = "Referrer-Policy";
|
|
258
|
-
/**
|
|
259
|
-
* Contains a characteristic string that allows the network protocol peers to identify the application type,
|
|
260
|
-
* operating system, software vendor or software version of the requesting software user agent.
|
|
261
|
-
*/
|
|
262
|
-
HttpHeaderCodes["User_Agent"] = "User-Agent";
|
|
263
|
-
/* *** Response context *** */
|
|
264
|
-
/**
|
|
265
|
-
* Lists the set of HTTP request methods supported by a resource.
|
|
266
|
-
*/
|
|
267
|
-
HttpHeaderCodes["Allow"] = "Allow";
|
|
268
|
-
/**
|
|
269
|
-
* Contains information about the software used by the origin server to handle the request.
|
|
270
|
-
*/
|
|
271
|
-
HttpHeaderCodes["Server"] = "Server";
|
|
272
|
-
/* *** Range requests *** */
|
|
273
|
-
/**
|
|
274
|
-
* Indicates if the server supports range requests, and if so in which unit the range can be expressed.
|
|
275
|
-
*/
|
|
276
|
-
HttpHeaderCodes["Accept_Ranges"] = "Accept-Ranges";
|
|
277
|
-
/**
|
|
278
|
-
* Indicates the part of a document that the server should return.
|
|
279
|
-
*/
|
|
280
|
-
HttpHeaderCodes["Range"] = "Range";
|
|
281
|
-
/**
|
|
282
|
-
* Creates a conditional range request that is only fulfilled if the given etag or date matches
|
|
283
|
-
* the remote resource. Used to prevent downloading two ranges from incompatible version of the resource.
|
|
284
|
-
*/
|
|
285
|
-
HttpHeaderCodes["If_Range"] = "If-Range";
|
|
286
|
-
/**
|
|
287
|
-
* Indicates where in a full body message a partial message belongs.
|
|
288
|
-
*/
|
|
289
|
-
HttpHeaderCodes["Content_Range"] = "Content-Range";
|
|
290
|
-
/* *** Security *** */
|
|
291
|
-
/**
|
|
292
|
-
* Allows a server to declare an embedder policy for a given document.
|
|
293
|
-
*/
|
|
294
|
-
HttpHeaderCodes["Cross_Origin_Embedder_Policy"] = "Cross-Origin-Embedder-Policy";
|
|
295
|
-
/**
|
|
296
|
-
* Prevents other domains from opening/controlling a window.
|
|
297
|
-
*/
|
|
298
|
-
HttpHeaderCodes["Cross_Origin_Opener_Policy"] = "Cross-Origin-Opener-Policy";
|
|
299
|
-
/**
|
|
300
|
-
* Prevents other domains from reading the response of the resources to which this header is applied.
|
|
301
|
-
*/
|
|
302
|
-
HttpHeaderCodes["Cross_Origin_Resource_Policy"] = "Cross-Origin-Resource-Policy";
|
|
303
|
-
/**
|
|
304
|
-
* Controls resources the user agent is allowed to load for a given page.
|
|
305
|
-
*/
|
|
306
|
-
HttpHeaderCodes["Content_Security_Policy"] = "Content-Security-Policy";
|
|
307
|
-
/**
|
|
308
|
-
* Allows web developers to experiment with policies by monitoring, but not enforcing, their effects.
|
|
309
|
-
* These violation reports consist of JSON documents sent via an HTTP POST request to the specified URI.
|
|
310
|
-
*/
|
|
311
|
-
HttpHeaderCodes["Content_Security_Policy_Report_Only"] = "Content-Security-Policy-Report-Only";
|
|
312
|
-
/**
|
|
313
|
-
* Allows sites to opt in to reporting and/or enforcement of Certificate Transparency requirements,
|
|
314
|
-
* which prevents the use of misissued certificates for that site from going unnoticed.
|
|
315
|
-
* When a site enables the Expect-CT header, they are requesting that Chrome check that
|
|
316
|
-
* any certificate for that site appears in public CT logs.
|
|
317
|
-
*/
|
|
318
|
-
HttpHeaderCodes["Expect_CT"] = "Expect-CT";
|
|
319
|
-
/**
|
|
320
|
-
* Provides a mechanism to allow and deny the use of browser features in its own frame,
|
|
321
|
-
* and in iframes that it embeds.
|
|
322
|
-
*/
|
|
323
|
-
HttpHeaderCodes["Feature_Policy"] = "Feature-Policy";
|
|
324
|
-
/**
|
|
325
|
-
* Force communication using HTTPS instead of HTTP.
|
|
326
|
-
*/
|
|
327
|
-
HttpHeaderCodes["Strict_Transport_Security"] = "Strict-Transport-Security";
|
|
328
|
-
/**
|
|
329
|
-
*
|
|
330
|
-
*/
|
|
331
|
-
HttpHeaderCodes["Upgrade"] = "Upgrade";
|
|
332
|
-
/**
|
|
333
|
-
* Sends a signal to the server expressing the client's preference for an encrypted and authenticated response,
|
|
334
|
-
* and that it can successfully handle the upgrade-insecure-requests directive.
|
|
335
|
-
*/
|
|
336
|
-
HttpHeaderCodes["Upgrade_Insecure_Requests"] = "Upgrade-Insecure-Requests";
|
|
337
|
-
/**
|
|
338
|
-
* Disables MIME sniffing and forces browser to use the type given in Content-Type.
|
|
339
|
-
*/
|
|
340
|
-
HttpHeaderCodes["X_Content_Type_Options"] = "X-Content-Type-Options";
|
|
341
|
-
/**
|
|
342
|
-
* The X-Download-Options HTTP header indicates that the browser (Internet Explorer)
|
|
343
|
-
* should not display the option to "Open" a file that has been downloaded from an application,
|
|
344
|
-
* to prevent phishing attacks as the file otherwise would gain access to execute in the context of the application.
|
|
345
|
-
*/
|
|
346
|
-
HttpHeaderCodes["X_Download_Options"] = "X-Download-Options";
|
|
347
|
-
/**
|
|
348
|
-
* Indicates whether a browser should be allowed to render a page in a <frame>, <iframe>, <embed> or <object>.
|
|
349
|
-
*/
|
|
350
|
-
HttpHeaderCodes["X_Frame_Options"] = "X-Frame-Options";
|
|
351
|
-
/**
|
|
352
|
-
* Specifies if a cross-domain policy file (crossdomain.xml) is allowed.
|
|
353
|
-
* The file may define a policy to grant clients, such as Adobe's Flash Player (now obsolete),
|
|
354
|
-
* Adobe Acrobat, Microsoft Silverlight (now obsolete), or Apache Flex,
|
|
355
|
-
* permission to handle data across domains that would otherwise be restricted
|
|
356
|
-
* due to the Same-Origin Policy. See the Cross-domain Policy File Specification for more information.
|
|
357
|
-
*/
|
|
358
|
-
HttpHeaderCodes["X_Permitted_Cross_Domain_Policies"] = "X-Permitted-Cross-Domain-Policies";
|
|
359
|
-
/**
|
|
360
|
-
* May be set by hosting environments or other frameworks and contains information about
|
|
361
|
-
* them while not providing any usefulness to the application or its visitors.
|
|
362
|
-
* Unset this header to avoid exposing potential vulnerabilities.
|
|
363
|
-
*/
|
|
364
|
-
HttpHeaderCodes["X_Powered_By"] = "X-Powered-By";
|
|
365
|
-
/**
|
|
366
|
-
* Enables cross-site scripting filtering.
|
|
367
|
-
*/
|
|
368
|
-
HttpHeaderCodes["X_XSS_Protection"] = "X-XSS-Protection";
|
|
369
|
-
/* *** Transfer coding *** */
|
|
370
|
-
/**
|
|
371
|
-
* Specifies the form of encoding used to safely transfer the resource to the user.
|
|
372
|
-
*/
|
|
373
|
-
HttpHeaderCodes["Transfer_Encoding"] = "Transfer-Encoding";
|
|
374
|
-
/**
|
|
375
|
-
* Specifies the transfer encodings the user agent is willing to accept.
|
|
376
|
-
*/
|
|
377
|
-
HttpHeaderCodes["TE"] = "TE";
|
|
378
|
-
/**
|
|
379
|
-
* Allows the sender to include additional fields at the end of chunked message.
|
|
380
|
-
*/
|
|
381
|
-
HttpHeaderCodes["Trailer"] = "Trailer";
|
|
382
|
-
/* *** WebSockets *** */
|
|
383
|
-
HttpHeaderCodes["Sec_WebSocket_Key"] = "Sec-WebSocket-Key";
|
|
384
|
-
HttpHeaderCodes["Sec_WebSocket_Extensions"] = "Sec-WebSocket-Extensions";
|
|
385
|
-
HttpHeaderCodes["Sec_WebSocket_Accept"] = "Sec-WebSocket-Accept";
|
|
386
|
-
HttpHeaderCodes["Sec_WebSocket_Protocol"] = "Sec-WebSocket-Protocol";
|
|
387
|
-
HttpHeaderCodes["Sec_WebSocket_Version"] = "Sec-WebSocket-Version";
|
|
388
|
-
/* *** Other *** */
|
|
389
|
-
/**
|
|
390
|
-
* Contains the date and time at which the message was originated.
|
|
391
|
-
*/
|
|
392
|
-
HttpHeaderCodes["Date"] = "Date";
|
|
393
|
-
/**
|
|
394
|
-
* Indicates how long the user agent should wait before making a follow-up request.
|
|
395
|
-
*/
|
|
396
|
-
HttpHeaderCodes["Retry_After"] = "Retry-After";
|
|
397
|
-
/**
|
|
398
|
-
* Communicates one or more metrics and descriptions for the given request-response cycle.
|
|
399
|
-
*/
|
|
400
|
-
HttpHeaderCodes["Server_Timing"] = "Server-Timing";
|
|
401
|
-
/**
|
|
402
|
-
* Controls DNS prefetching, a feature by which browsers proactively perform domain name
|
|
403
|
-
* resolution on both links that the user may choose to follow as well as URLs for items
|
|
404
|
-
* referenced by the document, including images, CSS, JavaScript, and so forth.
|
|
405
|
-
*/
|
|
406
|
-
HttpHeaderCodes["X_DNS_Prefetch_Control"] = "X-DNS-Prefetch-Control";
|
|
407
|
-
/**
|
|
408
|
-
*
|
|
409
|
-
*/
|
|
410
|
-
HttpHeaderCodes["Max_Forwards"] = "Max-Forwards";
|
|
411
|
-
})(HttpHeaderCodes || (exports.HttpHeaderCodes = HttpHeaderCodes = {}));
|