@targetprocess/shared-data-model-client 0.5.0 → 0.6.0-us817837-mapping.6

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.
@@ -2,26 +2,8 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createUntypedNodeFromDiscriminatorValue, type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
5
+ import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
6
6
 
7
- /**
8
- * Creates a new instance of the appropriate class based on discriminator value
9
- * @param parseNode The parse node to use to read the discriminator value and create the object
10
- * @returns {FieldAttributesDto}
11
- */
12
- // @ts-ignore
13
- export function createFieldAttributesDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
14
- return deserializeIntoFieldAttributesDto;
15
- }
16
- /**
17
- * Creates a new instance of the appropriate class based on discriminator value
18
- * @param parseNode The parse node to use to read the discriminator value and create the object
19
- * @returns {FieldDefDto}
20
- */
21
- // @ts-ignore
22
- export function createFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
23
- return deserializeIntoFieldDefDto;
24
- }
25
7
  /**
26
8
  * Creates a new instance of the appropriate class based on discriminator value
27
9
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -29,17 +11,19 @@ export function createFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | u
29
11
  */
30
12
  // @ts-ignore
31
13
  export function createFieldMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
14
+ if(!parseNode) throw new Error("parseNode cannot be undefined");
15
+ const mappingValueNode = parseNode?.getChildNode("$type");
16
+ if (mappingValueNode) {
17
+ const mappingValue = mappingValueNode.getStringValue();
18
+ if (mappingValue) {
19
+ switch (mappingValue) {
20
+ case "ValidatedFieldMappingDto":
21
+ return deserializeIntoValidatedFieldMappingDto;
22
+ }
23
+ }
24
+ }
32
25
  return deserializeIntoFieldMappingDto;
33
26
  }
34
- /**
35
- * Creates a new instance of the appropriate class based on discriminator value
36
- * @param parseNode The parse node to use to read the discriminator value and create the object
37
- * @returns {FieldMetaDto}
38
- */
39
- // @ts-ignore
40
- export function createFieldMetaDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
41
- return deserializeIntoFieldMetaDto;
42
- }
43
27
  /**
44
28
  * Creates a new instance of the appropriate class based on discriminator value
45
29
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -76,6 +60,24 @@ export function createHttpValidationProblemDetails_errorsFromDiscriminatorValue(
76
60
  export function createHttpValidationProblemDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
77
61
  return deserializeIntoHttpValidationProblemDetails;
78
62
  }
63
+ /**
64
+ * Creates a new instance of the appropriate class based on discriminator value
65
+ * @param parseNode The parse node to use to read the discriminator value and create the object
66
+ * @returns {IFieldDef}
67
+ */
68
+ // @ts-ignore
69
+ export function createIFieldDefFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
70
+ return deserializeIntoIFieldDef;
71
+ }
72
+ /**
73
+ * Creates a new instance of the appropriate class based on discriminator value
74
+ * @param parseNode The parse node to use to read the discriminator value and create the object
75
+ * @returns {MappingErrorDto}
76
+ */
77
+ // @ts-ignore
78
+ export function createMappingErrorDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
79
+ return deserializeIntoMappingErrorDto;
80
+ }
79
81
  /**
80
82
  * Creates a new instance of the appropriate class based on discriminator value
81
83
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -92,34 +94,45 @@ export function createProblemDetailsFromDiscriminatorValue(parseNode: ParseNode
92
94
  */
93
95
  // @ts-ignore
94
96
  export function createProfileDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
97
+ if(!parseNode) throw new Error("parseNode cannot be undefined");
98
+ const mappingValueNode = parseNode?.getChildNode("$type");
99
+ if (mappingValueNode) {
100
+ const mappingValue = mappingValueNode.getStringValue();
101
+ if (mappingValue) {
102
+ switch (mappingValue) {
103
+ case "ValidatedProfileDto":
104
+ return deserializeIntoValidatedProfileDto;
105
+ }
106
+ }
107
+ }
95
108
  return deserializeIntoProfileDto;
96
109
  }
97
110
  /**
98
111
  * Creates a new instance of the appropriate class based on discriminator value
99
112
  * @param parseNode The parse node to use to read the discriminator value and create the object
100
- * @returns {ProfileMappingDto}
113
+ * @returns {ProfileIdDto}
101
114
  */
102
115
  // @ts-ignore
103
- export function createProfileMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
104
- return deserializeIntoProfileMappingDto;
116
+ export function createProfileIdDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
117
+ return deserializeIntoProfileIdDto;
105
118
  }
106
119
  /**
107
120
  * Creates a new instance of the appropriate class based on discriminator value
108
121
  * @param parseNode The parse node to use to read the discriminator value and create the object
109
- * @returns {RelationDefRefDto}
122
+ * @returns {SdmMappingFieldDefDto}
110
123
  */
111
124
  // @ts-ignore
112
- export function createRelationDefRefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
113
- return deserializeIntoRelationDefRefDto;
125
+ export function createSdmMappingFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
126
+ return deserializeIntoSdmMappingFieldDefDto;
114
127
  }
115
128
  /**
116
129
  * Creates a new instance of the appropriate class based on discriminator value
117
130
  * @param parseNode The parse node to use to read the discriminator value and create the object
118
- * @returns {RelationDto}
131
+ * @returns {SdmTypeDefDto}
119
132
  */
120
133
  // @ts-ignore
121
- export function createRelationDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
122
- return deserializeIntoRelationDto;
134
+ export function createSdmTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
135
+ return deserializeIntoSdmTypeDefDto;
123
136
  }
124
137
  /**
125
138
  * Creates a new instance of the appropriate class based on discriminator value
@@ -142,20 +155,20 @@ export function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminator
142
155
  /**
143
156
  * Creates a new instance of the appropriate class based on discriminator value
144
157
  * @param parseNode The parse node to use to read the discriminator value and create the object
145
- * @returns {TypeDefDto}
158
+ * @returns {TpMappingFieldDefDto}
146
159
  */
147
160
  // @ts-ignore
148
- export function createTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
149
- return deserializeIntoTypeDefDto;
161
+ export function createTpMappingFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
162
+ return deserializeIntoTpMappingFieldDefDto;
150
163
  }
151
164
  /**
152
165
  * Creates a new instance of the appropriate class based on discriminator value
153
166
  * @param parseNode The parse node to use to read the discriminator value and create the object
154
- * @returns {TypeDefRefDto}
167
+ * @returns {TpTypeDefDto}
155
168
  */
156
169
  // @ts-ignore
157
- export function createTypeDefRefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
158
- return deserializeIntoTypeDefRefDto;
170
+ export function createTpTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
171
+ return deserializeIntoTpTypeDefDto;
159
172
  }
160
173
  /**
161
174
  * Creates a new instance of the appropriate class based on discriminator value
@@ -164,6 +177,17 @@ export function createTypeDefRefDtoFromDiscriminatorValue(parseNode: ParseNode |
164
177
  */
