angular-toolbox 1.5.5 → 1.6.1
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 +1 -1
- package/fesm2022/angular-toolbox.mjs +147 -147
- package/fesm2022/angular-toolbox.mjs.map +1 -1
- package/index.d.ts +5342 -3
- package/package.json +5 -5
- package/lib/angular-toolbox.module.d.ts +0 -9
- package/lib/collection/array-list-event-type.enum.d.ts +0 -28
- package/lib/collection/array-list.d.ts +0 -111
- package/lib/collection/array-list.event.d.ts +0 -29
- package/lib/collection/index.d.ts +0 -10
- package/lib/component/angular-toolbox-logo/angular-toolbox-logo.component.d.ts +0 -5
- package/lib/component/dropdown/dropdown.component.d.ts +0 -100
- package/lib/component/index.d.ts +0 -11
- package/lib/component/layout/border-layout/border-layout.component.d.ts +0 -96
- package/lib/component/layout/border-layout/util/border-layout-bounds-manager.d.ts +0 -131
- package/lib/component/layout/border-layout/util/border-layout-renderer.d.ts +0 -118
- package/lib/component/layout/border-layout/util/resize-method.d.ts +0 -13
- package/lib/component/layout/border-layout-container/border-layout-container.component.d.ts +0 -104
- package/lib/component/layout/index.d.ts +0 -2
- package/lib/component/navbar/navbar.component.d.ts +0 -114
- package/lib/core/abstract/abstract-subscription-manager.d.ts +0 -73
- package/lib/core/abstract/abstract-version-manager.d.ts +0 -34
- package/lib/core/abstract/index.d.ts +0 -2
- package/lib/core/bridge/app-bridge.d.ts +0 -59
- package/lib/core/error/app-bridge-error.d.ts +0 -16
- package/lib/core/error/http-mock-service-error.d.ts +0 -18
- package/lib/core/error/index.d.ts +0 -4
- package/lib/core/error/integrity-error.d.ts +0 -18
- package/lib/core/error/subscription-error.d.ts +0 -18
- package/lib/core/impl/index.d.ts +0 -1
- package/lib/core/impl/lang/identifiable-component.d.ts +0 -44
- package/lib/core/impl/lang/index.d.ts +0 -1
- package/lib/core/impl/version/version.impl.d.ts +0 -46
- package/lib/core/index.d.ts +0 -3
- package/lib/directive/anchor-link.directive.d.ts +0 -29
- package/lib/directive/button-role.directive.d.ts +0 -52
- package/lib/directive/content-renderer.directive.d.ts +0 -39
- package/lib/directive/index.d.ts +0 -4
- package/lib/directive/navigate-to-url.directive.d.ts +0 -23
- package/lib/directive/navigation-directive-base.d.ts +0 -19
- package/lib/framework/dialog/dialog-backdrop-type.enum.d.ts +0 -20
- package/lib/framework/dialog/dialog-backdrop.type.d.ts +0 -11
- package/lib/framework/dialog/dialog-default-config.d.ts +0 -12
- package/lib/framework/dialog/dialog-outlet-event-type.d.ts +0 -11
- package/lib/framework/dialog/dialog-outlet.event.d.ts +0 -40
- package/lib/framework/dialog/dialog-service.d.ts +0 -47
- package/lib/framework/dialog/dialog-service.error.d.ts +0 -19
- package/lib/framework/dialog/dialog.config.d.ts +0 -18
- package/lib/framework/dialog/dialog.outlet.d.ts +0 -59
- package/lib/framework/dialog/index.d.ts +0 -15
- package/lib/framework/index.d.ts +0 -5
- package/lib/framework/logging/connector/console-log-connector.d.ts +0 -34
- package/lib/framework/logging/connector/default-log-connector.d.ts +0 -34
- package/lib/framework/logging/connector/html-log-connector.d.ts +0 -72
- package/lib/framework/logging/connector/index.d.ts +0 -3
- package/lib/framework/logging/impl/abstract-logger.d.ts +0 -69
- package/lib/framework/logging/impl/index.d.ts +0 -2
- package/lib/framework/logging/impl/log-impl.d.ts +0 -45
- package/lib/framework/logging/index.d.ts +0 -3
- package/lib/framework/logging/util/index.d.ts +0 -3
- package/lib/framework/logging/util/log.builder.d.ts +0 -24
- package/lib/framework/logging/util/log.constant.d.ts +0 -23
- package/lib/framework/logging/util/log.util.d.ts +0 -48
- package/lib/framework/mock/documentation/component/atx-mock-description/atx-mock-description.component.d.ts +0 -14
- package/lib/framework/mock/documentation/component/atx-mock-documentation/atx-mock-documentation.component.d.ts +0 -43
- package/lib/framework/mock/documentation/component/atx-mock-full-description/atx-mock-full-description.component.d.ts +0 -15
- package/lib/framework/mock/documentation/component/atx-mock-methods/atx-mock-methods.component.d.ts +0 -29
- package/lib/framework/mock/documentation/component/atx-mock-param/atx-mock-param.component.d.ts +0 -15
- package/lib/framework/mock/documentation/index.d.ts +0 -1
- package/lib/framework/mock/documentation/model/business/full-description.type.d.ts +0 -21
- package/lib/framework/mock/documentation/model/business/method-doc-descriptor.type.d.ts +0 -22
- package/lib/framework/mock/http/config/http-mock-parameters.d.ts +0 -13
- package/lib/framework/mock/http/config/http-mock.decorator.d.ts +0 -13
- package/lib/framework/mock/http/config/index.d.ts +0 -2
- package/lib/framework/mock/http/config/route-mock-config.d.ts +0 -36
- package/lib/framework/mock/http/core/data-storage.d.ts +0 -43
- package/lib/framework/mock/http/core/response-delay.d.ts +0 -23
- package/lib/framework/mock/http/event/event-target.impl.d.ts +0 -78
- package/lib/framework/mock/http/event/progress-event-mock.d.ts +0 -36
- package/lib/framework/mock/http/index.d.ts +0 -3
- package/lib/framework/mock/http/logging/http-mock-logger.d.ts +0 -14
- package/lib/framework/mock/http/logging/http-mock-logging-metadata.builder.d.ts +0 -20
- package/lib/framework/mock/http/path-to-regexp/constants.d.ts +0 -111
- package/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.d.ts +0 -24
- package/lib/framework/mock/http/path-to-regexp/get-flags.d.ts +0 -25
- package/lib/framework/mock/http/path-to-regexp/iter.d.ts +0 -50
- package/lib/framework/mock/http/path-to-regexp/lexer.d.ts +0 -24
- package/lib/framework/mock/http/path-to-regexp/loose-replacer.d.ts +0 -25
- package/lib/framework/mock/http/path-to-regexp/model/decode-key-to-string.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/model/encode.d.ts +0 -20
- package/lib/framework/mock/http/path-to-regexp/model/key.d.ts +0 -45
- package/lib/framework/mock/http/path-to-regexp/model/lex-token.d.ts +0 -34
- package/lib/framework/mock/http/path-to-regexp/model/lexer-type.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/model/loose-replacer-provider.d.ts +0 -20
- package/lib/framework/mock/http/path-to-regexp/model/non-delimiter-encoder-provider.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/model/parse-options.d.ts +0 -33
- package/lib/framework/mock/http/path-to-regexp/model/path-to-regexp-options.d.ts +0 -52
- package/lib/framework/mock/http/path-to-regexp/model/route-string-tokenizer.d.ts +0 -22
- package/lib/framework/mock/http/path-to-regexp/model/simple-tokens.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/model/token-data-regexp-factory.d.ts +0 -23
- package/lib/framework/mock/http/path-to-regexp/model/token-type.d.ts +0 -20
- package/lib/framework/mock/http/path-to-regexp/model/token.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/string-to-token-data.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/to-key-regexp.d.ts +0 -22
- package/lib/framework/mock/http/path-to-regexp/to-stringify.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/token-data-to-regexp.d.ts +0 -21
- package/lib/framework/mock/http/path-to-regexp/token-data.d.ts +0 -32
- package/lib/framework/mock/http/util/data-storage.builder.d.ts +0 -26
- package/lib/framework/mock/http/util/fetch-client-response-type.enum.d.ts +0 -38
- package/lib/framework/mock/http/util/fetch-client.builder.d.ts +0 -28
- package/lib/framework/mock/http/util/http-headers-mock.builder.d.ts +0 -106
- package/lib/framework/mock/http/util/http-headers.util.d.ts +0 -41
- package/lib/framework/mock/http/util/http-method-ref.enum.d.ts +0 -58
- package/lib/framework/mock/http/util/http-mock-max-delay.d.ts +0 -11
- package/lib/framework/mock/http/util/http-mock-response-delay.util.d.ts +0 -22
- package/lib/framework/mock/http/util/http-mock-response.builder.d.ts +0 -91
- package/lib/framework/mock/http/util/http-status-text-finder.d.ts +0 -23
- package/lib/framework/mock/http/util/http-status-text.enum.d.ts +0 -252
- package/lib/framework/mock/http/util/index.d.ts +0 -7
- package/lib/framework/mock/http/xhr/delegate-xhr.d.ts +0 -214
- package/lib/framework/mock/http/xhr/http-mock-factory.d.ts +0 -14
- package/lib/framework/mock/http/xhr/http-mock-factory.impl.d.ts +0 -26
- package/lib/framework/mock/http/xhr/index.d.ts +0 -1
- package/lib/framework/mock/http/xhr/xhr-base.d.ts +0 -123
- package/lib/framework/mock/http/xhr/xhr-proxy-impl.d.ts +0 -126
- package/lib/framework/mock/http-monitoring-console/component/abstract/log-renderer-base.d.ts +0 -28
- package/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.d.ts +0 -15
- package/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.d.ts +0 -23
- package/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.d.ts +0 -21
- package/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.d.ts +0 -28
- package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.d.ts +0 -19
- package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.d.ts +0 -15
- package/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.d.ts +0 -27
- package/lib/framework/mock/http-monitoring-console/component/renderer/request-info-renderer/request-info-renderer.component.d.ts +0 -25
- package/lib/framework/mock/http-monitoring-console/component/renderer/request-list-renderer/request-list-renderer.component.d.ts +0 -57
- package/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.d.ts +0 -35
- package/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.d.ts +0 -61
- package/lib/framework/mock/http-monitoring-console/component/renderer/spinner/spinner.component.d.ts +0 -9
- package/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.d.ts +0 -39
- package/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.d.ts +0 -51
- package/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.d.ts +0 -45
- package/lib/framework/mock/http-monitoring-console/index.d.ts +0 -1
- package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.d.ts +0 -38
- package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.d.ts +0 -24
- package/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.d.ts +0 -34
- package/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.d.ts +0 -13
- package/lib/framework/mock/http-monitoring-console/model/business/atx-timeline-data.d.ts +0 -21
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.d.ts +0 -24
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.d.ts +0 -23
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.d.ts +0 -31
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.d.ts +0 -30
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.d.ts +0 -38
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.d.ts +0 -55
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.d.ts +0 -41
- package/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.d.ts +0 -24
- package/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.d.ts +0 -33
- package/lib/framework/mock/http-monitoring-console/model/service/atx-monitoring-console.controller.d.ts +0 -55
- package/lib/framework/mock/http-monitoring-console/model/service/atx-monitoring-console.state.d.ts +0 -75
- package/lib/framework/mock/http-monitoring-console/model/service/atx-user-action.service.d.ts +0 -32
- package/lib/framework/mock/http-monitoring-console/util/console-body-type.d.ts +0 -48
- package/lib/framework/mock/http-monitoring-console/util/console-type-class.d.ts +0 -43
- package/lib/framework/mock/http-monitoring-console/util/data.util.d.ts +0 -33
- package/lib/framework/mock/http-monitoring-console/util/io/body-converter.d.ts +0 -30
- package/lib/framework/mock/http-monitoring-console/util/io/body-serializer.d.ts +0 -32
- package/lib/framework/mock/http-monitoring-console/util/io/form-data-serializer.d.ts +0 -21
- package/lib/framework/mock/http-monitoring-console/util/io/hmfl-builder.d.ts +0 -23
- package/lib/framework/mock/http-monitoring-console/util/io/http-request-converter.d.ts +0 -31
- package/lib/framework/mock/http-monitoring-console/util/io/http-response-converter.d.ts +0 -31
- package/lib/framework/mock/http-monitoring-console/util/io/log-converter.d.ts +0 -31
- package/lib/framework/mock/http-monitoring-console/util/io/log-headers-converter.d.ts +0 -31
- package/lib/framework/mock/http-monitoring-console/util/io/log-message.util.d.ts +0 -23
- package/lib/framework/mock/http-monitoring-console/util/io/log-metadata-converter.d.ts +0 -31
- package/lib/framework/mock/http-monitoring-console/util/io/request-metadata-converter.d.ts +0 -31
- package/lib/framework/mock/http-monitoring-console/util/size.util.d.ts +0 -33
- package/lib/framework/mock/http-monitoring-console/util/timeline.util.d.ts +0 -23
- package/lib/framework/mock/http-monitoring-console/util/url.util.d.ts +0 -38
- package/lib/model/business/index.d.ts +0 -7
- package/lib/model/business/lang/app-bridge-command.d.ts +0 -11
- package/lib/model/business/lang/destroyable.d.ts +0 -16
- package/lib/model/business/lang/identifiable.d.ts +0 -26
- package/lib/model/business/lang/index.d.ts +0 -4
- package/lib/model/business/lang/instantiable.d.ts +0 -15
- package/lib/model/business/logging/atx-logger-config.provider.d.ts +0 -21
- package/lib/model/business/logging/http-mock-logging-constant.enum.d.ts +0 -32
- package/lib/model/business/logging/index.d.ts +0 -7
- package/lib/model/business/logging/log-connector.d.ts +0 -36
- package/lib/model/business/logging/log-level.enum.d.ts +0 -32
- package/lib/model/business/logging/log.d.ts +0 -34
- package/lib/model/business/logging/logger-config.d.ts +0 -17
- package/lib/model/business/logging/logger.d.ts +0 -58
- package/lib/model/business/logging/transactional-logger.d.ts +0 -28
- package/lib/model/business/mock/http/config/http-mock-production-policy.enum.d.ts +0 -24
- package/lib/model/business/mock/http/config/http-mocking-framework-config.d.ts +0 -21
- package/lib/model/business/mock/http/config/http-mocking-framework-config.provider.d.ts +0 -21
- package/lib/model/business/mock/http/config/index.d.ts +0 -3
- package/lib/model/business/mock/http/fetch-client.d.ts +0 -13
- package/lib/model/business/mock/http/http-method-mock.d.ts +0 -35
- package/lib/model/business/mock/http/http-mock-config.d.ts +0 -32
- package/lib/model/business/mock/http/http-mock-endpoint-descriptor.d.ts +0 -21
- package/lib/model/business/mock/http/http-mock-endpoint.d.ts +0 -46
- package/lib/model/business/mock/http/http-mock-error.d.ts +0 -21
- package/lib/model/business/mock/http/http-mock-interceptor.d.ts +0 -31
- package/lib/model/business/mock/http/http-mock-method-descriptor.d.ts +0 -29
- package/lib/model/business/mock/http/http-mock-parameter-descriptor.d.ts +0 -20
- package/lib/model/business/mock/http/http-mock-request-metadata.d.ts +0 -33
- package/lib/model/business/mock/http/http-response-mock.d.ts +0 -44
- package/lib/model/business/mock/http/index.d.ts +0 -14
- package/lib/model/business/mock/http/logging/http-mock-logging-metadata.d.ts +0 -15
- package/lib/model/business/mock/http/logging/http-mock-logging-prefetch-metadata.d.ts +0 -16
- package/lib/model/business/mock/http/logging/index.d.ts +0 -2
- package/lib/model/business/mock/http/xhr-proxy.d.ts +0 -15
- package/lib/model/business/navigator/battery-manager.d.ts +0 -56
- package/lib/model/business/navigator/connection-type.d.ts +0 -11
- package/lib/model/business/navigator/effective-connection-type.d.ts +0 -11
- package/lib/model/business/navigator/index.d.ts +0 -4
- package/lib/model/business/navigator/network-information.d.ts +0 -53
- package/lib/model/business/subscription/index.d.ts +0 -1
- package/lib/model/business/subscription/subscription-manager.d.ts +0 -52
- package/lib/model/business/ui/dark-mode-config.d.ts +0 -29
- package/lib/model/business/ui/dark-mode-config.provider.d.ts +0 -21
- package/lib/model/business/ui/dark-mode.constant.d.ts +0 -15
- package/lib/model/business/ui/dropdown/dropdown-event-type.enum.d.ts +0 -20
- package/lib/model/business/ui/dropdown/dropdown-position.d.ts +0 -15
- package/lib/model/business/ui/dropdown/dropdown-state.d.ts +0 -11
- package/lib/model/business/ui/dropdown/dropdown.event.d.ts +0 -40
- package/lib/model/business/ui/dropdown/index.d.ts +0 -5
- package/lib/model/business/ui/dropdown/popover-state.d.ts +0 -11
- package/lib/model/business/ui/index.d.ts +0 -7
- package/lib/model/business/ui/layout/index.d.ts +0 -5
- package/lib/model/business/ui/layout/layout-constraints.d.ts +0 -33
- package/lib/model/business/ui/layout/layout-drag-event-type.enum.d.ts +0 -24
- package/lib/model/business/ui/layout/layout-drag.event.d.ts +0 -33
- package/lib/model/business/ui/layout/layout-region.d.ts +0 -36
- package/lib/model/business/ui/layout/layout-region.error.d.ts +0 -19
- package/lib/model/business/ui/scroll-behavior.type.d.ts +0 -11
- package/lib/model/business/ui/window/index.d.ts +0 -4
- package/lib/model/business/ui/window/window-feature-state.d.ts +0 -20
- package/lib/model/business/ui/window/window-init.d.ts +0 -75
- package/lib/model/business/ui/window/window-ref.d.ts +0 -21
- package/lib/model/business/ui/window/window-target.d.ts +0 -32
- package/lib/model/business/version/index.d.ts +0 -4
- package/lib/model/business/version/version-config.d.ts +0 -32
- package/lib/model/business/version/version-config.provider.d.ts +0 -22
- package/lib/model/business/version/version-manager.d.ts +0 -25
- package/lib/model/business/version/version.d.ts +0 -38
- package/lib/model/index.d.ts +0 -2
- package/lib/model/service/index.d.ts +0 -5
- package/lib/model/service/logging/index.d.ts +0 -1
- package/lib/model/service/logging/logger-service.d.ts +0 -14
- package/lib/model/service/mock/http/http-mock.service.d.ts +0 -134
- package/lib/model/service/mock/http/index.d.ts +0 -2
- package/lib/model/service/mock/http/logging/atx-http-mock-console.service.d.ts +0 -51
- package/lib/model/service/mock/http/logging/http-mock-logging-service.d.ts +0 -83
- package/lib/model/service/mock/http/logging/index.d.ts +0 -2
- package/lib/model/service/subscription/subscription.service.d.ts +0 -10
- package/lib/model/service/ui/app-bridge.service.d.ts +0 -80
- package/lib/model/service/ui/dark-mode.service.d.ts +0 -99
- package/lib/model/service/ui/index.d.ts +0 -4
- package/lib/model/service/ui/scroll.service.d.ts +0 -55
- package/lib/model/service/ui/window/abstract-window.service.d.ts +0 -64
- package/lib/model/service/ui/window/index.d.ts +0 -2
- package/lib/model/service/ui/window/window.service.d.ts +0 -44
- package/lib/model/service/version/angular-toolbox-version.service.d.ts +0 -13
- package/lib/model/service/version/index.d.ts +0 -2
- package/lib/model/service/version/version.service.d.ts +0 -15
- package/lib/pipe/index.d.ts +0 -1
- package/lib/pipe/safe/safe-html.pipe.d.ts +0 -30
- package/lib/util/aria-role.constant.d.ts +0 -15
- package/lib/util/default-scroll-behavior.d.ts +0 -12
- package/lib/util/empty-string.const.d.ts +0 -11
- package/lib/util/http-mocking-framework-config.manager.d.ts +0 -66
- package/lib/util/index.d.ts +0 -5
- package/lib/util/js-type.d.ts +0 -39
- package/lib/util/uuid.d.ts +0 -89
- package/lib/util/version.util.d.ts +0 -30
- package/lib/util/window/window-features-builder.d.ts +0 -46
- package/lib/util/window/window-header-tag-util.d.ts +0 -27
- package/public-api.d.ts +0 -16
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
import { HttpMockRequestMetadata, HttpResponseMock } from "../../../../model";
|
|
9
|
-
import { DataStorage } from "../core/data-storage";
|
|
10
|
-
/**
|
|
11
|
-
* @private
|
|
12
|
-
* A static utility class for building `DataStorage` objects.
|
|
13
|
-
*/
|
|
14
|
-
export declare class DataStorageBuilder {
|
|
15
|
-
/**
|
|
16
|
-
* @private
|
|
17
|
-
* Builds and returns a new `DataStorage` objects.
|
|
18
|
-
*
|
|
19
|
-
* @param httpResponse The `HttpResponseMock` to be stored by the framework.
|
|
20
|
-
* @param data The data of the HTTP response to be stored by the framework.
|
|
21
|
-
* @param metadata The metadata of the HTTP mock request to be stored by the framework.
|
|
22
|
-
*
|
|
23
|
-
* @returns A new `DataStorage` object.
|
|
24
|
-
*/
|
|
25
|
-
static buildDataStorage(httpResponse: HttpResponseMock, data: any, metadata: HttpMockRequestMetadata): DataStorage;
|
|
26
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Defines the possible values for the `responseType` property of the
|
|
10
|
-
* `FetchClientBuilder.buildFetchClient()` method.
|
|
11
|
-
*/
|
|
12
|
-
export declare enum FetchClientResponseType {
|
|
13
|
-
/**
|
|
14
|
-
* Allows to return the response as a promise that resolves with an `ArrayBuffer`.
|
|
15
|
-
*/
|
|
16
|
-
ARRAY_BUFFER = "arrayBuffer",
|
|
17
|
-
/**
|
|
18
|
-
* Allows to return the response as a promise that resolves with a `Blob`.
|
|
19
|
-
*/
|
|
20
|
-
BLOB = "blob",
|
|
21
|
-
/**
|
|
22
|
-
* Allows to return the response as a promise that resolves with a `FormData` object.
|
|
23
|
-
*/
|
|
24
|
-
FORM_DATA = "formData",
|
|
25
|
-
/**
|
|
26
|
-
* Allows to return the response as a promise which resolves with the result of parsing the body text as JSON.
|
|
27
|
-
*/
|
|
28
|
-
JSON = "json",
|
|
29
|
-
/**
|
|
30
|
-
* Allows to return the response as a promise that resolves with a `String`.
|
|
31
|
-
* The response is always decoded using UTF-8.
|
|
32
|
-
*/
|
|
33
|
-
TEXT = "text",
|
|
34
|
-
/**
|
|
35
|
-
* Allows to return the response as a promise that resolves with a `Response` object.
|
|
36
|
-
*/
|
|
37
|
-
RESPONSE = "response"
|
|
38
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
import { FetchClient } from "../../../../model";
|
|
9
|
-
import { FetchClientResponseType } from "./fetch-client-response-type.enum";
|
|
10
|
-
/**
|
|
11
|
-
* A static utility class for building `FetchClient` objects.
|
|
12
|
-
*/
|
|
13
|
-
export declare class FetchClientBuilder {
|
|
14
|
-
/**
|
|
15
|
-
* Builds and returns a new `FetchClient` object.
|
|
16
|
-
*
|
|
17
|
-
* @param input The definition of the resource to fetch.
|
|
18
|
-
* @param init The object containing options to configure the request.
|
|
19
|
-
* @param responseType Specifies the type of response for the resource to fetch.
|
|
20
|
-
*
|
|
21
|
-
* @returns A new `FetchClient` object.
|
|
22
|
-
*/
|
|
23
|
-
static buildFetchClient(input: RequestInfo | URL, init?: RequestInit | null, responseType?: FetchClientResponseType): FetchClient;
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
|
-
private static buildResponseStrategy;
|
|
28
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
import { HttpHeaders } from "@angular/common/http";
|
|
9
|
-
/**
|
|
10
|
-
* A statefull builder for creating new `HttpHeaders` instances.
|
|
11
|
-
*/
|
|
12
|
-
export declare class HttpHeadersMockBuilder {
|
|
13
|
-
/**
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
private _headers;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the `"Cache-Control"` property of the new `HttpHeaders` instance with the specified value.
|
|
19
|
-
*
|
|
20
|
-
* @param value The value used to set the `"Cache-Control"` property of the new `HttpHeaders` instance.
|
|
21
|
-
* Default value is `"no-cache"`.
|
|
22
|
-
*
|
|
23
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
24
|
-
*/
|
|
25
|
-
cacheControl(value?: string): HttpHeadersMockBuilder;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the `"CContent-Type"` property of the new `HttpHeaders` instance with the specified value.
|
|
28
|
-
*
|
|
29
|
-
* @param value The value used to set the `"Content-Type"` property of the new `HttpHeaders` instance.
|
|
30
|
-
* Default value is `"application/json; charset=utf-8"`.
|
|
31
|
-
*
|
|
32
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
33
|
-
*/
|
|
34
|
-
contentType(value?: string): HttpHeadersMockBuilder;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the `"Priority"` property of the new `HttpHeaders` instance with the specified value.
|
|
37
|
-
*
|
|
38
|
-
* @param value The value used to set the `"Priority"` property of the new `HttpHeaders` instance.
|
|
39
|
-
* Default value is `"u=0, i"`.
|
|
40
|
-
*
|
|
41
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
42
|
-
*/
|
|
43
|
-
priority(value?: string): HttpHeadersMockBuilder;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the `"User-Agent"` property of the new `HttpHeaders` instance with the specified value.
|
|
46
|
-
*
|
|
47
|
-
* @param value The value used to set the `"User-Agent"` property of the new `HttpHeaders` instance.
|
|
48
|
-
* Default value is the navigator user agent.
|
|
49
|
-
*
|
|
50
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
51
|
-
*/
|
|
52
|
-
userAgent(value?: string | null): HttpHeadersMockBuilder;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the `"Accept-Language"` property of the new `HttpHeaders` instance with the specified value.
|
|
55
|
-
*
|
|
56
|
-
* @param value The value used to set the `"Accept-Language"` property of the new `HttpHeaders` instance.
|
|
57
|
-
* Default value is the navigator language.
|
|
58
|
-
*
|
|
59
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
60
|
-
*/
|
|
61
|
-
acceptLanguage(value?: string | null): HttpHeadersMockBuilder;
|
|
62
|
-
/**
|
|
63
|
-
* Sets the `"Accept"` property of the new `HttpHeaders` instance with the specified value.
|
|
64
|
-
*
|
|
65
|
-
* @param value The value used to set the `"Accept"` property of the new `HttpHeaders` instance.
|
|
66
|
-
* Default value is `'*\/*'`.
|
|
67
|
-
*
|
|
68
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
69
|
-
*/
|
|
70
|
-
accept(value?: string): HttpHeadersMockBuilder;
|
|
71
|
-
/**
|
|
72
|
-
* Sets the `"Accept-Encoding"` property of the new `HttpHeaders` instance with the specified value.
|
|
73
|
-
*
|
|
74
|
-
* @param value The value used to set the `"Accept-Encoding"` property of the new `HttpHeaders` instance.
|
|
75
|
-
* Default value is `"ngzip, deflate, br, zstd"`.
|
|
76
|
-
*
|
|
77
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
78
|
-
*/
|
|
79
|
-
acceptEncoding(value?: string): HttpHeadersMockBuilder;
|
|
80
|
-
/**
|
|
81
|
-
* Sets or modifies a value of the new `HttpHeaders` instance.
|
|
82
|
-
*
|
|
83
|
-
* @param name The header name.
|
|
84
|
-
* @param value The value or values to set or override for the given header.
|
|
85
|
-
*
|
|
86
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
87
|
-
*/
|
|
88
|
-
set(name: string, value: string | string[]): HttpHeadersMockBuilder;
|
|
89
|
-
/**
|
|
90
|
-
* Return a new `HttpHeaders` instance, built from the properties specified with the
|
|
91
|
-
* `HttpHeadersMockBuilder` methods.
|
|
92
|
-
*
|
|
93
|
-
* @returns A new `HttpHeaders` instance.
|
|
94
|
-
*/
|
|
95
|
-
headers(): HttpHeaders;
|
|
96
|
-
/**
|
|
97
|
-
* @private
|
|
98
|
-
*/
|
|
99
|
-
private setHeader;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* A utility function used to create new "chainable" `HttpHeadersMockBuilder` instances.
|
|
103
|
-
*
|
|
104
|
-
* @returns A new `HttpHeadersMockBuilder` instance;
|
|
105
|
-
*/
|
|
106
|
-
export declare const httpHeadersMock: () => HttpHeadersMockBuilder;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
import { HttpHeaders } from "@angular/common/http";
|
|
9
|
-
/**
|
|
10
|
-
* @private
|
|
11
|
-
* A set of static utilities for manipulating `HttpHeaders` objects.
|
|
12
|
-
*/
|
|
13
|
-
export declare class HttpHeadersUtil {
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
* Returns a string representation the the specified `HttpHeaders `object, compatible with the format
|
|
17
|
-
* expected by the `XMLHttpRequest.getAllResponseHeaders()` method.
|
|
18
|
-
*
|
|
19
|
-
* @param headers The `HttpHeaders` object to format.
|
|
20
|
-
*
|
|
21
|
-
* @returns A string compatible with the format expected by the `XMLHttpRequest.getAllResponseHeaders()` method.
|
|
22
|
-
*/
|
|
23
|
-
static stringify(headers: HttpHeaders | undefined): string;
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
* Returns a `HttpHeaders` object built from the string returns by the `XMLHttpRequest.getAllResponseHeaders()` method,
|
|
27
|
-
* or `null` wheher `XMLHttpRequest.getAllResponseHeaders()` return `null`.
|
|
28
|
-
*
|
|
29
|
-
* @param value The string to turn into a `HttpHeaders `object.
|
|
30
|
-
*
|
|
31
|
-
* @returns A `HttpHeaders` object, or `null`.
|
|
32
|
-
*/
|
|
33
|
-
static encode(value: string | null): HttpHeaders | null;
|
|
34
|
-
/**
|
|
35
|
-
* @private
|
|
36
|
-
* Creates the default `HttpHeaders` object for a mocked HTTP request.
|
|
37
|
-
*
|
|
38
|
-
* @returns The default `HttpHeaders` object for a mocked HTTP request.
|
|
39
|
-
*/
|
|
40
|
-
static createDefaultRequestHeaders(): HttpHeaders;
|
|
41
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
* Provides the list of HTTP verbs.
|
|
11
|
-
*/
|
|
12
|
-
export declare enum HTTPMethodRef {
|
|
13
|
-
/**
|
|
14
|
-
* @private
|
|
15
|
-
* A reference to the `connect` route associated with the `CONNECT` HTTP verb.
|
|
16
|
-
*/
|
|
17
|
-
CONNECT = "connect",
|
|
18
|
-
/**
|
|
19
|
-
* @private
|
|
20
|
-
* A reference to the `delete` route associated with the `DELETE` HTTP verb.
|
|
21
|
-
*/
|
|
22
|
-
DELETE = "delete",
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
* A reference to the `get` route associated with the `GET` HTTP verb.
|
|
26
|
-
*/
|
|
27
|
-
GET = "get",
|
|
28
|
-
/**
|
|
29
|
-
* @private
|
|
30
|
-
* A reference to the `head` route associated with the `HEAD` HTTP verb.
|
|
31
|
-
*/
|
|
32
|
-
HEAD = "head",
|
|
33
|
-
/**
|
|
34
|
-
* @private
|
|
35
|
-
* A reference to the `options` route associated with the `OPTIONS` HTTP verb.
|
|
36
|
-
*/
|
|
37
|
-
OPTIONS = "options",
|
|
38
|
-
/**
|
|
39
|
-
* @private
|
|
40
|
-
* A reference to the `patch` route associated with the `PATCH` HTTP verb.
|
|
41
|
-
*/
|
|
42
|
-
PATCH = "patch",
|
|
43
|
-
/**
|
|
44
|
-
* @private
|
|
45
|
-
* A reference to the `post` route associated with the `POST` HTTP verb.
|
|
46
|
-
*/
|
|
47
|
-
POST = "post",
|
|
48
|
-
/**
|
|
49
|
-
* @private
|
|
50
|
-
* A reference to the `put` route associated with the `PUT` HTTP verb.
|
|
51
|
-
*/
|
|
52
|
-
PUT = "put",
|
|
53
|
-
/**
|
|
54
|
-
* @private
|
|
55
|
-
* A reference to the `trace` route associated with the `TRACE` HTTP verb.
|
|
56
|
-
*/
|
|
57
|
-
TRACE = "trace"
|
|
58
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* A convenient constant that represents the maximum value for a delayed HTTP response.
|
|
10
|
-
*/
|
|
11
|
-
export declare const HTTP_MOCK_MAX_DELAY: number;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
import { ResponseDelay } from "../core/response-delay";
|
|
9
|
-
/**
|
|
10
|
-
* @private
|
|
11
|
-
* A utility for managing HTTP responses delay.
|
|
12
|
-
*/
|
|
13
|
-
export declare class HttpMockResponseDelayUtil {
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
* A utility function that return a `ResponseDelay` object, depending on the timer parameters.
|
|
17
|
-
*
|
|
18
|
-
* @param timer The seed value used to create the `ResponseDelay` object.
|
|
19
|
-
* @returns A `ResponseDelay` object.
|
|
20
|
-
*/
|
|
21
|
-
static getResponseDelay(timer: number): ResponseDelay;
|
|
22
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
import { HttpHeaders } from "@angular/common/http";
|
|
9
|
-
import { HttpMockError, HttpResponseMock } from "../../../../model";
|
|
10
|
-
/**
|
|
11
|
-
* A statefull builder for creating new `HttpResponseMock` instances.
|
|
12
|
-
*/
|
|
13
|
-
export declare class HttpResponseMockBuilder {
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
|
-
private _response;
|
|
18
|
-
/**
|
|
19
|
-
* Sets the body property of the new `HttpResponseMock` instance with the specified `body` value.
|
|
20
|
-
*
|
|
21
|
-
* @param body The value used to set the body property of the new `HttpResponseMock` instance.
|
|
22
|
-
*
|
|
23
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
24
|
-
*/
|
|
25
|
-
body(body: any): HttpResponseMockBuilder;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the headers property of the new `HttpResponseMock` instance with the specified `headers` value.
|
|
28
|
-
*
|
|
29
|
-
* @param headers The value used to set the `headers` property of the new `HttpResponseMock` instance.
|
|
30
|
-
*
|
|
31
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
32
|
-
*/
|
|
33
|
-
headers(headers: HttpHeaders): HttpResponseMockBuilder;
|
|
34
|
-
/**
|
|
35
|
-
* Add the list of HTTP headers generated by the `HttpHeadersUtil.createDefaultRequestHeaders()`
|
|
36
|
-
* to the mock response.
|
|
37
|
-
*
|
|
38
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
39
|
-
*/
|
|
40
|
-
defaultHeaders(): HttpResponseMockBuilder;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the `status` property of the new `HttpResponseMock` instance with the specified `status` value.
|
|
43
|
-
*
|
|
44
|
-
* @param status The value used to set the `status` property of the new `HttpResponseMock` instance.
|
|
45
|
-
*
|
|
46
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
47
|
-
*/
|
|
48
|
-
status(status: number): HttpResponseMockBuilder;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the `url` property of the new `HttpResponseMock` instance with the specified `url` value.
|
|
51
|
-
*
|
|
52
|
-
* @param url The value used to set the `url` property of the new `HttpResponseMock` instance.
|
|
53
|
-
*
|
|
54
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
55
|
-
*/
|
|
56
|
-
url(url: string | null): HttpResponseMockBuilder;
|
|
57
|
-
/**
|
|
58
|
-
* Sets the `delay` property of the new `HttpResponseMock` instance with the specified `timer` duration.
|
|
59
|
-
* Maximum value is `10000` miliseconds (10 seconds).
|
|
60
|
-
*
|
|
61
|
-
* @param timer The value used to set the `delay` property of the new `HttpResponseMock` instance.
|
|
62
|
-
*
|
|
63
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
64
|
-
*/
|
|
65
|
-
delay(timer?: number): HttpResponseMockBuilder;
|
|
66
|
-
/**
|
|
67
|
-
* Sets the `delay` property of the new `HttpResponseMock` instance with the specified `timer` duration.
|
|
68
|
-
* Maximum value is `10000` miliseconds (10 seconds).
|
|
69
|
-
*
|
|
70
|
-
* @param timer The value used to set the `delay` property of the new `HttpResponseMock` instance.
|
|
71
|
-
*
|
|
72
|
-
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
73
|
-
*/
|
|
74
|
-
delay(min?: number, max?: number): HttpResponseMockBuilder;
|
|
75
|
-
/**
|
|
76
|
-
* Returns a new `HttpResponseMock` instance, built from the properties specified with the
|
|
77
|
-
* `HttpResponseMockBuilder` methods.
|
|
78
|
-
*
|
|
79
|
-
* @param error An optional value used to set the `error` property of the new `HttpResponseMock` instance.
|
|
80
|
-
* The `error` parameter values take precedence over all other properties of the `HttpResponseMock`
|
|
81
|
-
* instance.
|
|
82
|
-
* @returns A new `HttpResponseMock` instance.
|
|
83
|
-
*/
|
|
84
|
-
response(error?: HttpMockError | null): HttpResponseMock;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* A utility function used to create new "chainable" `HttpResponseMockBuilder` instances.
|
|
88
|
-
*
|
|
89
|
-
* @returns A new `HttpResponseMockBuilder` instance.
|
|
90
|
-
*/
|
|
91
|
-
export declare const httpResponseMock: () => HttpResponseMockBuilder;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
-
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
-
*/
|
|
8
|
-
import { HttpStatusCode } from "@angular/common/http";
|
|
9
|
-
import { HttpStatusText } from "./http-status-text.enum";
|
|
10
|
-
/**
|
|
11
|
-
* @private
|
|
12
|
-
* A utility class that helps to retreive a status text depending on its status code.
|
|
13
|
-
*/
|
|
14
|
-
export declare class HttpStatusTextFinder {
|
|
15
|
-
/**
|
|
16
|
-
* @private
|
|
17
|
-
* Retreives and return a status text depending on its status code.
|
|
18
|
-
*
|
|
19
|
-
* @param code The status code for which to find the status text.
|
|
20
|
-
* @returns A `HttpStatusText` constant.
|
|
21
|
-
*/
|
|
22
|
-
static getStatusText(code: HttpStatusCode): HttpStatusText;
|
|
23
|
-
}
|