@targetprocess/shared-data-model-client 0.2.0-us817798-base-img-dotnet.18 → 0.2.0-us817837-mapping.19

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,13 +1,18 @@
1
- import { type V1RequestBuilder } from './v1/index.js';
1
+ import { type SdmRequestBuilder } from './sdm/index.js';
2
+ import { type SettingsRequestBuilder } from './settings/index.js';
2
3
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
4
  /**
4
5
  * Builds and executes requests for operations under /api
5
6
  */
6
7
  export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder> {
7
8
  /**
8
- * The v1 property
9
+ * The sdm property
9
10
  */
10
- get v1(): V1RequestBuilder;
11
+ get sdm(): SdmRequestBuilder;
12
+ /**
13
+ * The settings property
14
+ */
15
+ get settings(): SettingsRequestBuilder;
11
16
  }
12
17
  /**
13
18
  * Uri template for the request builder.
package/dist/api/index.js CHANGED
@@ -5,7 +5,9 @@ exports.ApiRequestBuilderNavigationMetadata = exports.ApiRequestBuilderUriTempla
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  // @ts-ignore
8
- const index_js_1 = require("./v1/index.js");
8
+ const index_js_1 = require("./sdm/index.js");
9
+ // @ts-ignore
10
+ const index_js_2 = require("./settings/index.js");
9
11
  /**
10
12
  * Uri template for the request builder.
11
13
  */
@@ -14,8 +16,11 @@ exports.ApiRequestBuilderUriTemplate = "{+baseurl}/api";
14
16
  * Metadata for all the navigation properties in the request builder.
15
17
  */