165
178
  // @ts-ignore
166
179
  export function createTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
180
+ if(!parseNode) throw new Error("parseNode cannot be undefined");
181
+ const mappingValueNode = parseNode?.getChildNode("$type");
182
+ if (mappingValueNode) {
183
+ const mappingValue = mappingValueNode.getStringValue();
184
+ if (mappingValue) {
185
+ switch (mappingValue) {
186
+ case "ValidatedTypeMappingDto":
187
+ return deserializeIntoValidatedTypeMappingDto;
188
+ }
189
+ }
190
+ }
167
191
  return deserializeIntoTypeMappingDto;
168
192
  }
169
193
  /**
@@ -176,27 +200,43 @@ export function createTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode
176
200
  return deserializeIntoTypeMetaDefDto;
177
201
  }
178
202
  /**
179
- * The deserialization information for the current model
180
- * @returns {Record<string, (node: ParseNode) => void>}
203
+ * Creates a new instance of the appropriate class based on discriminator value
204
+ * @param parseNode The parse node to use to read the discriminator value and create the object
205
+ * @returns {ValidatedFieldMappingDto}
181
206
  */
182
207
  // @ts-ignore
183
- export function deserializeIntoFieldAttributesDto(fieldAttributesDto: Partial<FieldAttributesDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
184
- return {
185
- "isExtendable": n => { fieldAttributesDto.isExtendable = n.getBooleanValue(); },
186
- "roleId": n => { fieldAttributesDto.roleId = n.getStringValue(); },
187
- }
208
+ export function createValidatedFieldMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
209
+ return deserializeIntoValidatedFieldMappingDto;
210
+ }
211
+ /**
212
+ * Creates a new instance of the appropriate class based on discriminator value
213
+ * @param parseNode The parse node to use to read the discriminator value and create the object
214
+ * @returns {ValidatedProfileDto}
215
+ */
216
+ // @ts-ignore
217
+ export function createValidatedProfileDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
218
+ return deserializeIntoValidatedProfileDto;
219
+ }
220
+ /**
221
+ * Creates a new instance of the appropriate class based on discriminator value
222
+ * @param parseNode The parse node to use to read the discriminator value and create the object
223
+ * @returns {ValidatedTypeMappingDto}
224
+ */
225
+ // @ts-ignore
226
+ export function createValidatedTypeMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
227
+ return deserializeIntoValidatedTypeMappingDto;
188
228
  }
189
229
  /**
190
230
  * The deserialization information for the current model
191
231
  * @returns {Record<string, (node: ParseNode) => void>}
192
232
  */
193
233
  // @ts-ignore
194
- export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
234
+ export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
195
235
  return {
196
- "id": n => { fieldDefDto.id = n.getStringValue(); },
197
- "meta": n => { fieldDefDto.meta = n.getObjectValue<FieldMetaDto>(createFieldMetaDtoFromDiscriminatorValue); },
198
- "name": n => { fieldDefDto.name = n.getStringValue(); },
199
- "path": n => { fieldDefDto.path = n.getStringValue(); },
236
+ "id": n => { fieldMappingDto.id = n.getStringValue(); },
237
+ "source": n => { fieldMappingDto.source = n.getObjectValue<TpMappingFieldDefDto>(createTpMappingFieldDefDtoFromDiscriminatorValue); },
238
+ "target": n => { fieldMappingDto.target = n.getObjectValue<SdmMappingFieldDefDto>(createSdmMappingFieldDefDtoFromDiscriminatorValue); },
239
+ "$type": n => { fieldMappingDto.type = n.getStringValue(); },
200
240
  }
201
241
  }
202
242
  /**
@@ -204,14 +244,10 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
204
244
  * @returns {Record<string, (node: ParseNode) => void>}
205
245
  */
206
246
  // @ts-ignore
207
- export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
247
+ export function deserializeIntoGetEntityTypesDto(getEntityTypesDto: Partial<GetEntityTypesDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
208
248
  return {
209
- "id": n => { fieldMappingDto.id = n.getStringValue(); },
210
- "source": n => { fieldMappingDto.source = n.getObjectValue<FieldDefDto>(createFieldDefDtoFromDiscriminatorValue); },
211
- "sourceRel": n => { fieldMappingDto.sourceRel = n.getObjectValue<RelationDto>(createRelationDtoFromDiscriminatorValue); },
212
- "target": n => { fieldMappingDto.target = n.getObjectValue<FieldDefDto>(createFieldDefDtoFromDiscriminatorValue); },
213
- "targetRel": n => { fieldMappingDto.targetRel = n.getObjectValue<RelationDto>(createRelationDtoFromDiscriminatorValue); },
214
- "type": n => { fieldMappingDto.type = n.getNumberValue(); },
249
+ "sdmTypes": n => { getEntityTypesDto.sdmTypes = n.getCollectionOfObjectValues<TypeMetaDefDto>(createTypeMetaDefDtoFromDiscriminatorValue); },
250
+ "tpTypes": n => { getEntityTypesDto.tpTypes = n.getCollectionOfObjectValues<TypeMetaDefDto>(createTypeMetaDefDtoFromDiscriminatorValue); },
215
251
  }
216
252
  }
217
253
  /**
@@ -219,16 +255,9 @@ export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMap
219
255
  * @returns {Record<string, (node: ParseNode) => void>}
220
256
  */
221
257
  // @ts-ignore
