@targetprocess/shared-data-model-client 0.2.0-us817837-mapping.25 → 0.2.0-us817837-mapping.27

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.
@@ -1,28 +1,10 @@
1
1
  import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
2
- /**
3
- * Creates a new instance of the appropriate class based on discriminator value
4
- * @param parseNode The parse node to use to read the discriminator value and create the object
5
- * @returns {FieldAttributesDto}
6
- */
7
- export declare function createFieldAttributesDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
8
- /**
9
- * Creates a new instance of the appropriate class based on discriminator value
10
- * @param parseNode The parse node to use to read the discriminator value and create the object
11
- * @returns {FieldDefDto}
12
- */
13
- export declare function createFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
14
2
  /**
15
3
  * Creates a new instance of the appropriate class based on discriminator value
16
4
  * @param parseNode The parse node to use to read the discriminator value and create the object
17
5
  * @returns {FieldMappingDto}
18
6
  */
19
7
  export declare function createFieldMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
20
- /**
21
- * Creates a new instance of the appropriate class based on discriminator value
22
- * @param parseNode The parse node to use to read the discriminator value and create the object
23
- * @returns {FieldMetaDto}
24
- */
25
- export declare function createFieldMetaDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
26
8
  /**
27
9
  * Creates a new instance of the appropriate class based on discriminator value
28
10
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -47,6 +29,12 @@ export declare function createHttpValidationProblemDetails_errorsFromDiscriminat
47
29
  * @returns {HttpValidationProblemDetails}
48
30
  */
49
31
  export declare function createHttpValidationProblemDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
32
+ /**
33
+ * Creates a new instance of the appropriate class based on discriminator value
34
+ * @param parseNode The parse node to use to read the discriminator value and create the object
35
+ * @returns {IFieldDef}
36
+ */
37
+ export declare function createIFieldDefFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
50
38
  /**
51
39
  * Creates a new instance of the appropriate class based on discriminator value
52
40
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -62,27 +50,27 @@ export declare function createProfileDtoFromDiscriminatorValue(parseNode: ParseN
62
50
  /**
63
51
  * Creates a new instance of the appropriate class based on discriminator value
64
52
  * @param parseNode The parse node to use to read the discriminator value and create the object
65
- * @returns {RelationDefRefDto}
53
+ * @returns {SdmFieldDefDto}
66
54
  */
67
- export declare function createRelationDefRefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
55
+ export declare function createSdmFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
68
56
  /**
69
57
  * Creates a new instance of the appropriate class based on discriminator value
70
58
  * @param parseNode The parse node to use to read the discriminator value and create the object
71
- * @returns {RelationDto}
59
+ * @returns {SdmTypeDefDto}
72
60
  */
73
- export declare function createRelationDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
61
+ export declare function createSdmTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
74
62
  /**
75
63
  * Creates a new instance of the appropriate class based on discriminator value
76
64
  * @param parseNode The parse node to use to read the discriminator value and create the object
77
- * @returns {TypeDefDto}
65
+ * @returns {TpFieldDefDto}
78
66
  */
79
- export declare function createTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
67
+ export declare function createTpFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
80
68
  /**
81
69
  * Creates a new instance of the appropriate class based on discriminator value
82
70
  * @param parseNode The parse node to use to read the discriminator value and create the object
83
- * @returns {TypeDefRefDto}
71
+ * @returns {TpTypeDefDto}
84
72
  */
85
- export declare function createTypeDefRefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
73
+ export declare function createTpTypeDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
86
74
  /**
87
75
  * Creates a new instance of the appropriate class based on discriminator value
88
76
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -95,26 +83,11 @@ export declare function createTypeMappingDtoFromDiscriminatorValue(parseNode: Pa
95
83
  * @returns {TypeMetaDefDto}
96
84
  */
97
85
  export declare function createTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