16
18
  exports.ApiRequestBuilderNavigationMetadata = {
17
- v1: {
18
- navigationMetadata: index_js_1.V1RequestBuilderNavigationMetadata,
19
+ sdm: {
20
+ navigationMetadata: index_js_1.SdmRequestBuilderNavigationMetadata,
21
+ },
22
+ settings: {
23
+ navigationMetadata: index_js_2.SettingsRequestBuilderNavigationMetadata,
19
24
  },
20
25
  };
21
26
  /* tslint:enable */
@@ -1,11 +1,11 @@
1
1
  import { type WithEntityTypeItemRequestBuilder } from './item/index.js';
2
2
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
- * Builds and executes requests for operations under /api/v1/sdm
4
+ * Builds and executes requests for operations under /api/sdm
5
5
  */
6
6
  export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
7
7
  /**
8
- * Gets an item from the Tp.api.v1.sdm.item collection
8
+ * Gets an item from the Tp.api.sdm.item collection
9
9
  * @param entityType Unique identifier of the item
10
10
  * @returns {WithEntityTypeItemRequestBuilder}
11
11
  */
@@ -14,7 +14,7 @@ export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder>
14
14
  /**
15
15
  * Uri template for the request builder.
16
16
  */
17
- export declare const SdmRequestBuilderUriTemplate = "{+baseurl}/api/v1/sdm";
17
+ export declare const SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
18
18
  /**
19
19
  * Metadata for all the navigation properties in the request builder.
20
20
  */
@@ -9,7 +9,7 @@ const index_js_1 = require("./item/index.js");
9
9
  /**
10
10
  * Uri template for the request builder.
11
11
  */
12
- exports.SdmRequestBuilderUriTemplate = "{+baseurl}/api/v1/sdm";
12
+ exports.SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
13
13
  /**
14
14
  * Metadata for all the navigation properties in the request builder.
15
15
  */
@@ -1,6 +1,6 @@
1
1
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
2
2
  /**
3
- * Builds and executes requests for operations under /api/v1/sdm/{entityType}
3
+ * Builds and executes requests for operations under /api/sdm/{entityType}
4
4
  */
5
5
  export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<WithEntityTypeItemRequestBuilder> {
6
6
  /**
@@ -34,7 +34,7 @@ export interface WithEntityTypeItemRequestBuilderGetQueryParameters {
34
34
  /**
35
35
  * Uri template for the request builder.
36
36
  */
37
- export declare const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
37
+ export declare const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
38
38
  /**
39
39
  * Metadata for all the requests in the request builder.
40
40
  */
@@ -5,13 +5,13 @@ exports.WithEntityTypeItemRequestBuilderRequestsMetadata = exports.WithEntityTyp
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  // @ts-ignore
8
- const index_js_1 = require("../../../../models/index.js");
8
+ const index_js_1 = require("../../../models/index.js");
9
9
  // @ts-ignore
10
10
  const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
11
11
  /**
12
12
  * Uri template for the request builder.
13
13
  */
14
- exports.WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
14
+ exports.WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
15
15
  /**
16
16
  * Metadata for all the requests in the request builder.
17
17
  */
@@ -1,7 +1,7 @@
1
- import { type GetEntityTypesDto } from '../../../../models/index.js';
1
+ import { type GetEntityTypesDto } from '../../../models/index.js';
2
2
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
- * Builds and executes requests for operations under /api/v1/settings/entityTypes
4
+ * Builds and executes requests for operations under /api/settings/entityTypes
5
5
  */
6
6
  export interface EntityTypesRequestBuilder extends BaseRequestBuilder<EntityTypesRequestBuilder> {
7
7
  /**
@@ -24,7 +24,7 @@ export interface EntityTypesRequestBuilder extends BaseRequestBuilder<EntityType
24
24
  /**
25
25
  * Uri template for the request builder.
26
26
  */
27
- export declare const EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings/entityTypes";
27
+ export declare const EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/settings/entityTypes";
28
28
  /**
29
29
  * Metadata for all the requests in the request builder.
30
30
  */
@@ -5,11 +5,11 @@ exports.EntityTypesRequestBuilderRequestsMetadata = exports.EntityTypesRequestBu
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  // @ts-ignore
8
- const index_js_1 = require("../../../../models/index.js");
8
+ const index_js_1 = require("../../../models/index.js");
9
9
  /**
10
10
  * Uri template for the request builder.
11
11
  */
12
- exports.EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings/entityTypes";
12
+ exports.EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/settings/entityTypes";
13
13
  /**
14
14
  * Metadata for all the requests in the request builder.
15
15
  */
@@ -2,7 +2,7 @@ import { type EntityTypesRequestBuilder } from './entityTypes/index.js';
2
2
  import { type ProfileRequestBuilder } from './profile/index.js';
3
3
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
4
  /**
5
- * Builds and executes requests for operations under /api/v1/settings
5
+ * Builds and executes requests for operations under /api/settings
6
6
  */
7
7
  export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsRequestBuilder> {
8
8
  /**
@@ -17,7 +17,7 @@ export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsReque
17
17
  /**
18
18
  * Uri template for the request builder.
19
19
  */
20
- export declare const SettingsRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings";
20
+ export declare const SettingsRequestBuilderUriTemplate = "{+baseurl}/api/settings";
21
21
  /**
22
22
  * Metadata for all the navigation properties in the request builder.
23
23
  */
@@ -11,7 +11,7 @@ const index_js_2 = require("./profile/index.js");
11
11
  /**
12
12
  * Uri template for the request builder.
13
13
  */
14
- exports.SettingsRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings";
14
+ exports.SettingsRequestBuilderUriTemplate = "{+baseurl}/api/settings";
15
15
  /**
16
16
  * Metadata for all the navigation properties in the request builder.
17
17
  */
@@ -1,7 +1,7 @@
1
- import { type GetProfileSettingsDto, type ProfileDto } from '../../../../models/index.js';
1
+ import { type GetProfileSettingsDto, type ProfileDto } from '../../../models/index.js';
2
2
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
- * Builds and executes requests for operations under /api/v1/settings/profile
4
+ * Builds and executes requests for operations under /api/settings/profile
5
5
  */
6
6
  export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequestBuilder> {
7
7
  /**
@@ -42,7 +42,7 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
42
42
  /**
43
43
  * Uri template for the request builder.
44
44
  */
45
- export declare const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings/profile";
45
+ export declare const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
46
46
  /**
47
47
  * Metadata for all the requests in the request builder.
48
48
  */
@@ -5,11 +5,11 @@ exports.ProfileRequestBuilderRequestsMetadata = exports.ProfileRequestBuilderUri
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  // @ts-ignore
8
- const index_js_1 = require("../../../../models/index.js");
8
+ const index_js_1 = require("../../../models/index.js");
9
9
  /**
10
10
  * Uri template for the request builder.
11
11
  */
12
- exports.ProfileRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings/profile";
12
+ exports.ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
13
13
  /**
14
14
  * Metadata for all the requests in the request builder.
15
15
  */
@@ -59,12 +59,6 @@ export declare function createProblemDetailsFromDiscriminatorValue(parseNode: Pa
59
59
  * @returns {ProfileDto}
60
60
  */
61
61
  export declare function createProfileDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
62
- /**
63
- * Creates a new instance of the appropriate class based on discriminator value
64
- * @param parseNode The parse node to use to read the discriminator value and create the object
65
- * @returns {ProfileMappingDto}
66
- */
67
- export declare function createProfileMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
68
62
  /**
69
63
  * Creates a new instance of the appropriate class based on discriminator value
70
64
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -151,11 +145,6 @@ export declare function deserializeIntoProblemDetails(problemDetails?: Partial<P
151
145
  * @returns {Record<string, (node: ParseNode) => void>}
152
146
  */
153
147
  export declare function deserializeIntoProfileDto(profileDto?: Partial<ProfileDto> | undefined): Record<string, (node: ParseNode) => void>;
154
- /**
155
- * The deserialization information for the current model
156
- * @returns {Record<string, (node: ParseNode) => void>}
157
- */
158
- export declare function deserializeIntoProfileMappingDto(profileMappingDto?: Partial<ProfileMappingDto> | undefined): Record<string, (node: ParseNode) => void>;
159
148
  /**
160
149
  * The deserialization information for the current model
161
150
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -197,10 +186,6 @@ export interface FieldAttributesDto extends Parsable {
197
186
  roleId?: string | null;
198
187
  }
199
188
  export interface FieldDefDto extends Parsable {
200
- /**
201
- * The id property
202
- */
203
- id?: string | null;
204
189
  /**
205
190
  * The meta property
206
191
  */
@@ -216,10 +201,6 @@ export interface FieldDefDto extends Parsable {
216
201
  }
217
202
  export type FieldKind = (typeof FieldKindObject)[keyof typeof FieldKindObject];
218
203
  export interface FieldMappingDto extends Parsable {
219
- /**
220
- * The id property
221
- */
222
- id?: string | null;
223
204
  /**
224
205
  * The source property
225
206
  */
@@ -339,24 +320,6 @@ export interface ProfileDto extends Parsable {
339
320
  * The id property
340
321
  */
341
322
  id?: string | null;
342
- /**
343
- * The mappings property
344
- */
345
- mappings?: ProfileMappingDto[] | null;
346
- }
347
- export interface ProfileMappingDto extends Parsable {
348
- /**
349
- * The enabled property
350
- */
351
- enabled?: boolean | null;
352
- /**
353
- * The id property
354
- */
355
- id?: string | null;
356
- /**
357
- * The name property
358
- */
359
- name?: string | null;
360
323
  /**
361
324
  * The typeMappings property
362
325
  */
@@ -437,11 +400,6 @@ export declare function serializeProblemDetails(writer: SerializationWriter, pro
437
400
  * @param writer Serialization writer to use to serialize this model
438
401
  */
439
402
  export declare function serializeProfileDto(writer: SerializationWriter, profileDto?: Partial<ProfileDto> | undefined | null): void;
440
- /**
441
- * Serializes information the current object
442
- * @param writer Serialization writer to use to serialize this model
443
- */
444
- export declare function serializeProfileMappingDto(writer: SerializationWriter, profileMappingDto?: Partial<ProfileMappingDto> | undefined | null): void;
445
403
  /**
446
404
  * Serializes information the current object
447
405
  * @param writer Serialization writer to use to serialize this model
@@ -477,10 +435,6 @@ export interface TypeDefDto extends Parsable {
477
435
  * The id property
478
436
  */
479
437
  id?: string | null;
480
- /**
481
- * The javaScriptComparator property
482
- */
483
- javaScriptComparator?: string | null;
484
438
  /**
485
439
  * The kind property
486
440
  */
@@ -506,10 +460,6 @@ export interface TypeMappingDto extends Parsable {
506
460
  * The fieldMappings property
507
461
  */
508
462
  fieldMappings?: FieldMappingDto[] | null;
509
- /**
510
- * The id property
511
- */
512
- id?: string | null;
513
463
  /**
514
464
  * The sourceType property
515
465
  */
@@ -544,19 +494,6 @@ export declare const FieldKindObject: {
544
494
  };
545
495
  export declare const FieldMappingTypeObject: {
546
496
  readonly ValueFieldMapping: "ValueFieldMapping";
547
- readonly CollectionFieldMapping: "CollectionFieldMapping";
548
- readonly ReferenceToStringFieldMapping: "ReferenceToStringFieldMapping";
549
- readonly TargetprocessDescriptionMapping: "TargetprocessDescriptionMapping";
550
- readonly CollectionToStringMapping: "CollectionToStringMapping";
551
- readonly RelationFieldMapping: "RelationFieldMapping";
552
- readonly EntityStateMapping: "EntityStateMapping";
553
- readonly JavaScriptFieldMapping: "JavaScriptFieldMapping";
554
- readonly UserFieldMapping: "UserFieldMapping";
555
- readonly RoleAssignmentUserFieldMapping: "RoleAssignmentUserFieldMapping";
556
- readonly RoleEffortFieldMapping: "RoleEffortFieldMapping";
557
- readonly ConstantFieldMapping: "ConstantFieldMapping";
558
- readonly RoleAssignmentsFieldMapping: "RoleAssignmentsFieldMapping";
559
- readonly RoleEffortToRoleEffortFieldMapping: "RoleEffortToRoleEffortFieldMapping";
560
497
  };
561
498
  export declare const RelationDirectionObject: {
562
499
  readonly Inbound: "Inbound";
@@ -11,7 +11,6 @@ exports.createHttpValidationProblemDetails_errorsFromDiscriminatorValue = create
11
11
  exports.createHttpValidationProblemDetailsFromDiscriminatorValue = createHttpValidationProblemDetailsFromDiscriminatorValue;
12
12
  exports.createProblemDetailsFromDiscriminatorValue = createProblemDetailsFromDiscriminatorValue;
13
13
  exports.createProfileDtoFromDiscriminatorValue = createProfileDtoFromDiscriminatorValue;
14
- exports.createProfileMappingDtoFromDiscriminatorValue = createProfileMappingDtoFromDiscriminatorValue;
15
14
  exports.createRelationDefRefDtoFromDiscriminatorValue = createRelationDefRefDtoFromDiscriminatorValue;
16
15
  exports.createRelationDtoFromDiscriminatorValue = createRelationDtoFromDiscriminatorValue;
17
16
  exports.createTypeDefDtoFromDiscriminatorValue = createTypeDefDtoFromDiscriminatorValue;
@@ -28,7 +27,6 @@ exports.deserializeIntoHttpValidationProblemDetails = deserializeIntoHttpValidat
28
27
  exports.deserializeIntoHttpValidationProblemDetails_errors = deserializeIntoHttpValidationProblemDetails_errors;
29
28
  exports.deserializeIntoProblemDetails = deserializeIntoProblemDetails;
30
29
  exports.deserializeIntoProfileDto = deserializeIntoProfileDto;
31
- exports.deserializeIntoProfileMappingDto = deserializeIntoProfileMappingDto;
32
30
  exports.deserializeIntoRelationDefRefDto = deserializeIntoRelationDefRefDto;
33
31
  exports.deserializeIntoRelationDto = deserializeIntoRelationDto;
34
32
  exports.deserializeIntoTypeDefDto = deserializeIntoTypeDefDto;
@@ -45,7 +43,6 @@ exports.serializeHttpValidationProblemDetails = serializeHttpValidationProblemDe
45
43
  exports.serializeHttpValidationProblemDetails_errors = serializeHttpValidationProblemDetails_errors;
46
44
  exports.serializeProblemDetails = serializeProblemDetails;
47
45
  exports.serializeProfileDto = serializeProfileDto;
48
- exports.serializeProfileMappingDto = serializeProfileMappingDto;
49
46
  exports.serializeRelationDefRefDto = serializeRelationDefRefDto;
50
47
  exports.serializeRelationDto = serializeRelationDto;
51
48
  exports.serializeTypeDefDto = serializeTypeDefDto;
@@ -147,15 +144,6 @@ function createProblemDetailsFromDiscriminatorValue(parseNode) {
147
144
  function createProfileDtoFromDiscriminatorValue(parseNode) {
148
145
  return deserializeIntoProfileDto;
149
146
  }
150
- /**
151
- * Creates a new instance of the appropriate class based on discriminator value
152
- * @param parseNode The parse node to use to read the discriminator value and create the object
153
- * @returns {ProfileMappingDto}
154
- */
155
- // @ts-ignore
156
- function createProfileMappingDtoFromDiscriminatorValue(parseNode) {
157
- return deserializeIntoProfileMappingDto;
158
- }
159
147
  /**
160
148
  * Creates a new instance of the appropriate class based on discriminator value
161
149
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -228,7 +216,6 @@ function deserializeIntoFieldAttributesDto(fieldAttributesDto = {}) {
228
216
  // @ts-ignore
229
217
  function deserializeIntoFieldDefDto(fieldDefDto = {}) {
230
218
  return {
231
- "id": n => { fieldDefDto.id = n.getStringValue(); },
232
219
  "meta": n => { fieldDefDto.meta = n.getObjectValue(createFieldMetaDtoFromDiscriminatorValue); },
233
220
  "name": n => { fieldDefDto.name = n.getStringValue(); },
234
221
  "path": n => { fieldDefDto.path = n.getStringValue(); },
@@ -241,7 +228,6 @@ function deserializeIntoFieldDefDto(fieldDefDto = {}) {
241
228
  // @ts-ignore
242
229
  function deserializeIntoFieldMappingDto(fieldMappingDto = {}) {
243
230
  return {
244
- "id": n => { fieldMappingDto.id = n.getStringValue(); },
245
231
  "source": n => { fieldMappingDto.source = n.getObjectValue(createFieldDefDtoFromDiscriminatorValue); },
246
232
  "sourceRel": n => { fieldMappingDto.sourceRel = n.getObjectValue(createRelationDtoFromDiscriminatorValue); },
247
233
  "target": n => { fieldMappingDto.target = n.getObjectValue(createFieldDefDtoFromDiscriminatorValue); },
@@ -329,20 +315,7 @@ function deserializeIntoProfileDto(profileDto = {}) {
329
315
  "account": n => { profileDto.account = n.getStringValue(); },
330
316
  "enabled": n => { profileDto.enabled = n.getBooleanValue(); },
331
317
  "id": n => { profileDto.id = n.getStringValue(); },
332
- "mappings": n => { profileDto.mappings = n.getCollectionOfObjectValues(createProfileMappingDtoFromDiscriminatorValue); },
333
- };
334
- }
335
- /**
336
- * The deserialization information for the current model
337
- * @returns {Record<string, (node: ParseNode) => void>}
338
- */
339
- // @ts-ignore
340
- function deserializeIntoProfileMappingDto(profileMappingDto = {}) {
341
- return {
342
- "enabled": n => { profileMappingDto.enabled = n.getBooleanValue(); },
343
- "id": n => { profileMappingDto.id = n.getStringValue(); },
344
- "name": n => { profileMappingDto.name = n.getStringValue(); },
345
- "typeMappings": n => { profileMappingDto.typeMappings = n.getCollectionOfObjectValues(createTypeMappingDtoFromDiscriminatorValue); },
318
+ "typeMappings": n => { profileDto.typeMappings = n.getCollectionOfObjectValues(createTypeMappingDtoFromDiscriminatorValue); },
346
319
  };
347
320
  }
348
321
  /**
@@ -376,7 +349,6 @@ function deserializeIntoRelationDto(relationDto = {}) {
376
349
  function deserializeIntoTypeDefDto(typeDefDto = {}) {
377
350
  return {
378
351
  "id": n => { typeDefDto.id = n.getStringValue(); },
379
- "javaScriptComparator": n => { typeDefDto.javaScriptComparator = n.getStringValue(); },
380
352
  "kind": n => { typeDefDto.kind = n.getEnumValue(exports.TypeKindObject); },
381
353
  "name": n => { typeDefDto.name = n.getStringValue(); },
382
354
  };
@@ -400,7 +372,6 @@ function deserializeIntoTypeDefRefDto(typeDefRefDto = {}) {
400
372
  function deserializeIntoTypeMappingDto(typeMappingDto = {}) {
401
373
  return {
402
374
  "fieldMappings": n => { typeMappingDto.fieldMappings = n.getCollectionOfObjectValues(createFieldMappingDtoFromDiscriminatorValue); },
403
- "id": n => { typeMappingDto.id = n.getStringValue(); },
404
375
  "sourceType": n => { typeMappingDto.sourceType = n.getObjectValue(createTypeDefDtoFromDiscriminatorValue); },
405
376
  "targetType": n => { typeMappingDto.targetType = n.getObjectValue(createTypeDefDtoFromDiscriminatorValue); },
406
377
  };
@@ -436,7 +407,6 @@ function serializeFieldAttributesDto(writer, fieldAttributesDto = {}) {
436
407
  // @ts-ignore
437
408
  function serializeFieldDefDto(writer, fieldDefDto = {}) {
438
409
  if (fieldDefDto) {
439
- writer.writeStringValue("id", fieldDefDto.id);
440
410
  writer.writeObjectValue("meta", fieldDefDto.meta, serializeFieldMetaDto);
441
411
  writer.writeStringValue("name", fieldDefDto.name);
442
412
  writer.writeStringValue("path", fieldDefDto.path);
@@ -449,7 +419,6 @@ function serializeFieldDefDto(writer, fieldDefDto = {}) {
449
419
  // @ts-ignore
450
420
  function serializeFieldMappingDto(writer, fieldMappingDto = {}) {
451
421
  if (fieldMappingDto) {
452
- writer.writeStringValue("id", fieldMappingDto.id);
453
422
  writer.writeObjectValue("source", fieldMappingDto.source, serializeFieldDefDto);
454
423
  writer.writeObjectValue("sourceRel", fieldMappingDto.sourceRel, serializeRelationDto);
455
424
  writer.writeObjectValue("target", fieldMappingDto.target, serializeFieldDefDto);
@@ -540,20 +509,7 @@ function serializeProfileDto(writer, profileDto = {}) {
540
509
  writer.writeStringValue("account", profileDto.account);
541
510
  writer.writeBooleanValue("enabled", profileDto.enabled);
542
511
  writer.writeStringValue("id", profileDto.id);
543
- writer.writeCollectionOfObjectValues("mappings", profileDto.mappings, serializeProfileMappingDto);
544
- }
545
- }
546
- /**
547
- * Serializes information the current object
548
- * @param writer Serialization writer to use to serialize this model
549
- */
550
- // @ts-ignore
551
- function serializeProfileMappingDto(writer, profileMappingDto = {}) {
552
- if (profileMappingDto) {
553
- writer.writeBooleanValue("enabled", profileMappingDto.enabled);
554
- writer.writeStringValue("id", profileMappingDto.id);
555
- writer.writeStringValue("name", profileMappingDto.name);
556
- writer.writeCollectionOfObjectValues("typeMappings", profileMappingDto.typeMappings, serializeTypeMappingDto);
512
+ writer.writeCollectionOfObjectValues("typeMappings", profileDto.typeMappings, serializeTypeMappingDto);
557
513
  }
558
514
  }
559
515
  /**
@@ -587,7 +543,6 @@ function serializeRelationDto(writer, relationDto = {}) {
587
543
  function serializeTypeDefDto(writer, typeDefDto = {}) {
588
544
  if (typeDefDto) {
589
545
  writer.writeStringValue("id", typeDefDto.id);
590
- writer.writeStringValue("javaScriptComparator", typeDefDto.javaScriptComparator);
591
546
  writer.writeEnumValue("kind", typeDefDto.kind);
592
547
  writer.writeStringValue("name", typeDefDto.name);
593
548
  }
@@ -611,7 +566,6 @@ function serializeTypeDefRefDto(writer, typeDefRefDto = {}) {
611
566
  function serializeTypeMappingDto(writer, typeMappingDto = {}) {
612
567
  if (typeMappingDto) {
613
568
  writer.writeCollectionOfObjectValues("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
614
- writer.writeStringValue("id", typeMappingDto.id);
615
569
  writer.writeObjectValue("sourceType", typeMappingDto.sourceType, serializeTypeDefDto);
616
570
  writer.writeObjectValue("targetType", typeMappingDto.targetType, serializeTypeDefDto);
617
571
  }
@@ -636,19 +590,6 @@ exports.FieldKindObject = {
636
590
  };
637
591
  exports.FieldMappingTypeObject = {
638
592
  ValueFieldMapping: "ValueFieldMapping",
639
- CollectionFieldMapping: "CollectionFieldMapping",
640
- ReferenceToStringFieldMapping: "ReferenceToStringFieldMapping",
641
- TargetprocessDescriptionMapping: "TargetprocessDescriptionMapping",
642
- CollectionToStringMapping: "CollectionToStringMapping",
643
- RelationFieldMapping: "RelationFieldMapping",
644
- EntityStateMapping: "EntityStateMapping",
645
- JavaScriptFieldMapping: "JavaScriptFieldMapping",
646
- UserFieldMapping: "UserFieldMapping",
647
- RoleAssignmentUserFieldMapping: "RoleAssignmentUserFieldMapping",
648
- RoleEffortFieldMapping: "RoleEffortFieldMapping",
649
- ConstantFieldMapping: "ConstantFieldMapping",
650
- RoleAssignmentsFieldMapping: "RoleAssignmentsFieldMapping",
651
- RoleEffortToRoleEffortFieldMapping: "RoleEffortToRoleEffortFieldMapping",
652
593
  };
653
594
  exports.RelationDirectionObject = {
654
595
  Inbound: "Inbound",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "0.2.0-us817798-base-img-dotnet.18",
3
+ "version": "0.2.0-us817837-mapping.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/index.ts CHANGED
@@ -2,7 +2,9 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { type V1RequestBuilder, V1RequestBuilderNavigationMetadata } from './v1/index.js';
5
+ import { SdmRequestBuilderNavigationMetadata, type SdmRequestBuilder } from './sdm/index.js';
6
+ // @ts-ignore
7
+ import { SettingsRequestBuilderNavigationMetadata, type SettingsRequestBuilder } from './settings/index.js';
6
8
  // @ts-ignore
7
9
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
8
10
 
@@ -11,9 +13,13 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
11
13
  */
12
14
  export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder> {
13
15
  /**
14
- * The v1 property
16
+ * The sdm property
17
+ */
18
+ get sdm(): SdmRequestBuilder;
19
+ /**
20
+ * The settings property
15
21
  */
16
- get v1(): V1RequestBuilder;
22
+ get settings(): SettingsRequestBuilder;
17
23
  }
18
24
  /**
19
25
  * Uri template for the request builder.
@@ -23,8 +29,11 @@ export const ApiRequestBuilderUriTemplate = "{+baseurl}/api";
23
29
  * Metadata for all the navigation properties in the request builder.
24
30
  */
25
31
  export const ApiRequestBuilderNavigationMetadata: Record<Exclude<keyof ApiRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
26
- v1: {
27
- navigationMetadata: V1RequestBuilderNavigationMetadata,
32
+ sdm: {
33
+ navigationMetadata: SdmRequestBuilderNavigationMetadata,
34
+ },
35
+ settings: {
36
+ navigationMetadata: SettingsRequestBuilderNavigationMetadata,
28
37
  },
29
38
  };
30
39
  /* tslint:enable */
@@ -7,11 +7,11 @@ import { type WithEntityTypeItemRequestBuilder, WithEntityTypeItemRequestBuilder
7
7
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
8
8
 
9
9
  /**
10
- * Builds and executes requests for operations under /api/v1/sdm
10
+ * Builds and executes requests for operations under /api/sdm
11
11
  */
12
12
  export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
13
13
  /**
14
- * Gets an item from the Tp.api.v1.sdm.item collection
14
+ * Gets an item from the Tp.api.sdm.item collection
15
15
  * @param entityType Unique identifier of the item
16
16
  * @returns {WithEntityTypeItemRequestBuilder}
17
17
  */
@@ -20,7 +20,7 @@ export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder>
20
20
  /**
21
21
  * Uri template for the request builder.
22
22
  */
23
- export const SdmRequestBuilderUriTemplate = "{+baseurl}/api/v1/sdm";
23
+ export const SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
24
24
  /**
25
25
  * Metadata for all the navigation properties in the request builder.
26
26
  */
@@ -2,12 +2,12 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../../models/index.js';
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../models/index.js';
6
6
  // @ts-ignore
7
7
  import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
8
8
 
9
9
  /**
10
- * Builds and executes requests for operations under /api/v1/sdm/{entityType}
10
+ * Builds and executes requests for operations under /api/sdm/{entityType}
11
11
  */
12
12
  export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<WithEntityTypeItemRequestBuilder> {
13
13
  /**
@@ -41,7 +41,7 @@ export interface WithEntityTypeItemRequestBuilderGetQueryParameters {
41
41
  /**
42
42
  * Uri template for the request builder.
43
43
  */
44
- export const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/v1/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
44
+ export const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
45
45
  /**
46
46
  * Metadata for all the requests in the request builder.
47
47
  */
@@ -2,12 +2,12 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createGetEntityTypesDtoFromDiscriminatorValue, createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type GetEntityTypesDto, type HttpValidationProblemDetails, type ProblemDetails } from '../../../../models/index.js';
5
+ import { createGetEntityTypesDtoFromDiscriminatorValue, createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type GetEntityTypesDto, type HttpValidationProblemDetails, type ProblemDetails } from '../../../models/index.js';
6
6
  // @ts-ignore
7
7
  import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8
8
 
9
9
  /**
10
- * Builds and executes requests for operations under /api/v1/settings/entityTypes
10
+ * Builds and executes requests for operations under /api/settings/entityTypes
11
11
  */
12
12
  export interface EntityTypesRequestBuilder extends BaseRequestBuilder<EntityTypesRequestBuilder> {
13
13
  /**
@@ -30,7 +30,7 @@ export interface EntityTypesRequestBuilder extends BaseRequestBuilder<EntityType
30
30
  /**
31
31
  * Uri template for the request builder.
32
32
  */
33
- export const EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings/entityTypes";
33
+ export const EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/settings/entityTypes";
34
34
  /**
35
35
  * Metadata for all the requests in the request builder.
36
36
  */
@@ -9,7 +9,7 @@ import { ProfileRequestBuilderRequestsMetadata, type ProfileRequestBuilder } fro
9
9
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
10
10
 
11
11
  /**
12
- * Builds and executes requests for operations under /api/v1/settings
12
+ * Builds and executes requests for operations under /api/settings
13
13
  */
14
14
  export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsRequestBuilder> {
15
15
  /**
@@ -24,7 +24,7 @@ export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsReque
24
24
  /**
25
25
  * Uri template for the request builder.
26
26
  */
27
- export const SettingsRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings";
27
+ export const SettingsRequestBuilderUriTemplate = "{+baseurl}/api/settings";
28
28
  /**
29
29
  * Metadata for all the navigation properties in the request builder.
30
30
  */
@@ -2,12 +2,12 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createGetProfileSettingsDtoFromDiscriminatorValue, createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, serializeProfileDto, type GetProfileSettingsDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto } from '../../../../models/index.js';
5
+ import { createGetProfileSettingsDtoFromDiscriminatorValue, createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, serializeProfileDto, type GetProfileSettingsDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto } from '../../../models/index.js';
6
6
  // @ts-ignore
7
7
  import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8
8
 
9
9
  /**
10
- * Builds and executes requests for operations under /api/v1/settings/profile
10
+ * Builds and executes requests for operations under /api/settings/profile
11
11
  */
12
12
  export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequestBuilder> {
13
13
  /**
@@ -48,7 +48,7 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
48
48
  /**
49
49
  * Uri template for the request builder.
50
50
  */
51
- export const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/v1/settings/profile";
51
+ export const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
52
52
  /**
53
53
  * Metadata for all the requests in the request builder.
54
54
  */
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "C15B45DD6C999DDE3798A6B3B7E029EDF589F14EAD7EF373B128526702A3230A117EA3EE92DA3CB80B54473AE0BA36C5B663A17607C02EBB84A1F7B241B8BF04",
2
+ "descriptionHash": "E6A66D0CADFD6E276EED07DCD942307D050C94E4FF712DFDC89CE33E60D147DBD716FD6D8ABCB01684C7BF8E04E0988E45321CDC48029772DBA591090AF219B7",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.22.3",
@@ -94,15 +94,6 @@ export function createProblemDetailsFromDiscriminatorValue(parseNode: ParseNode
94
94
  export function createProfileDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
95
95
  return deserializeIntoProfileDto;
96
96
  }
97
- /**
98
- * Creates a new instance of the appropriate class based on discriminator value
99
- * @param parseNode The parse node to use to read the discriminator value and create the object
100
- * @returns {ProfileMappingDto}
101
- */
102
- // @ts-ignore
103
- export function createProfileMappingDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
104
- return deserializeIntoProfileMappingDto;
105
- }
106
97
  /**
107
98
  * Creates a new instance of the appropriate class based on discriminator value
108
99
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -175,7 +166,6 @@ export function deserializeIntoFieldAttributesDto(fieldAttributesDto: Partial<Fi
175
166
  // @ts-ignore
176
167
  export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
177
168
  return {
178
- "id": n => { fieldDefDto.id = n.getStringValue(); },
179
169
  "meta": n => { fieldDefDto.meta = n.getObjectValue<FieldMetaDto>(createFieldMetaDtoFromDiscriminatorValue); },
180
170
  "name": n => { fieldDefDto.name = n.getStringValue(); },
181
171
  "path": n => { fieldDefDto.path = n.getStringValue(); },
@@ -188,7 +178,6 @@ export function deserializeIntoFieldDefDto(fieldDefDto: Partial<FieldDefDto> | u
188
178
  // @ts-ignore
189
179
  export function deserializeIntoFieldMappingDto(fieldMappingDto: Partial<FieldMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
190
180
  return {
191
- "id": n => { fieldMappingDto.id = n.getStringValue(); },
192
181
  "source": n => { fieldMappingDto.source = n.getObjectValue<FieldDefDto>(createFieldDefDtoFromDiscriminatorValue); },
193
182
  "sourceRel": n => { fieldMappingDto.sourceRel = n.getObjectValue<RelationDto>(createRelationDtoFromDiscriminatorValue); },
194
183
  "target": n => { fieldMappingDto.target = n.getObjectValue<FieldDefDto>(createFieldDefDtoFromDiscriminatorValue); },
@@ -277,20 +266,7 @@ export function deserializeIntoProfileDto(profileDto: Partial<ProfileDto> | unde
277
266
  "account": n => { profileDto.account = n.getStringValue(); },
278
267
  "enabled": n => { profileDto.enabled = n.getBooleanValue(); },
279
268
  "id": n => { profileDto.id = n.getStringValue(); },
280
- "mappings": n => { profileDto.mappings = n.getCollectionOfObjectValues<ProfileMappingDto>(createProfileMappingDtoFromDiscriminatorValue); },
281
- }
282
- }
283
- /**
284
- * The deserialization information for the current model
285
- * @returns {Record<string, (node: ParseNode) => void>}
286
- */
287
- // @ts-ignore
288
- export function deserializeIntoProfileMappingDto(profileMappingDto: Partial<ProfileMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
289
- return {
290
- "enabled": n => { profileMappingDto.enabled = n.getBooleanValue(); },
291
- "id": n => { profileMappingDto.id = n.getStringValue(); },
292
- "name": n => { profileMappingDto.name = n.getStringValue(); },
293
- "typeMappings": n => { profileMappingDto.typeMappings = n.getCollectionOfObjectValues<TypeMappingDto>(createTypeMappingDtoFromDiscriminatorValue); },
269
+ "typeMappings": n => { profileDto.typeMappings = n.getCollectionOfObjectValues<TypeMappingDto>(createTypeMappingDtoFromDiscriminatorValue); },
294
270
  }
295
271
  }
296
272
  /**
@@ -324,7 +300,6 @@ export function deserializeIntoRelationDto(relationDto: Partial<RelationDto> | u
324
300
  export function deserializeIntoTypeDefDto(typeDefDto: Partial<TypeDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
325
301
  return {
326
302
  "id": n => { typeDefDto.id = n.getStringValue(); },
327
- "javaScriptComparator": n => { typeDefDto.javaScriptComparator = n.getStringValue(); },
328
303
  "kind": n => { typeDefDto.kind = n.getEnumValue<TypeKind>(TypeKindObject); },
329
304
  "name": n => { typeDefDto.name = n.getStringValue(); },
330
305
  }
@@ -348,7 +323,6 @@ export function deserializeIntoTypeDefRefDto(typeDefRefDto: Partial<TypeDefRefDt
348
323
  export function deserializeIntoTypeMappingDto(typeMappingDto: Partial<TypeMappingDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
349
324
  return {
350
325
  "fieldMappings": n => { typeMappingDto.fieldMappings = n.getCollectionOfObjectValues<FieldMappingDto>(createFieldMappingDtoFromDiscriminatorValue); },
351
- "id": n => { typeMappingDto.id = n.getStringValue(); },
352
326
  "sourceType": n => { typeMappingDto.sourceType = n.getObjectValue<TypeDefDto>(createTypeDefDtoFromDiscriminatorValue); },
353
327
  "targetType": n => { typeMappingDto.targetType = n.getObjectValue<TypeDefDto>(createTypeDefDtoFromDiscriminatorValue); },
354
328
  }
@@ -377,10 +351,6 @@ export interface FieldAttributesDto extends Parsable {
377
351
  roleId?: string | null;
378
352
  }
379
353
  export interface FieldDefDto extends Parsable {
380
- /**
381
- * The id property
382
- */
383
- id?: string | null;
384
354
  /**
385
355
  * The meta property
386
356
  */
@@ -396,10 +366,6 @@ export interface FieldDefDto extends Parsable {
396
366
  }
397
367
  export type FieldKind = (typeof FieldKindObject)[keyof typeof FieldKindObject];
398
368
  export interface FieldMappingDto extends Parsable {
399
- /**
400
- * The id property
401
- */
402
- id?: string | null;
403
369
  /**
404
370
  * The source property
405
371
  */
@@ -519,24 +485,6 @@ export interface ProfileDto extends Parsable {
519
485
  * The id property
520
486
  */
521
487
  id?: string | null;
522
- /**
523
- * The mappings property
524
- */
525
- mappings?: ProfileMappingDto[] | null;
526
- }
527
- export interface ProfileMappingDto extends Parsable {
528
- /**
529
- * The enabled property
530
- */
531
- enabled?: boolean | null;
532
- /**
533
- * The id property
534
- */
535
- id?: string | null;
536
- /**
537
- * The name property
538
- */
539
- name?: string | null;
540
488
  /**
541
489
  * The typeMappings property
542
490
  */
@@ -585,7 +533,6 @@ export function serializeFieldAttributesDto(writer: SerializationWriter, fieldAt
585
533
  // @ts-ignore
586
534
  export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: Partial<FieldDefDto> | undefined | null = {}) : void {
587
535
  if (fieldDefDto) {
588
- writer.writeStringValue("id", fieldDefDto.id);
589
536
  writer.writeObjectValue<FieldMetaDto>("meta", fieldDefDto.meta, serializeFieldMetaDto);
590
537
  writer.writeStringValue("name", fieldDefDto.name);
591
538
  writer.writeStringValue("path", fieldDefDto.path);
@@ -598,7 +545,6 @@ export function serializeFieldDefDto(writer: SerializationWriter, fieldDefDto: P
598
545
  // @ts-ignore
599
546
  export function serializeFieldMappingDto(writer: SerializationWriter, fieldMappingDto: Partial<FieldMappingDto> | undefined | null = {}) : void {
600
547
  if (fieldMappingDto) {
601
- writer.writeStringValue("id", fieldMappingDto.id);
602
548
  writer.writeObjectValue<FieldDefDto>("source", fieldMappingDto.source, serializeFieldDefDto);
603
549
  writer.writeObjectValue<RelationDto>("sourceRel", fieldMappingDto.sourceRel, serializeRelationDto);
604
550
  writer.writeObjectValue<FieldDefDto>("target", fieldMappingDto.target, serializeFieldDefDto);
@@ -689,20 +635,7 @@ export function serializeProfileDto(writer: SerializationWriter, profileDto: Par
689
635
  writer.writeStringValue("account", profileDto.account);
690
636
  writer.writeBooleanValue("enabled", profileDto.enabled);
691
637
  writer.writeStringValue("id", profileDto.id);
692
- writer.writeCollectionOfObjectValues<ProfileMappingDto>("mappings", profileDto.mappings, serializeProfileMappingDto);
693
- }
694
- }
695
- /**
696
- * Serializes information the current object
697
- * @param writer Serialization writer to use to serialize this model
698
- */
699
- // @ts-ignore
700
- export function serializeProfileMappingDto(writer: SerializationWriter, profileMappingDto: Partial<ProfileMappingDto> | undefined | null = {}) : void {
701
- if (profileMappingDto) {
702
- writer.writeBooleanValue("enabled", profileMappingDto.enabled);
703
- writer.writeStringValue("id", profileMappingDto.id);
704
- writer.writeStringValue("name", profileMappingDto.name);
705
- writer.writeCollectionOfObjectValues<TypeMappingDto>("typeMappings", profileMappingDto.typeMappings, serializeTypeMappingDto);
638
+ writer.writeCollectionOfObjectValues<TypeMappingDto>("typeMappings", profileDto.typeMappings, serializeTypeMappingDto);
706
639
  }
707
640
  }
708
641
  /**
@@ -736,7 +669,6 @@ export function serializeRelationDto(writer: SerializationWriter, relationDto: P
736
669
  export function serializeTypeDefDto(writer: SerializationWriter, typeDefDto: Partial<TypeDefDto> | undefined | null = {}) : void {
737
670
  if (typeDefDto) {
738
671
  writer.writeStringValue("id", typeDefDto.id);
739
- writer.writeStringValue("javaScriptComparator", typeDefDto.javaScriptComparator);
740
672
  writer.writeEnumValue<TypeKind>("kind", typeDefDto.kind);
741
673
  writer.writeStringValue("name", typeDefDto.name);
742
674
  }
@@ -760,7 +692,6 @@ export function serializeTypeDefRefDto(writer: SerializationWriter, typeDefRefDt
760
692
  export function serializeTypeMappingDto(writer: SerializationWriter, typeMappingDto: Partial<TypeMappingDto> | undefined | null = {}) : void {
761
693
  if (typeMappingDto) {
762
694
  writer.writeCollectionOfObjectValues<FieldMappingDto>("fieldMappings", typeMappingDto.fieldMappings, serializeFieldMappingDto);
763
- writer.writeStringValue("id", typeMappingDto.id);
764
695
  writer.writeObjectValue<TypeDefDto>("sourceType", typeMappingDto.sourceType, serializeTypeDefDto);
765
696
  writer.writeObjectValue<TypeDefDto>("targetType", typeMappingDto.targetType, serializeTypeDefDto);
766
697
  }
@@ -783,10 +714,6 @@ export interface TypeDefDto extends Parsable {
783
714
  * The id property
784
715
  */
785
716
  id?: string | null;
786
- /**
787
- * The javaScriptComparator property
788
- */
789
- javaScriptComparator?: string | null;
790
717
  /**
791
718
  * The kind property
792
719
  */
@@ -812,10 +739,6 @@ export interface TypeMappingDto extends Parsable {
812
739
  * The fieldMappings property
813
740
  */
814
741
  fieldMappings?: FieldMappingDto[] | null;
815
- /**
816
- * The id property
817
- */
818
- id?: string | null;
819
742
  /**
820
743
  * The sourceType property
821
744
  */
@@ -850,19 +773,6 @@ export const FieldKindObject = {
850
773
  } as const;
851
774
  export const FieldMappingTypeObject = {
852
775
  ValueFieldMapping: "ValueFieldMapping",
853
- CollectionFieldMapping: "CollectionFieldMapping",
854
- ReferenceToStringFieldMapping: "ReferenceToStringFieldMapping",
855
- TargetprocessDescriptionMapping: "TargetprocessDescriptionMapping",
856
- CollectionToStringMapping: "CollectionToStringMapping",
857
- RelationFieldMapping: "RelationFieldMapping",
858
- EntityStateMapping: "EntityStateMapping",
859
- JavaScriptFieldMapping: "JavaScriptFieldMapping",
860
- UserFieldMapping: "UserFieldMapping",
861
- RoleAssignmentUserFieldMapping: "RoleAssignmentUserFieldMapping",
862
- RoleEffortFieldMapping: "RoleEffortFieldMapping",
863
- ConstantFieldMapping: "ConstantFieldMapping",
864
- RoleAssignmentsFieldMapping: "RoleAssignmentsFieldMapping",
865
- RoleEffortToRoleEffortFieldMapping: "RoleEffortToRoleEffortFieldMapping",
866
776
  } as const;
867
777
  export const RelationDirectionObject = {
868
778
  Inbound: "Inbound",
package/src/v1.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "version": "v1"
7
7
  },
8
8
  "paths": {
9
- "/api/v1/sdm/{entityType}": {
9
+ "/api/sdm/{entityType}": {
10
10
  "get": {
11
11
  "tags": [
12
12
  "Sdm"
@@ -139,7 +139,7 @@
139
139
  ]
140
140
  }
141
141
  },
142
- "/api/v1/settings/profile": {
142
+ "/api/settings/profile": {
143
143
  "put": {
144
144
  "tags": [
145
145
  "Settings"
@@ -294,7 +294,7 @@
294
294
  ]
295
295
  }
296
296
  },
297
- "/api/v1/settings/entityTypes": {
297
+ "/api/settings/entityTypes": {
298
298
  "get": {
299
299
  "tags": [
300
300
  "Settings"
@@ -434,7 +434,7 @@
434
434
  "additionalProperties": false,
435
435
  "required": [
436
436
  "account",
437
- "mappings",
437
+ "typeMappings",
438
438
  "enabled"
439
439
  ],
440
440
  "properties": {
@@ -446,10 +446,10 @@
446
446
  "account": {
447
447
  "type": "string"
448
448
  },
449
- "mappings": {
449
+ "typeMappings": {
450
450
  "type": "array",
451
451
  "items": {
452
- "$ref": "#/components/schemas/ProfileMappingDto"
452
+ "$ref": "#/components/schemas/TypeMappingDto"
453
453
  }
454
454
  },
455
455
  "enabled": {
@@ -457,33 +457,6 @@
457
457
  }
458
458
  }
459
459
  },
460
- "ProfileMappingDto": {
461
- "type": "object",
462
- "additionalProperties": false,
463
- "required": [
464
- "name",
465
- "enabled",
466
- "typeMappings"
467
- ],
468
- "properties": {
469
- "id": {
470
- "type": "string",
471
- "nullable": true
472
- },
473
- "name": {
474
- "type": "string"
475
- },
476
- "enabled": {
477
- "type": "boolean"
478
- },
479
- "typeMappings": {
480
- "type": "array",
481
- "items": {
482
- "$ref": "#/components/schemas/TypeMappingDto"
483
- }
484
- }
485
- }
486
- },
487
460
  "TypeMappingDto": {
488
461
  "type": "object",
489
462
  "additionalProperties": false,
@@ -493,10 +466,6 @@
493
466
  "fieldMappings"
494
467
  ],
495
468
  "properties": {
496
- "id": {
497
- "type": "string",
498
- "nullable": true
499
- },
500
469
  "sourceType": {
501
470
  "$ref": "#/components/schemas/TypeDefDto"
502
471
  },
@@ -528,10 +497,6 @@
528
497
  },
529
498
  "kind": {
530
499
  "$ref": "#/components/schemas/TypeKind"
531
- },
532
- "javaScriptComparator": {
533
- "type": "string",
534
- "nullable": true
535
500
  }
536
501
  }
537
502
  },
@@ -573,13 +538,9 @@
573
538
  "type": "object",
574
539
  "additionalProperties": false,
575
540
  "required": [
576
- "id",
577
541
  "type"
578
542
  ],
579
543
  "properties": {
580
- "id": {
581
- "type": "string"
582
- },
583
544
  "type": {
584
545
  "$ref": "#/components/schemas/FieldMappingType"
585
546
  },
@@ -621,51 +582,21 @@
621
582
  "type": "string",
622
583
  "description": "",
623
584
  "x-enumNames": [
624
- "ValueFieldMapping",
625
- "CollectionFieldMapping",
626
- "ReferenceToStringFieldMapping",
627
- "TargetprocessDescriptionMapping",
628
- "CollectionToStringMapping",
629
- "RelationFieldMapping",
630
- "EntityStateMapping",
631
- "JavaScriptFieldMapping",
632
- "UserFieldMapping",
633
- "RoleAssignmentUserFieldMapping",
634
- "RoleEffortFieldMapping",
635
- "ConstantFieldMapping",
636
- "RoleAssignmentsFieldMapping",
637
- "RoleEffortToRoleEffortFieldMapping"
585
+ "ValueFieldMapping"
638
586
  ],
639
587
  "enum": [
640
- "ValueFieldMapping",
641
- "CollectionFieldMapping",
642
- "ReferenceToStringFieldMapping",
643
- "TargetprocessDescriptionMapping",
644
- "CollectionToStringMapping",
645
- "RelationFieldMapping",
646
- "EntityStateMapping",
647
- "JavaScriptFieldMapping",
648
- "UserFieldMapping",
649
- "RoleAssignmentUserFieldMapping",
650
- "RoleEffortFieldMapping",
651
- "ConstantFieldMapping",
652
- "RoleAssignmentsFieldMapping",
653
- "RoleEffortToRoleEffortFieldMapping"
588
+ "ValueFieldMapping"
654
589
  ]
655
590
  },
656
591
  "FieldDefDto": {
657
592
  "type": "object",
658
593
  "additionalProperties": false,
659
594
  "required": [
660
- "id",
661
595
  "name",
662
596
  "path",
663
597
  "meta"
664
598
  ],
665
599
  "properties": {
666
- "id": {
667
- "type": "string"
668
- },
669
600
  "name": {
670
601
  "type": "string"
671
602
  },
@@ -888,7 +819,7 @@
888
819
  "in": "header",
889
820
  "flows": {
890
821
  "clientCredentials": {
891
- "tokenUrl": "http://tplocal.com/svc/auth/connect/token",
822
+ "tokenUrl": "https://auth-toxic.tpondemand.com//connect/token",
892
823
  "scopes": {
893
824
  "tp": "Targetprocess"
894
825
  }
@@ -1,24 +0,0 @@
1
- import { type SdmRequestBuilder } from './sdm/index.js';
2
- import { type SettingsRequestBuilder } from './settings/index.js';
3
- import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
- /**
5
- * Builds and executes requests for operations under /api/v1
6
- */
7
- export interface V1RequestBuilder extends BaseRequestBuilder<V1RequestBuilder> {
8
- /**
9
- * The sdm property
10
- */
11
- get sdm(): SdmRequestBuilder;
12
- /**
13
- * The settings property
14
- */
15
- get settings(): SettingsRequestBuilder;
16
- }
17
- /**
18
- * Uri template for the request builder.
19
- */
20
- export declare const V1RequestBuilderUriTemplate = "{+baseurl}/api/v1";
21
- /**
22
- * Metadata for all the navigation properties in the request builder.
23
- */
24
- export declare const V1RequestBuilderNavigationMetadata: Record<Exclude<keyof V1RequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.V1RequestBuilderNavigationMetadata = exports.V1RequestBuilderUriTemplate = void 0;
4
- /* tslint:disable */
5
- /* eslint-disable */
6
- // Generated by Microsoft Kiota
7
- // @ts-ignore
8
- const index_js_1 = require("./sdm/index.js");
9
- // @ts-ignore
10
- const index_js_2 = require("./settings/index.js");
11
- /**
12
- * Uri template for the request builder.
13
- */
14
- exports.V1RequestBuilderUriTemplate = "{+baseurl}/api/v1";
15
- /**
16
- * Metadata for all the navigation properties in the request builder.
17
- */
18
- exports.V1RequestBuilderNavigationMetadata = {
19
- sdm: {
20
- navigationMetadata: index_js_1.SdmRequestBuilderNavigationMetadata,
21
- },
22
- settings: {
23
- navigationMetadata: index_js_2.SettingsRequestBuilderNavigationMetadata,
24
- },
25
- };
26
- /* tslint:enable */
27
- /* eslint-enable */
@@ -1,40 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- // Generated by Microsoft Kiota
4
- // @ts-ignore
5
- import { SdmRequestBuilderNavigationMetadata, type SdmRequestBuilder } from './sdm/index.js';
6
- // @ts-ignore
7
- import { SettingsRequestBuilderNavigationMetadata, type SettingsRequestBuilder } from './settings/index.js';
8
- // @ts-ignore
9
- import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
10
-
11
- /**
12
- * Builds and executes requests for operations under /api/v1
13
- */
14
- export interface V1RequestBuilder extends BaseRequestBuilder<V1RequestBuilder> {
15
- /**
16
- * The sdm property
17
- */
18
- get sdm(): SdmRequestBuilder;
19
- /**
20
- * The settings property
21
- */
22
- get settings(): SettingsRequestBuilder;
23
- }
24
- /**
25
- * Uri template for the request builder.
26
- */
27
- export const V1RequestBuilderUriTemplate = "{+baseurl}/api/v1";
28
- /**
29
- * Metadata for all the navigation properties in the request builder.
30
- */
31
- export const V1RequestBuilderNavigationMetadata: Record<Exclude<keyof V1RequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
32
- sdm: {
33
- navigationMetadata: SdmRequestBuilderNavigationMetadata,
34
- },
35
- settings: {
36
- navigationMetadata: SettingsRequestBuilderNavigationMetadata,
37
- },
38
- };
39
- /* tslint:enable */
40
- /* eslint-enable */