@targetprocess/shared-data-model-client 0.10.1-ci.2 → 0.10.1-ci.3
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/models/index.d.ts +10 -0
- package/dist/models/index.js +8 -1
- package/package.json +1 -1
- package/src/kiota-lock.json +1 -1
- package/src/models/index.ts +12 -0
- package/src/v1.json +21 -7
package/dist/models/index.d.ts
CHANGED
|
@@ -281,6 +281,10 @@ export interface FieldMappingDto extends Parsable {
|
|
|
281
281
|
* The id property
|
|
282
282
|
*/
|
|
283
283
|
id?: string | null;
|
|
284
|
+
/**
|
|
285
|
+
* The kind property
|
|
286
|
+
*/
|
|
287
|
+
kind?: FieldMappingKind | null;
|
|
284
288
|
/**
|
|
285
289
|
* The source property
|
|
286
290
|
*/
|
|
@@ -294,6 +298,7 @@ export interface FieldMappingDto extends Parsable {
|
|
|
294
298
|
*/
|
|
295
299
|
type?: string | null;
|
|
296
300
|
}
|
|
301
|
+
export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
|
|
297
302
|
export interface GetEntityTypesDto extends Parsable {
|
|
298
303
|
/**
|
|
299
304
|
* The sdmTypes property
|
|
@@ -647,6 +652,11 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
647
652
|
validationState?: ValidationState | null;
|
|
648
653
|
}
|
|
649
654
|
export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
|
|
655
|
+
export declare const FieldMappingKindObject: {
|
|
656
|
+
readonly DefaultEscaped: "Default";
|
|
657
|
+
readonly Custom: "Custom";
|
|
658
|
+
readonly Empty: "Empty";
|
|
659
|
+
};
|
|
650
660
|
export declare const RefKindObject: {
|
|
651
661
|
readonly Single: "Single";
|
|
652
662
|
readonly Collection: "Collection";
|
package/dist/models/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationStateObject = exports.RefKindObject = void 0;
|
|
3
|
+
exports.ValidationStateObject = exports.RefKindObject = exports.FieldMappingKindObject = void 0;
|
|
4
4
|
exports.createCopyCurrentProfileRequestDtoFromDiscriminatorValue = createCopyCurrentProfileRequestDtoFromDiscriminatorValue;
|
|
5
5
|
exports.createFieldDefDtoFromDiscriminatorValue = createFieldDefDtoFromDiscriminatorValue;
|
|
6
6
|
exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromDiscriminatorValue;
|
|
@@ -332,6 +332,7 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
|
|
|
332
332
|
function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
|
|
333
333
|
return {
|
|
334
334
|
"id": n => { fieldMappingDto.id = n.getStringValue(); },
|
|
335
|
+
"kind": n => { fieldMappingDto.kind = n.getEnumValue(exports.FieldMappingKindObject); },
|
|
335
336
|
"source": n => { fieldMappingDto.source = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
336
337
|
"target": n => { fieldMappingDto.target = n.getObjectValue(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
337
338
|
"$type": n => { fieldMappingDto.type = n.getStringValue(); },
|
|
@@ -595,6 +596,7 @@ function serializeFieldDefDto(writer, fieldDefDto = {}) {
|
|
|
595
596
|
function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
|
|
596
597
|
if (fieldMappingDto) {
|
|
597
598
|
writer.writeStringValue("id", fieldMappingDto.id);
|
|
599
|
+
writer.writeEnumValue("kind", fieldMappingDto.kind);
|
|
598
600
|
writer.writeObjectValue("source", fieldMappingDto.source, serializeMappingFieldDefDto);
|
|
599
601
|
writer.writeObjectValue("target", fieldMappingDto.target, serializeMappingFieldDefDto);
|
|
600
602
|
writer.writeStringValue("$type", fieldMappingDto.type);
|
|
@@ -834,6 +836,11 @@ function serializeValidatedTypeMappingDto(writer, validatedTypeMappingDto = {})
|
|
|
834
836
|
writer.writeAdditionalData(validatedTypeMappingDto.additionalData);
|
|
835
837
|
}
|
|
836
838
|
}
|
|
839
|
+
exports.FieldMappingKindObject = {
|
|
840
|
+
DefaultEscaped: "Default",
|
|
841
|
+
Custom: "Custom",
|
|
842
|
+
Empty: "Empty",
|
|
843
|
+
};
|
|
837
844
|
exports.RefKindObject = {
|
|
838
845
|
Single: "Single",
|
|
839
846
|
Collection: "Collection",
|
package/package.json
CHANGED
package/src/kiota-lock.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "7049FC522B770B4D7B9BD51D31B900E198757E17010B02EC046FB44E482A131A209E29BFB14D23E0F6CF62EC2B346E5C946AB0ED19A4DDFBDC774191175F78A6",
|
|
3
3
|
"descriptionLocation": "v1.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
5
|
"kiotaVersion": "1.27.0",
|
package/src/models/index.ts
CHANGED
|
@@ -270,6 +270,7 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
|
|
|
270
270
|
export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
271
271
|
return {
|
|
272
272
|
"id": n => { fieldMappingDto.id = n.getStringValue(); },
|
|
273
|
+
"kind": n => { fieldMappingDto.kind = n.getEnumValue<FieldMappingKind>(FieldMappingKindObject); },
|
|
273
274
|
"source": n => { fieldMappingDto.source = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
274
275
|
"target": n => { fieldMappingDto.target = n.getObjectValue<MappingFieldDefDto>(createMappingFieldDefDtoFromDiscriminatorValue); },
|
|
275
276
|
"$type": n => { fieldMappingDto.type = n.getStringValue(); },
|
|
@@ -526,6 +527,10 @@ export interface FieldMappingDto extends Parsable {
|
|
|
526
527
|
* The id property
|
|
527
528
|
*/
|
|
528
529
|
id?: string | null;
|
|
530
|
+
/**
|
|
531
|
+
* The kind property
|
|
532
|
+
*/
|
|
533
|
+
kind?: FieldMappingKind | null;
|
|
529
534
|
/**
|
|
530
535
|
* The source property
|
|
531
536
|
*/
|
|
@@ -539,6 +544,7 @@ export interface FieldMappingDto extends Parsable {
|
|
|
539
544
|
*/
|
|
540
545
|
type?: string | null;
|
|
541
546
|
}
|
|
547
|
+
export type FieldMappingKind = (typeof FieldMappingKindObject)[keyof typeof FieldMappingKindObject];
|
|
542
548
|
export interface GetEntityTypesDto extends Parsable {
|
|
543
549
|
/**
|
|
544
550
|
* The sdmTypes property
|
|
@@ -661,6 +667,7 @@ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: P
|
|
|
661
667
|
export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
|
|
662
668
|
if (fieldMappingDto) {
|
|
663
669
|
writer.writeStringValue("id", fieldMappingDto.id);
|
|
670
|
+
writer.writeEnumValue<FieldMappingKind>("kind", fieldMappingDto.kind);
|
|
664
671
|
writer.writeObjectValue<MappingFieldDefDto>("source", fieldMappingDto.source, serializeMappingFieldDefDto);
|
|
665
672
|
writer.writeObjectValue<MappingFieldDefDto>("target", fieldMappingDto.target, serializeMappingFieldDefDto);
|
|
666
673
|
writer.writeStringValue("$type", fieldMappingDto.type);
|
|
@@ -1047,6 +1054,11 @@ export interface ValidatedTypeMappingDto extends AdditionalDataHolder, Parsable,
|
|
|
1047
1054
|
validationState?: ValidationState | null;
|
|
1048
1055
|
}
|
|
1049
1056
|
export type ValidationState = (typeof ValidationStateObject)[keyof typeof ValidationStateObject];
|
|
1057
|
+
export const FieldMappingKindObject = {
|
|
1058
|
+
DefaultEscaped: "Default",
|
|
1059
|
+
Custom: "Custom",
|
|
1060
|
+
Empty: "Empty",
|
|
1061
|
+
} as const;
|
|
1050
1062
|
export const RefKindObject = {
|
|
1051
1063
|
Single: "Single",
|
|
1052
1064
|
Collection: "Collection",
|
package/src/v1.json
CHANGED
|
@@ -1979,23 +1979,23 @@
|
|
|
1979
1979
|
"required": [
|
|
1980
1980
|
"$type",
|
|
1981
1981
|
"id",
|
|
1982
|
-
"
|
|
1982
|
+
"source",
|
|
1983
|
+
"target",
|
|
1984
|
+
"kind"
|
|
1983
1985
|
],
|
|
1984
1986
|
"properties": {
|
|
1985
1987
|
"id": {
|
|
1986
1988
|
"type": "string"
|
|
1987
1989
|
},
|
|
1988
1990
|
"source": {
|
|
1989
|
-
"
|
|
1990
|
-
"oneOf": [
|
|
1991
|
-
{
|
|
1992
|
-
"$ref": "#/components/schemas/MappingFieldDefDto"
|
|
1993
|
-
}
|
|
1994
|
-
]
|
|
1991
|
+
"$ref": "#/components/schemas/MappingFieldDefDto"
|
|
1995
1992
|
},
|
|
1996
1993
|
"target": {
|
|
1997
1994
|
"$ref": "#/components/schemas/MappingFieldDefDto"
|
|
1998
1995
|
},
|
|
1996
|
+
"kind": {
|
|
1997
|
+
"$ref": "#/components/schemas/FieldMappingKind"
|
|
1998
|
+
},
|
|
1999
1999
|
"$type": {
|
|
2000
2000
|
"type": "string"
|
|
2001
2001
|
}
|
|
@@ -2013,6 +2013,20 @@
|
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
},
|
|
2016
|
+
"FieldMappingKind": {
|
|
2017
|
+
"type": "string",
|
|
2018
|
+
"description": "",
|
|
2019
|
+
"x-enumNames": [
|
|
2020
|
+
"Default",
|
|
2021
|
+
"Custom",
|
|
2022
|
+
"Empty"
|
|
2023
|
+
],
|
|
2024
|
+
"enum": [
|
|
2025
|
+
"Default",
|
|
2026
|
+
"Custom",
|
|
2027
|
+
"Empty"
|
|
2028
|
+
]
|
|
2029
|
+
},
|
|
2016
2030
|
"ValidatedFieldMappingDto": {
|
|
2017
2031
|
"allOf": [
|
|
2018
2032
|
{
|