98
- /**
99
- * The deserialization information for the current model
100
- * @returns {Record<string, (node: ParseNode) => void>}
101
- */
102
- export declare function deserializeIntoFieldAttributesDto(fieldAttributesDto?: Partial<FieldAttributesDto> | undefined): Record<string, (node: ParseNode) => void>;
103
- /**
104
- * The deserialization information for the current model
105
- * @returns {Record<string, (node: ParseNode) => void>}
106
- */
107
- export declare function deserializeIntoFieldDefDto(fieldDefDto?: Partial<FieldDefDto> | undefined): Record<string, (node: ParseNode) => void>;
108
86
  /**
109
87
  * The deserialization information for the current model
110
88
  * @returns {Record<string, (node: ParseNode) => void>}
111
89
  */
112
90
  export declare function deserializeIntoFieldMappingDto(fieldMappingDto?: Partial<FieldMappingDto> | undefined): Record<string, (node: ParseNode) => void>;
113
- /**
114
- * The deserialization information for the current model
115
- * @returns {Record<string, (node: ParseNode) => void>}
116
- */
117
- export declare function deserializeIntoFieldMetaDto(fieldMetaDto?: Partial<FieldMetaDto> | undefined): Record<string, (node: ParseNode) => void>;
118
91
  /**
119
92
  * The deserialization information for the current model
120
93
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -135,6 +108,11 @@ export declare function deserializeIntoHttpValidationProblemDetails(httpValidati
135
108
  * @returns {Record<string, (node: ParseNode) => void>}
136
109
  */
137
110
  export declare function deserializeIntoHttpValidationProblemDetails_errors(httpValidationProblemDetails_errors?: Partial<HttpValidationProblemDetails_errors> | undefined): Record<string, (node: ParseNode) => void>;
111
+ /**
112
+ * The deserialization information for the current model
113
+ * @returns {Record<string, (node: ParseNode) => void>}
114
+ */
115
+ export declare function deserializeIntoIFieldDef(iFieldDef?: Partial<IFieldDef> | undefined): Record<string, (node: ParseNode) => void>;
138
116
  /**
139
117
  * The deserialization information for the current model
140
118
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -149,22 +127,22 @@ export declare function deserializeIntoProfileDto(profileDto?: Partial<ProfileDt
149
127
  * The deserialization information for the current model
150
128
  * @returns {Record<string, (node: ParseNode) => void>}
151
129
  */
152
- export declare function deserializeIntoRelationDefRefDto(relationDefRefDto?: Partial<RelationDefRefDto> | undefined): Record<string, (node: ParseNode) => void>;
130
+ export declare function deserializeIntoSdmFieldDefDto(sdmFieldDefDto?: Partial<SdmFieldDefDto> | undefined): Record<string, (node: ParseNode) => void>;
153
131
  /**
154
132
  * The deserialization information for the current model
155
133
  * @returns {Record<string, (node: ParseNode) => void>}
156
134
  */
157
- export declare function deserializeIntoRelationDto(relationDto?: Partial<RelationDto> | undefined): Record<string, (node: ParseNode) => void>;
135
+ export declare function deserializeIntoSdmTypeDefDto(sdmTypeDefDto?: Partial<SdmTypeDefDto> | undefined): Record<string, (node: ParseNode) => void>;
158
136
  /**
159
137
  * The deserialization information for the current model
160
138
  * @returns {Record<string, (node: ParseNode) => void>}
161
139
  */
162
- export declare function deserializeIntoTypeDefDto(typeDefDto?: Partial<TypeDefDto> | undefined): Record<string, (node: ParseNode) => void>;
140
+ export declare function deserializeIntoTpFieldDefDto(tpFieldDefDto?: Partial<TpFieldDefDto> | undefined): Record<string, (node: ParseNode) => void>;
163
141
  /**
164
142
  * The deserialization information for the current model
165
143
  * @returns {Record<string, (node: ParseNode) => void>}
166
144
  */
167
- export declare function deserializeIntoTypeDefRefDto(typeDefRefDto?: Partial<TypeDefRefDto> | undefined): Record<string, (node: ParseNode) => void>;
145
+ export declare function deserializeIntoTpTypeDefDto(tpTypeDefDto?: Partial<TpTypeDefDto> | undefined): Record<string, (node: ParseNode) => void>;
168
146
  /**
169
147
  * The deserialization information for the current model
170
148
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -175,35 +153,6 @@ export declare function deserializeIntoTypeMappingDto(typeMappingDto?: Partial<T
175
153
  * @returns {Record<string, (node: ParseNode) => void>}
176
154
  */
