@utiliread/http 1.17.8 → 1.18.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/.vscode/settings.json +2 -2
- package/dist/cjs/event-aggregator.js +29 -29
- package/dist/cjs/event-aggregator.js.map +1 -1
- package/dist/cjs/events.js +18 -18
- package/dist/cjs/events.js.map +1 -1
- package/dist/cjs/helpers.js +15 -15
- package/dist/cjs/http-builder.js +191 -191
- package/dist/cjs/http-builder.js.map +1 -1
- package/dist/cjs/http-error.js +29 -29
- package/dist/cjs/http-error.js.map +1 -1
- package/dist/cjs/http-response.js +50 -50
- package/dist/cjs/http-response.js.map +1 -1
- package/dist/cjs/http.js +95 -95
- package/dist/cjs/http.js.map +1 -1
- package/dist/cjs/http.spec.js +68 -68
- package/dist/cjs/http.spec.js.map +1 -1
- package/dist/cjs/index.js +37 -37
- package/dist/cjs/json/index.js +73 -73
- package/dist/cjs/jsonpatch/index.js +14 -14
- package/dist/cjs/mapping.js +36 -36
- package/dist/cjs/mapping.js.map +1 -1
- package/dist/cjs/msgpack/index.js +34 -34
- package/dist/cjs/msgpack/index.js.map +1 -1
- package/dist/cjs/pagination.js +2 -2
- package/dist/cjs/problem-details.js +2 -2
- package/dist/cjs/query-string.js +67 -65
- package/dist/cjs/query-string.js.map +1 -1
- package/dist/cjs/query-string.spec.js +51 -51
- package/dist/cjs/status-codes.js +70 -70
- package/dist/cjs/timeout-error.js +13 -13
- package/dist/esm/event-aggregator.d.ts +11 -11
- package/dist/esm/event-aggregator.js +25 -25
- package/dist/esm/event-aggregator.js.map +1 -1
- package/dist/esm/events.d.ts +11 -11
- package/dist/esm/events.js +14 -14
- package/dist/esm/events.js.map +1 -1
- package/dist/esm/helpers.d.ts +5 -5
- package/dist/esm/helpers.js +9 -9
- package/dist/esm/http-builder.d.ts +60 -60
- package/dist/esm/http-builder.js +186 -186
- package/dist/esm/http-builder.js.map +1 -1
- package/dist/esm/http-error.d.ts +10 -10
- package/dist/esm/http-error.js +25 -25
- package/dist/esm/http-error.js.map +1 -1
- package/dist/esm/http-response.d.ts +18 -18
- package/dist/esm/http-response.js +45 -45
- package/dist/esm/http-response.js.map +1 -1
- package/dist/esm/http.d.ts +33 -33
- package/dist/esm/http.js +91 -91
- package/dist/esm/http.js.map +1 -1
- package/dist/esm/http.spec.d.ts +1 -1
- package/dist/esm/http.spec.js +66 -66
- package/dist/esm/http.spec.js.map +1 -1
- package/dist/esm/index.d.ts +15 -15
- package/dist/esm/index.js +10 -10
- package/dist/esm/json/index.d.ts +15 -15
- package/dist/esm/json/index.js +71 -71
- package/dist/esm/jsonpatch/index.d.ts +9 -9
- package/dist/esm/jsonpatch/index.js +12 -12
- package/dist/esm/mapping.d.ts +9 -9
- package/dist/esm/mapping.js +31 -31
- package/dist/esm/mapping.js.map +1 -1
- package/dist/esm/msgpack/index.d.ts +8 -8
- package/dist/esm/msgpack/index.js +32 -32
- package/dist/esm/msgpack/index.js.map +1 -1
- package/dist/esm/pagination.d.ts +23 -23
- package/dist/esm/pagination.js +1 -1
- package/dist/esm/problem-details.d.ts +7 -7
- package/dist/esm/problem-details.js +1 -1
- package/dist/esm/query-string.d.ts +6 -6
- package/dist/esm/query-string.js +63 -61
- package/dist/esm/query-string.js.map +1 -1
- package/dist/esm/query-string.spec.d.ts +1 -1
- package/dist/esm/query-string.spec.js +49 -49
- package/dist/esm/status-codes.d.ts +67 -67
- package/dist/esm/status-codes.js +67 -67
- package/dist/esm/timeout-error.d.ts +3 -3
- package/dist/esm/timeout-error.js +9 -9
- package/package.json +10 -12
- package/plugins/json/node_modules/@utiliread/http/package.json +4 -0
- package/plugins/json/src/index.ts +124 -122
- package/plugins/jsonpatch/node_modules/@utiliread/http/package.json +4 -0
- package/plugins/jsonpatch/src/index.ts +31 -31
- package/plugins/msgpack/node_modules/@utiliread/http/package.json +4 -0
- package/plugins/msgpack/src/index.ts +67 -60
- package/src/event-aggregator.ts +21 -21
- package/src/events.ts +39 -39
- package/src/helpers.ts +6 -6
- package/src/http-builder.ts +252 -218
- package/src/http-error.ts +30 -23
- package/src/http-response.ts +1 -1
- package/src/http.spec.ts +1 -1
- package/src/http.ts +8 -5
- package/src/index.ts +1 -1
- package/src/mapping.ts +40 -32
- package/src/pagination.ts +16 -16
- package/src/problem-details.ts +6 -6
- package/src/query-string.spec.ts +59 -43
- package/src/query-string.ts +56 -58
- package/src/status-codes.ts +67 -67
- package/src/timeout-error.ts +7 -7
- package/tsconfig.cjs.json +1 -0
- package/tsconfig.json +1 -1
- package/web-test-runner.config.mjs +7 -0
- package/karma.config.js +0 -29
package/dist/esm/json/index.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { HttpBuilder, HttpBuilderOfT, Mapping } from "@utiliread/http";
|
|
2
|
-
import { deserialize, serialize } from "@utiliread/json";
|
|
3
|
-
HttpBuilder.prototype.withJson = function (content) {
|
|
4
|
-
this.message.content = serialize(content);
|
|
5
|
-
this.message.contentType = "application/json";
|
|
6
|
-
return this;
|
|
7
|
-
};
|
|
8
|
-
HttpBuilderOfT.prototype.withJson = function (content) {
|
|
9
|
-
this.message.content = serialize(content);
|
|
10
|
-
this.message.contentType = "application/json";
|
|
11
|
-
return this;
|
|
12
|
-
};
|
|
13
|
-
HttpBuilder.prototype.expectJson = function (typeOrMapper) {
|
|
14
|
-
this.message.headers.set("Accept", "application/json");
|
|
15
|
-
return this.useHandler((response) => {
|
|
16
|
-
return response.rawResponse
|
|
17
|
-
.json()
|
|
18
|
-
.then((x) => Mapping.getMapper(deserialize, typeOrMapper)(x));
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
HttpBuilder.prototype.expectJsonArray = function (typeOrMapper) {
|
|
22
|
-
this.message.headers.set("Accept", "application/json");
|
|
23
|
-
return this.useHandler((response) => {
|
|
24
|
-
return response.rawResponse.json().then((x) => {
|
|
25
|
-
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
26
|
-
return x.map(itemFactory);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
HttpBuilder.prototype.expectJsonNullableArray = function (typeOrMapper) {
|
|
31
|
-
this.message.headers.set("Accept", "application/json");
|
|
32
|
-
return this.useHandler((response) => {
|
|
33
|
-
return response.rawResponse.json().then((x) => {
|
|
34
|
-
const itemFactory = Mapping.getNullableMapper(deserialize, typeOrMapper);
|
|
35
|
-
return x.map(itemFactory);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
HttpBuilder.prototype.expectJsonPaginationResult = function (typeOrMapper) {
|
|
40
|
-
this.message.headers.set("Accept", "application/json");
|
|
41
|
-
return this.useHandler((response) => {
|
|
42
|
-
return response.rawResponse.json().then((x) => {
|
|
43
|
-
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
44
|
-
return {
|
|
45
|
-
meta: {
|
|
46
|
-
pageCount: x.meta.pageCount,
|
|
47
|
-
pageSize: x.meta.pageSize,
|
|
48
|
-
totalItems: x.meta.totalItems,
|
|
49
|
-
},
|
|
50
|
-
data: x.data.map(itemFactory),
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
HttpBuilder.prototype.expectJsonInfinitePaginationResult = function (typeOrMapper) {
|
|
56
|
-
this.message.headers.set("Accept", "application/json");
|
|
57
|
-
return this.useHandler((response) => {
|
|
58
|
-
return response.rawResponse
|
|
59
|
-
.json()
|
|
60
|
-
.then((x) => {
|
|
61
|
-
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
62
|
-
return {
|
|
63
|
-
meta: {
|
|
64
|
-
pageSize: x.meta.pageSize,
|
|
65
|
-
continuationToken: x.meta.continuationToken,
|
|
66
|
-
},
|
|
67
|
-
data: x.data.map(itemFactory),
|
|
68
|
-
};
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
};
|
|
1
|
+
import { HttpBuilder, HttpBuilderOfT, Mapping } from "@utiliread/http";
|
|
2
|
+
import { deserialize, serialize } from "@utiliread/json";
|
|
3
|
+
HttpBuilder.prototype.withJson = function (content) {
|
|
4
|
+
this.message.content = serialize(content);
|
|
5
|
+
this.message.contentType = "application/json";
|
|
6
|
+
return this;
|
|
7
|
+
};
|
|
8
|
+
HttpBuilderOfT.prototype.withJson = function (content) {
|
|
9
|
+
this.message.content = serialize(content);
|
|
10
|
+
this.message.contentType = "application/json";
|
|
11
|
+
return this;
|
|
12
|
+
};
|
|
13
|
+
HttpBuilder.prototype.expectJson = function (typeOrMapper) {
|
|
14
|
+
this.message.headers.set("Accept", "application/json");
|
|
15
|
+
return this.useHandler((response) => {
|
|
16
|
+
return response.rawResponse
|
|
17
|
+
.json()
|
|
18
|
+
.then((x) => Mapping.getMapper(deserialize, typeOrMapper)(x));
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
HttpBuilder.prototype.expectJsonArray = function (typeOrMapper) {
|
|
22
|
+
this.message.headers.set("Accept", "application/json");
|
|
23
|
+
return this.useHandler((response) => {
|
|
24
|
+
return response.rawResponse.json().then((x) => {
|
|
25
|
+
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
26
|
+
return x.map(itemFactory);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
HttpBuilder.prototype.expectJsonNullableArray = function (typeOrMapper) {
|
|
31
|
+
this.message.headers.set("Accept", "application/json");
|
|
32
|
+
return this.useHandler((response) => {
|
|
33
|
+
return response.rawResponse.json().then((x) => {
|
|
34
|
+
const itemFactory = Mapping.getNullableMapper(deserialize, typeOrMapper);
|
|
35
|
+
return x.map(itemFactory);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
HttpBuilder.prototype.expectJsonPaginationResult = function (typeOrMapper) {
|
|
40
|
+
this.message.headers.set("Accept", "application/json");
|
|
41
|
+
return this.useHandler((response) => {
|
|
42
|
+
return response.rawResponse.json().then((x) => {
|
|
43
|
+
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
44
|
+
return {
|
|
45
|
+
meta: {
|
|
46
|
+
pageCount: x.meta.pageCount,
|
|
47
|
+
pageSize: x.meta.pageSize,
|
|
48
|
+
totalItems: x.meta.totalItems,
|
|
49
|
+
},
|
|
50
|
+
data: x.data.map(itemFactory),
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
HttpBuilder.prototype.expectJsonInfinitePaginationResult = function (typeOrMapper) {
|
|
56
|
+
this.message.headers.set("Accept", "application/json");
|
|
57
|
+
return this.useHandler((response) => {
|
|
58
|
+
return response.rawResponse
|
|
59
|
+
.json()
|
|
60
|
+
.then((x) => {
|
|
61
|
+
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
62
|
+
return {
|
|
63
|
+
meta: {
|
|
64
|
+
pageSize: x.meta.pageSize,
|
|
65
|
+
continuationToken: x.meta.continuationToken,
|
|
66
|
+
},
|
|
67
|
+
data: x.data.map(itemFactory),
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Operation } from "@utiliread/jsonpatch";
|
|
2
|
-
declare module "@utiliread/http" {
|
|
3
|
-
interface HttpBuilder {
|
|
4
|
-
withJsonPatch(operations: Operation[]): this;
|
|
5
|
-
}
|
|
6
|
-
interface HttpBuilderOfT<T> {
|
|
7
|
-
withJsonPatch(operations: Operation[]): this;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import type { Operation } from "@utiliread/jsonpatch";
|
|
2
|
+
declare module "@utiliread/http" {
|
|
3
|
+
interface HttpBuilder {
|
|
4
|
+
withJsonPatch(operations: Operation[]): this;
|
|
5
|
+
}
|
|
6
|
+
interface HttpBuilderOfT<T> {
|
|
7
|
+
withJsonPatch(operations: Operation[]): this;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { HttpBuilder, HttpBuilderOfT } from "@utiliread/http";
|
|
2
|
-
import { serialize } from "@utiliread/json";
|
|
3
|
-
HttpBuilder.prototype.withJsonPatch = function (operations) {
|
|
4
|
-
this.message.content = serialize(operations);
|
|
5
|
-
this.message.contentType = "application/json-patch+json";
|
|
6
|
-
return this;
|
|
7
|
-
};
|
|
8
|
-
HttpBuilderOfT.prototype.withJsonPatch = function (operations) {
|
|
9
|
-
this.message.content = serialize(operations);
|
|
10
|
-
this.message.contentType = "application/json-patch+json";
|
|
11
|
-
return this;
|
|
12
|
-
};
|
|
1
|
+
import { HttpBuilder, HttpBuilderOfT } from "@utiliread/http";
|
|
2
|
+
import { serialize } from "@utiliread/json";
|
|
3
|
+
HttpBuilder.prototype.withJsonPatch = function (operations) {
|
|
4
|
+
this.message.content = serialize(operations);
|
|
5
|
+
this.message.contentType = "application/json-patch+json";
|
|
6
|
+
return this;
|
|
7
|
+
};
|
|
8
|
+
HttpBuilderOfT.prototype.withJsonPatch = function (operations) {
|
|
9
|
+
this.message.content = serialize(operations);
|
|
10
|
+
this.message.contentType = "application/json-patch+json";
|
|
11
|
+
return this;
|
|
12
|
+
};
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/mapping.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
new (): T;
|
|
4
|
-
};
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export declare function getNullableMapper<T>(deserialize: DeserializeFn<T>, typeOrMap: Type<T> | Mapper<T> | undefined): Mapper<T | null>;
|
|
8
|
-
export declare function getMapper<T>(deserialize: DeserializeFn<T>, typeOrMap: Type<T> | Mapper<T> | undefined): Mapper<T>;
|
|
9
|
-
export {};
|
|
1
|
+
type DeserializeFn<T> = (source: any, type: Type<T>) => T | null | undefined;
|
|
2
|
+
export type Type<T> = {
|
|
3
|
+
new (): T;
|
|
4
|
+
};
|
|
5
|
+
export type Mapper<T> = ((source: any) => T);
|
|
6
|
+
export type TypeOrMapper<T> = Type<T> | Mapper<T>;
|
|
7
|
+
export declare function getNullableMapper<T>(deserialize: DeserializeFn<T>, typeOrMap: Type<T> | Mapper<T> | undefined): Mapper<T | null>;
|
|
8
|
+
export declare function getMapper<T>(deserialize: DeserializeFn<T>, typeOrMap: Type<T> | Mapper<T> | undefined): Mapper<T>;
|
|
9
|
+
export {};
|
package/dist/esm/mapping.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export function getNullableMapper(deserialize, typeOrMap) {
|
|
2
|
-
if (!typeOrMap) {
|
|
3
|
-
return (x) => x;
|
|
4
|
-
}
|
|
5
|
-
if (isZeroArgumentFunction(typeOrMap)) {
|
|
6
|
-
// It cannot be a factory function if it takes no arguments,
|
|
7
|
-
// so it must be a (zero argument) type (constructor)
|
|
8
|
-
return (x) => {
|
|
9
|
-
const bound = deserialize(x, typeOrMap);
|
|
10
|
-
// The server cannot produce the undefined result
|
|
11
|
-
if (bound === undefined) {
|
|
12
|
-
throw Error("The model factory created a undefined result");
|
|
13
|
-
}
|
|
14
|
-
return bound;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
return typeOrMap;
|
|
18
|
-
}
|
|
19
|
-
export function getMapper(deserialize, typeOrMap) {
|
|
20
|
-
const nullableFactory = getNullableMapper(deserialize, typeOrMap);
|
|
21
|
-
return (x) => {
|
|
22
|
-
const result = nullableFactory(x);
|
|
23
|
-
if (result === null) {
|
|
24
|
-
throw Error("The model factory created a null result");
|
|
25
|
-
}
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function isZeroArgumentFunction(typeCtor) {
|
|
30
|
-
return typeCtor.length === 0;
|
|
31
|
-
}
|
|
1
|
+
export function getNullableMapper(deserialize, typeOrMap) {
|
|
2
|
+
if (!typeOrMap) {
|
|
3
|
+
return (x) => x;
|
|
4
|
+
}
|
|
5
|
+
if (isZeroArgumentFunction(typeOrMap)) {
|
|
6
|
+
// It cannot be a factory function if it takes no arguments,
|
|
7
|
+
// so it must be a (zero argument) type (constructor)
|
|
8
|
+
return (x) => {
|
|
9
|
+
const bound = deserialize(x, typeOrMap);
|
|
10
|
+
// The server cannot produce the undefined result
|
|
11
|
+
if (bound === undefined) {
|
|
12
|
+
throw Error("The model factory created a undefined result");
|
|
13
|
+
}
|
|
14
|
+
return bound;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return typeOrMap;
|
|
18
|
+
}
|
|
19
|
+
export function getMapper(deserialize, typeOrMap) {
|
|
20
|
+
const nullableFactory = getNullableMapper(deserialize, typeOrMap);
|
|
21
|
+
return (x) => {
|
|
22
|
+
const result = nullableFactory(x);
|
|
23
|
+
if (result === null) {
|
|
24
|
+
throw Error("The model factory created a null result");
|
|
25
|
+
}
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function isZeroArgumentFunction(typeCtor) {
|
|
30
|
+
return typeCtor.length === 0;
|
|
31
|
+
}
|
|
32
32
|
//# sourceMappingURL=mapping.js.map
|
package/dist/esm/mapping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../src/mapping.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,iBAAiB,CAAI,WAA6B,EAAE,SAA0C;IAC1G,IAAI,CAAC,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../src/mapping.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,iBAAiB,CAAI,WAA6B,EAAE,SAA0C;IAC1G,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,CAAC,CAAM,EAAE,EAAE,CAAI,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI,sBAAsB,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,4DAA4D;QAC5D,qDAAqD;QACrD,OAAO,CAAC,CAAM,EAAE,EAAE;YACd,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;YAExC,iDAAiD;YACjD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACtB,MAAM,KAAK,CAAC,8CAA8C,CAAC,CAAC;YAChE,CAAC;YAED,OAAO,KAAK,CAAC;QACjB,CAAC,CAAA;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,WAA6B,EAAE,SAA0C;IAClG,MAAM,eAAe,GAAG,iBAAiB,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAClE,OAAO,CAAC,CAAM,EAAE,EAAE;QACd,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QAElC,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAClB,MAAM,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC;AAED,SAAS,sBAAsB,CAAI,QAAkB;IACjD,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HttpBuilderOfT, Mapping } from "@utiliread/http";
|
|
2
|
-
declare module "@utiliread/http" {
|
|
3
|
-
interface HttpBuilder {
|
|
4
|
-
expectMessagePack<T>(typeOrMapper?: Mapping.TypeOrMapper<T>): HttpBuilderOfT<T>;
|
|
5
|
-
expectMessagePackArray<T>(typeOrMapper?: Mapping.TypeOrMapper<T>): HttpBuilderOfT<T[]>;
|
|
6
|
-
streamMessagePackArray<T>(typeOrMapper?: Mapping.TypeOrMapper<T>): HttpBuilderOfT<AsyncGenerator<T, void, unknown>>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
import { HttpBuilderOfT, Mapping } from "@utiliread/http";
|
|
2
|
+
declare module "@utiliread/http" {
|
|
3
|
+
interface HttpBuilder {
|
|
4
|
+
expectMessagePack<T>(typeOrMapper?: Mapping.TypeOrMapper<T>): HttpBuilderOfT<T>;
|
|
5
|
+
expectMessagePackArray<T>(typeOrMapper?: Mapping.TypeOrMapper<T>): HttpBuilderOfT<T[]>;
|
|
6
|
+
streamMessagePackArray<T>(typeOrMapper?: Mapping.TypeOrMapper<T>): HttpBuilderOfT<AsyncGenerator<T, void, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { HttpBuilder, Mapping } from "@utiliread/http";
|
|
2
|
-
import { decodeArrayStream, decodeAsync } from "@msgpack/msgpack";
|
|
3
|
-
import { deserialize } from "@utiliread/msgpack";
|
|
4
|
-
HttpBuilder.prototype.expectMessagePack = function (typeOrMapper) {
|
|
5
|
-
this.message.headers.set("Accept", "application/x-msgpack");
|
|
6
|
-
return this.useHandler(async (response) => {
|
|
7
|
-
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
8
|
-
const decoded = await decodeAsync(response.rawResponse.body);
|
|
9
|
-
return itemFactory(decoded);
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
HttpBuilder.prototype.expectMessagePackArray = function (typeOrMapper) {
|
|
13
|
-
this.message.headers.set("Accept", "application/x-msgpack");
|
|
14
|
-
return this.useHandler(async (response) => {
|
|
15
|
-
const items = [];
|
|
16
|
-
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
17
|
-
for await (const item of decodeArrayStream(response.rawResponse.body)) {
|
|
18
|
-
items.push(itemFactory(item));
|
|
19
|
-
}
|
|
20
|
-
return items;
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
HttpBuilder.prototype.streamMessagePackArray = function (typeOrMapper) {
|
|
24
|
-
this.message.headers.set("Accept", "application/x-msgpack");
|
|
25
|
-
async function* handler(response) {
|
|
26
|
-
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
27
|
-
for await (const item of decodeArrayStream(response.rawResponse.body)) {
|
|
28
|
-
yield itemFactory(item);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return this.useHandler((response) => Promise.resolve(handler(response)));
|
|
32
|
-
};
|
|
1
|
+
import { HttpBuilder, Mapping } from "@utiliread/http";
|
|
2
|
+
import { decodeArrayStream, decodeAsync } from "@msgpack/msgpack";
|
|
3
|
+
import { deserialize } from "@utiliread/msgpack";
|
|
4
|
+
HttpBuilder.prototype.expectMessagePack = function (typeOrMapper) {
|
|
5
|
+
this.message.headers.set("Accept", "application/x-msgpack");
|
|
6
|
+
return this.useHandler(async (response) => {
|
|
7
|
+
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
8
|
+
const decoded = await decodeAsync(response.rawResponse.body);
|
|
9
|
+
return itemFactory(decoded);
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
HttpBuilder.prototype.expectMessagePackArray = function (typeOrMapper) {
|
|
13
|
+
this.message.headers.set("Accept", "application/x-msgpack");
|
|
14
|
+
return this.useHandler(async (response) => {
|
|
15
|
+
const items = [];
|
|
16
|
+
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
17
|
+
for await (const item of decodeArrayStream(response.rawResponse.body)) {
|
|
18
|
+
items.push(itemFactory(item));
|
|
19
|
+
}
|
|
20
|
+
return items;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
HttpBuilder.prototype.streamMessagePackArray = function (typeOrMapper) {
|
|
24
|
+
this.message.headers.set("Accept", "application/x-msgpack");
|
|
25
|
+
async function* handler(response) {
|
|
26
|
+
const itemFactory = Mapping.getMapper(deserialize, typeOrMapper);
|
|
27
|
+
for await (const item of decodeArrayStream(response.rawResponse.body)) {
|
|
28
|
+
yield itemFactory(item);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return this.useHandler((response) => Promise.resolve(handler(response)));
|
|
32
|
+
};
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../plugins/msgpack/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgC,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAejD,WAAW,CAAC,SAAS,CAAC,iBAAiB,GAAG,UAExC,YAAsC;IAEtC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;IAC5D,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QACxC,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QACjE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAK,CAAC,CAAC;QAC9D,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,WAAW,CAAC,SAAS,CAAC,sBAAsB,GAAG,UAE7C,YAAsC;IAEtC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;IAC5D,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QACxC,MAAM,KAAK,GAAQ,EAAE,CAAC;QACtB,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QACjE,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,iBAAiB,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAK,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../plugins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AC;AACL,CAAC,CAAC;AAEF,WAAW,CAAC,SAAS,CAAC,sBAAsB,GAAG,UAE7C,YAAsC;IAEtC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;IAE5D,KAAK,SAAS,CAAC,CAAC,OAAO,CAAC,QAAsB;QAC5C,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QACjE,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,iBAAiB,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAK,CAAC,EAAE,CAAC;YACvE,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC3E,CAAC,CAAC"}
|
package/dist/esm/pagination.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export interface Page {
|
|
2
|
-
number?: number;
|
|
3
|
-
size: number;
|
|
4
|
-
}
|
|
5
|
-
export interface PaginationResult<T> {
|
|
6
|
-
meta: {
|
|
7
|
-
pageCount: number;
|
|
8
|
-
pageSize: number;
|
|
9
|
-
totalItems: number;
|
|
10
|
-
};
|
|
11
|
-
data: T[];
|
|
12
|
-
}
|
|
13
|
-
export interface InfinitePage {
|
|
14
|
-
continuationToken?: string;
|
|
15
|
-
size: number;
|
|
16
|
-
}
|
|
17
|
-
export interface InfinitePaginationResult<T> {
|
|
18
|
-
meta: {
|
|
19
|
-
pageSize: number;
|
|
20
|
-
continuationToken: string | null;
|
|
21
|
-
};
|
|
22
|
-
data: T[];
|
|
23
|
-
}
|
|
1
|
+
export interface Page {
|
|
2
|
+
number?: number;
|
|
3
|
+
size: number;
|
|
4
|
+
}
|
|
5
|
+
export interface PaginationResult<T> {
|
|
6
|
+
meta: {
|
|
7
|
+
pageCount: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
totalItems: number;
|
|
10
|
+
};
|
|
11
|
+
data: T[];
|
|
12
|
+
}
|
|
13
|
+
export interface InfinitePage {
|
|
14
|
+
continuationToken?: string;
|
|
15
|
+
size: number;
|
|
16
|
+
}
|
|
17
|
+
export interface InfinitePaginationResult<T> {
|
|
18
|
+
meta: {
|
|
19
|
+
pageSize: number;
|
|
20
|
+
continuationToken: string | null;
|
|
21
|
+
};
|
|
22
|
+
data: T[];
|
|
23
|
+
}
|
package/dist/esm/pagination.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
detail?: string;
|
|
3
|
-
instance?: string;
|
|
4
|
-
status?: number;
|
|
5
|
-
title?: string;
|
|
6
|
-
type: string;
|
|
7
|
-
} & Record<string, any>;
|
|
1
|
+
export type ProblemDetails = {
|
|
2
|
+
detail?: string;
|
|
3
|
+
instance?: string;
|
|
4
|
+
status?: number;
|
|
5
|
+
title?: string;
|
|
6
|
+
type: string;
|
|
7
|
+
} & Record<string, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=problem-details.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class QueryString {
|
|
2
|
-
static serialize(params: any): string;
|
|
3
|
-
static append(url: string, params: any): string;
|
|
4
|
-
static getParameter(name: string): string | null | undefined;
|
|
5
|
-
private static _serializeQueryString;
|
|
6
|
-
}
|
|
1
|
+
export declare class QueryString {
|
|
2
|
+
static serialize(params: any): string;
|
|
3
|
+
static append(url: string, params: any): string;
|
|
4
|
+
static getParameter(name: string): string | null | undefined;
|
|
5
|
+
private static _serializeQueryString;
|
|
6
|
+
}
|
package/dist/esm/query-string.js
CHANGED
|
@@ -1,62 +1,64 @@
|
|
|
1
|
-
import { DateTime } from "luxon";
|
|
2
|
-
export class QueryString {
|
|
3
|
-
static serialize(params) {
|
|
4
|
-
if (!params) {
|
|
5
|
-
return "";
|
|
6
|
-
}
|
|
7
|
-
const serialized = this._serializeQueryString(params);
|
|
8
|
-
if (!serialized.length) {
|
|
9
|
-
return "";
|
|
10
|
-
}
|
|
11
|
-
return "?" + serialized;
|
|
12
|
-
}
|
|
13
|
-
static append(url, params) {
|
|
14
|
-
if (!params) {
|
|
15
|
-
return url;
|
|
16
|
-
}
|
|
17
|
-
const any = url.indexOf("?") >= 0;
|
|
18
|
-
const separator = any ? "&" : "?";
|
|
19
|
-
return url + separator + this._serializeQueryString(params);
|
|
20
|
-
}
|
|
21
|
-
static getParameter(name) {
|
|
22
|
-
const regex = new RegExp(`[?&]${name}(=([^&#]*)|&|#|$)`);
|
|
23
|
-
const match = regex.exec(window.location.href);
|
|
24
|
-
if (match) {
|
|
25
|
-
if (match[1].length > 0) {
|
|
26
|
-
return decodeURIComponent(match[2]);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
static _serializeQueryString(source, prefix) {
|
|
34
|
-
const parts = [];
|
|
35
|
-
for (const propertyName in source) {
|
|
36
|
-
if (source.hasOwnProperty(propertyName)) {
|
|
37
|
-
const key = prefix != null
|
|
38
|
-
? prefix + (Array.isArray(source)
|
|
39
|
-
? "[" + encodeURIComponent(propertyName) + "]"
|
|
40
|
-
: "." + encodeURIComponent(propertyName))
|
|
41
|
-
: encodeURIComponent(propertyName);
|
|
42
|
-
const value = source[propertyName];
|
|
43
|
-
if (value instanceof DateTime) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
import { DateTime } from "luxon";
|
|
2
|
+
export class QueryString {
|
|
3
|
+
static serialize(params) {
|
|
4
|
+
if (!params) {
|
|
5
|
+
return "";
|
|
6
|
+
}
|
|
7
|
+
const serialized = this._serializeQueryString(params);
|
|
8
|
+
if (!serialized.length) {
|
|
9
|
+
return "";
|
|
10
|
+
}
|
|
11
|
+
return "?" + serialized;
|
|
12
|
+
}
|
|
13
|
+
static append(url, params) {
|
|
14
|
+
if (!params) {
|
|
15
|
+
return url;
|
|
16
|
+
}
|
|
17
|
+
const any = url.indexOf("?") >= 0;
|
|
18
|
+
const separator = any ? "&" : "?";
|
|
19
|
+
return url + separator + this._serializeQueryString(params);
|
|
20
|
+
}
|
|
21
|
+
static getParameter(name) {
|
|
22
|
+
const regex = new RegExp(`[?&]${name}(=([^&#]*)|&|#|$)`);
|
|
23
|
+
const match = regex.exec(window.location.href);
|
|
24
|
+
if (match) {
|
|
25
|
+
if (match[1].length > 0) {
|
|
26
|
+
return decodeURIComponent(match[2]);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
static _serializeQueryString(source, prefix) {
|
|
34
|
+
const parts = [];
|
|
35
|
+
for (const propertyName in source) {
|
|
36
|
+
if (source.hasOwnProperty(propertyName)) {
|
|
37
|
+
const key = prefix != null
|
|
38
|
+
? prefix + (Array.isArray(source)
|
|
39
|
+
? "[" + encodeURIComponent(propertyName) + "]"
|
|
40
|
+
: "." + encodeURIComponent(propertyName))
|
|
41
|
+
: encodeURIComponent(propertyName);
|
|
42
|
+
const value = source[propertyName];
|
|
43
|
+
if (value instanceof DateTime) {
|
|
44
|
+
if (value.isValid) {
|
|
45
|
+
parts.push(key + "=" + encodeURIComponent(value.toISO()));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else if (value === null) {
|
|
49
|
+
parts.push(key);
|
|
50
|
+
}
|
|
51
|
+
else if (value !== undefined) {
|
|
52
|
+
if (typeof value === "object") {
|
|
53
|
+
parts.push(this._serializeQueryString(value, key));
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
parts.push(key + "=" + encodeURIComponent(value));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return parts.join("&");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
62
64
|
//# sourceMappingURL=query-string.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-string.js","sourceRoot":"","sources":["../../src/query-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,OAAO,WAAW;IACpB,MAAM,CAAC,SAAS,CAAC,MAAW;QACxB,IAAI,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"query-string.js","sourceRoot":"","sources":["../../src/query-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,OAAO,WAAW;IACpB,MAAM,CAAC,SAAS,CAAC,MAAW;QACxB,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACd,CAAC;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;YACrB,OAAO,EAAE,CAAC;QACd,CAAC;QACD,OAAO,GAAG,GAAG,UAAU,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,GAAW,EAAE,MAAW;QAClC,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,GAAG,CAAC;QACf,CAAC;QACD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,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