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