177
155
  export declare function deserializeIntoTypeMetaDefDto(typeMetaDefDto?: Partial<TypeMetaDefDto> | undefined): Record<string, (node: ParseNode) => void>;
178
- export interface FieldAttributesDto extends Parsable {
179
- /**
180
- * The isExtendable property
181
- */
182
- isExtendable?: boolean | null;
183
- /**
184
- * The roleId property
185
- */
186
- roleId?: string | null;
187
- }
188
- export interface FieldDefDto extends Parsable {
189
- /**
190
- * The id property
191
- */
192
- id?: string | null;
193
- /**
194
- * The meta property
195
- */
196
- meta?: FieldMetaDto | null;
197
- /**
198
- * The name property
199
- */
200
- name?: string | null;
201
- /**
202
- * The path property
203
- */
204
- path?: string | null;
205
- }
206
- export type FieldKind = (typeof FieldKindObject)[keyof typeof FieldKindObject];
207
156
  export interface FieldMappingDto extends Parsable {
208
157
  /**
209
158
  * The id property
@@ -212,47 +161,17 @@ export interface FieldMappingDto extends Parsable {
212
161
  /**
213
162
  * The source property
214
163
  */
215
- source?: FieldDefDto | null;
216
- /**
217
- * The sourceRel property
218
- */
219
- sourceRel?: RelationDto | null;
164
+ source?: TpFieldDefDto | null;
220
165
  /**
221
166
  * The target property
222
167
  */
223
- target?: FieldDefDto | null;
224
- /**
225
- * The targetRel property
226
- */
227
- targetRel?: RelationDto | null;
228
- /**
229
- * The type property
230
- */
231
- type?: FieldMappingType | null;
232
- }
233
- export type FieldMappingType = (typeof FieldMappingTypeObject)[keyof typeof FieldMappingTypeObject];
234
- export interface FieldMetaDto extends Parsable {
235
- /**
236
- * The attributes property
237
- */
238
- attributes?: FieldAttributesDto | null;
239
- /**
240
- * The isReadonly property
241
- */
242
- isReadonly?: boolean | null;
243
- /**
244
- * The kind property
245
- */
246
- kind?: FieldKind | null;
247
- /**
248
- * The required property
249
- */
250
- required?: boolean | null;
168
+ target?: SdmFieldDefDto | null;
251
169
  /**
252
170
  * The type property
253
171
  */
254
- type?: TypeDefRefDto | null;
172
+ type?: string | null;
255
173
  }
174
+ export type FieldType = (typeof FieldTypeObject)[keyof typeof FieldTypeObject];
256
175
  export interface GetEntityTypesDto extends Parsable {
257
176
  /**
258
177
  * The sdmTypes property
@@ -281,6 +200,16 @@ export interface HttpValidationProblemDetails_errors extends AdditionalDataHolde
281
200
  */
282
201
  additionalData?: Record<string, unknown>;
283
202
  }
203
+ export interface IFieldDef extends Parsable {
204
+ /**
205
+ * The expression property
206
+ */
207
+ expression?: string | null;
208
+ /**
209
+ * The kind property
210
+ */
211
+ kind?: FieldType | null;
212
+ }
284
213
  export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable {
285
214
  /**
286
215
  * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -325,51 +254,39 @@ export interface ProfileDto extends Parsable {
325
254
  */
326
255
  typeMappings?: TypeMappingDto[] | null;
327
256
  }
