tscommons-esm-http 0.0.6 → 1.0.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/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/tcommons-http-request-options.d.mts +10 -1
- package/dist/types/tcommons-http-request-options.mjs +23 -2
- package/dist/types/tcommons-http-request-options.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -22,7 +22,7 @@ import { ECommonsHttpContentType, toECommonsHttpContentType, fromECommonsHttpCon
|
|
|
22
22
|
import { ECommonsHttpMethod, toECommonsHttpMethod, fromECommonsHttpMethod, isECommonsHttpMethod, keyToECommonsHttpMethod, ECOMMONS_HTTP_METHODS } from './enums/ecommons-http-method.mjs';
|
|
23
23
|
import { ECommonsHttpResponseDataType, toECommonsHttpResponseDataType, fromECommonsHttpResponseDataType, isECommonsHttpResponseDataType, keyToECommonsHttpResponseDataType, ECOMMONS_HTTP_RESPONSE_DATA_TYPES } from './enums/ecommons-http-response-data-type.mjs';
|
|
24
24
|
import { TCommonsHttpUrlSegments, isTCommonsHttpUrlSegments, parseTCommonsHttpUrlSegments } from './types/tcommons-http-url-segments.mjs';
|
|
25
|
-
import { TCommonsHttpRequestOptions, TCommonsHttpInternalRequestOptions, isTCommonsHttpRequestOptions } from './types/tcommons-http-request-options.mjs';
|
|
25
|
+
import { TCommonsHttpRequestOptions, TCommonsHttpInternalRequestOptions, isTCommonsHttpRequestOptions, TCommonsHttpRequestOptionsAsPeriod, isTCommonsHttpRequestOptionsAsPeriod, fromTCommonsHttpRequestOptionsAsPeriod } from './types/tcommons-http-request-options.mjs';
|
|
26
26
|
import { TCommonsStreamableHttpObservable } from './types/tcommons-streamable-http-observable.mjs';
|
|
27
27
|
import { THttpHeaderOrParamObject } from './types/thttp-header-or-param-object.mjs';
|
|
28
|
-
export { commonsHttpUrlNormalizePath, commonsHttpUrlNormalizeRelativeToAbsolute, commonsHttpClientInternalBuildHeadersOrParams, commonsHttpClientInternalAppendContentType, commonsHttpBuildErrorFromResponseCode, commonsHttpBuildSuccessFromResponseCode, CommonsHttpUrl, CommonsHttpNotImplementedError, CommonsHttpForbiddenError, CommonsHttpSuccess, CommonsHttpBadRequestError, CommonsHttpCreatedSuccess, CommonsHttpOkSuccess, CommonsHttpUnauthorizedError, CommonsHttpConflictError, CommonsHttpServiceUnavailableError, CommonsHttpNotFoundError, CommonsHttpError, CommonsHttpNoContentSuccess, CommonsHttpInternalServerError, CommonsHttpTimeoutError, ICommonsHttpClientImplementation, CommonsHttpClientService, ICommonsStreamableHttpClientImplementation, CommonsStreamableHttpClientService, ECommonsHttpResponseCode, fromECommonsHttpResponseCode, toECommonsHttpResponseCode, ECommonsHttpContentType, toECommonsHttpContentType, fromECommonsHttpContentType, isECommonsHttpContentType, keyToECommonsHttpContentType, ECOMMONS_HTTP_CONTENT_TYPES, ECommonsHttpMethod, toECommonsHttpMethod, fromECommonsHttpMethod, isECommonsHttpMethod, keyToECommonsHttpMethod, ECOMMONS_HTTP_METHODS, ECommonsHttpResponseDataType, toECommonsHttpResponseDataType, fromECommonsHttpResponseDataType, isECommonsHttpResponseDataType, keyToECommonsHttpResponseDataType, ECOMMONS_HTTP_RESPONSE_DATA_TYPES, TCommonsHttpUrlSegments, isTCommonsHttpUrlSegments, parseTCommonsHttpUrlSegments, TCommonsHttpRequestOptions, TCommonsHttpInternalRequestOptions, isTCommonsHttpRequestOptions, TCommonsStreamableHttpObservable, THttpHeaderOrParamObject };
|
|
28
|
+
export { commonsHttpUrlNormalizePath, commonsHttpUrlNormalizeRelativeToAbsolute, commonsHttpClientInternalBuildHeadersOrParams, commonsHttpClientInternalAppendContentType, commonsHttpBuildErrorFromResponseCode, commonsHttpBuildSuccessFromResponseCode, CommonsHttpUrl, CommonsHttpNotImplementedError, CommonsHttpForbiddenError, CommonsHttpSuccess, CommonsHttpBadRequestError, CommonsHttpCreatedSuccess, CommonsHttpOkSuccess, CommonsHttpUnauthorizedError, CommonsHttpConflictError, CommonsHttpServiceUnavailableError, CommonsHttpNotFoundError, CommonsHttpError, CommonsHttpNoContentSuccess, CommonsHttpInternalServerError, CommonsHttpTimeoutError, ICommonsHttpClientImplementation, CommonsHttpClientService, ICommonsStreamableHttpClientImplementation, CommonsStreamableHttpClientService, ECommonsHttpResponseCode, fromECommonsHttpResponseCode, toECommonsHttpResponseCode, ECommonsHttpContentType, toECommonsHttpContentType, fromECommonsHttpContentType, isECommonsHttpContentType, keyToECommonsHttpContentType, ECOMMONS_HTTP_CONTENT_TYPES, ECommonsHttpMethod, toECommonsHttpMethod, fromECommonsHttpMethod, isECommonsHttpMethod, keyToECommonsHttpMethod, ECOMMONS_HTTP_METHODS, ECommonsHttpResponseDataType, toECommonsHttpResponseDataType, fromECommonsHttpResponseDataType, isECommonsHttpResponseDataType, keyToECommonsHttpResponseDataType, ECOMMONS_HTTP_RESPONSE_DATA_TYPES, TCommonsHttpUrlSegments, isTCommonsHttpUrlSegments, parseTCommonsHttpUrlSegments, TCommonsHttpRequestOptions, TCommonsHttpInternalRequestOptions, isTCommonsHttpRequestOptions, TCommonsHttpRequestOptionsAsPeriod, isTCommonsHttpRequestOptionsAsPeriod, fromTCommonsHttpRequestOptionsAsPeriod, TCommonsStreamableHttpObservable, THttpHeaderOrParamObject };
|
package/dist/index.mjs
CHANGED
|
@@ -22,6 +22,6 @@ import { ECommonsHttpContentType, toECommonsHttpContentType, fromECommonsHttpCon
|
|
|
22
22
|
import { ECommonsHttpMethod, toECommonsHttpMethod, fromECommonsHttpMethod, isECommonsHttpMethod, keyToECommonsHttpMethod, ECOMMONS_HTTP_METHODS } from './enums/ecommons-http-method.mjs';
|
|
23
23
|
import { ECommonsHttpResponseDataType, toECommonsHttpResponseDataType, fromECommonsHttpResponseDataType, isECommonsHttpResponseDataType, keyToECommonsHttpResponseDataType, ECOMMONS_HTTP_RESPONSE_DATA_TYPES } from './enums/ecommons-http-response-data-type.mjs';
|
|
24
24
|
import { isTCommonsHttpUrlSegments, parseTCommonsHttpUrlSegments } from './types/tcommons-http-url-segments.mjs';
|
|
25
|
-
import { isTCommonsHttpRequestOptions } from './types/tcommons-http-request-options.mjs';
|
|
26
|
-
export { commonsHttpUrlNormalizePath, commonsHttpUrlNormalizeRelativeToAbsolute, commonsHttpClientInternalBuildHeadersOrParams, commonsHttpClientInternalAppendContentType, commonsHttpBuildErrorFromResponseCode, commonsHttpBuildSuccessFromResponseCode, CommonsHttpUrl, CommonsHttpNotImplementedError, CommonsHttpForbiddenError, CommonsHttpSuccess, CommonsHttpBadRequestError, CommonsHttpCreatedSuccess, CommonsHttpOkSuccess, CommonsHttpUnauthorizedError, CommonsHttpConflictError, CommonsHttpServiceUnavailableError, CommonsHttpNotFoundError, CommonsHttpError, CommonsHttpNoContentSuccess, CommonsHttpInternalServerError, CommonsHttpTimeoutError, CommonsHttpClientService, CommonsStreamableHttpClientService, ECommonsHttpResponseCode, fromECommonsHttpResponseCode, toECommonsHttpResponseCode, ECommonsHttpContentType, toECommonsHttpContentType, fromECommonsHttpContentType, isECommonsHttpContentType, keyToECommonsHttpContentType, ECOMMONS_HTTP_CONTENT_TYPES, ECommonsHttpMethod, toECommonsHttpMethod, fromECommonsHttpMethod, isECommonsHttpMethod, keyToECommonsHttpMethod, ECOMMONS_HTTP_METHODS, ECommonsHttpResponseDataType, toECommonsHttpResponseDataType, fromECommonsHttpResponseDataType, isECommonsHttpResponseDataType, keyToECommonsHttpResponseDataType, ECOMMONS_HTTP_RESPONSE_DATA_TYPES, isTCommonsHttpUrlSegments, parseTCommonsHttpUrlSegments, isTCommonsHttpRequestOptions };
|
|
25
|
+
import { isTCommonsHttpRequestOptions, isTCommonsHttpRequestOptionsAsPeriod, fromTCommonsHttpRequestOptionsAsPeriod } from './types/tcommons-http-request-options.mjs';
|
|
26
|
+
export { commonsHttpUrlNormalizePath, commonsHttpUrlNormalizeRelativeToAbsolute, commonsHttpClientInternalBuildHeadersOrParams, commonsHttpClientInternalAppendContentType, commonsHttpBuildErrorFromResponseCode, commonsHttpBuildSuccessFromResponseCode, CommonsHttpUrl, CommonsHttpNotImplementedError, CommonsHttpForbiddenError, CommonsHttpSuccess, CommonsHttpBadRequestError, CommonsHttpCreatedSuccess, CommonsHttpOkSuccess, CommonsHttpUnauthorizedError, CommonsHttpConflictError, CommonsHttpServiceUnavailableError, CommonsHttpNotFoundError, CommonsHttpError, CommonsHttpNoContentSuccess, CommonsHttpInternalServerError, CommonsHttpTimeoutError, CommonsHttpClientService, CommonsStreamableHttpClientService, ECommonsHttpResponseCode, fromECommonsHttpResponseCode, toECommonsHttpResponseCode, ECommonsHttpContentType, toECommonsHttpContentType, fromECommonsHttpContentType, isECommonsHttpContentType, keyToECommonsHttpContentType, ECOMMONS_HTTP_CONTENT_TYPES, ECommonsHttpMethod, toECommonsHttpMethod, fromECommonsHttpMethod, isECommonsHttpMethod, keyToECommonsHttpMethod, ECOMMONS_HTTP_METHODS, ECommonsHttpResponseDataType, toECommonsHttpResponseDataType, fromECommonsHttpResponseDataType, isECommonsHttpResponseDataType, keyToECommonsHttpResponseDataType, ECOMMONS_HTTP_RESPONSE_DATA_TYPES, isTCommonsHttpUrlSegments, parseTCommonsHttpUrlSegments, isTCommonsHttpRequestOptions, isTCommonsHttpRequestOptionsAsPeriod, fromTCommonsHttpRequestOptionsAsPeriod };
|
|
27
27
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,yCAAyC,EAAE,MAAM,gCAAgC,CAAC;AACxH,OAAO,EAAE,6CAA6C,EAAE,0CAA0C,EAAE,MAAM,4CAA4C,CAAC;AACvJ,OAAO,EAAE,qCAAqC,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AACtI,OAAO,EA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ACtB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,gCAAgC,EAChC,8BAA8B,EAC9B,iCAAiC,EACjC,iCAAiC,EAEjC,yBAAyB,EACzB,4BAA4B,EAG5B,4BAA4B,EAE5B,oCAAoC,EACpC,sCAAsC,EAGtC,CAAC"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { CommonsFixedDuration } from 'tscommons-esm-core';
|
|
1
2
|
import { ECommonsHttpContentType } from '../enums/ecommons-http-content-type.mjs';
|
|
2
3
|
import { ECommonsHttpResponseDataType } from '../enums/ecommons-http-response-data-type.mjs';
|
|
3
4
|
export type TCommonsHttpRequestOptions = {
|
|
4
|
-
timeout?:
|
|
5
|
+
timeout?: CommonsFixedDuration;
|
|
5
6
|
bodyDataEncoding?: ECommonsHttpContentType;
|
|
6
7
|
responseDataType?: ECommonsHttpResponseDataType;
|
|
7
8
|
maxReattempts?: number;
|
|
8
9
|
};
|
|
9
10
|
export type TCommonsHttpInternalRequestOptions = Omit<TCommonsHttpRequestOptions, 'maxReattempts' | 'bodyDataEncoding' | 'responseDataType'>;
|
|
10
11
|
export declare function isTCommonsHttpRequestOptions(test: unknown): test is TCommonsHttpRequestOptions;
|
|
12
|
+
export type TCommonsHttpRequestOptionsAsPeriod = {
|
|
13
|
+
timeout?: string;
|
|
14
|
+
bodyDataEncoding?: ECommonsHttpContentType;
|
|
15
|
+
responseDataType?: ECommonsHttpResponseDataType;
|
|
16
|
+
maxReattempts?: number;
|
|
17
|
+
};
|
|
18
|
+
export declare function isTCommonsHttpRequestOptionsAsPeriod(test: unknown): test is TCommonsHttpRequestOptionsAsPeriod;
|
|
19
|
+
export declare function fromTCommonsHttpRequestOptionsAsPeriod(asPeriod: TCommonsHttpRequestOptionsAsPeriod): TCommonsHttpRequestOptions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { commonsTypeHasPropertyNumberOrUndefined, commonsTypeHasPropertyEnumOrUndefined } from 'tscommons-esm-core';
|
|
1
|
+
import { commonsTypeHasPropertyNumberOrUndefined, commonsTypeHasPropertyEnumOrUndefined, CommonsFixedDuration, commonsTypeHasPropertyFixedDuration, commonsTypeHasPropertyString, commonsIsValidNumberPeriod } from 'tscommons-esm-core';
|
|
2
2
|
import { isECommonsHttpContentType } from '../enums/ecommons-http-content-type.mjs';
|
|
3
3
|
import { isECommonsHttpResponseDataType } from '../enums/ecommons-http-response-data-type.mjs';
|
|
4
4
|
export function isTCommonsHttpRequestOptions(test) {
|
|
5
|
-
if (!
|
|
5
|
+
if (!commonsTypeHasPropertyFixedDuration(test, 'timeout'))
|
|
6
6
|
return false;
|
|
7
7
|
if (!commonsTypeHasPropertyEnumOrUndefined(test, 'bodyDataEncoding', isECommonsHttpContentType))
|
|
8
8
|
return false;
|
|
@@ -12,4 +12,25 @@ export function isTCommonsHttpRequestOptions(test) {
|
|
|
12
12
|
return false;
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
15
|
+
export function isTCommonsHttpRequestOptionsAsPeriod(test) {
|
|
16
|
+
if (!commonsTypeHasPropertyString(test, 'timeout'))
|
|
17
|
+
return false;
|
|
18
|
+
if (!commonsIsValidNumberPeriod(test.timeout))
|
|
19
|
+
return false;
|
|
20
|
+
if (!commonsTypeHasPropertyEnumOrUndefined(test, 'bodyDataEncoding', isECommonsHttpContentType))
|
|
21
|
+
return false;
|
|
22
|
+
if (!commonsTypeHasPropertyEnumOrUndefined(test, 'responseDataType', isECommonsHttpResponseDataType))
|
|
23
|
+
return false;
|
|
24
|
+
if (!commonsTypeHasPropertyNumberOrUndefined(test, 'maxReattempts'))
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function fromTCommonsHttpRequestOptionsAsPeriod(asPeriod) {
|
|
29
|
+
const rebuild = { ...asPeriod };
|
|
30
|
+
delete rebuild.timeout;
|
|
31
|
+
const typecast = rebuild;
|
|
32
|
+
if (asPeriod.timeout)
|
|
33
|
+
typecast.timeout = CommonsFixedDuration.fromPeriod(asPeriod.timeout);
|
|
34
|
+
return typecast;
|
|
35
|
+
}
|
|
15
36
|
//# sourceMappingURL=tcommons-http-request-options.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcommons-http-request-options.mjs","sourceRoot":"","sources":["../../src/types/tcommons-http-request-options.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,uCAAuC,EACvC,qCAAqC,
|
|
1
|
+
{"version":3,"file":"tcommons-http-request-options.mjs","sourceRoot":"","sources":["../../src/types/tcommons-http-request-options.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,uCAAuC,EACvC,qCAAqC,EACrC,oBAAoB,EACpB,mCAAmC,EACnC,4BAA4B,EAC5B,0BAA0B,EAE3B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAA2B,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC7G,OAAO,EAAgC,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAc7H,MAAM,UAAU,4BAA4B,CAAC,IAAa;IACzD,IAAI,CAAC,mCAAmC,CAAC,IAAI,EAAE,SAAS,CAAC;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,qCAAqC,CAA0B,IAAI,EAAE,kBAAkB,EAAE,yBAAyB,CAAC;QAAE,OAAO,KAAK,CAAC;IACvI,IAAI,CAAC,qCAAqC,CAA+B,IAAI,EAAE,kBAAkB,EAAE,8BAA8B,CAAC;QAAE,OAAO,KAAK,CAAC;IACjJ,IAAI,CAAC,uCAAuC,CAAC,IAAI,EAAE,eAAe,CAAC;QAAE,OAAO,KAAK,CAAC;IAElF,OAAO,IAAI,CAAC;AACb,CAAC;AASD,MAAM,UAAU,oCAAoC,CAAC,IAAa;IACjE,IAAI,CAAC,4BAA4B,CAAC,IAAI,EAAE,SAAS,CAAC;QAAE,OAAO,KAAK,CAAC;IACjE,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,OAAiB,CAAC;QAAE,OAAO,KAAK,CAAC;IAEtE,IAAI,CAAC,qCAAqC,CAA0B,IAAI,EAAE,kBAAkB,EAAE,yBAAyB,CAAC;QAAE,OAAO,KAAK,CAAC;IACvI,IAAI,CAAC,qCAAqC,CAA+B,IAAI,EAAE,kBAAkB,EAAE,8BAA8B,CAAC;QAAE,OAAO,KAAK,CAAC;IACjJ,IAAI,CAAC,uCAAuC,CAAC,IAAI,EAAE,eAAe,CAAC;QAAE,OAAO,KAAK,CAAC;IAElF,OAAO,IAAI,CAAC;AACb,CAAC;AAED,MAAM,UAAU,sCAAsC,CAAC,QAA4C;IAClG,MAAM,OAAO,GAAgD,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC7E,OAAQ,OAA2B,CAAC,OAAO,CAAC;IAE5C,MAAM,QAAQ,GAA+B,OAAO,CAAC;IAErD,IAAI,QAAQ,CAAC,OAAO;QAAE,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAE3F,OAAO,QAAQ,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tscommons-esm-http",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tsc": "./node_modules/typescript/bin/tsc",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"rxjs": "^7.8.1",
|
|
29
|
-
"tscommons-esm-core": "^0.0.
|
|
29
|
+
"tscommons-esm-core": "^0.0.7"
|
|
30
30
|
}
|
|
31
31
|
}
|