222
- export function deserializeIntoFieldMetaDto(fieldMetaDto: Partial<FieldMetaDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
258
+ export function deserializeIntoGetProfileSettingsDto(getProfileSettingsDto: Partial<GetProfileSettingsDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
223
259
  return {
224
- "attributes": n => { fieldMetaDto.attributes = n.getObjectValue<FieldAttributesDto>(createFieldAttributesDtoFromDiscriminatorValue); },
225
- "isReadonly": n => { fieldMetaDto.isReadonly = n.getBooleanValue(); },
226
- "kind": n => { fieldMetaDto.kind = n.getNumberValue(); },
227
- "multiple": n => { fieldMetaDto.multiple = n.getBooleanValue(); },
228
- "options": n => { fieldMetaDto.options = n.getObjectValue<UntypedNode>(createUntypedNodeFromDiscriminatorValue); },
229
- "required": n => { fieldMetaDto.required = n.getBooleanValue(); },
230
- "roundsDate": n => { fieldMetaDto.roundsDate = n.getBooleanValue(); },
231
- "type": n => { fieldMetaDto.type = n.getObjectValue<TypeDefRefDto>(createTypeDefRefDtoFromDiscriminatorValue); },
260
+ "profile": n => { getProfileSettingsDto.profile = n.getObjectValue<ProfileDto>(createProfileDtoFromDiscriminatorValue); },
232
261
  }
233
262
  }
234
263
  /**
@@ -236,9 +265,10 @@ export function deserializeIntoFieldMetaDto(fieldMetaDto: Partial<FieldMetaDto>
236
265
  * @returns {Record<string, (node: ParseNode) => void>}
237
266
  */
238
267
  // @ts-ignore
239
- export function deserializeIntoGetEntityTypesDto(getEntityTypesDto: Partial<GetEntityTypesDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
268
+ export function deserializeIntoHttpValidationProblemDetails(httpValidationProblemDetails: Partial<HttpValidationProblemDetails> | undefined = {}) : Record<string, (node: ParseNode) => void> {
240
269
  return {
241
- "types": n => { getEntityTypesDto.types = n.getCollectionOfObjectValues<TypeMetaDefDto>(createTypeMetaDefDtoFromDiscriminatorValue); },
270
+ ...deserializeIntoProblemDetails(httpValidationProblemDetails),
271
+ "errors": n => { httpValidationProblemDetails.errors = n.getObjectValue<HttpValidationProblemDetails_errors>(createHttpValidationProblemDetails_errorsFromDiscriminatorValue); },
242
272
  }
243
273
  }
244
274
  /**
@@ -246,9 +276,8 @@ export function deserializeIntoGetEntityTypesDto(getEntityTypesDto: Partial<GetE
246
276
  * @returns {Record<string, (node: ParseNode) => void>}
247
277
  */
248
278
  // @ts-ignore
249
- export function deserializeIntoGetProfileSettingsDto(getProfileSettingsDto: Partial<GetProfileSettingsDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
279
+ export function deserializeIntoHttpValidationProblemDetails_errors(httpValidationProblemDetails_errors: Partial<HttpValidationProblemDetails_errors> | undefined = {}) : Record<string, (node: ParseNode) => void> {
250
280
  return {
251
- "profile": n => { getProfileSettingsDto.profile = n.getObjectValue<ProfileDto>(createProfileDtoFromDiscriminatorValue); },
252
281
  }
253
282
  }
254
283
  /**
@@ -256,10 +285,11 @@ export function deserializeIntoGetProfileSettingsDto(getProfileSettingsDto: Part
256
285
  * @returns {Record<string, (node: ParseNode) => void>}
257
286
  */
258
287
  // @ts-ignore
259
- export function deserializeIntoHttpValidationProblemDetails(httpValidationProblemDetails: Partial<HttpValidationProblemDetails> | undefined = {}) : Record<string, (node: ParseNode) => void> {
288
+ export function deserializeIntoIFieldDef(iFieldDef: Partial<IFieldDef> | undefined = {}) : Record<string, (node: ParseNode) => void> {
260
289
  return {
261
- ...deserializeIntoProblemDetails(httpValidationProblemDetails),
262
- "errors": n => { httpValidationProblemDetails.errors = n.getObjectValue<HttpValidationProblemDetails_errors>(createHttpValidationProblemDetails_errorsFromDiscriminatorValue); },
290
+ "expression": n => { iFieldDef.expression = n.getStringValue(); },
291
+ "kind": n => { iFieldDef.kind = n.getEnumValue<FieldKind>(FieldKindObject); },
292
+ "refType": n => { iFieldDef.refType = n.getStringValue(); },
263
293
  }
264
294
  }
265
295
  /**
@@ -267,8 +297,9 @@ export function deserializeIntoHttpValidationProblemDetails(httpValidationProble
267
297
  * @returns {Record<string, (node: ParseNode) => void>}
268
298
  */
269
299
  // @ts-ignore
270
- export function deserializeIntoHttpValidationProblemDetails_errors(httpValidationProblemDetails_errors: Partial<HttpValidationProblemDetails_errors> | undefined = {}) : Record<string, (node: ParseNode) => void> {
300
+ export function deserializeIntoMappingErrorDto(mappingErrorDto: Partial<MappingErrorDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
271
301
  return {
302
+ "message": n => { mappingErrorDto.message = n.getStringValue(); },
272
303
  }
273
304
  }
274
305
  /**
@@ -292,10 +323,9 @@ export function deserializeIntoProblemDetails(problemDetails: Partial<ProblemDet
292
323
  // @ts-ignore
293
324
  export function deserializeIntoProfileDto(profileDto: Partial<ProfileDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
294
325
  return {
295
- "account": n => { profileDto.account = n.getStringValue(); },
296
- "enabled": n => { profileDto.enabled = n.getBooleanValue(); },
297
- "id": n => { profileDto.id = n.getStringValue(); },
298
- "mappings": n => { profileDto.mappings = n.getCollectionOfObjectValues<ProfileMappingDto>(createProfileMappingDtoFromDiscriminatorValue); },
326
+ ...deserializeIntoProfileIdDto(profileDto),
327
+ "$type": n => { profileDto.type = n.getStringValue(); },
328
+ "typeMappings": n => { profileDto.typeMappings = n.getCollectionOfObjectValues<TypeMappingDto>(createTypeMappingDtoFromDiscriminatorValue); },
299
329
  }
300
330
  }
301
331
  /**
@@ -303,12 +333,10 @@ export function deserializeIntoProfileDto(profileDto: Partial<ProfileDto> | unde
303
333
  * @returns {Record<string, (node: ParseNode) => void>}
304
334
  */
305
335
  // @ts-ignore
306
- export function deserializeIntoProfileMappingDto(profileMappingDto: Partial<ProfileMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
336
+ export function deserializeIntoProfileIdDto(profileIdDto: Partial<ProfileIdDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
307
337
  return {
308
- "enabled": n => { profileMappingDto.enabled = n.getBooleanValue(); },
309
- "id": n => { profileMappingDto.id = n.getStringValue(); },
310
- "name": n => { profileMappingDto.name = n.getStringValue(); },
311
- "typeMappings": n => { profileMappingDto.typeMappings = n.getCollectionOfObjectValues<TypeMappingDto>(createTypeMappingDtoFromDiscriminatorValue); },
338
+ "id": n => { profileIdDto.id = n.getStringValue(); },
339
+ "name": n => { profileIdDto.name = n.getStringValue(); },
312
340
  }
313
341
  }
314
342
  /**
@@ -316,10 +344,10 @@ export function deserializeIntoProfileMappingDto(profileMappingDto: Partial<Prof
316
344
  * @returns {Record<string, (node: ParseNode) => void>}
317
345
  */
318
346
  // @ts-ignore
319
- export function deserializeIntoRelationDefRefDto(relationDefRefDto: Partial<RelationDefRefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
347
+ export function deserializeIntoSdmMappingFieldDefDto(sdmMappingFieldDefDto: Partial<SdmMappingFieldDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
320
348
  return {
321
- "direction": n => { relationDefRefDto.direction = n.getNumberValue(); },
322
- "id": n => { relationDefRefDto.id = n.getStringValue(); },
349
+ "expression": n => { sdmMappingFieldDefDto.expression = n.getStringValue(); },
350
+ "kind": n => { sdmMappingFieldDefDto.kind = n.getEnumValue<MappingKind>(MappingKindObject); },
323
351
  }
324
352
  }
325
353
  /**
@@ -327,11 +355,10 @@ export function deserializeIntoRelationDefRefDto(relationDefRefDto: Partial<Rela
327
355
  * @returns {Record<string, (node: ParseNode) => void>}
328
356
  */
329
357
  // @ts-ignore
330
- export function deserializeIntoRelationDto(relationDto: Partial<RelationDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
358
+ export function deserializeIntoSdmTypeDefDto(sdmTypeDefDto: Partial<SdmTypeDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
331
359
  return {
332
- "childType": n => { relationDto.childType = n.getObjectValue<TypeDefRefDto>(createTypeDefRefDtoFromDiscriminatorValue); },
333
- "field": n => { relationDto.field = n.getObjectValue<FieldDefDto>(createFieldDefDtoFromDiscriminatorValue); },
334
- "relation": n => { relationDto.relation = n.getObjectValue<RelationDefRefDto>(createRelationDefRefDtoFromDiscriminatorValue); },
360
+ "id": n => { sdmTypeDefDto.id = n.getStringValue(); },
361
+ "name": n => { sdmTypeDefDto.name = n.getStringValue(); },
335
362
  }
336
363
  }
337
364
  /**
@@ -361,12 +388,10 @@ export function deserializeIntoSharedDataCreateAttachmentResponseItemDto(sharedD
361
388
  * @returns {Record<string, (node: ParseNode) => void>}
362
389
  */
363
390
  // @ts-ignore
364
- export function deserializeIntoTypeDefDto(typeDefDto: Partial<TypeDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
391
+ export function deserializeIntoTpMappingFieldDefDto(tpMappingFieldDefDto: Partial<TpMappingFieldDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
365
392
  return {
366
- "id": n => { typeDefDto.id = n.getStringValue(); },
367
- "javaScriptComparator": n => { typeDefDto.javaScriptComparator = n.getStringValue(); },
368
- "kind": n => { typeDefDto.kind = n.getNumberValue(); },
369
- "name": n => { typeDefDto.name = n.getStringValue(); },
393
+ "expression": n => { tpMappingFieldDefDto.expression = n.getStringValue(); },
394
+ "kind": n => { tpMappingFieldDefDto.kind = n.getEnumValue<MappingKind>(MappingKindObject); },
370
395
  }
371
396
  }
372
397
  /**
@@ -374,10 +399,10 @@ export function deserializeIntoTypeDefDto(typeDefDto: Partial<TypeDefDto> | unde
374
399
  * @returns {Record<string, (node: ParseNode) => void>}
375
400
  */
376
401
  // @ts-ignore
377
- export function deserializeIntoTypeDefRefDto(typeDefRefDto: Partial<TypeDefRefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
402
+ export function deserializeIntoTpTypeDefDto(tpTypeDefDto: Partial<TpTypeDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
378
403
  return {
379
- "id": n => { typeDefRefDto.id = n.getStringValue(); },
380
- "kind": n => { typeDefRefDto.kind = n.getNumberValue(); },
404
+ "id": n => { tpTypeDefDto.id = n.getStringValue(); },
405
+ "name": n => { tpTypeDefDto.name = n.getStringValue(); },
381
406
  }
382
407
  }
383
408
  /**
@@ -389,8 +414,9 @@ export function deserializeIntoTypeMappingDto(typeMappingDto: Partial<TypeMappin
389
414
  return {
390
415
  "fieldMappings": n => { typeMappingDto.fieldMappings = n.getCollectionOfObjectValues<FieldMappingDto>(createFieldMappingDtoFromDiscriminatorValue); },
391
416
  "id": n => { typeMappingDto.id = n.getStringValue(); },
392
- "sourceType": n => { typeMappingDto.sourceType = n.getObjectValue<TypeDefDto>(createTypeDefDtoFromDiscriminatorValue); },
393
- "targetType": n => { typeMappingDto.targetType = n.getObjectValue<TypeDefDto>(createTypeDefDtoFromDiscriminatorValue); },
417
+ "sourceType": n => { typeMappingDto.sourceType = n.getObjectValue<TpTypeDefDto>(createTpTypeDefDtoFromDiscriminatorValue); },
418
+ "targetType": n => { typeMappingDto.targetType = n.getObjectValue<SdmTypeDefDto>(createSdmTypeDefDtoFromDiscriminatorValue); },
419
+ "$type": n => { typeMappingDto.type = n.getStringValue(); },
394
420
  }
395
421
  }
396
422
  /**
@@ -400,40 +426,47 @@ export function deserializeIntoTypeMappingDto(typeMappingDto: Partial<TypeMappin
400
426
  // @ts-ignore
401
427
  export function deserializeIntoTypeMetaDefDto(typeMetaDefDto: Partial<TypeMetaDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
402
428
  return {
403
- "fields": n => { typeMetaDefDto.fields = n.getCollectionOfObjectValues<FieldDefDto>(createFieldDefDtoFromDiscriminatorValue); },
429
+ "fields": n => { typeMetaDefDto.fields = n.getCollectionOfObjectValues<IFieldDef>(createIFieldDefFromDiscriminatorValue); },
404
430
  "id": n => { typeMetaDefDto.id = n.getStringValue(); },
405
- "kind": n => { typeMetaDefDto.kind = n.getStringValue(); },
406
431
  "name": n => { typeMetaDefDto.name = n.getStringValue(); },
407
432
  }
408
433
  }
409
- export interface FieldAttributesDto extends Parsable {
410
- /**
411
- * The isExtendable property
412
- */
413
- isExtendable?: boolean | null;
414
- /**
415
- * The roleId property
416
- */
417
- roleId?: string | null;
434
+ /**
435
+ * The deserialization information for the current model
436
+ * @returns {Record<string, (node: ParseNode) => void>}
437
+ */
438
+ // @ts-ignore
439
+ export function deserializeIntoValidatedFieldMappingDto(validatedFieldMappingDto: Partial<ValidatedFieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
440
+ return {
441
+ ...deserializeIntoFieldMappingDto(validatedFieldMappingDto),
442
+ "errors": n => { validatedFieldMappingDto.errors = n.getCollectionOfObjectValues<MappingErrorDto>(createMappingErrorDtoFromDiscriminatorValue); },
443
+ "isValid": n => { validatedFieldMappingDto.isValid = n.getBooleanValue(); },
444
+ }
418
445
  }
419
- export interface FieldDefDto extends Parsable {
420
- /**
421
- * The id property
422
- */
423
- id?: string | null;
424
- /**
425
- * The meta property
426
- */
427
- meta?: FieldMetaDto | null;
428
- /**
429
- * The name property
430
- */
431
- name?: string | null;
432
- /**
433
- * The path property
434
- */
435
- path?: string | null;
446
+ /**
447
+ * The deserialization information for the current model
448
+ * @returns {Record<string, (node: ParseNode) => void>}
449
+ */
450
+ // @ts-ignore
451
+ export function deserializeIntoValidatedProfileDto(validatedProfileDto: Partial<ValidatedProfileDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
452
+ return {
453
+ ...deserializeIntoProfileDto(validatedProfileDto),
454
+ "isValid": n => { validatedProfileDto.isValid = n.getBooleanValue(); },
455
+ }
436
456
  }
457
+ /**
458
+ * The deserialization information for the current model
459
+ * @returns {Record<string, (node: ParseNode) => void>}
460
+ */
461
+ // @ts-ignore
462
+ export function deserializeIntoValidatedTypeMappingDto(validatedTypeMappingDto: Partial<ValidatedTypeMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
463
+ return {
464
+ ...deserializeIntoTypeMappingDto(validatedTypeMappingDto),
465
+ "errors": n => { validatedTypeMappingDto.errors = n.getCollectionOfObjectValues<MappingErrorDto>(createMappingErrorDtoFromDiscriminatorValue); },
466
+ "isValid": n => { validatedTypeMappingDto.isValid = n.getBooleanValue(); },
467
+ }
468
+ }
469
+ export type FieldKind = (typeof FieldKindObject)[keyof typeof FieldKindObject];
437
470
  export interface FieldMappingDto extends Parsable {
438
471
  /**
439
472
  * The id property
@@ -442,63 +475,25 @@ export interface FieldMappingDto extends Parsable {
442
475
  /**
443
476
  * The source property
444
477
  */
445
- source?: FieldDefDto | null;
446
- /**
447
- * The sourceRel property
448
- */
449
- sourceRel?: RelationDto | null;
478
+ source?: TpMappingFieldDefDto | null;
450
479
  /**
451
480
  * The target property
452
481
  */
453
- target?: FieldDefDto | null;
482
+ target?: SdmMappingFieldDefDto | null;
454
483
  /**
455
- * The targetRel property
484
+ * The Type property
456
485
  */
457
- targetRel?: RelationDto | null;
458
- /**
459
- * The type property
460
- */
461
- type?: number | null;
486
+ type?: string | null;
462
487
  }
463
- export interface FieldMetaDto extends Parsable {
464
- /**
465
- * The attributes property
466
- */
467
- attributes?: FieldAttributesDto | null;
468
- /**
469
- * The isReadonly property
470
- */
471
- isReadonly?: boolean | null;
472
- /**
473
- * The kind property
474
- */
475
- kind?: number | null;
476
- /**
477
- * The multiple property
478
- */
479
- multiple?: boolean | null;
480
- /**
481
- * The options property
482
- */
483
- options?: UntypedNode | null;
484
- /**
485
- * The required property
486
- */
487
- required?: boolean | null;
488
- /**
489
- * The roundsDate property
490
- */
491
- roundsDate?: boolean | null;
488
+ export interface GetEntityTypesDto extends Parsable {
492
489
  /**
493
- * The type property
490
+ * The sdmTypes property
494
491
  */
495
- type?: TypeDefRefDto | null;
496
- }
497
- export interface GetEntityTypesDto extends Parsable {
492
+ sdmTypes?: TypeMetaDefDto[] | null;
498
493
  /**
499
- * The types property
494
+ * The tpTypes property
500
495
  */
501
- types?: TypeMetaDefDto[] | null;
496
+ tpTypes?: TypeMetaDefDto[] | null;
502
497
  }
503
498
  export interface GetProfileSettingsDto extends Parsable {
504
499
  /**
@@ -518,6 +513,27 @@ export interface HttpValidationProblemDetails_errors extends AdditionalDataHolde
518
513
  */
519
514
  additionalData?: Record<string, unknown>;
520
515
  }
516
+ export interface IFieldDef extends Parsable {
517
+ /**
518
+ * The expression property
519
+ */
520
+ expression?: string | null;
521
+ /**
522
+ * The kind property
523
+ */
524
+ kind?: FieldKind | null;
525
+ /**
526
+ * The refType property
527
+ */
528
+ refType?: string | null;
529
+ }
530
+ export interface MappingErrorDto extends Parsable {
531
+ /**
532
+ * The message property
533
+ */
534
+ message?: string | null;
535
+ }
536
+ export type MappingKind = (typeof MappingKindObject)[keyof typeof MappingKindObject];
521
537
  export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable {
522
538
  /**
523
539
  * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -544,29 +560,21 @@ export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable
544
560
  */
545
561
  type?: string | null;
546
562
  }
547
- export interface ProfileDto extends Parsable {
563
+ export interface ProfileDto extends AdditionalDataHolder, Parsable, ProfileIdDto {
548
564
  /**
549
- * The account property
550
- */
551
- account?: string | null;
552
- /**
553
- * The enabled property
565
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
554
566
  */
555
- enabled?: boolean | null;
567
+ additionalData?: Record<string, unknown>;
556
568
  /**
557
- * The id property
569
+ * The Type property
558
570
  */
559
- id?: string | null;
571
+ type?: string | null;
560
572
  /**
561
- * The mappings property
573
+ * The typeMappings property
562
574
  */
563
- mappings?: ProfileMappingDto[] | null;
575
+ typeMappings?: TypeMappingDto[] | null;
564
576
  }
565
- export interface ProfileMappingDto extends Parsable {
566
- /**
567
- * The enabled property
568
- */
569
- enabled?: boolean | null;
577
+ export interface ProfileIdDto extends Parsable {
570
578
  /**
571
579
  * The id property
572
580
  */
@@ -575,58 +583,26 @@ export interface ProfileMappingDto extends Parsable {
575
583
  * The name property
576
584
  */
577
585
  name?: string | null;
578
- /**
579
- * The typeMappings property
580
- */
581
- typeMappings?: TypeMappingDto[] | null;
582
586
  }
583
- export interface RelationDefRefDto extends Parsable {
587
+ export interface SdmMappingFieldDefDto extends Parsable {
584
588
  /**
585
- * The direction property
589
+ * The expression property
586
590
  */
587
- direction?: number | null;
591
+ expression?: string | null;
588
592
  /**
589
- * The id property
593
+ * The kind property
590
594
  */
591
- id?: string | null;
595
+ kind?: MappingKind | null;
592
596
  }
593
- export interface RelationDto extends Parsable {
594
- /**
595
- * The childType property
596
- */
597
- childType?: TypeDefRefDto | null;
597
+ export interface SdmTypeDefDto extends Parsable {
598
598
  /**
599
- * The field property
599
+ * The id property
600
600
  */
601
- field?: FieldDefDto | null;
601
+ id?: string | null;
602
602
  /**
603
- * The relation property
603
+ * The name property
604
604
  */
605
- relation?: RelationDefRefDto | null;
606
- }
607
- /**
608
- * Serializes information the current object
609
- * @param writer Serialization writer to use to serialize this model
610
- */
611
- // @ts-ignore
612
- export function serializeFieldAttributesDto(writer: SerializationWriter, fieldAttributesDto: Partial<FieldAttributesDto> | undefined | null = {}) : void {
613
- if (fieldAttributesDto) {
614
- writer.writeBooleanValue("isExtendable", fieldAttributesDto.isExtendable);
615
- writer.writeStringValue("roleId", fieldAttributesDto.roleId);
616
- }
617
- }
618
- /**
619
- * Serializes information the current object
620
- * @param writer Serialization writer to use to serialize this model
621
- */
622
- // @ts-ignore
623
- export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}) : void {
624
- if (fieldDefDto) {
625
- writer.writeStringValue("id", fieldDefDto.id);
626
- writer.writeObjectValue<FieldMetaDto>("meta", fieldDefDto.meta, serializeFieldMetaDto);
627
- writer.writeStringValue("name", fieldDefDto.name);
628
- writer.writeStringValue("path", fieldDefDto.path);
629
- }
605
+ name?: string | null;
630
606
  }
631
607
  /**
632
608
  * Serializes information the current object
@@ -636,28 +612,9 @@ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: P
636
612
  export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
637
613
  if (fieldMappingDto) {
638
614
  writer.writeStringValue("id", fieldMappingDto.id);
639
- writer.writeObjectValue<FieldDefDto>("source", fieldMappingDto.source, serializeFieldDefDto);
640
- writer.writeObjectValue<RelationDto>("sourceRel", fieldMappingDto.sourceRel, serializeRelationDto);
641
- writer.writeObjectValue<FieldDefDto>("target", fieldMappingDto.target, serializeFieldDefDto);
642
- writer.writeObjectValue<RelationDto>("targetRel", fieldMappingDto.targetRel, serializeRelationDto);
643
- writer.writeNumberValue("type", fieldMappingDto.type);
644
- }
645
- }
646
- /**
647
- * Serializes information the current object
648
- * @param writer Serialization writer to use to serialize this model
649
- */
650
- // @ts-ignore
651
- export function serializeFieldMetaDto(writer: SerializationWriter, fieldMetaDto: Partial<FieldMetaDto> | undefined | null = {}) : void {
652
- if (fieldMetaDto) {
653
- writer.writeObjectValue<FieldAttributesDto>("attributes", fieldMetaDto.attributes, serializeFieldAttributesDto);
654
- writer.writeBooleanValue("isReadonly", fieldMetaDto.isReadonly);
655
- writer.writeNumberValue("kind", fieldMetaDto.kind);
656
- writer.writeBooleanValue("multiple", fieldMetaDto.multiple);
657
- writer.writeObjectValue("options", fieldMetaDto.options);
658
- writer.writeBooleanValue("required", fieldMetaDto.required);
659
- writer.writeBooleanValue("roundsDate", fieldMetaDto.roundsDate);
660
- writer.writeObjectValue<TypeDefRefDto>("type", fieldMetaDto.type, serializeTypeDefRefDto);
615
+ writer.writeObjectValue<TpMappingFieldDefDto>("source", fieldMappingDto.source, serializeTpMappingFieldDefDto);
616
+ writer.writeObjectValue<SdmMappingFieldDefDto>("target", fieldMappingDto.target, serializeSdmMappingFieldDefDto);
617
+ writer.writeStringValue("$type", fieldMappingDto.type);
661
618
  }
662
619
  }
663
620
  /**
@@ -667,7 +624,8 @@ export function serializeFieldMetaDto(writer: SerializationWriter, fieldMetaDto:
667
624
  // @ts-ignore
668
625
  export function serializeGetEntityTypesDto(writer: SerializationWriter, getEntityTypesDto: Partial<GetEntityTypesDto> | undefined | null = {}) : void {
669
626
  if (getEntityTypesDto) {
670
- writer.writeCollectionOfObjectValues<TypeMetaDefDto>("types", getEntityTypesDto.types, serializeTypeMetaDefDto);
627
+ writer.writeCollectionOfObjectValues<TypeMetaDefDto>("sdmTypes", getEntityTypesDto.sdmTypes, serializeTypeMetaDefDto);
628
+ writer.writeCollectionOfObjectValues<TypeMetaDefDto>("tpTypes", getEntityTypesDto.tpTypes, serializeTypeMetaDefDto);
671
629
  }
672
630
  }
673
631
  /**
@@ -706,6 +664,28 @@ export function serializeHttpValidationProblemDetails_errors(writer: Serializati
706
664
  * @param writer Serialization writer to use to serialize this model
707
665
  */
708
666
  // @ts-ignore
667
+ export function serializeIFieldDef(writer: SerializationWriter, iFieldDef: Partial<IFieldDef> | undefined | null = {}) : void {
668
+ if (iFieldDef) {
669
+ writer.writeStringValue("expression", iFieldDef.expression);
670
+ writer.writeEnumValue<FieldKind>("kind", iFieldDef.kind);
671
+ writer.writeStringValue("refType", iFieldDef.refType);
672
+ }
673
+ }
674
+ /**
675
+ * Serializes information the current object
676
+ * @param writer Serialization writer to use to serialize this model
677
+ */
678
+ // @ts-ignore
679
+ export function serializeMappingErrorDto(writer: SerializationWriter, mappingErrorDto: Partial<MappingErrorDto> | undefined | null = {}) : void {
680
+ if (mappingErrorDto) {
681
+ writer.writeStringValue("message", mappingErrorDto.message);
682
+ }
683
+ }
684
+ /**
685
+ * Serializes information the current object
686
+ * @param writer Serialization writer to use to serialize this model
687
+ */
688
+ // @ts-ignore
709
689
  export function serializeProblemDetails(writer: SerializationWriter, problemDetails: Partial<ProblemDetails> | undefined | null = {}) : void {
710
690
  if (problemDetails) {
711
691
  writer.writeStringValue("detail", problemDetails.detail);
@@ -723,10 +703,10 @@ export function serializeProblemDetails(writer: SerializationWriter, problemDeta
723
703
  // @ts-ignore
724
704
  export function serializeProfileDto(writer: SerializationWriter, profileDto: Partial<ProfileDto> | undefined | null = {}) : void {
725
705
  if (profileDto) {
726
- writer.writeStringValue("account", profileDto.account);
727
- writer.writeBooleanValue("enabled", profileDto.enabled);
728
- writer.writeStringValue("id", profileDto.id);
729
- writer.writeCollectionOfObjectValues<ProfileMappingDto>("mappings", profileDto.mappings, serializeProfileMappingDto);
706
+ serializeProfileIdDto(writer, profileDto)
707
+ writer.writeStringValue("$type", profileDto.type);
708
+ writer.writeCollectionOfObjectValues<TypeMappingDto>("typeMappings", profileDto.typeMappings, serializeTypeMappingDto);
709
+ writer.writeAdditionalData(profileDto.additionalData);
730
710
  }
731
711
  }
732
712
  /**
@@ -734,12 +714,10 @@ export function serializeProfileDto(writer: SerializationWriter, profileDto: Par
734
714
  * @param writer Serialization writer to use to serialize this model
735
715
  */
736
716
  // @ts-ignore
737
- export function serializeProfileMappingDto(writer: SerializationWriter, profileMappingDto: Partial<ProfileMappingDto> | undefined | null = {}) : void {
738
- if (profileMappingDto) {
739
- writer.writeBooleanValue("enabled", profileMappingDto.enabled);
740
- writer.writeStringValue("id", profileMappingDto.id);
741
- writer.writeStringValue("name", profileMappingDto.name);
742
- writer.writeCollectionOfObjectValues<TypeMappingDto>("typeMappings", profileMappingDto.typeMappings, serializeTypeMappingDto);
717
+ export function serializeProfileIdDto(writer: SerializationWriter, profileIdDto: Partial<ProfileIdDto> | undefined | null = {}) : void {
718
+ if (profileIdDto) {
719
+ writer.writeStringValue("id", profileIdDto.id);
720
+ writer.writeStringValue("name", profileIdDto.name);
743
721
  }
744
722
  }
745
723
  /**
@@ -747,10 +725,10 @@ export function serializeProfileMappingDto(writer: SerializationWriter, profileM
747
725
  * @param writer Serialization writer to use to serialize this model
748
726
  */
749
727
  // @ts-ignore
750
- export function serializeRelationDefRefDto(writer: SerializationWriter, relationDefRefDto: Partial<RelationDefRefDto> | undefined | null = {}) : void {
751
- if (relationDefRefDto) {
752
- writer.writeNumberValue("direction", relationDefRefDto.direction);
753
- writer.writeStringValue("id", relationDefRefDto.id);
728
+ export function serializeSdmMappingFieldDefDto(writer: SerializationWriter, sdmMappingFieldDefDto: Partial<SdmMappingFieldDefDto> | undefined | null = {}) : void {
729
+ if (sdmMappingFieldDefDto) {
730
+ writer.writeStringValue("expression", sdmMappingFieldDefDto.expression);
731
+ writer.writeEnumValue<MappingKind>("kind", sdmMappingFieldDefDto.kind);
754
732
  }
755
733
  }
756
734
  /**
@@ -758,11 +736,10 @@ export function serializeRelationDefRefDto(writer: SerializationWriter, relation
758
736
  * @param writer Serialization writer to use to serialize this model
759
737
  */
760
738
  // @ts-ignore
761
- export function serializeRelationDto(writer: SerializationWriter, relationDto: Partial<RelationDto> | undefined | null = {}) : void {
762
- if (relationDto) {
763
- writer.writeObjectValue<TypeDefRefDto>("childType", relationDto.childType, serializeTypeDefRefDto);
764
- writer.writeObjectValue<FieldDefDto>("field", relationDto.field, serializeFieldDefDto);
765
- writer.writeObjectValue<RelationDefRefDto>("relation", relationDto.relation, serializeRelationDefRefDto);
739
+ export function serializeSdmTypeDefDto(writer: SerializationWriter, sdmTypeDefDto: Partial<SdmTypeDefDto> | undefined | null = {}) : void {
740
+ if (sdmTypeDefDto) {
741
+ writer.writeStringValue("id", sdmTypeDefDto.id);
742
+ writer.writeStringValue("name", sdmTypeDefDto.name);
766
743
  }
767
744
  }
768
745
  /**
@@ -792,12 +769,10 @@ export function serializeSharedDataCreateAttachmentResponseItemDto(writer: Seria
792
769
  * @param writer Serialization writer to use to serialize this model
793
770
  */
794
771
  // @ts-ignore
795
- export function serializeTypeDefDto(writer: SerializationWriter, typeDefDto: Partial<TypeDefDto> | undefined | null = {}) : void {
796
- if (typeDefDto) {
797
- writer.writeStringValue("id", typeDefDto.id);
798
- writer.writeStringValue("javaScriptComparator", typeDefDto.javaScriptComparator);
799
- writer.writeNumberValue("kind", typeDefDto.kind);
800
- writer.writeStringValue("name", typeDefDto.name);
772
+ export function serializeTpMappingFieldDefDto(writer: SerializationWriter, tpMappingFieldDefDto: Partial<TpMappingFieldDefDto> | undefined | null = {}) : void {
773
+ if (tpMappingFieldDefDto) {
774
+ writer.writeStringValue("expression", tpMappingFieldDefDto.expression);
775
+ writer.writeEnumValue<MappingKind>("kind", tpMappingFieldDefDto.kind);
801
776
  }
802
777
  }
803
778
  /**
@@ -805,10 +780,10 @@ export function serializeTypeDefDto(writer: SerializationWriter, typeDefDto: Par
805
780
  * @param writer Serialization writer to use to serialize this model
806
781
  */
807
782
  // @ts-ignore
808
- export function serializeTypeDefRefDto(writer: SerializationWriter, typeDefRefDto: Partial<TypeDefRefDto> | undefined | null = {}) : void {
809
- if (typeDefRefDto) {
810
- writer.writeStringValue("id", typeDefRefDto.id);
811
- writer.writeNumberValue("kind", typeDefRefDto.kind);
783
+ export function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto: Partial<TpTypeDefDto> | undefined | null = {}) : void {
784
+ if (tpTypeDefDto) {
785
+ writer.writeStringValue("id", tpTypeDefDto.id);
786
+ writer.writeStringValue("name", tpTypeDefDto.name);
812
787
  }
813
788
  }
814
789
  /**
@@ -820,8 +795,9 @@ export function serializeTypeMappingDto(writer: SerializationWriter, typeMapping
820
795
  if (typeMappingDto) {
821
796
  writer.writeCollectionOfObjectValues<FieldMappingDto>("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
822
797
  writer.writeStringValue("id", typeMappingDto.id);
823
- writer.writeObjectValue<TypeDefDto>("sourceType", typeMappingDto.sourceType, serializeTypeDefDto);
824
- writer.writeObjectValue<TypeDefDto>("targetType", typeMappingDto.targetType, serializeTypeDefDto);
798
+ writer.writeObjectValue<TpTypeDefDto>("sourceType", typeMappingDto.sourceType, serializeTpTypeDefDto);
799
+ writer.writeObjectValue<SdmTypeDefDto>("targetType", typeMappingDto.targetType, serializeSdmTypeDefDto);
800
+ writer.writeStringValue("$type", typeMappingDto.type);
825
801
  }
826
802
  }
827
803
  /**
@@ -831,12 +807,49 @@ export function serializeTypeMappingDto(writer: SerializationWriter, typeMapping
831
807
  // @ts-ignore
832
808
  export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDefDto: Partial<TypeMetaDefDto> | undefined | null = {}) : void {
833
809
  if (typeMetaDefDto) {
834
- writer.writeCollectionOfObjectValues<FieldDefDto>("fields", typeMetaDefDto.fields, serializeFieldDefDto);
810
+ writer.writeCollectionOfObjectValues<IFieldDef>("fields", typeMetaDefDto.fields, serializeIFieldDef);
835
811
  writer.writeStringValue("id", typeMetaDefDto.id);
836
- writer.writeStringValue("kind", typeMetaDefDto.kind);
837
812
  writer.writeStringValue("name", typeMetaDefDto.name);
838
813
  }
839
814
  }
815
+ /**
816
+ * Serializes information the current object
817
+ * @param writer Serialization writer to use to serialize this model
818
+ */
819
+ // @ts-ignore
820
+ export function serializeValidatedFieldMappingDto(writer: SerializationWriter, validatedFieldMappingDto: Partial<ValidatedFieldMappingDto> | undefined | null = {}) : void {
821
+ if (validatedFieldMappingDto) {
822
+ serializeFieldMappingDto(writer, validatedFieldMappingDto)
823
+ writer.writeCollectionOfObjectValues<MappingErrorDto>("errors", validatedFieldMappingDto.errors, serializeMappingErrorDto);
824
+ writer.writeBooleanValue("isValid", validatedFieldMappingDto.isValid);
825
+ writer.writeAdditionalData(validatedFieldMappingDto.additionalData);
826
+ }
827
+ }
828
+ /**
829
+ * Serializes information the current object
830
+ * @param writer Serialization writer to use to serialize this model
831
+ */
832
+ // @ts-ignore
833
+ export function serializeValidatedProfileDto(writer: SerializationWriter, validatedProfileDto: Partial<ValidatedProfileDto> | undefined | null = {}) : void {
834
+ if (validatedProfileDto) {
835
+ serializeProfileDto(writer, validatedProfileDto)
836
+ writer.writeBooleanValue("isValid", validatedProfileDto.isValid);
837
+ writer.writeAdditionalData(validatedProfileDto.additionalData);
838
+ }
839
+ }
840
+ /**
841
+ * Serializes information the current object
842
+ * @param writer Serialization writer to use to serialize this model
843
+ */
844
+ // @ts-ignore
845
+ export function serializeValidatedTypeMappingDto(writer: SerializationWriter, validatedTypeMappingDto: Partial<ValidatedTypeMappingDto> | undefined | null = {}) : void {
846
+ if (validatedTypeMappingDto) {
847
+ serializeTypeMappingDto(writer, validatedTypeMappingDto)
848
+ writer.writeCollectionOfObjectValues<MappingErrorDto>("errors", validatedTypeMappingDto.errors, serializeMappingErrorDto);
849
+ writer.writeBooleanValue("isValid", validatedTypeMappingDto.isValid);
850
+ writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
851
+ }
852
+ }
840
853
  export interface SharedDataCreateAttachmentResponseDto extends Parsable {
841
854
  /**
842
855
  * The items property
@@ -857,33 +870,25 @@ export interface SharedDataCreateAttachmentResponseItemDto extends Parsable {
857
870
  */
858
871
  uri?: string | null;
859
872
  }
860
- export interface TypeDefDto extends Parsable {
861
- /**
862
- * The id property
863
- */
864
- id?: string | null;
873
+ export interface TpMappingFieldDefDto extends Parsable {
865
874
  /**
866
- * The javaScriptComparator property
875
+ * The expression property
867
876
  */
868
- javaScriptComparator?: string | null;
877
+ expression?: string | null;
869
878
  /**
870
879
  * The kind property
871
880
  */
872
- kind?: number | null;
873
- /**
874
- * The name property
875
- */
876
- name?: string | null;
881
+ kind?: MappingKind | null;
877
882
  }
878
- export interface TypeDefRefDto extends Parsable {
883
+ export interface TpTypeDefDto extends Parsable {
879
884
  /**
880
885
  * The id property
881
886
  */
882
887
  id?: string | null;
883
888
  /**
884
- * The kind property
889
+ * The name property
885
890
  */
886
- kind?: number | null;
891
+ name?: string | null;
887
892
  }
888
893
  export interface TypeMappingDto extends Parsable {
889
894
  /**
@@ -897,29 +902,77 @@ export interface TypeMappingDto extends Parsable {
897
902
  /**
898
903
  * The sourceType property
899
904
  */
900
- sourceType?: TypeDefDto | null;
905
+ sourceType?: TpTypeDefDto | null;
901
906
  /**
902
907
  * The targetType property
903
908
  */
904
- targetType?: TypeDefDto | null;
909
+ targetType?: SdmTypeDefDto | null;
910
+ /**
911
+ * The Type property
912
+ */
913
+ type?: string | null;
905
914
  }
906
915
  export interface TypeMetaDefDto extends Parsable {
907
916
  /**
908
917
  * The fields property
909
918
  */
910
- fields?: FieldDefDto[] | null;
919
+ fields?: IFieldDef[] | null;
911
920
  /**
912
921
  * The id property
913
922
  */
914
923
  id?: string | null;
915
- /**
916
- * The kind property
917
- */
918
- kind?: string | null;
919
924
  /**
920
925
  * The name property
921
926
  */
922
927
  name?: string | null;
923
928
  }
929
+ export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
930
+ /**
931
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
932
+ */
933
+ additionalData?: Record<string, unknown>;
934
+ /**
935
+ * The errors property
936
+ */
937
+ errors?: MappingErrorDto[] | null;
938
+ /**
939
+ * The isValid property
940
+ */
941
+ isValid?: boolean | null;
942
+ }
943
+ export interface ValidatedProfileDto extends AdditionalDataHolder, Parsable, ProfileDto {
944
+ /**
945
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
946
+ */
947
+ additionalData?: Record<string, unknown>;
948
+ /**
949
+ * The isValid property
950
+ */
951
+ isValid?: boolean | null;
952
+ }
953
+ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable, TypeMappingDto {
954
+ /**
955
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
956
+ */
957
+ additionalData?: Record<string, unknown>;
958
+ /**
959
+ * The errors property
960
+ */
961
+ errors?: MappingErrorDto[] | null;
962
+ /**
963
+ * The isValid property
964
+ */
965
+ isValid?: boolean | null;
966
+ }
967
+ export const FieldKindObject = {
968
+ Simple: "Simple",
969
+ Ref: "Ref",
970
+ Collection: "Collection",
971
+ } as const;
972
+ export const MappingKindObject = {
973
+ Property: "Property",
974
+ PropertyChain: "PropertyChain",
975
+ FreeExpression: "FreeExpression",
976
+ } as const;
924
977
  /* tslint:enable */
925
978
  /* eslint-enable */