328
- export interface RelationDefRefDto extends Parsable {
257
+ export interface SdmFieldDefDto extends Parsable {
329
258
  /**
330
- * The direction property
259
+ * The expression property
331
260
  */
332
- direction?: RelationDirection | null;
261
+ expression?: string | null;
262
+ /**
263
+ * The kind property
264
+ */
265
+ kind?: FieldType | null;
266
+ }
267
+ export interface SdmTypeDefDto extends Parsable {
333
268
  /**
334
269
  * The id property
335
270
  */
336
271
  id?: string | null;
337
- }
338
- export type RelationDirection = (typeof RelationDirectionObject)[keyof typeof RelationDirectionObject];
339
- export interface RelationDto extends Parsable {
340
272
  /**
341
- * The childType property
273
+ * The kind property
342
274
  */
343
- childType?: TypeDefRefDto | null;
275
+ kind?: TypeKind | null;
344
276
  /**
345
- * The field property
277
+ * The name property
346
278
  */
347
- field?: FieldDefDto | null;
279
+ name?: string | null;
348
280
  /**
349
- * The relation property
281
+ * The type property
350
282
  */
351
- relation?: RelationDefRefDto | null;
283
+ type?: string | null;
352
284
  }
353
- /**
354
- * Serializes information the current object
355
- * @param writer Serialization writer to use to serialize this model
356
- */
357
- export declare function serializeFieldAttributesDto(writer: SerializationWriter, fieldAttributesDto?: Partial<FieldAttributesDto> | undefined | null): void;
358
- /**
359
- * Serializes information the current object
360
- * @param writer Serialization writer to use to serialize this model
361
- */
362
- export declare function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto?: Partial<FieldDefDto> | undefined | null): void;
363
285
  /**
364
286
  * Serializes information the current object
365
287
  * @param writer Serialization writer to use to serialize this model
366
288
  */
367
289
  export declare function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto?: Partial<FieldMappingDto> | undefined | null): void;
368
- /**
369
- * Serializes information the current object
370
- * @param writer Serialization writer to use to serialize this model
371
- */
372
- export declare function serializeFieldMetaDto(writer: SerializationWriter, fieldMetaDto?: Partial<FieldMetaDto> | undefined | null): void;
373
290
  /**
374
291
  * Serializes information the current object
375
292
  * @param writer Serialization writer to use to serialize this model
@@ -390,6 +307,11 @@ export declare function serializeHttpValidationProblemDetails(writer: Serializat
390
307
  * @param writer Serialization writer to use to serialize this model
391
308
  */
392
309
  export declare function serializeHttpValidationProblemDetails_errors(writer: SerializationWriter, httpValidationProblemDetails_errors?: Partial<HttpValidationProblemDetails_errors> | undefined | null): void;
310
+ /**
311
+ * Serializes information the current object
312
+ * @param writer Serialization writer to use to serialize this model
313
+ */
314
+ export declare function serializeIFieldDef(writer: SerializationWriter, iFieldDef?: Partial<IFieldDef> | undefined | null): void;
393
315
  /**
394
316
  * Serializes information the current object
395
317
  * @param writer Serialization writer to use to serialize this model
@@ -404,22 +326,22 @@ export declare function serializeProfileDto(writer: SerializationWriter, profile
404
326
  * Serializes information the current object
405
327
  * @param writer Serialization writer to use to serialize this model
406
328
  */
407
- export declare function serializeRelationDefRefDto(writer: SerializationWriter, relationDefRefDto?: Partial<RelationDefRefDto> | undefined | null): void;
329
+ export declare function serializeSdmFieldDefDto(writer: SerializationWriter, sdmFieldDefDto?: Partial<SdmFieldDefDto> | undefined | null): void;
408
330
  /**
409
331
  * Serializes information the current object
410
332
  * @param writer Serialization writer to use to serialize this model
411
333
  */
412
- export declare function serializeRelationDto(writer: SerializationWriter, relationDto?: Partial<RelationDto> | undefined | null): void;
334
+ export declare function serializeSdmTypeDefDto(writer: SerializationWriter, sdmTypeDefDto?: Partial<SdmTypeDefDto> | undefined | null): void;
413
335
  /**
414
336
  * Serializes information the current object
415
337
  * @param writer Serialization writer to use to serialize this model
416
338
  */
