@targetprocess/shared-data-model-client 0.6.0-us817837-mapping.18 → 0.6.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/api/settings/index.js +0 -1
- package/dist/api/settings/profile/index.d.ts +4 -23
- package/dist/api/settings/profile/index.js +3 -23
- package/dist/models/index.d.ts +200 -250
- package/dist/models/index.js +226 -342
- package/package.json +1 -1
- package/src/api/settings/index.ts +1 -2
- package/src/api/settings/profile/index.ts +6 -38
- package/src/kiota-lock.json +1 -1
- package/src/models/index.ts +332 -433
- package/src/v1.json +282 -563
- package/dist/api/settings/profile/current/index.d.ts +0 -49
- package/dist/api/settings/profile/current/index.js +0 -46
- package/dist/api/settings/profile/testTypeMapping/index.d.ts +0 -33
- package/dist/api/settings/profile/testTypeMapping/index.js +0 -36
- package/dist/api/settings/profile/validate/index.d.ts +0 -33
- package/dist/api/settings/profile/validate/index.js +0 -34
- package/src/api/settings/profile/current/index.ts +0 -85
- package/src/api/settings/profile/testTypeMapping/index.ts +0 -57
- package/src/api/settings/profile/validate/index.ts +0 -57
package/dist/models/index.js
CHANGED
|
@@ -1,72 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createFieldAttributesDtoFromDiscriminatorValue = createFieldAttributesDtoFromDiscriminatorValue;
|
|
4
|
+
exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
|
|
4
5
|
exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
|
|
6
|
+
exports.createFieldMetaDtoFromDiscriminatorValue = createFieldMetaDtoFromDiscriminatorValue;
|
|
5
7
|
exports.createGetEntityTypesDtoFromDiscriminatorValue = createGetEntityTypesDtoFromDiscriminatorValue;
|
|
8
|
+
exports.createGetProfileSettingsDtoFromDiscriminatorValue = createGetProfileSettingsDtoFromDiscriminatorValue;
|
|
6
9
|
exports.createHttpValidationProblemDetails_errorsFromDiscriminatorValue = createHttpValidationProblemDetails_errorsFromDiscriminatorValue;
|
|
7
10
|
exports.createHttpValidationProblemDetailsFromDiscriminatorValue = createHttpValidationProblemDetailsFromDiscriminatorValue;
|
|
8
|
-
exports.createIFieldDefFromDiscriminatorValue = createIFieldDefFromDiscriminatorValue;
|
|
9
|
-
exports.createMappingErrorDtoFromDiscriminatorValue = createMappingErrorDtoFromDiscriminatorValue;
|
|
10
11
|
exports.createProblemDetailsFromDiscriminatorValue = createProblemDetailsFromDiscriminatorValue;
|
|
11
12
|
exports.createProfileDtoFromDiscriminatorValue = createProfileDtoFromDiscriminatorValue;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.createSetCurrentProfileRequestDtoFromDiscriminatorValue = createSetCurrentProfileRequestDtoFromDiscriminatorValue;
|
|
13
|
+
exports.createProfileMappingDtoFromDiscriminatorValue = createProfileMappingDtoFromDiscriminatorValue;
|
|
14
|
+
exports.createRelationDefRefDtoFromDiscriminatorValue = createRelationDefRefDtoFromDiscriminatorValue;
|
|
15
|
+
exports.createRelationDtoFromDiscriminatorValue = createRelationDtoFromDiscriminatorValue;
|
|
16
16
|
exports.createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseDtoFromDiscriminatorValue;
|
|
17
17
|
exports.createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue = createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue;
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
|
|
18
|
+
exports.createTypeDefDtoFromDiscriminatorValue = createTypeDefDtoFromDiscriminatorValue;
|
|
19
|
+
exports.createTypeDefRefDtoFromDiscriminatorValue = createTypeDefRefDtoFromDiscriminatorValue;
|
|
21
20
|
exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
|
|
22
21
|
exports.createTypeMetaDefDtoFromDiscriminatorValue = createTypeMetaDefDtoFromDiscriminatorValue;
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.createValidatedTypeMappingDtoFromDiscriminatorValue = createValidatedTypeMappingDtoFromDiscriminatorValue;
|
|
22
|
+
exports.deserializeIntoFieldAttributesDto = deserializeIntoFieldAttributesDto;
|
|
23
|
+
exports.deserializeIntoFieldDefDto = deserializeIntoFieldDefDto;
|
|
26
24
|
exports.deserializeIntoFieldMappingDto = deserializeIntoFieldMappingDto;
|
|
25
|
+
exports.deserializeIntoFieldMetaDto = deserializeIntoFieldMetaDto;
|
|
27
26
|
exports.deserializeIntoGetEntityTypesDto = deserializeIntoGetEntityTypesDto;
|
|
27
|
+
exports.deserializeIntoGetProfileSettingsDto = deserializeIntoGetProfileSettingsDto;
|
|
28
28
|
exports.deserializeIntoHttpValidationProblemDetails = deserializeIntoHttpValidationProblemDetails;
|
|
29
29
|
exports.deserializeIntoHttpValidationProblemDetails_errors = deserializeIntoHttpValidationProblemDetails_errors;
|
|
30
|
-
exports.deserializeIntoIFieldDef = deserializeIntoIFieldDef;
|
|
31
|
-
exports.deserializeIntoMappingErrorDto = deserializeIntoMappingErrorDto;
|
|
32
30
|
exports.deserializeIntoProblemDetails = deserializeIntoProblemDetails;
|
|
33
31
|
exports.deserializeIntoProfileDto = deserializeIntoProfileDto;
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.deserializeIntoSetCurrentProfileRequestDto = deserializeIntoSetCurrentProfileRequestDto;
|
|
32
|
+
exports.deserializeIntoProfileMappingDto = deserializeIntoProfileMappingDto;
|
|
33
|
+
exports.deserializeIntoRelationDefRefDto = deserializeIntoRelationDefRefDto;
|
|
34
|
+
exports.deserializeIntoRelationDto = deserializeIntoRelationDto;
|
|
38
35
|
exports.deserializeIntoSharedDataCreateAttachmentResponseDto = deserializeIntoSharedDataCreateAttachmentResponseDto;
|
|
39
36
|
exports.deserializeIntoSharedDataCreateAttachmentResponseItemDto = deserializeIntoSharedDataCreateAttachmentResponseItemDto;
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
|
|
37
|
+
exports.deserializeIntoTypeDefDto = deserializeIntoTypeDefDto;
|
|
38
|
+
exports.deserializeIntoTypeDefRefDto = deserializeIntoTypeDefRefDto;
|
|
43
39
|
exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
|
|
44
40
|
exports.deserializeIntoTypeMetaDefDto = deserializeIntoTypeMetaDefDto;
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.deserializeIntoValidatedTypeMappingDto = deserializeIntoValidatedTypeMappingDto;
|
|
41
|
+
exports.serializeFieldAttributesDto = serializeFieldAttributesDto;
|
|
42
|
+
exports.serializeFieldDefDto = serializeFieldDefDto;
|
|
48
43
|
exports.serializeFieldMappingDto = serializeFieldMappingDto;
|
|
44
|
+
exports.serializeFieldMetaDto = serializeFieldMetaDto;
|
|
49
45
|
exports.serializeGetEntityTypesDto = serializeGetEntityTypesDto;
|
|
46
|
+
exports.serializeGetProfileSettingsDto = serializeGetProfileSettingsDto;
|
|
50
47
|
exports.serializeHttpValidationProblemDetails = serializeHttpValidationProblemDetails;
|
|
51
48
|
exports.serializeHttpValidationProblemDetails_errors = serializeHttpValidationProblemDetails_errors;
|
|
52
|
-
exports.serializeIFieldDef = serializeIFieldDef;
|
|
53
|
-
exports.serializeMappingErrorDto = serializeMappingErrorDto;
|
|
54
49
|
exports.serializeProblemDetails = serializeProblemDetails;
|
|
55
50
|
exports.serializeProfileDto = serializeProfileDto;
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.serializeSetCurrentProfileRequestDto = serializeSetCurrentProfileRequestDto;
|
|
51
|
+
exports.serializeProfileMappingDto = serializeProfileMappingDto;
|
|
52
|
+
exports.serializeRelationDefRefDto = serializeRelationDefRefDto;
|
|
53
|
+
exports.serializeRelationDto = serializeRelationDto;
|
|
60
54
|
exports.serializeSharedDataCreateAttachmentResponseDto = serializeSharedDataCreateAttachmentResponseDto;
|
|
61
55
|
exports.serializeSharedDataCreateAttachmentResponseItemDto = serializeSharedDataCreateAttachmentResponseItemDto;
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
|
|
56
|
+
exports.serializeTypeDefDto = serializeTypeDefDto;
|
|
57
|
+
exports.serializeTypeDefRefDto = serializeTypeDefRefDto;
|
|
65
58
|
exports.serializeTypeMappingDto = serializeTypeMappingDto;
|
|
66
59
|
exports.serializeTypeMetaDefDto = serializeTypeMetaDefDto;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
/* tslint:disable */
|
|
61
|
+
/* eslint-disable */
|
|
62
|
+
// Generated by Microsoft Kiota
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
67
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
68
|
+
* @returns {FieldAttributesDto}
|
|
69
|
+
*/
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
function createFieldAttributesDtoFromDiscriminatorValue(parseNode) {
|
|
72
|
+
return deserializeIntoFieldAttributesDto;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
76
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
77
|
+
* @returns {FieldDefDto}
|
|
78
|
+
*/
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
function createFieldDefDtoFromDiscriminatorValue(parseNode) {
|
|
81
|
+
return deserializeIntoFieldDefDto;
|
|
82
|
+
}
|
|
70
83
|
/**
|
|
71
84
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
72
85
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -74,64 +87,52 @@ exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
|
|
|
74
87
|
*/
|
|
75
88
|
// @ts-ignore
|
|
76
89
|
function createFieldMappingDtoFromDiscriminatorValue(parseNode) {
|
|
77
|
-
if (!parseNode)
|
|
78
|
-
throw new Error("parseNode cannot be undefined");
|
|
79
|
-
const mappingValueNode = parseNode?.getChildNode("$type");
|
|
80
|
-
if (mappingValueNode) {
|
|
81
|
-
const mappingValue = mappingValueNode.getStringValue();
|
|
82
|
-
if (mappingValue) {
|
|
83
|
-
switch (mappingValue) {
|
|
84
|
-
case "ValidatedFieldMappingDto":
|
|
85
|
-
return deserializeIntoValidatedFieldMappingDto;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
90
|
return deserializeIntoFieldMappingDto;
|
|
90
91
|
}
|
|
91
92
|
/**
|
|
92
93
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
93
94
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
94
|
-
* @returns {
|
|
95
|
+
* @returns {FieldMetaDto}
|
|
95
96
|
*/
|
|
96
97
|
// @ts-ignore
|
|
97
|
-
function
|
|
98
|
-
return
|
|
98
|
+
function createFieldMetaDtoFromDiscriminatorValue(parseNode) {
|
|
99
|
+
return deserializeIntoFieldMetaDto;
|
|
99
100
|
}
|
|
100
101
|
/**
|
|
101
102
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
102
103
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
103
|
-
* @returns {
|
|
104
|
+
* @returns {GetEntityTypesDto}
|
|
104
105
|
*/
|
|
105
106
|
// @ts-ignore
|
|
106
|
-
function
|
|
107
|
-
return
|
|
107
|
+
function createGetEntityTypesDtoFromDiscriminatorValue(parseNode) {
|
|
108
|
+
return deserializeIntoGetEntityTypesDto;
|
|
108
109
|
}
|
|
109
110
|
/**
|
|
110
111
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
111
112
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
112
|
-
* @returns {
|
|
113
|
+
* @returns {GetProfileSettingsDto}
|
|
113
114
|
*/
|
|
114
115
|
// @ts-ignore
|
|
115
|
-
function
|
|
116
|
-
return
|
|
116
|
+
function createGetProfileSettingsDtoFromDiscriminatorValue(parseNode) {
|
|
117
|
+
return deserializeIntoGetProfileSettingsDto;
|
|
117
118
|
}
|
|
118
119
|
/**
|
|
119
120
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
120
121
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
121
|
-
* @returns {
|
|
122
|
+
* @returns {HttpValidationProblemDetails_errors}
|
|
122
123
|
*/
|
|
123
124
|
// @ts-ignore
|
|
124
|
-
function
|
|
125
|
-
return
|
|
125
|
+
function createHttpValidationProblemDetails_errorsFromDiscriminatorValue(parseNode) {
|
|
126
|
+
return deserializeIntoHttpValidationProblemDetails_errors;
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
129
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
129
130
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
130
|
-
* @returns {
|
|
131
|
+
* @returns {HttpValidationProblemDetails}
|
|
131
132
|
*/
|
|
132
133
|
// @ts-ignore
|
|
133
|
-
function
|
|
134
|
-
return
|
|
134
|
+
function createHttpValidationProblemDetailsFromDiscriminatorValue(parseNode) {
|
|
135
|
+
return deserializeIntoHttpValidationProblemDetails;
|
|
135
136
|
}
|
|
136
137
|
/**
|
|
137
138
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -154,38 +155,29 @@ function createProfileDtoFromDiscriminatorValue(parseNode) {
|
|
|
154
155
|
/**
|
|
155
156
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
156
157
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
157
|
-
* @returns {
|
|
158
|
+
* @returns {ProfileMappingDto}
|
|
158
159
|
*/
|
|
159
160
|
// @ts-ignore
|
|
160
|
-
function
|
|
161
|
-
return
|
|
161
|
+
function createProfileMappingDtoFromDiscriminatorValue(parseNode) {
|
|
162
|
+
return deserializeIntoProfileMappingDto;
|
|
162
163
|
}
|
|
163
164
|
/**
|
|
164
165
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
165
166
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
166
|
-
* @returns {
|
|
167
|
+
* @returns {RelationDefRefDto}
|
|
167
168
|
*/
|
|
168
169
|
// @ts-ignore
|
|
169
|
-
function
|
|
170
|
-
return
|
|
170
|
+
function createRelationDefRefDtoFromDiscriminatorValue(parseNode) {
|
|
171
|
+
return deserializeIntoRelationDefRefDto;
|
|
171
172
|
}
|
|
172
173
|
/**
|
|
173
174
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
174
175
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
175
|
-
* @returns {
|
|
176
|
+
* @returns {RelationDto}
|
|
176
177
|
*/
|
|
177
178
|
// @ts-ignore
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
183
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
184
|
-
* @returns {SetCurrentProfileRequestDto}
|
|
185
|
-
*/
|
|
186
|
-
// @ts-ignore
|
|
187
|
-
function createSetCurrentProfileRequestDtoFromDiscriminatorValue(parseNode) {
|
|
188
|
-
return deserializeIntoSetCurrentProfileRequestDto;
|
|
179
|
+
function createRelationDtoFromDiscriminatorValue(parseNode) {
|
|
180
|
+
return deserializeIntoRelationDto;
|
|
189
181
|
}
|
|
190
182
|
/**
|
|
191
183
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -208,29 +200,20 @@ function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminatorValue(p
|
|
|
208
200
|
/**
|
|
209
201
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
210
202
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
211
|
-
* @returns {
|
|
203
|
+
* @returns {TypeDefDto}
|
|
212
204
|
*/
|
|
213
205
|
// @ts-ignore
|
|
214
|
-
function
|
|
215
|
-
return
|
|
206
|
+
function createTypeDefDtoFromDiscriminatorValue(parseNode) {
|
|
207
|
+
return deserializeIntoTypeDefDto;
|
|
216
208
|
}
|
|
217
209
|
/**
|
|
218
210
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
219
211
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
220
|
-
* @returns {
|
|
212
|
+
* @returns {TypeDefRefDto}
|
|
221
213
|
*/
|
|
222
214
|
// @ts-ignore
|
|
223
|
-
function
|
|
224
|
-
return
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
228
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
229
|
-
* @returns {TpTypeDefDto}
|
|
230
|
-
*/
|
|
231
|
-
// @ts-ignore
|
|
232
|
-
function createTpTypeDefDtoFromDiscriminatorValue(parseNode) {
|
|
233
|
-
return deserializeIntoTpTypeDefDto;
|
|
215
|
+
function createTypeDefRefDtoFromDiscriminatorValue(parseNode) {
|
|
216
|
+
return deserializeIntoTypeDefRefDto;
|
|
234
217
|
}
|
|
235
218
|
/**
|
|
236
219
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -239,18 +222,6 @@ function createTpTypeDefDtoFromDiscriminatorValue(parseNode) {
|
|
|
239
222
|
*/
|
|
240
223
|
// @ts-ignore
|
|
241
224
|
function createTypeMappingDtoFromDiscriminatorValue(parseNode) {
|
|
242
|
-
if (!parseNode)
|
|
243
|
-
throw new Error("parseNode cannot be undefined");
|
|
244
|
-
const mappingValueNode = parseNode?.getChildNode("$type");
|
|
245
|
-
if (mappingValueNode) {
|
|
246
|
-
const mappingValue = mappingValueNode.getStringValue();
|
|
247
|
-
if (mappingValue) {
|
|
248
|
-
switch (mappingValue) {
|
|
249
|
-
case "ValidatedTypeMappingDto":
|
|
250
|
-
return deserializeIntoValidatedTypeMappingDto;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
225
|
return deserializeIntoTypeMappingDto;
|
|
255
226
|
}
|
|
256
227
|
/**
|
|
@@ -263,31 +234,28 @@ function createTypeMetaDefDtoFromDiscriminatorValue(parseNode) {
|
|
|
263
234
|
return deserializeIntoTypeMetaDefDto;
|
|
264
235
|
}
|
|
265
236
|
/**
|
|
266
|
-
*
|
|
267
|
-
* @
|
|
268
|
-
* @returns {ValidatedFieldMappingDto}
|
|
269
|
-
*/
|
|
270
|
-
// @ts-ignore
|
|
271
|
-
function createValidatedFieldMappingDtoFromDiscriminatorValue(parseNode) {
|
|
272
|
-
return deserializeIntoValidatedFieldMappingDto;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
276
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
277
|
-
* @returns {ValidatedProfileDto}
|
|
237
|
+
* The deserialization information for the current model
|
|
238
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
278
239
|
*/
|
|
279
240
|
// @ts-ignore
|
|
280
|
-
function
|
|
281
|
-
return
|
|
241
|
+
function deserializeIntoFieldAttributesDto(fieldAttributesDto = {}) {
|
|
242
|
+
return {
|
|
243
|
+
"isExtendable": n => { fieldAttributesDto.isExtendable = n.getBooleanValue(); },
|
|
244
|
+
"roleId": n => { fieldAttributesDto.roleId = n.getStringValue(); },
|
|
245
|
+
};
|
|
282
246
|
}
|
|
283
247
|
/**
|
|
284
|
-
*
|
|
285
|
-
* @
|
|
286
|
-
* @returns {ValidatedTypeMappingDto}
|
|
248
|
+
* The deserialization information for the current model
|
|
249
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
287
250
|
*/
|
|
288
251
|
// @ts-ignore
|
|
289
|
-
function
|
|
290
|
-
return
|
|
252
|
+
function deserializeIntoFieldDefDto(fieldDefDto = {}) {
|
|
253
|
+
return {
|
|
254
|
+
"id": n => { fieldDefDto.id = n.getStringValue(); },
|
|
255
|
+
"meta": n => { fieldDefDto.meta = n.getObjectValue(createFieldMetaDtoFromDiscriminatorValue); },
|
|
256
|
+
"name": n => { fieldDefDto.name = n.getStringValue(); },
|
|
257
|
+
"path": n => { fieldDefDto.path = n.getStringValue(); },
|
|
258
|
+
};
|
|
291
259
|
}
|
|
292
260
|
/**
|
|
293
261
|
* The deserialization information for the current model
|
|
@@ -297,9 +265,11 @@ function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode) {
|
|
|
297
265
|
function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
|
|
298
266
|
return {
|
|
299
267
|
"id": n => { fieldMappingDto.id = n.getStringValue(); },
|
|
300
|
-
"source": n => { fieldMappingDto.source = n.getObjectValue(
|
|
301
|
-
"
|
|
302
|
-
"
|
|
268
|
+
"source": n => { fieldMappingDto.source = n.getObjectValue(createFieldDefDtoFromDiscriminatorValue); },
|
|
269
|
+
"sourceRel": n => { fieldMappingDto.sourceRel = n.getObjectValue(createRelationDtoFromDiscriminatorValue); },
|
|
270
|
+
"target": n => { fieldMappingDto.target = n.getObjectValue(createFieldDefDtoFromDiscriminatorValue); },
|
|
271
|
+
"targetRel": n => { fieldMappingDto.targetRel = n.getObjectValue(createRelationDtoFromDiscriminatorValue); },
|
|
272
|
+
"type": n => { fieldMappingDto.type = n.getNumberValue(); },
|
|
303
273
|
};
|
|
304
274
|
}
|
|
305
275
|
/**
|
|
@@ -307,10 +277,16 @@ function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
|
|
|
307
277
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
308
278
|
*/
|
|
309
279
|
// @ts-ignore
|
|
310
|
-
function
|
|
280
|
+
function deserializeIntoFieldMetaDto(fieldMetaDto = {}) {
|
|
311
281
|
return {
|
|
312
|
-
"
|
|
313
|
-
"
|
|
282
|
+
"attributes": n => { fieldMetaDto.attributes = n.getObjectValue(createFieldAttributesDtoFromDiscriminatorValue); },
|
|
283
|
+
"isReadonly": n => { fieldMetaDto.isReadonly = n.getBooleanValue(); },
|
|
284
|
+
"kind": n => { fieldMetaDto.kind = n.getNumberValue(); },
|
|
285
|
+
"multiple": n => { fieldMetaDto.multiple = n.getBooleanValue(); },
|
|
286
|
+
"options": n => { fieldMetaDto.options = n.getObjectValue(kiota_abstractions_1.createUntypedNodeFromDiscriminatorValue); },
|
|
287
|
+
"required": n => { fieldMetaDto.required = n.getBooleanValue(); },
|
|
288
|
+
"roundsDate": n => { fieldMetaDto.roundsDate = n.getBooleanValue(); },
|
|
289
|
+
"type": n => { fieldMetaDto.type = n.getObjectValue(createTypeDefRefDtoFromDiscriminatorValue); },
|
|
314
290
|
};
|
|
315
291
|
}
|
|
316
292
|
/**
|
|
@@ -318,10 +294,9 @@ function deserializeIntoGetEntityTypesDto(getEntityTypesDto = {}) {
|
|
|
318
294
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
319
295
|
*/
|
|
320
296
|
// @ts-ignore
|
|
321
|
-
function
|
|
297
|
+
function deserializeIntoGetEntityTypesDto(getEntityTypesDto = {}) {
|
|
322
298
|
return {
|
|
323
|
-
|
|
324
|
-
"errors": n => { httpValidationProblemDetails.errors = n.getObjectValue(createHttpValidationProblemDetails_errorsFromDiscriminatorValue); },
|
|
299
|
+
"types": n => { getEntityTypesDto.types = n.getCollectionOfObjectValues(createTypeMetaDefDtoFromDiscriminatorValue); },
|
|
325
300
|
};
|
|
326
301
|
}
|
|
327
302
|
/**
|
|
@@ -329,19 +304,20 @@ function deserializeIntoHttpValidationProblemDetails(httpValidationProblemDetail
|
|
|
329
304
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
330
305
|
*/
|
|
331
306
|
// @ts-ignore
|
|
332
|
-
function
|
|
333
|
-
return {
|
|
307
|
+
function deserializeIntoGetProfileSettingsDto(getProfileSettingsDto = {}) {
|
|
308
|
+
return {
|
|
309
|
+
"profile": n => { getProfileSettingsDto.profile = n.getObjectValue(createProfileDtoFromDiscriminatorValue); },
|
|
310
|
+
};
|
|
334
311
|
}
|
|
335
312
|
/**
|
|
336
313
|
* The deserialization information for the current model
|
|
337
314
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
338
315
|
*/
|
|
339
316
|
// @ts-ignore
|
|
340
|
-
function
|
|
317
|
+
function deserializeIntoHttpValidationProblemDetails(httpValidationProblemDetails = {}) {
|
|
341
318
|
return {
|
|
342
|
-
|
|
343
|
-
"
|
|
344
|
-
"refType": n => { iFieldDef.refType = n.getStringValue(); },
|
|
319
|
+
...deserializeIntoProblemDetails(httpValidationProblemDetails),
|
|
320
|
+
"errors": n => { httpValidationProblemDetails.errors = n.getObjectValue(createHttpValidationProblemDetails_errorsFromDiscriminatorValue); },
|
|
345
321
|
};
|
|
346
322
|
}
|
|
347
323
|
/**
|
|
@@ -349,10 +325,8 @@ function deserializeIntoIFieldDef(iFieldDef = {}) {
|
|
|
349
325
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
350
326
|
*/
|
|
351
327
|
// @ts-ignore
|
|
352
|
-
function
|
|
353
|
-
return {
|
|
354
|
-
"message": n => { mappingErrorDto.message = n.getStringValue(); },
|
|
355
|
-
};
|
|
328
|
+
function deserializeIntoHttpValidationProblemDetails_errors(httpValidationProblemDetails_errors = {}) {
|
|
329
|
+
return {};
|
|
356
330
|
}
|
|
357
331
|
/**
|
|
358
332
|
* The deserialization information for the current model
|
|
@@ -375,19 +349,10 @@ function deserializeIntoProblemDetails(problemDetails = {}) {
|
|
|
375
349
|
// @ts-ignore
|
|
376
350
|
function deserializeIntoProfileDto(profileDto = {}) {
|
|
377
351
|
return {
|
|
378
|
-
|
|
379
|
-
"
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* The deserialization information for the current model
|
|
384
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
385
|
-
*/
|
|
386
|
-
// @ts-ignore
|
|
387
|
-
function deserializeIntoProfileIdDto(profileIdDto = {}) {
|
|
388
|
-
return {
|
|
389
|
-
"id": n => { profileIdDto.id = n.getStringValue(); },
|
|
390
|
-
"name": n => { profileIdDto.name = n.getStringValue(); },
|
|
352
|
+
"account": n => { profileDto.account = n.getStringValue(); },
|
|
353
|
+
"enabled": n => { profileDto.enabled = n.getBooleanValue(); },
|
|
354
|
+
"id": n => { profileDto.id = n.getStringValue(); },
|
|
355
|
+
"mappings": n => { profileDto.mappings = n.getCollectionOfObjectValues(createProfileMappingDtoFromDiscriminatorValue); },
|
|
391
356
|
};
|
|
392
357
|
}
|
|
393
358
|
/**
|
|
@@ -395,10 +360,12 @@ function deserializeIntoProfileIdDto(profileIdDto = {}) {
|
|
|
395
360
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
396
361
|
*/
|
|
397
362
|
// @ts-ignore
|
|
398
|
-
function
|
|
363
|
+
function deserializeIntoProfileMappingDto(profileMappingDto = {}) {
|
|
399
364
|
return {
|
|
400
|
-
"
|
|
401
|
-
"
|
|
365
|
+
"enabled": n => { profileMappingDto.enabled = n.getBooleanValue(); },
|
|
366
|
+
"id": n => { profileMappingDto.id = n.getStringValue(); },
|
|
367
|
+
"name": n => { profileMappingDto.name = n.getStringValue(); },
|
|
368
|
+
"typeMappings": n => { profileMappingDto.typeMappings = n.getCollectionOfObjectValues(createTypeMappingDtoFromDiscriminatorValue); },
|
|
402
369
|
};
|
|
403
370
|
}
|
|
404
371
|
/**
|
|
@@ -406,10 +373,10 @@ function deserializeIntoSdmMappingFieldDefDto(sdmMappingFieldDefDto = {}) {
|
|
|
406
373
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
407
374
|
*/
|
|
408
375
|
// @ts-ignore
|
|
409
|
-
function
|
|
376
|
+
function deserializeIntoRelationDefRefDto(relationDefRefDto = {}) {
|
|
410
377
|
return {
|
|
411
|
-
"
|
|
412
|
-
"
|
|
378
|
+
"direction": n => { relationDefRefDto.direction = n.getNumberValue(); },
|
|
379
|
+
"id": n => { relationDefRefDto.id = n.getStringValue(); },
|
|
413
380
|
};
|
|
414
381
|
}
|
|
415
382
|
/**
|
|
@@ -417,9 +384,11 @@ function deserializeIntoSdmTypeDefDto(sdmTypeDefDto = {}) {
|
|
|
417
384
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
418
385
|
*/
|
|
419
386
|
// @ts-ignore
|
|
420
|
-
function
|
|
387
|
+
function deserializeIntoRelationDto(relationDto = {}) {
|
|
421
388
|
return {
|
|
422
|
-
"
|
|
389
|
+
"childType": n => { relationDto.childType = n.getObjectValue(createTypeDefRefDtoFromDiscriminatorValue); },
|
|
390
|
+
"field": n => { relationDto.field = n.getObjectValue(createFieldDefDtoFromDiscriminatorValue); },
|
|
391
|
+
"relation": n => { relationDto.relation = n.getObjectValue(createRelationDefRefDtoFromDiscriminatorValue); },
|
|
423
392
|
};
|
|
424
393
|
}
|
|
425
394
|
/**
|
|
@@ -449,13 +418,12 @@ function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedDataCrea
|
|
|
449
418
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
450
419
|
*/
|
|
451
420
|
// @ts-ignore
|
|
452
|
-
function
|
|
421
|
+
function deserializeIntoTypeDefDto(typeDefDto = {}) {
|
|
453
422
|
return {
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"take": n => { testTypeMappingDto.take = n.getNumberValue(); },
|
|
423
|
+
"id": n => { typeDefDto.id = n.getStringValue(); },
|
|
424
|
+
"javaScriptComparator": n => { typeDefDto.javaScriptComparator = n.getStringValue(); },
|
|
425
|
+
"kind": n => { typeDefDto.kind = n.getNumberValue(); },
|
|
426
|
+
"name": n => { typeDefDto.name = n.getStringValue(); },
|
|
459
427
|
};
|
|
460
428
|
}
|
|
461
429
|
/**
|
|
@@ -463,21 +431,10 @@ function deserializeIntoTestTypeMappingDto(testTypeMappingDto = {}) {
|
|
|
463
431
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
464
432
|
*/
|
|
465
433
|
// @ts-ignore
|
|
466
|
-
function
|
|
434
|
+
function deserializeIntoTypeDefRefDto(typeDefRefDto = {}) {
|
|
467
435
|
return {
|
|
468
|
-
"
|
|
469
|
-
"kind": n => {
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* The deserialization information for the current model
|
|
474
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
475
|
-
*/
|
|
476
|
-
// @ts-ignore
|
|
477
|
-
function deserializeIntoTpTypeDefDto(tpTypeDefDto = {}) {
|
|
478
|
-
return {
|
|
479
|
-
"id": n => { tpTypeDefDto.id = n.getStringValue(); },
|
|
480
|
-
"name": n => { tpTypeDefDto.name = n.getStringValue(); },
|
|
436
|
+
"id": n => { typeDefRefDto.id = n.getStringValue(); },
|
|
437
|
+
"kind": n => { typeDefRefDto.kind = n.getNumberValue(); },
|
|
481
438
|
};
|
|
482
439
|
}
|
|
483
440
|
/**
|
|
@@ -489,9 +446,8 @@ function deserializeIntoTypeMappingDto(typeMappingDto = {}) {
|
|
|
489
446
|
return {
|
|
490
447
|
"fieldMappings": n => { typeMappingDto.fieldMappings = n.getCollectionOfObjectValues(createFieldMappingDtoFromDiscriminatorValue); },
|
|
491
448
|
"id": n => { typeMappingDto.id = n.getStringValue(); },
|
|
492
|
-
"sourceType": n => { typeMappingDto.sourceType = n.getObjectValue(
|
|
493
|
-
"targetType": n => { typeMappingDto.targetType = n.getObjectValue(
|
|
494
|
-
"$type": n => { typeMappingDto.type = n.getStringValue(); },
|
|
449
|
+
"sourceType": n => { typeMappingDto.sourceType = n.getObjectValue(createTypeDefDtoFromDiscriminatorValue); },
|
|
450
|
+
"targetType": n => { typeMappingDto.targetType = n.getObjectValue(createTypeDefDtoFromDiscriminatorValue); },
|
|
495
451
|
};
|
|
496
452
|
}
|
|
497
453
|
/**
|
|
@@ -501,46 +457,35 @@ function deserializeIntoTypeMappingDto(typeMappingDto = {}) {
|
|
|
501
457
|
// @ts-ignore
|
|
502
458
|
function deserializeIntoTypeMetaDefDto(typeMetaDefDto = {}) {
|
|
503
459
|
return {
|
|
504
|
-
"fields": n => { typeMetaDefDto.fields = n.getCollectionOfObjectValues(
|
|
460
|
+
"fields": n => { typeMetaDefDto.fields = n.getCollectionOfObjectValues(createFieldDefDtoFromDiscriminatorValue); },
|
|
505
461
|
"id": n => { typeMetaDefDto.id = n.getStringValue(); },
|
|
462
|
+
"kind": n => { typeMetaDefDto.kind = n.getStringValue(); },
|
|
506
463
|
"name": n => { typeMetaDefDto.name = n.getStringValue(); },
|
|
507
464
|
};
|
|
508
465
|
}
|
|
509
466
|
/**
|
|
510
|
-
*
|
|
511
|
-
* @
|
|
512
|
-
*/
|
|
513
|
-
// @ts-ignore
|
|
514
|
-
function deserializeIntoValidatedFieldMappingDto(validatedFieldMappingDto = {}) {
|
|
515
|
-
return {
|
|
516
|
-
...deserializeIntoFieldMappingDto(validatedFieldMappingDto),
|
|
517
|
-
"errors": n => { validatedFieldMappingDto.errors = n.getCollectionOfObjectValues(createMappingErrorDtoFromDiscriminatorValue); },
|
|
518
|
-
"isValid": n => { validatedFieldMappingDto.isValid = n.getBooleanValue(); },
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
/**
|
|
522
|
-
* The deserialization information for the current model
|
|
523
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
467
|
+
* Serializes information the current object
|
|
468
|
+
* @param writer Serialization writer to use to serialize this model
|
|
524
469
|
*/
|
|
525
470
|
// @ts-ignore
|
|
526
|
-
function
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
"
|
|
530
|
-
|
|
531
|
-
};
|
|
471
|
+
function serializeFieldAttributesDto(writer, fieldAttributesDto = {}) {
|
|
472
|
+
if (fieldAttributesDto) {
|
|
473
|
+
writer.writeBooleanValue("isExtendable", fieldAttributesDto.isExtendable);
|
|
474
|
+
writer.writeStringValue("roleId", fieldAttributesDto.roleId);
|
|
475
|
+
}
|
|
532
476
|
}
|
|
533
477
|
/**
|
|
534
|
-
*
|
|
535
|
-
* @
|
|
478
|
+
* Serializes information the current object
|
|
479
|
+
* @param writer Serialization writer to use to serialize this model
|
|
536
480
|
*/
|
|
537
481
|
// @ts-ignore
|
|
538
|
-
function
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
|
|
482
|
+
function serializeFieldDefDto(writer, fieldDefDto = {}) {
|
|
483
|
+
if (fieldDefDto) {
|
|
484
|
+
writer.writeStringValue("id", fieldDefDto.id);
|
|
485
|
+
writer.writeObjectValue("meta", fieldDefDto.meta, serializeFieldMetaDto);
|
|
486
|
+
writer.writeStringValue("name", fieldDefDto.name);
|
|
487
|
+
writer.writeStringValue("path", fieldDefDto.path);
|
|
488
|
+
}
|
|
544
489
|
}
|
|
545
490
|
/**
|
|
546
491
|
* Serializes information the current object
|
|
@@ -550,9 +495,11 @@ function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto = {}) {
|
|
|
550
495
|
function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
|
|
551
496
|
if (fieldMappingDto) {
|
|
552
497
|
writer.writeStringValue("id", fieldMappingDto.id);
|
|
553
|
-
writer.writeObjectValue("source", fieldMappingDto.source,
|
|
554
|
-
writer.writeObjectValue("
|
|
555
|
-
writer.
|
|
498
|
+
writer.writeObjectValue("source", fieldMappingDto.source, serializeFieldDefDto);
|
|
499
|
+
writer.writeObjectValue("sourceRel", fieldMappingDto.sourceRel, serializeRelationDto);
|
|
500
|
+
writer.writeObjectValue("target", fieldMappingDto.target, serializeFieldDefDto);
|
|
501
|
+
writer.writeObjectValue("targetRel", fieldMappingDto.targetRel, serializeRelationDto);
|
|
502
|
+
writer.writeNumberValue("type", fieldMappingDto.type);
|
|
556
503
|
}
|
|
557
504
|
}
|
|
558
505
|
/**
|
|
@@ -560,10 +507,16 @@ function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
|
|
|
560
507
|
* @param writer Serialization writer to use to serialize this model
|
|
561
508
|
*/
|
|
562
509
|
// @ts-ignore
|
|
563
|
-
function
|
|
564
|
-
if (
|
|
565
|
-
writer.
|
|
566
|
-
writer.
|
|
510
|
+
function serializeFieldMetaDto(writer, fieldMetaDto = {}) {
|
|
511
|
+
if (fieldMetaDto) {
|
|
512
|
+
writer.writeObjectValue("attributes", fieldMetaDto.attributes, serializeFieldAttributesDto);
|
|
513
|
+
writer.writeBooleanValue("isReadonly", fieldMetaDto.isReadonly);
|
|
514
|
+
writer.writeNumberValue("kind", fieldMetaDto.kind);
|
|
515
|
+
writer.writeBooleanValue("multiple", fieldMetaDto.multiple);
|
|
516
|
+
writer.writeObjectValue("options", fieldMetaDto.options);
|
|
517
|
+
writer.writeBooleanValue("required", fieldMetaDto.required);
|
|
518
|
+
writer.writeBooleanValue("roundsDate", fieldMetaDto.roundsDate);
|
|
519
|
+
writer.writeObjectValue("type", fieldMetaDto.type, serializeTypeDefRefDto);
|
|
567
520
|
}
|
|
568
521
|
}
|
|
569
522
|
/**
|
|
@@ -571,10 +524,9 @@ function serializeGetEntityTypesDto(writer, getEntityTypesDto = {}) {
|
|
|
571
524
|
* @param writer Serialization writer to use to serialize this model
|
|
572
525
|
*/
|
|
573
526
|
// @ts-ignore
|
|
574
|
-
function
|
|
575
|
-
if (
|
|
576
|
-
|
|
577
|
-
writer.writeObjectValue("errors", httpValidationProblemDetails.errors, serializeHttpValidationProblemDetails_errors);
|
|
527
|
+
function serializeGetEntityTypesDto(writer, getEntityTypesDto = {}) {
|
|
528
|
+
if (getEntityTypesDto) {
|
|
529
|
+
writer.writeCollectionOfObjectValues("types", getEntityTypesDto.types, serializeTypeMetaDefDto);
|
|
578
530
|
}
|
|
579
531
|
}
|
|
580
532
|
/**
|
|
@@ -582,9 +534,9 @@ function serializeHttpValidationProblemDetails(writer, httpValidationProblemDeta
|
|
|
582
534
|
* @param writer Serialization writer to use to serialize this model
|
|
583
535
|
*/
|
|
584
536
|
// @ts-ignore
|
|
585
|
-
function
|
|
586
|
-
if (
|
|
587
|
-
writer.
|
|
537
|
+
function serializeGetProfileSettingsDto(writer, getProfileSettingsDto = {}) {
|
|
538
|
+
if (getProfileSettingsDto) {
|
|
539
|
+
writer.writeObjectValue("profile", getProfileSettingsDto.profile, serializeProfileDto);
|
|
588
540
|
}
|
|
589
541
|
}
|
|
590
542
|
/**
|
|
@@ -592,11 +544,10 @@ function serializeHttpValidationProblemDetails_errors(writer, httpValidationProb
|
|
|
592
544
|
* @param writer Serialization writer to use to serialize this model
|
|
593
545
|
*/
|
|
594
546
|
// @ts-ignore
|
|
595
|
-
function
|
|
596
|
-
if (
|
|
597
|
-
writer
|
|
598
|
-
writer.
|
|
599
|
-
writer.writeStringValue("refType", iFieldDef.refType);
|
|
547
|
+
function serializeHttpValidationProblemDetails(writer, httpValidationProblemDetails = {}) {
|
|
548
|
+
if (httpValidationProblemDetails) {
|
|
549
|
+
serializeProblemDetails(writer, httpValidationProblemDetails);
|
|
550
|
+
writer.writeObjectValue("errors", httpValidationProblemDetails.errors, serializeHttpValidationProblemDetails_errors);
|
|
600
551
|
}
|
|
601
552
|
}
|
|
602
553
|
/**
|
|
@@ -604,9 +555,9 @@ function serializeIFieldDef(writer, iFieldDef = {}) {
|
|
|
604
555
|
* @param writer Serialization writer to use to serialize this model
|
|
605
556
|
*/
|
|
606
557
|
// @ts-ignore
|
|
607
|
-
function
|
|
608
|
-
if (
|
|
609
|
-
writer.
|
|
558
|
+
function serializeHttpValidationProblemDetails_errors(writer, httpValidationProblemDetails_errors = {}) {
|
|
559
|
+
if (httpValidationProblemDetails_errors) {
|
|
560
|
+
writer.writeAdditionalData(httpValidationProblemDetails_errors.additionalData);
|
|
610
561
|
}
|
|
611
562
|
}
|
|
612
563
|
/**
|
|
@@ -631,9 +582,10 @@ function serializeProblemDetails(writer, problemDetails = {}) {
|
|
|
631
582
|
// @ts-ignore
|
|
632
583
|
function serializeProfileDto(writer, profileDto = {}) {
|
|
633
584
|
if (profileDto) {
|
|
634
|
-
|
|
635
|
-
writer.
|
|
636
|
-
writer.
|
|
585
|
+
writer.writeStringValue("account", profileDto.account);
|
|
586
|
+
writer.writeBooleanValue("enabled", profileDto.enabled);
|
|
587
|
+
writer.writeStringValue("id", profileDto.id);
|
|
588
|
+
writer.writeCollectionOfObjectValues("mappings", profileDto.mappings, serializeProfileMappingDto);
|
|
637
589
|
}
|
|
638
590
|
}
|
|
639
591
|
/**
|
|
@@ -641,10 +593,12 @@ function serializeProfileDto(writer, profileDto = {}) {
|
|
|
641
593
|
* @param writer Serialization writer to use to serialize this model
|
|
642
594
|
*/
|
|
643
595
|
// @ts-ignore
|
|
644
|
-
function
|
|
645
|
-
if (
|
|
646
|
-
writer.
|
|
647
|
-
writer.writeStringValue("
|
|
596
|
+
function serializeProfileMappingDto(writer, profileMappingDto = {}) {
|
|
597
|
+
if (profileMappingDto) {
|
|
598
|
+
writer.writeBooleanValue("enabled", profileMappingDto.enabled);
|
|
599
|
+
writer.writeStringValue("id", profileMappingDto.id);
|
|
600
|
+
writer.writeStringValue("name", profileMappingDto.name);
|
|
601
|
+
writer.writeCollectionOfObjectValues("typeMappings", profileMappingDto.typeMappings, serializeTypeMappingDto);
|
|
648
602
|
}
|
|
649
603
|
}
|
|
650
604
|
/**
|
|
@@ -652,10 +606,10 @@ function serializeProfileIdDto(writer, profileIdDto = {}) {
|
|
|
652
606
|
* @param writer Serialization writer to use to serialize this model
|
|
653
607
|
*/
|
|
654
608
|
// @ts-ignore
|
|
655
|
-
function
|
|
656
|
-
if (
|
|
657
|
-
writer.
|
|
658
|
-
writer.
|
|
609
|
+
function serializeRelationDefRefDto(writer, relationDefRefDto = {}) {
|
|
610
|
+
if (relationDefRefDto) {
|
|
611
|
+
writer.writeNumberValue("direction", relationDefRefDto.direction);
|
|
612
|
+
writer.writeStringValue("id", relationDefRefDto.id);
|
|
659
613
|
}
|
|
660
614
|
}
|
|
661
615
|
/**
|
|
@@ -663,20 +617,11 @@ function serializeSdmMappingFieldDefDto(writer, sdmMappingFieldDefDto = {}) {
|
|
|
663
617
|
* @param writer Serialization writer to use to serialize this model
|
|
664
618
|
*/
|
|
665
619
|
// @ts-ignore
|
|
666
|
-
function
|
|
667
|
-
if (
|
|
668
|
-
writer.
|
|
669
|
-
writer.
|
|
670
|
-
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* Serializes information the current object
|
|
674
|
-
* @param writer Serialization writer to use to serialize this model
|
|
675
|
-
*/
|
|
676
|
-
// @ts-ignore
|
|
677
|
-
function serializeSetCurrentProfileRequestDto(writer, setCurrentProfileRequestDto = {}) {
|
|
678
|
-
if (setCurrentProfileRequestDto) {
|
|
679
|
-
writer.writeStringValue("profileId", setCurrentProfileRequestDto.profileId);
|
|
620
|
+
function serializeRelationDto(writer, relationDto = {}) {
|
|
621
|
+
if (relationDto) {
|
|
622
|
+
writer.writeObjectValue("childType", relationDto.childType, serializeTypeDefRefDto);
|
|
623
|
+
writer.writeObjectValue("field", relationDto.field, serializeFieldDefDto);
|
|
624
|
+
writer.writeObjectValue("relation", relationDto.relation, serializeRelationDefRefDto);
|
|
680
625
|
}
|
|
681
626
|
}
|
|
682
627
|
/**
|
|
@@ -706,24 +651,12 @@ function serializeSharedDataCreateAttachmentResponseItemDto(writer, sharedDataCr
|
|
|
706
651
|
* @param writer Serialization writer to use to serialize this model
|
|
707
652
|
*/
|
|
708
653
|
// @ts-ignore
|
|
709
|
-
function
|
|
710
|
-
if (
|
|
711
|
-
writer.writeStringValue("
|
|
712
|
-
writer.
|
|
713
|
-
writer.
|
|
714
|
-
writer.
|
|
715
|
-
writer.writeNumberValue("take", testTypeMappingDto.take);
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
/**
|
|
719
|
-
* Serializes information the current object
|
|
720
|
-
* @param writer Serialization writer to use to serialize this model
|
|
721
|
-
*/
|
|
722
|
-
// @ts-ignore
|
|
723
|
-
function serializeTpMappingFieldDefDto(writer, tpMappingFieldDefDto = {}) {
|
|
724
|
-
if (tpMappingFieldDefDto) {
|
|
725
|
-
writer.writeStringValue("expression", tpMappingFieldDefDto.expression);
|
|
726
|
-
writer.writeEnumValue("kind", tpMappingFieldDefDto.kind);
|
|
654
|
+
function serializeTypeDefDto(writer, typeDefDto = {}) {
|
|
655
|
+
if (typeDefDto) {
|
|
656
|
+
writer.writeStringValue("id", typeDefDto.id);
|
|
657
|
+
writer.writeStringValue("javaScriptComparator", typeDefDto.javaScriptComparator);
|
|
658
|
+
writer.writeNumberValue("kind", typeDefDto.kind);
|
|
659
|
+
writer.writeStringValue("name", typeDefDto.name);
|
|
727
660
|
}
|
|
728
661
|
}
|
|
729
662
|
/**
|
|
@@ -731,10 +664,10 @@ function serializeTpMappingFieldDefDto(writer, tpMappingFieldDefDto = {}) {
|
|
|
731
664
|
* @param writer Serialization writer to use to serialize this model
|
|
732
665
|
*/
|
|
733
666
|
// @ts-ignore
|
|
734
|
-
function
|
|
735
|
-
if (
|
|
736
|
-
writer.writeStringValue("id",
|
|
737
|
-
writer.
|
|
667
|
+
function serializeTypeDefRefDto(writer, typeDefRefDto = {}) {
|
|
668
|
+
if (typeDefRefDto) {
|
|
669
|
+
writer.writeStringValue("id", typeDefRefDto.id);
|
|
670
|
+
writer.writeNumberValue("kind", typeDefRefDto.kind);
|
|
738
671
|
}
|
|
739
672
|
}
|
|
740
673
|
/**
|
|
@@ -746,9 +679,8 @@ function serializeTypeMappingDto(writer, typeMappingDto = {}) {
|
|
|
746
679
|
if (typeMappingDto) {
|
|
747
680
|
writer.writeCollectionOfObjectValues("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
|
|
748
681
|
writer.writeStringValue("id", typeMappingDto.id);
|
|
749
|
-
writer.writeObjectValue("sourceType", typeMappingDto.sourceType,
|
|
750
|
-
writer.writeObjectValue("targetType", typeMappingDto.targetType,
|
|
751
|
-
writer.writeStringValue("$type", typeMappingDto.type);
|
|
682
|
+
writer.writeObjectValue("sourceType", typeMappingDto.sourceType, serializeTypeDefDto);
|
|
683
|
+
writer.writeObjectValue("targetType", typeMappingDto.targetType, serializeTypeDefDto);
|
|
752
684
|
}
|
|
753
685
|
}
|
|
754
686
|
/**
|
|
@@ -758,59 +690,11 @@ function serializeTypeMappingDto(writer, typeMappingDto = {}) {
|
|
|
758
690
|
// @ts-ignore
|
|
759
691
|
function serializeTypeMetaDefDto(writer, typeMetaDefDto = {}) {
|
|
760
692
|
if (typeMetaDefDto) {
|
|
761
|
-
writer.writeCollectionOfObjectValues("fields", typeMetaDefDto.fields,
|
|
693
|
+
writer.writeCollectionOfObjectValues("fields", typeMetaDefDto.fields, serializeFieldDefDto);
|
|
762
694
|
writer.writeStringValue("id", typeMetaDefDto.id);
|
|
695
|
+
writer.writeStringValue("kind", typeMetaDefDto.kind);
|
|
763
696
|
writer.writeStringValue("name", typeMetaDefDto.name);
|
|
764
697
|
}
|
|
765
698
|
}
|
|
766
|
-
/**
|
|
767
|
-
* Serializes information the current object
|
|
768
|
-
* @param writer Serialization writer to use to serialize this model
|
|
769
|
-
*/
|
|
770
|
-
// @ts-ignore
|
|
771
|
-
function serializeValidatedFieldMappingDto(writer, validatedFieldMappingDto = {}) {
|
|
772
|
-
if (validatedFieldMappingDto) {
|
|
773
|
-
serializeFieldMappingDto(writer, validatedFieldMappingDto);
|
|
774
|
-
writer.writeCollectionOfObjectValues("errors", validatedFieldMappingDto.errors, serializeMappingErrorDto);
|
|
775
|
-
writer.writeBooleanValue("isValid", validatedFieldMappingDto.isValid);
|
|
776
|
-
writer.writeAdditionalData(validatedFieldMappingDto.additionalData);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
/**
|
|
780
|
-
* Serializes information the current object
|
|
781
|
-
* @param writer Serialization writer to use to serialize this model
|
|
782
|
-
*/
|
|
783
|
-
// @ts-ignore
|
|
784
|
-
function serializeValidatedProfileDto(writer, validatedProfileDto = {}) {
|
|
785
|
-
if (validatedProfileDto) {
|
|
786
|
-
serializeProfileIdDto(writer, validatedProfileDto);
|
|
787
|
-
writer.writeBooleanValue("isValid", validatedProfileDto.isValid);
|
|
788
|
-
writer.writeCollectionOfObjectValues("typeMappings", validatedProfileDto.typeMappings, serializeValidatedTypeMappingDto);
|
|
789
|
-
writer.writeAdditionalData(validatedProfileDto.additionalData);
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
/**
|
|
793
|
-
* Serializes information the current object
|
|
794
|
-
* @param writer Serialization writer to use to serialize this model
|
|
795
|
-
*/
|
|
796
|
-
// @ts-ignore
|
|
797
|
-
function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {}) {
|
|
798
|
-
if (validatedTypeMappingDto) {
|
|
799
|
-
serializeTypeMappingDto(writer, validatedTypeMappingDto);
|
|
800
|
-
writer.writeCollectionOfObjectValues("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
|
|
801
|
-
writer.writeBooleanValue("isValid", validatedTypeMappingDto.isValid);
|
|
802
|
-
writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
exports.FieldKindObject = {
|
|
806
|
-
Simple: "Simple",
|
|
807
|
-
Ref: "Ref",
|
|
808
|
-
Collection: "Collection",
|
|
809
|
-
};
|
|
810
|
-
exports.MappingKindObject = {
|
|
811
|
-
Property: "Property",
|
|
812
|
-
PropertyChain: "PropertyChain",
|
|
813
|
-
FreeExpression: "FreeExpression",
|
|
814
|
-
};
|
|
815
699
|
/* tslint:enable */
|
|
816
700
|
/* eslint-enable */
|