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