417
- export declare function serializeTypeDefDto(writer: SerializationWriter, typeDefDto?: Partial<TypeDefDto> | undefined | null): void;
339
+ export declare function serializeTpFieldDefDto(writer: SerializationWriter, tpFieldDefDto?: Partial<TpFieldDefDto> | undefined | null): void;
418
340
  /**
419
341
  * Serializes information the current object
420
342
  * @param writer Serialization writer to use to serialize this model
421
343
  */
422
- export declare function serializeTypeDefRefDto(writer: SerializationWriter, typeDefRefDto?: Partial<TypeDefRefDto> | undefined | null): void;
344
+ export declare function serializeTpTypeDefDto(writer: SerializationWriter, tpTypeDefDto?: Partial<TpTypeDefDto> | undefined | null): void;
423
345
  /**
424
346
  * Serializes information the current object
425
347
  * @param writer Serialization writer to use to serialize this model
@@ -430,21 +352,17 @@ export declare function serializeTypeMappingDto(writer: SerializationWriter, typ
430
352
  * @param writer Serialization writer to use to serialize this model
431
353
  */
432
354
  export declare function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDefDto?: Partial<TypeMetaDefDto> | undefined | null): void;
433
- export interface TypeDefDto extends Parsable {
355
+ export interface TpFieldDefDto extends Parsable {
434
356
  /**
435
- * The id property
357
+ * The expression property
436
358
  */
437
- id?: string | null;
359
+ expression?: string | null;
438
360
  /**
439
361
  * The kind property
440
362
  */
441
- kind?: TypeKind | null;
442
- /**
443
- * The name property
444
- */
445
- name?: string | null;
363
+ kind?: FieldType | null;
446
364
  }
447
- export interface TypeDefRefDto extends Parsable {
365
+ export interface TpTypeDefDto extends Parsable {
448
366
  /**
449
367
  * The id property
450
368
  */
@@ -453,6 +371,10 @@ export interface TypeDefRefDto extends Parsable {
453
371
  * The kind property
454
372
  */
455
373
  kind?: TypeKind | null;
374
+ /**
375
+ * The name property
376
+ */
377
+ name?: string | null;
456
378
  }
457
379
  export type TypeKind = (typeof TypeKindObject)[keyof typeof TypeKindObject];
458
380
  export interface TypeMappingDto extends Parsable {
@@ -465,19 +387,19 @@ export interface TypeMappingDto extends Parsable {
465
387
  */
466
388
  id?: string | null;
467
389
  /**
468
- * The sourceType property
390
+ * The sourceTpType property
469
391
  */
470
- sourceType?: TypeDefDto | null;
392
+ sourceTpType?: TpTypeDefDto | null;
471
393
  /**
472
- * The targetType property
394
+ * The targetTpType property
473
395
  */
474
- targetType?: TypeDefDto | null;
396
+ targetTpType?: SdmTypeDefDto | null;
475
397
  }
476
398
  export interface TypeMetaDefDto extends Parsable {
477
399
  /**
478
400
  * The fields property
479
401
  */
480
- fields?: FieldDefDto[] | null;
402
+ fields?: IFieldDef[] | null;
481
403
  /**
482
404
  * The id property
483
405
  */
@@ -491,17 +413,9 @@ export interface TypeMetaDefDto extends Parsable {
491
413
  */
492
414
  name?: string | null;
493
415
  }
494
- export declare const FieldKindObject: {
495
- readonly CollectionFieldMeta: "CollectionFieldMeta";
496
- readonly FieldMeta: "FieldMeta";
497
- readonly SelectFieldMeta: "SelectFieldMeta";
498
- };
499
- export declare const FieldMappingTypeObject: {
500
- readonly ValueFieldMapping: "ValueFieldMapping";
501
- };
502
- export declare const RelationDirectionObject: {
503
- readonly Inbound: "Inbound";
504
- readonly Outbound: "Outbound";
416
+ export declare const FieldTypeObject: {
417
+ readonly SimpleField: "SimpleField";
418
+ readonly CustomExpression: "CustomExpression";
505
419
  };
506
420
  export declare const TypeKindObject: {
507
421
  readonly String: "String";