@tsed/json-mapper 7.35.0-beta.3 → 7.35.0-beta.5
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/jest.config.js +3 -3
- package/lib/browser/json-mapper.umd.min.js +1 -1
- package/lib/browser/json-mapper.umd.min.js.map +1 -1
- package/lib/cjs/components/DateMapper.js.map +1 -1
- package/lib/cjs/components/PrimitiveMapper.js +30 -26
- package/lib/cjs/components/PrimitiveMapper.js.map +1 -1
- package/lib/cjs/components/SymbolMapper.js.map +1 -1
- package/lib/cjs/domain/JsonDeserializer.js +275 -0
- package/lib/cjs/domain/JsonDeserializer.js.map +1 -0
- package/lib/cjs/domain/JsonDeserializerOptions.js +3 -0
- package/lib/cjs/domain/JsonDeserializerOptions.js.map +1 -0
- package/lib/cjs/domain/JsonMapperCompiler.js +11 -2
- package/lib/cjs/domain/JsonMapperCompiler.js.map +1 -1
- package/lib/cjs/domain/JsonSerializer.js +15 -14
- package/lib/cjs/domain/JsonSerializer.js.map +1 -1
- package/lib/cjs/domain/Writer.js +30 -0
- package/lib/cjs/domain/Writer.js.map +1 -1
- package/lib/cjs/hooks/alterOnDeserialize.js +8 -0
- package/lib/cjs/hooks/alterOnDeserialize.js.map +1 -0
- package/lib/cjs/index.js +3 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/deserialize.js +5 -202
- package/lib/cjs/utils/deserialize.js.map +1 -1
- package/lib/esm/components/DateMapper.js.map +1 -1
- package/lib/esm/components/PrimitiveMapper.js +30 -26
- package/lib/esm/components/PrimitiveMapper.js.map +1 -1
- package/lib/esm/components/SymbolMapper.js.map +1 -1
- package/lib/esm/domain/JsonDeserializer.js +271 -0
- package/lib/esm/domain/JsonDeserializer.js.map +1 -0
- package/lib/esm/domain/JsonDeserializerOptions.js +2 -0
- package/lib/esm/domain/JsonDeserializerOptions.js.map +1 -0
- package/lib/esm/domain/JsonMapperCompiler.js +11 -2
- package/lib/esm/domain/JsonMapperCompiler.js.map +1 -1
- package/lib/esm/domain/JsonSerializer.js +15 -14
- package/lib/esm/domain/JsonSerializer.js.map +1 -1
- package/lib/esm/domain/Writer.js +31 -2
- package/lib/esm/domain/Writer.js.map +1 -1
- package/lib/esm/hooks/alterOnDeserialize.js +4 -0
- package/lib/esm/hooks/alterOnDeserialize.js.map +1 -0
- package/lib/esm/index.js +3 -4
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/deserialize.js +4 -200
- package/lib/esm/utils/deserialize.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/components/PrimitiveMapper.d.ts +4 -0
- package/lib/types/domain/JsonDeserializer.d.ts +33 -0
- package/lib/types/domain/JsonDeserializerOptions.d.ts +31 -0
- package/lib/types/domain/JsonMapperCompiler.d.ts +7 -1
- package/lib/types/domain/JsonSerializer.d.ts +1 -0
- package/lib/types/domain/Writer.d.ts +9 -0
- package/lib/types/hooks/alterOnDeserialize.d.ts +2 -0
- package/lib/types/index.d.ts +3 -4
- package/lib/types/utils/deserialize.d.ts +2 -47
- package/package.json +7 -7
- package/lib/cjs/components/ArrayMapper.js +0 -23
- package/lib/cjs/components/ArrayMapper.js.map +0 -1
- package/lib/cjs/components/MapMapper.js +0 -30
- package/lib/cjs/components/MapMapper.js.map +0 -1
- package/lib/cjs/components/SetMapper.js +0 -30
- package/lib/cjs/components/SetMapper.js.map +0 -1
- package/lib/cjs/domain/JsonMapperContext.js +0 -27
- package/lib/cjs/domain/JsonMapperContext.js.map +0 -1
- package/lib/esm/components/ArrayMapper.js +0 -20
- package/lib/esm/components/ArrayMapper.js.map +0 -1
- package/lib/esm/components/MapMapper.js +0 -27
- package/lib/esm/components/MapMapper.js.map +0 -1
- package/lib/esm/components/SetMapper.js +0 -27
- package/lib/esm/components/SetMapper.js.map +0 -1
- package/lib/esm/domain/JsonMapperContext.js +0 -23
- package/lib/esm/domain/JsonMapperContext.js.map +0 -1
- package/lib/types/components/ArrayMapper.d.ts +0 -10
- package/lib/types/components/MapMapper.d.ts +0 -12
- package/lib/types/components/SetMapper.d.ts +0 -10
- package/lib/types/domain/JsonMapperContext.d.ts +0 -20
|
@@ -1,210 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserialize =
|
|
4
|
-
const core_1 = require("@tsed/core");
|
|
5
|
-
const schema_1 = require("@tsed/schema");
|
|
6
|
-
require("../components/ArrayMapper");
|
|
3
|
+
exports.deserialize = void 0;
|
|
7
4
|
require("../components/DateMapper");
|
|
8
|
-
require("../components/MapMapper");
|
|
9
5
|
require("../components/PrimitiveMapper");
|
|
10
|
-
require("../components/SetMapper");
|
|
11
6
|
require("../components/SymbolMapper");
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const alterBeforeDeserialize_1 = require("../hooks/alterBeforeDeserialize");
|
|
17
|
-
function isDeserializable(obj, options) {
|
|
18
|
-
if ((!!options.collectionType && (0, core_1.isNil)(obj)) || obj === undefined) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
return !((0, core_1.isEmpty)(options.type) || (options.type === Object && !options.collectionType));
|
|
22
|
-
}
|
|
23
|
-
function alterValue(schema, value, options) {
|
|
24
|
-
return schema.$hooks.alter("onDeserialize", value, [options]);
|
|
25
|
-
}
|
|
26
|
-
function transformCollection(src, options) {
|
|
27
|
-
const { types, type = Object, collectionType } = options;
|
|
28
|
-
const context = new JsonMapperContext_1.JsonMapperContext({
|
|
29
|
-
type,
|
|
30
|
-
collectionType,
|
|
31
|
-
options,
|
|
32
|
-
next: (data, { collectionType, ...options }) => deserialize(data, options)
|
|
33
|
-
});
|
|
34
|
-
return types?.get(options.collectionType)?.deserialize(src, context);
|
|
35
|
-
}
|
|
36
|
-
function transformType(src, options) {
|
|
37
|
-
const { types, type = Object } = options;
|
|
38
|
-
const context = new JsonMapperContext_1.JsonMapperContext({
|
|
39
|
-
type,
|
|
40
|
-
options,
|
|
41
|
-
next: (data, { type, ...options }) => deserialize(data, options)
|
|
42
|
-
});
|
|
43
|
-
return types?.get(type)?.deserialize(src, context);
|
|
44
|
-
}
|
|
45
|
-
function getAdditionalProperties(nbProps, store, options) {
|
|
46
|
-
const additionalProperties = store.schema.get("additionalProperties");
|
|
47
|
-
if ((0, core_1.isBoolean)(additionalProperties) || (0, core_1.isClass)(additionalProperties)) {
|
|
48
|
-
return additionalProperties;
|
|
49
|
-
}
|
|
50
|
-
return nbProps === 0 || !!options.additionalProperties;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Transform given plain object to class.
|
|
54
|
-
* @param src
|
|
55
|
-
* @param options
|
|
56
|
-
*/
|
|
57
|
-
function plainObjectToClass(src, options) {
|
|
58
|
-
if ((0, core_1.isEmpty)(src)) {
|
|
59
|
-
return src;
|
|
60
|
-
}
|
|
61
|
-
const { type, store = schema_1.JsonEntityStore.from(type) } = options;
|
|
62
|
-
const propertiesMap = (0, schema_1.getProperties)(store, { ...options, withIgnoredProps: true });
|
|
63
|
-
let keys = new Set((0, core_1.objectKeys)(src));
|
|
64
|
-
const additionalProperties = getAdditionalProperties(propertiesMap.size, store, options);
|
|
65
|
-
src = (0, alterBeforeDeserialize_1.alterBeforeDeserialize)(src, store.schema, options);
|
|
66
|
-
const out = new type(options.disableUnsecureConstructor ? {} : src);
|
|
67
|
-
propertiesMap.forEach((propStore) => {
|
|
68
|
-
const key = options.useAlias
|
|
69
|
-
? propStore.parent.schema.getAliasOf(propStore.propertyName) || propStore.propertyName
|
|
70
|
-
: propStore.propertyName;
|
|
71
|
-
keys.delete(key);
|
|
72
|
-
if ((0, schema_1.alterIgnore)(propStore.schema, options)) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
let value = alterValue(propStore.schema, src[key], { ...options, self: src });
|
|
76
|
-
value =
|
|
77
|
-
value === src[key]
|
|
78
|
-
? deserialize(value, {
|
|
79
|
-
...options,
|
|
80
|
-
store: propStore,
|
|
81
|
-
format: propStore.itemSchema.get("format"),
|
|
82
|
-
self: src,
|
|
83
|
-
collectionType: propStore.collectionType
|
|
84
|
-
})
|
|
85
|
-
: value;
|
|
86
|
-
if (!propStore.isGetterOnly()) {
|
|
87
|
-
if (value !== undefined) {
|
|
88
|
-
out[propStore.propertyName] = value;
|
|
89
|
-
}
|
|
90
|
-
else if (options.partial) {
|
|
91
|
-
delete out[propStore.propertyName];
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
if (additionalProperties) {
|
|
96
|
-
if ((0, core_1.isBoolean)(additionalProperties)) {
|
|
97
|
-
keys.forEach((key) => {
|
|
98
|
-
out[key] = src[key];
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
const type = additionalProperties.getComputedType();
|
|
103
|
-
keys.forEach((key) => {
|
|
104
|
-
out[key] = deserialize(src[key], {
|
|
105
|
-
...options,
|
|
106
|
-
type
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return (0, alterAfterDeserialize_1.alterAfterDeserialize)(out, store.schema, options);
|
|
112
|
-
}
|
|
113
|
-
exports.plainObjectToClass = plainObjectToClass;
|
|
114
|
-
function mapPropStoreOptions(store, options) {
|
|
115
|
-
const itemOpts = {
|
|
116
|
-
...options,
|
|
117
|
-
store: undefined,
|
|
118
|
-
type: store.computedType
|
|
119
|
-
};
|
|
120
|
-
if (store.itemSchema.isDiscriminator) {
|
|
121
|
-
itemOpts.type = store.itemSchema.discriminator();
|
|
122
|
-
}
|
|
123
|
-
if (store.schema.hasGenerics) {
|
|
124
|
-
itemOpts.nestedGenerics = store.schema.nestedGenerics;
|
|
125
|
-
}
|
|
126
|
-
else if (store.schema.isGeneric && options.nestedGenerics) {
|
|
127
|
-
const [genericTypes = [], ...nestedGenerics] = options.nestedGenerics;
|
|
128
|
-
const genericLabels = store.parent.schema.genericLabels || [];
|
|
129
|
-
itemOpts.type = genericTypes[genericLabels.indexOf(store.schema.genericType)] || Object;
|
|
130
|
-
if (itemOpts.type instanceof schema_1.JsonSchema) {
|
|
131
|
-
itemOpts.type = itemOpts.type.getTarget();
|
|
132
|
-
}
|
|
133
|
-
itemOpts.nestedGenerics = nestedGenerics;
|
|
134
|
-
}
|
|
135
|
-
return itemOpts;
|
|
136
|
-
}
|
|
137
|
-
function mapParamStoreOptions(store, options) {
|
|
138
|
-
return {
|
|
139
|
-
...options,
|
|
140
|
-
store: undefined,
|
|
141
|
-
type: store.getBestType(),
|
|
142
|
-
collectionType: store.collectionType,
|
|
143
|
-
groups: store.parameter.groups,
|
|
144
|
-
genericTypes: store.nestedGenerics[0],
|
|
145
|
-
nestedGenerics: store.nestedGenerics
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
function buildOptions(options) {
|
|
149
|
-
if (options.store instanceof schema_1.JsonPropertyStore) {
|
|
150
|
-
return buildOptions(mapPropStoreOptions(options.store, options));
|
|
151
|
-
}
|
|
152
|
-
if (options.store instanceof schema_1.JsonParameterStore) {
|
|
153
|
-
return buildOptions(mapParamStoreOptions(options.store, options));
|
|
154
|
-
}
|
|
155
|
-
if (options.store instanceof schema_1.JsonEntityStore) {
|
|
156
|
-
options.type = options.store.computedType;
|
|
157
|
-
options.collectionType = options.store.collectionType;
|
|
158
|
-
options.store = undefined;
|
|
159
|
-
}
|
|
160
|
-
else if ((0, core_1.isClass)(options.type)) {
|
|
161
|
-
const store = schema_1.JsonEntityStore.from(options.type);
|
|
162
|
-
if (store.schema.isDiscriminator) {
|
|
163
|
-
options.type = schema_1.JsonEntityStore.from(options.type).schema.discriminator();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return {
|
|
167
|
-
groups: false,
|
|
168
|
-
useAlias: true,
|
|
169
|
-
...options,
|
|
170
|
-
additionalProperties: (0, core_1.getValue)(options, "additionalProperties", JsonMapperSettings_1.JsonMapperSettings.additionalProperties),
|
|
171
|
-
disableUnsecureConstructor: (0, core_1.getValue)(options, "disableUnsecureConstructor", JsonMapperSettings_1.JsonMapperSettings.disableUnsecureConstructor),
|
|
172
|
-
partial: options.groups ? options.groups.includes("partial") : false,
|
|
173
|
-
type: options.type ? options.type : undefined,
|
|
174
|
-
types: options.types ? options.types : (0, JsonMapperTypesContainer_1.getJsonMapperTypes)()
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Transform given source to class base on the given `options.type`.
|
|
179
|
-
*
|
|
180
|
-
* @param src
|
|
181
|
-
* @param options
|
|
182
|
-
*/
|
|
183
|
-
function deserialize(src, options = {}) {
|
|
184
|
-
options = buildOptions(options);
|
|
185
|
-
if (!isDeserializable(src, options)) {
|
|
186
|
-
return src;
|
|
187
|
-
}
|
|
188
|
-
if (!options.collectionType && (0, core_1.isArray)(src)) {
|
|
189
|
-
options.collectionType = Array;
|
|
190
|
-
}
|
|
191
|
-
if (options.collectionType) {
|
|
192
|
-
if (!options.types?.has(options.collectionType)) {
|
|
193
|
-
throw new Error(`${(0, core_1.nameOf)(options.collectionType)} is not supported by JsonMapper.`);
|
|
194
|
-
}
|
|
195
|
-
return transformCollection(src, options);
|
|
196
|
-
}
|
|
197
|
-
if (options.types?.has(options.type)) {
|
|
198
|
-
return transformType(src, options);
|
|
199
|
-
}
|
|
200
|
-
if (options.type instanceof schema_1.Discriminator) {
|
|
201
|
-
const discriminator = options.type;
|
|
202
|
-
const discriminatorValue = src[discriminator.propertyName];
|
|
203
|
-
const type = discriminator.getType(discriminatorValue);
|
|
204
|
-
return plainObjectToClass(src, { ...options, type });
|
|
205
|
-
}
|
|
206
|
-
// class converter
|
|
207
|
-
return plainObjectToClass(src, options);
|
|
7
|
+
const JsonDeserializer_1 = require("../domain/JsonDeserializer");
|
|
8
|
+
const deserializer = new JsonDeserializer_1.JsonDeserializer();
|
|
9
|
+
function deserialize(input, options) {
|
|
10
|
+
return deserializer.map(input, options);
|
|
208
11
|
}
|
|
209
12
|
exports.deserialize = deserialize;
|
|
210
13
|
//# sourceMappingURL=deserialize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialize.js","sourceRoot":"","sources":["../../../src/utils/deserialize.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"deserialize.js","sourceRoot":"","sources":["../../../src/utils/deserialize.ts"],"names":[],"mappings":";;;AAAA,oCAAkC;AAClC,yCAAuC;AACvC,sCAAoC;AAEpC,iEAA4D;AAG5D,MAAM,YAAY,GAAG,IAAI,mCAAgB,EAAE,CAAC;AAE5C,SAAgB,WAAW,CAAc,KAAU,EAAE,OAAiC;IACpF,OAAO,YAAY,CAAC,GAAG,CAAQ,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;AAFD,kCAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateMapper.js","sourceRoot":"","sources":["../../../src/components/DateMapper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAGpD;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"DateMapper.js","sourceRoot":"","sources":["../../../src/components/DateMapper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAGpD;;;;GAIG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGrB,WAAW,CAAC,IAAS;QACnB,6EAA6E;QAC7E,6EAA6E;QAC7E,oBAAoB;QACpB,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;YAC1D,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,SAAS,CAAC,MAAY;QACpB,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1D,CAAC;CACF,CAAA;AAjBY,UAAU;IADtB,UAAU,CAAC,IAAI,CAAC;GACJ,UAAU,CAiBtB;SAjBY,UAAU"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { nameOf } from "@tsed/core";
|
|
2
3
|
import { JsonMapper } from "../decorators/jsonMapper.js";
|
|
3
4
|
function isNullish(data) {
|
|
4
5
|
return [null, "null"].includes(data);
|
|
@@ -16,36 +17,39 @@ export class CastError extends Error {
|
|
|
16
17
|
*/
|
|
17
18
|
let PrimitiveMapper = class PrimitiveMapper {
|
|
18
19
|
deserialize(data, ctx) {
|
|
19
|
-
|
|
20
|
-
case String:
|
|
21
|
-
return data === null ? null : "" + data;
|
|
22
|
-
case BigInt:
|
|
23
|
-
if (isNullish(data))
|
|
24
|
-
return null;
|
|
25
|
-
return BigInt(data);
|
|
26
|
-
case Number:
|
|
27
|
-
if (isNullish(data))
|
|
28
|
-
return null;
|
|
29
|
-
const n = +data;
|
|
30
|
-
if (isNaN(n)) {
|
|
31
|
-
throw new CastError("Expression value is not a number.");
|
|
32
|
-
}
|
|
33
|
-
return n;
|
|
34
|
-
case Boolean:
|
|
35
|
-
if (["true", "1", true].includes(data))
|
|
36
|
-
return true;
|
|
37
|
-
if (["false", "0", false].includes(data))
|
|
38
|
-
return false;
|
|
39
|
-
if (isNullish(data))
|
|
40
|
-
return null;
|
|
41
|
-
if (data === undefined)
|
|
42
|
-
return undefined;
|
|
43
|
-
return !!data;
|
|
44
|
-
}
|
|
20
|
+
return this[nameOf(ctx.type)] ? this[nameOf(ctx.type)](data, ctx) : undefined;
|
|
45
21
|
}
|
|
46
22
|
serialize(object) {
|
|
47
23
|
return object;
|
|
48
24
|
}
|
|
25
|
+
String(data) {
|
|
26
|
+
return data === null ? null : "" + data;
|
|
27
|
+
}
|
|
28
|
+
Boolean(data) {
|
|
29
|
+
if (["true", "1", true].includes(data))
|
|
30
|
+
return true;
|
|
31
|
+
if (["false", "0", false].includes(data))
|
|
32
|
+
return false;
|
|
33
|
+
if (isNullish(data))
|
|
34
|
+
return null;
|
|
35
|
+
if (data === undefined)
|
|
36
|
+
return undefined;
|
|
37
|
+
return !!data;
|
|
38
|
+
}
|
|
39
|
+
Number(data) {
|
|
40
|
+
if (isNullish(data))
|
|
41
|
+
return null;
|
|
42
|
+
const n = +data;
|
|
43
|
+
if (isNaN(n)) {
|
|
44
|
+
throw new CastError("Expression value is not a number.");
|
|
45
|
+
}
|
|
46
|
+
return n;
|
|
47
|
+
}
|
|
48
|
+
BigInt(data) {
|
|
49
|
+
if (isNullish(data))
|
|
50
|
+
return null;
|
|
51
|
+
return BigInt(data);
|
|
52
|
+
}
|
|
49
53
|
};
|
|
50
54
|
PrimitiveMapper = __decorate([
|
|
51
55
|
JsonMapper(String, Number, Boolean, BigInt)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitiveMapper.js","sourceRoot":"","sources":["../../../src/components/PrimitiveMapper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAGpD,SAAS,SAAS,CAAC,IAAS;IAC1B,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC,IAAI,GAAG,YAAY,CAAC;IAEpB,YAAY,OAAe;QACzB,KAAK,CAAC,eAAe,OAAO,EAAE,CAAC,CAAC;IAClC,CAAC;CACF;AAED;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"PrimitiveMapper.js","sourceRoot":"","sources":["../../../src/components/PrimitiveMapper.ts"],"names":[],"mappings":";AAAA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CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;IAES,MAAM,CAAC,IAAS;QACxB,IAAI,SAAS,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QAEjC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QAEhB,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;YACZ,MAAM,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC;SAC1D;QAED,OAAO,CAAC,CAAC;IACX,CAAC;IAES,MAAM,CAAC,IAAS;QACxB,IAAI,SAAS,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QAEjC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACF,CAAA;AAvCY,eAAe;IAD3B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;GAC/B,eAAe,CAuC3B;SAvCY,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SymbolMapper.js","sourceRoot":"","sources":["../../../src/components/SymbolMapper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAGpD;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"SymbolMapper.js","sourceRoot":"","sources":["../../../src/components/SymbolMapper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAGpD;;;;;GAKG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,WAAW,CAAC,IAAY;QACtB,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,SAAS,CAAC,MAAc;QACtB,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;CACF,CAAA;AARY,YAAY;IADxB,UAAU,CAAC,MAAM,CAAC;GACN,YAAY,CAQxB;SARY,YAAY"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { classOf, getValue, isArray, isClass, isEmpty, isNil, nameOf, objectKeys } from "@tsed/core";
|
|
2
|
+
import { getPropertiesStores, JsonEntityStore, JsonParameterStore } from "@tsed/schema";
|
|
3
|
+
import { alterAfterDeserialize } from "../hooks/alterAfterDeserialize.js";
|
|
4
|
+
import { alterBeforeDeserialize } from "../hooks/alterBeforeDeserialize.js";
|
|
5
|
+
import { alterOnDeserialize } from "../hooks/alterOnDeserialize.js";
|
|
6
|
+
import { JsonMapperCompiler } from "./JsonMapperCompiler.js";
|
|
7
|
+
import { JsonMapperSettings } from "./JsonMapperSettings.js";
|
|
8
|
+
import { getJsonMapperTypes } from "./JsonMapperTypesContainer.js";
|
|
9
|
+
import { Writer } from "./Writer.js";
|
|
10
|
+
function isDeserializable(obj, options) {
|
|
11
|
+
if ((!!options.collectionType && isNil(obj)) || obj === undefined) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
return !(isEmpty(options.type) || (options.type === Object && !options.collectionType));
|
|
15
|
+
}
|
|
16
|
+
function mapParamStoreOptions(store, options) {
|
|
17
|
+
return {
|
|
18
|
+
...options,
|
|
19
|
+
store: undefined,
|
|
20
|
+
type: store.itemSchema.hasDiscriminator ? store.itemSchema.discriminator().base : store.getBestType(),
|
|
21
|
+
collectionType: store.collectionType,
|
|
22
|
+
groups: store.parameter.groups,
|
|
23
|
+
// genericTypes: store.nestedGenerics[0],
|
|
24
|
+
generics: store.nestedGenerics
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function getGenericIndex(propertyStore) {
|
|
28
|
+
return propertyStore.parent.schema.genericLabels.indexOf(propertyStore.itemSchema.genericType);
|
|
29
|
+
}
|
|
30
|
+
export class JsonDeserializer extends JsonMapperCompiler {
|
|
31
|
+
/**
|
|
32
|
+
* Cached classes by his id
|
|
33
|
+
* @protected
|
|
34
|
+
*/
|
|
35
|
+
constructors = {};
|
|
36
|
+
constructor() {
|
|
37
|
+
super();
|
|
38
|
+
this.addGlobal("newInstanceOf", this.newInstanceOf.bind(this));
|
|
39
|
+
this.addGlobal("alterBeforeDeserialize", this.alterBeforeDeserialize.bind(this));
|
|
40
|
+
this.addGlobal("alterAfterDeserialize", this.alterAfterDeserialize.bind(this));
|
|
41
|
+
this.addTypeMapper(Object, this.mapObject.bind(this));
|
|
42
|
+
this.addTypeMapper(Array, this.mapArray.bind(this));
|
|
43
|
+
this.addTypeMapper(Map, this.mapMap.bind(this));
|
|
44
|
+
this.addTypeMapper(Set, this.mapSet.bind(this));
|
|
45
|
+
this.addTypeMapper("ObjectId", (value) => String(value));
|
|
46
|
+
}
|
|
47
|
+
map(input, options = {}) {
|
|
48
|
+
options = this.mapOptions(options);
|
|
49
|
+
if (!isDeserializable(input, options)) {
|
|
50
|
+
return input;
|
|
51
|
+
}
|
|
52
|
+
if (!options.collectionType && isArray(input)) {
|
|
53
|
+
options.collectionType = Array;
|
|
54
|
+
}
|
|
55
|
+
const model = options.type || classOf(input);
|
|
56
|
+
const mapper = this.compile(model, options.groups);
|
|
57
|
+
if (options.collectionType) {
|
|
58
|
+
const collectionMapper = this.compile(options.collectionType, options.groups);
|
|
59
|
+
return collectionMapper.fn(input, { ...options, id: mapper.id });
|
|
60
|
+
}
|
|
61
|
+
return mapper.fn(input, this.createContext(options));
|
|
62
|
+
}
|
|
63
|
+
compile(model, groups) {
|
|
64
|
+
if ([WeakMap, WeakSet].includes(model)) {
|
|
65
|
+
throw new Error(`${nameOf(model)} is not supported by JsonMapper.`);
|
|
66
|
+
}
|
|
67
|
+
return super.compile(model, groups);
|
|
68
|
+
}
|
|
69
|
+
eval(mapper, { id, groupsId, model }) {
|
|
70
|
+
this.constructors[id] = model;
|
|
71
|
+
return super.eval(mapper, { id, groupsId, model });
|
|
72
|
+
}
|
|
73
|
+
newInstanceOf(id, obj, options) {
|
|
74
|
+
try {
|
|
75
|
+
return new this.constructors[id](options.disableUnsecureConstructor ? {} : obj);
|
|
76
|
+
}
|
|
77
|
+
catch (er) {
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
createMapper(model, id, groups) {
|
|
82
|
+
const entity = JsonEntityStore.from(model);
|
|
83
|
+
const properties = new Set();
|
|
84
|
+
const schemaProperties = [...getPropertiesStores(entity).values()];
|
|
85
|
+
const writer = new Writer().arrow("input", "options");
|
|
86
|
+
writer.if("isNil(input)").return("input");
|
|
87
|
+
if (entity.schema.hasDiscriminator) {
|
|
88
|
+
writer.add(this.mapDiscriminator(entity, groups));
|
|
89
|
+
}
|
|
90
|
+
// pre hook
|
|
91
|
+
if (entity.schema.$hooks?.has("beforeDeserialize")) {
|
|
92
|
+
this.schemes[id] = entity.schema;
|
|
93
|
+
writer.set("input", `alterBeforeDeserialize('${id}', input, options)`);
|
|
94
|
+
}
|
|
95
|
+
// generics and options
|
|
96
|
+
writer.const("generics", "options.generics[0]");
|
|
97
|
+
if (entity.schema.genericLabels?.length) {
|
|
98
|
+
writer.set("options", "{...options, self: input, generics: [...options.generics].slice(1)}");
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
writer.set("options", "{...options, self: input}");
|
|
102
|
+
}
|
|
103
|
+
writer.const("obj", `newInstanceOf('${id}', input, options)`);
|
|
104
|
+
// properties
|
|
105
|
+
writer.add(...schemaProperties.flatMap((propertyStore) => {
|
|
106
|
+
const key = propertyStore.propertyName;
|
|
107
|
+
properties.add(key);
|
|
108
|
+
properties.add(String(propertyStore.parent.schema.getAliasOf(key) || key));
|
|
109
|
+
if (propertyStore.isGetterOnly() ||
|
|
110
|
+
(propertyStore.schema?.$hooks?.has("groups") && this.alterGroups(propertyStore.schema, groups))) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
return this.mapProperty(propertyStore, id, groups);
|
|
114
|
+
}));
|
|
115
|
+
// additional properties
|
|
116
|
+
writer.add(this.mapAdditionalProperties(entity, properties, groups));
|
|
117
|
+
// post hook
|
|
118
|
+
if (entity.schema.$hooks?.has("afterDeserialize")) {
|
|
119
|
+
this.schemes[id] = entity.schema;
|
|
120
|
+
return writer.return(`alterAfterDeserialize('${id}', obj, options)`).root().toString();
|
|
121
|
+
}
|
|
122
|
+
return writer.return("obj").root().toString();
|
|
123
|
+
}
|
|
124
|
+
alterValue(schemaId, value, options) {
|
|
125
|
+
return alterOnDeserialize(this.schemes[schemaId], value, options);
|
|
126
|
+
}
|
|
127
|
+
mapDiscriminator(entity, groups) {
|
|
128
|
+
const writer = new Writer();
|
|
129
|
+
const discriminator = entity.schema.discriminator();
|
|
130
|
+
const sw = writer.switch(`input['${discriminator.propertyName}']`);
|
|
131
|
+
discriminator.values.forEach((value, kind) => {
|
|
132
|
+
const nestedMapper = this.compile(value, groups);
|
|
133
|
+
sw.case(`'${kind}'`).returnCallMapper(nestedMapper.id, "input");
|
|
134
|
+
});
|
|
135
|
+
return writer;
|
|
136
|
+
}
|
|
137
|
+
mapProperty(propertyStore, id, groups) {
|
|
138
|
+
const key = String(propertyStore.propertyKey);
|
|
139
|
+
const aliasKey = String(propertyStore.parent.schema.getAliasOf(key) || key);
|
|
140
|
+
const schemaId = this.getSchemaId(id, key);
|
|
141
|
+
const format = propertyStore.itemSchema.get("format");
|
|
142
|
+
const formatOpts = format && `options: {format: '${format}'}`;
|
|
143
|
+
let writer = new Writer().add(`// Map ${key} ${id} ${groups || ""}`);
|
|
144
|
+
const pick = key !== aliasKey ? `options.useAlias ? '${aliasKey}' : '${key}'` : `'${key}'`;
|
|
145
|
+
const ifWriter = writer.set(`let ${key}`, `input[${pick}]`).if(`${key} !== undefined`);
|
|
146
|
+
// pre hook
|
|
147
|
+
const hasDeserializer = propertyStore.schema?.$hooks?.has("onDeserialize");
|
|
148
|
+
if (hasDeserializer) {
|
|
149
|
+
this.schemes[schemaId] = propertyStore.schema;
|
|
150
|
+
const opts = Writer.options(formatOpts);
|
|
151
|
+
ifWriter.set(key, `alterValue('${schemaId}', ${key}, ${opts})`);
|
|
152
|
+
}
|
|
153
|
+
const fill = this.getPropertyFiller(propertyStore, id, groups, formatOpts);
|
|
154
|
+
if (hasDeserializer) {
|
|
155
|
+
fill(ifWriter.if(`${key} === input.${key}`));
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
fill(ifWriter);
|
|
159
|
+
}
|
|
160
|
+
ifWriter.set(`obj.${key}`, key);
|
|
161
|
+
if (groups && groups.includes("partial")) {
|
|
162
|
+
ifWriter.else().add(`delete obj.${key}`);
|
|
163
|
+
}
|
|
164
|
+
return writer.root();
|
|
165
|
+
}
|
|
166
|
+
getPropertyFiller(propertyStore, id, groups, formatOpts) {
|
|
167
|
+
const key = String(propertyStore.propertyKey);
|
|
168
|
+
const schemaId = this.getSchemaId(id, key);
|
|
169
|
+
const generics = propertyStore.itemSchema.nestedGenerics;
|
|
170
|
+
const isGeneric = propertyStore.itemSchema.isGeneric && !generics?.length;
|
|
171
|
+
if (isGeneric) {
|
|
172
|
+
const index = getGenericIndex(propertyStore);
|
|
173
|
+
const opts = Writer.options(formatOpts, `type: generics[${index}]`);
|
|
174
|
+
return (writer) => writer.set(key, `compileAndMap(${key}, ${opts})`);
|
|
175
|
+
}
|
|
176
|
+
const type = propertyStore.itemSchema.hasDiscriminator ? propertyStore.itemSchema.discriminator().base : propertyStore.getBestType();
|
|
177
|
+
const nestedMapper = this.compile(type, groups);
|
|
178
|
+
if (propertyStore.isCollection) {
|
|
179
|
+
return (writer) => writer.callMapper(nameOf(propertyStore.collectionType), key, `id: '${nestedMapper.id}'`, formatOpts);
|
|
180
|
+
}
|
|
181
|
+
if (generics?.length) {
|
|
182
|
+
this.schemes[schemaId] = propertyStore.schema;
|
|
183
|
+
return (writer) => writer.callMapper(nestedMapper.id, key, formatOpts, `generics: schemes['${schemaId}'].nestedGenerics`);
|
|
184
|
+
}
|
|
185
|
+
return (writer) => writer.callMapper(nestedMapper.id, key, formatOpts);
|
|
186
|
+
}
|
|
187
|
+
mapOptions({ groups = false, useAlias = true, types, ...options }) {
|
|
188
|
+
if (options.store instanceof JsonParameterStore) {
|
|
189
|
+
return this.mapOptions(mapParamStoreOptions(options.store, options));
|
|
190
|
+
}
|
|
191
|
+
const customMappers = {};
|
|
192
|
+
types = types || getJsonMapperTypes();
|
|
193
|
+
types.forEach((mapper, model) => {
|
|
194
|
+
if (![Array, Set, Map].includes(model)) {
|
|
195
|
+
const typeName = nameOf(model);
|
|
196
|
+
if (nameOf(model) in mapper) {
|
|
197
|
+
this.addTypeMapper(model, mapper[typeName].bind(mapper));
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
this.addTypeMapper(model, (value, options) => mapper.deserialize(value, {
|
|
201
|
+
...options,
|
|
202
|
+
type: model
|
|
203
|
+
}));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
return {
|
|
208
|
+
...options,
|
|
209
|
+
additionalProperties: getValue(options, "additionalProperties", JsonMapperSettings.additionalProperties),
|
|
210
|
+
disableUnsecureConstructor: getValue(options, "disableUnsecureConstructor", JsonMapperSettings.disableUnsecureConstructor),
|
|
211
|
+
groups,
|
|
212
|
+
useAlias,
|
|
213
|
+
customMappers,
|
|
214
|
+
generics: options.generics || []
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
mapAdditionalProperties(entity, properties, groups) {
|
|
218
|
+
const additionalProperties = entity.schema.get("additionalProperties");
|
|
219
|
+
const exclude = [...properties.values()].map((key) => `'${key}'`).join(", ");
|
|
220
|
+
const writer = new Writer();
|
|
221
|
+
writer.add("// add additional properties");
|
|
222
|
+
let each = writer.each("objectKeys(input)", ["key"]);
|
|
223
|
+
if (exclude.length) {
|
|
224
|
+
each = each.if(`![${exclude}].includes(key)`);
|
|
225
|
+
}
|
|
226
|
+
if (isClass(additionalProperties)) {
|
|
227
|
+
const nestedMapper = this.compile(additionalProperties.getComputedType(), groups);
|
|
228
|
+
each.set("obj[key]", Writer.mapper(nestedMapper.id, "input[key]", "options"));
|
|
229
|
+
return writer;
|
|
230
|
+
}
|
|
231
|
+
if (additionalProperties) {
|
|
232
|
+
each.set("obj[key]", "input[key]");
|
|
233
|
+
return writer;
|
|
234
|
+
}
|
|
235
|
+
// dynamic additional properties options
|
|
236
|
+
each.if(`options.additionalProperties`).set("obj[key]", "input[key]");
|
|
237
|
+
return writer;
|
|
238
|
+
}
|
|
239
|
+
mapObject(input, options) {
|
|
240
|
+
return input;
|
|
241
|
+
}
|
|
242
|
+
mapSet(input, options) {
|
|
243
|
+
const obj = new Set();
|
|
244
|
+
objectKeys(input).forEach((key) => {
|
|
245
|
+
obj.add(this.mapItem(input[key], options));
|
|
246
|
+
});
|
|
247
|
+
return obj;
|
|
248
|
+
}
|
|
249
|
+
mapArray(input, options) {
|
|
250
|
+
return [].concat(input).map((item) => {
|
|
251
|
+
return this.mapItem(item, options);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
mapMap(input, options) {
|
|
255
|
+
const obj = new Map();
|
|
256
|
+
objectKeys(input).forEach((key) => {
|
|
257
|
+
obj.set(key, this.mapItem(input[key], options));
|
|
258
|
+
});
|
|
259
|
+
return obj;
|
|
260
|
+
}
|
|
261
|
+
mapItem(input, { id, ...options }) {
|
|
262
|
+
return this.execMapper(id, input, options);
|
|
263
|
+
}
|
|
264
|
+
alterBeforeDeserialize(schemaId, value, options) {
|
|
265
|
+
return alterBeforeDeserialize(value, this.schemes[schemaId], options);
|
|
266
|
+
}
|
|
267
|
+
alterAfterDeserialize(schemaId, value, options) {
|
|
268
|
+
return alterAfterDeserialize(value, this.schemes[schemaId], options);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=JsonDeserializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonDeserializer.js","sourceRoot":"","sources":["../../../src/domain/JsonDeserializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,OA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