@targetprocess/shared-data-model-client 0.1.0-0-0-4.1 → 0.1.0-0-0-6.1

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,18 +1,18 @@
1
+ import { type SdmRequestBuilder } from './sdm/index.js';
1
2
  import { type SettingsRequestBuilder } from './settings/index.js';
2
- import { type SharedDataRequestBuilder } from './sharedData/index.js';
3
3
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
4
  /**
5
5
  * Builds and executes requests for operations under /api
6
6
  */
7
7
  export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder> {
8
8
  /**
9
- * The settings property
9
+ * The sdm property
10
10
  */
11
- get settings(): SettingsRequestBuilder;
11
+ get sdm(): SdmRequestBuilder;
12
12
  /**
13
- * The sharedData property
13
+ * The settings property
14
14
  */
15
- get sharedData(): SharedDataRequestBuilder;
15
+ get settings(): SettingsRequestBuilder;
16
16
  }
17
17
  /**
18
18
  * Uri template for the request builder.
package/dist/api/index.js CHANGED
@@ -5,9 +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("./settings/index.js");
8
+ const index_js_1 = require("./sdm/index.js");
9
9
  // @ts-ignore
10
- const index_js_2 = require("./sharedData/index.js");
10
+ const index_js_2 = require("./settings/index.js");
11
11
  /**
12
12
  * Uri template for the request builder.
13
13
  */
@@ -16,11 +16,11 @@ exports.ApiRequestBuilderUriTemplate = "{+baseurl}/api";
16
16
  * Metadata for all the navigation properties in the request builder.
17
17
  */
18
18
  exports.ApiRequestBuilderNavigationMetadata = {
19
- settings: {
20
- navigationMetadata: index_js_1.SettingsRequestBuilderNavigationMetadata,
19
+ sdm: {
20
+ navigationMetadata: index_js_1.SdmRequestBuilderNavigationMetadata,
21
21
  },
22
- sharedData: {
23
- requestsMetadata: index_js_2.SharedDataRequestBuilderRequestsMetadata,
22
+ settings: {
23
+ navigationMetadata: index_js_2.SettingsRequestBuilderNavigationMetadata,
24
24
  },
25
25
  };
26
26
  /* tslint:enable */
@@ -0,0 +1,21 @@
1
+ import { type WithEntityTypeItemRequestBuilder } from './item/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /api/sdm
5
+ */
6
+ export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
7
+ /**
8
+ * Gets an item from the Tp.api.sdm.item collection
9
+ * @param entityType Unique identifier of the item
10
+ * @returns {WithEntityTypeItemRequestBuilder}
11
+ */
12
+ byEntityType(entityType: string): WithEntityTypeItemRequestBuilder;
13
+ }
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export declare const SdmRequestBuilderNavigationMetadata: Record<Exclude<keyof SdmRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdmRequestBuilderNavigationMetadata = exports.SdmRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("./item/index.js");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
13
+ /**
14
+ * Metadata for all the navigation properties in the request builder.
15
+ */
16
+ exports.SdmRequestBuilderNavigationMetadata = {
17
+ byEntityType: {
18
+ requestsMetadata: index_js_1.WithEntityTypeItemRequestBuilderRequestsMetadata,
19
+ pathParametersMappings: ["entityType"],
20
+ },
21
+ };
22
+ /* tslint:enable */
23
+ /* eslint-enable */
@@ -0,0 +1,41 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Builds and executes requests for operations under /api/sdm/{entityType}
4
+ */
5
+ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<WithEntityTypeItemRequestBuilder> {
6
+ /**
7
+ * Retrieves Shared Data Model
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<UntypedNode>}
10
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
11
+ * @throws {ProblemDetails} error when the service returns a 401 status code
12
+ * @throws {ProblemDetails} error when the service returns a 404 status code
13
+ * @throws {ProblemDetails} error when the service returns a 500 status code
14
+ */
15
+ get(requestConfiguration?: RequestConfiguration<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined): Promise<UntypedNode | undefined>;
16
+ /**
17
+ * Retrieves Shared Data Model
18
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
19
+ * @returns {RequestInformation}
20
+ */
21
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
22
+ }
23
+ /**
24
+ * Retrieves Shared Data Model
25
+ */
26
+ export interface WithEntityTypeItemRequestBuilderGetQueryParameters {
27
+ filter?: string;
28
+ orderBy?: string;
29
+ select?: string;
30
+ skip?: number;
31
+ take?: number;
32
+ where?: string;
33
+ }
34
+ /**
35
+ * Uri template for the request builder.
36
+ */
37
+ export declare const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
38
+ /**
39
+ * Metadata for all the requests in the request builder.
40
+ */
41
+ export declare const WithEntityTypeItemRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -1,21 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SharedDataRequestBuilderRequestsMetadata = exports.SharedDataRequestBuilderUriTemplate = void 0;
3
+ exports.WithEntityTypeItemRequestBuilderRequestsMetadata = exports.WithEntityTypeItemRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
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
+ // @ts-ignore
10
+ const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
9
11
  /**
10
12
  * Uri template for the request builder.
11
13
  */
12
- exports.SharedDataRequestBuilderUriTemplate = "{+baseurl}/api/sharedData";
14
+ exports.WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
13
15
  /**
14
16
  * Metadata for all the requests in the request builder.
15
17
  */
16
- exports.SharedDataRequestBuilderRequestsMetadata = {
18
+ exports.WithEntityTypeItemRequestBuilderRequestsMetadata = {
17
19
  get: {
18
- uriTemplate: exports.SharedDataRequestBuilderUriTemplate,
20
+ uriTemplate: exports.WithEntityTypeItemRequestBuilderUriTemplate,
19
21
  responseBodyContentType: "application/json",
20
22
  errorMappings: {
21
23
  400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
@@ -24,7 +26,7 @@ exports.SharedDataRequestBuilderRequestsMetadata = {
24
26
  500: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
27
  },
26
28
  adapterMethodName: "send",
27
- responseBodyFactory: index_js_1.createGetSharedDataModelResponseDtoFromDiscriminatorValue,
29
+ responseBodyFactory: kiota_abstractions_1.createUntypedNodeFromDiscriminatorValue,
28
30
  },
29
31
  };
30
32
  /* tslint:enable */
@@ -35,12 +35,6 @@ export declare function createGetEntityTypesDtoFromDiscriminatorValue(parseNode:
35
35
  * @returns {GetProfileSettingsDto}
36
36
  */
37
37
  export declare function createGetProfileSettingsDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
38
- /**
39
- * Creates a new instance of the appropriate class based on discriminator value
40
- * @param parseNode The parse node to use to read the discriminator value and create the object
41
- * @returns {GetSharedDataModelResponseDto}
42
- */
43
- export declare function createGetSharedDataModelResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
44
38
  /**
45
39
  * Creates a new instance of the appropriate class based on discriminator value
46
40
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -83,12 +77,6 @@ export declare function createRelationDefRefDtoFromDiscriminatorValue(parseNode:
83
77
  * @returns {RelationDto}
84
78
  */
85
79
  export declare function createRelationDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
86
- /**
87
- * Creates a new instance of the appropriate class based on discriminator value
88
- * @param parseNode The parse node to use to read the discriminator value and create the object
89
- * @returns {TpUser}
90
- */
91
- export declare function createTpUserFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
92
80
  /**
93
81
  * Creates a new instance of the appropriate class based on discriminator value
94
82
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -143,11 +131,6 @@ export declare function deserializeIntoGetEntityTypesDto(getEntityTypesDto?: Par
143
131
  * @returns {Record<string, (node: ParseNode) => void>}
144
132
  */
145
133
  export declare function deserializeIntoGetProfileSettingsDto(getProfileSettingsDto?: Partial<GetProfileSettingsDto> | undefined): Record<string, (node: ParseNode) => void>;
146
- /**
147
- * The deserialization information for the current model
148
- * @returns {Record<string, (node: ParseNode) => void>}
149
- */
150
- export declare function deserializeIntoGetSharedDataModelResponseDto(getSharedDataModelResponseDto?: Partial<GetSharedDataModelResponseDto> | undefined): Record<string, (node: ParseNode) => void>;
151
134
  /**
152
135
  * The deserialization information for the current model
153
136
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -183,11 +166,6 @@ export declare function deserializeIntoRelationDefRefDto(relationDefRefDto?: Par
183
166
  * @returns {Record<string, (node: ParseNode) => void>}
184
167
  */
185
168
  export declare function deserializeIntoRelationDto(relationDto?: Partial<RelationDto> | undefined): Record<string, (node: ParseNode) => void>;
186
- /**
187
- * The deserialization information for the current model
188
- * @returns {Record<string, (node: ParseNode) => void>}
189
- */
190
- export declare function deserializeIntoTpUser(tpUser?: Partial<TpUser> | undefined): Record<string, (node: ParseNode) => void>;
191
169
  /**
192
170
  * The deserialization information for the current model
193
171
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -310,12 +288,6 @@ export interface GetProfileSettingsDto extends Parsable {
310
288
  */
311
289
  profile?: ProfileDto | null;
312
290
  }
313
- export interface GetSharedDataModelResponseDto extends Parsable {
314
- /**
315
- * The users property
316
- */
317
- users?: TpUser[] | null;
318
- }
319
291
  export interface HttpValidationProblemDetails extends ApiError, Parsable, ProblemDetails {
320
292
  /**
321
293
  * The errors property
@@ -355,6 +327,14 @@ export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable
355
327
  type?: string | null;
356
328
  }
357
329
  export interface ProfileDto extends Parsable {
330
+ /**
331
+ * The account property
332
+ */
333
+ account?: string | null;
334
+ /**
335
+ * The enabled property
336
+ */
337
+ enabled?: boolean | null;
358
338
  /**
359
339
  * The id property
360
340
  */
@@ -363,10 +343,6 @@ export interface ProfileDto extends Parsable {
363
343
  * The mappings property
364
344
  */
365
345
  mappings?: ProfileMappingDto[] | null;
366
- /**
367
- * The name property
368
- */
369
- name?: string | null;
370
346
  }
371
347
  export interface ProfileMappingDto extends Parsable {
372
348
  /**
@@ -441,11 +417,6 @@ export declare function serializeGetEntityTypesDto(writer: SerializationWriter,
441
417
  * @param writer Serialization writer to use to serialize this model
442
418
  */
443
419
  export declare function serializeGetProfileSettingsDto(writer: SerializationWriter, getProfileSettingsDto?: Partial<GetProfileSettingsDto> | undefined | null): void;
444
- /**
445
- * Serializes information the current object
446
- * @param writer Serialization writer to use to serialize this model
447
- */
448
- export declare function serializeGetSharedDataModelResponseDto(writer: SerializationWriter, getSharedDataModelResponseDto?: Partial<GetSharedDataModelResponseDto> | undefined | null): void;
449
420
  /**
450
421
  * Serializes information the current object
451
422
  * @param writer Serialization writer to use to serialize this model
@@ -481,11 +452,6 @@ export declare function serializeRelationDefRefDto(writer: SerializationWriter,
481
452
  * @param writer Serialization writer to use to serialize this model
482
453
  */
483
454
  export declare function serializeRelationDto(writer: SerializationWriter, relationDto?: Partial<RelationDto> | undefined | null): void;
484
- /**
485
- * Serializes information the current object
486
- * @param writer Serialization writer to use to serialize this model
487
- */
488
- export declare function serializeTpUser(writer: SerializationWriter, tpUser?: Partial<TpUser> | undefined | null): void;
489
455
  /**
490
456
  * Serializes information the current object
491
457
  * @param writer Serialization writer to use to serialize this model
@@ -506,12 +472,6 @@ export declare function serializeTypeMappingDto(writer: SerializationWriter, typ
506
472
  * @param writer Serialization writer to use to serialize this model
507
473
  */
508
474
  export declare function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDefDto?: Partial<TypeMetaDefDto> | undefined | null): void;
509
- export interface TpUser extends Parsable {
510
- /**
511
- * The email property
512
- */
513
- email?: string | null;
514
- }
515
475
  export interface TypeDefDto extends Parsable {
516
476
  /**
517
477
  * The id property
@@ -7,7 +7,6 @@ exports.createFieldMappingDtoFromDiscriminatorValue = createFieldMappingDtoFromD
7
7
  exports.createFieldMetaDtoFromDiscriminatorValue = createFieldMetaDtoFromDiscriminatorValue;
8
8
  exports.createGetEntityTypesDtoFromDiscriminatorValue = createGetEntityTypesDtoFromDiscriminatorValue;
9
9
  exports.createGetProfileSettingsDtoFromDiscriminatorValue = createGetProfileSettingsDtoFromDiscriminatorValue;
10
- exports.createGetSharedDataModelResponseDtoFromDiscriminatorValue = createGetSharedDataModelResponseDtoFromDiscriminatorValue;
11
10
  exports.createHttpValidationProblemDetails_errorsFromDiscriminatorValue = createHttpValidationProblemDetails_errorsFromDiscriminatorValue;
12
11
  exports.createHttpValidationProblemDetailsFromDiscriminatorValue = createHttpValidationProblemDetailsFromDiscriminatorValue;
13
12
  exports.createProblemDetailsFromDiscriminatorValue = createProblemDetailsFromDiscriminatorValue;
@@ -15,7 +14,6 @@ exports.createProfileDtoFromDiscriminatorValue = createProfileDtoFromDiscriminat
15
14
  exports.createProfileMappingDtoFromDiscriminatorValue = createProfileMappingDtoFromDiscriminatorValue;
16
15
  exports.createRelationDefRefDtoFromDiscriminatorValue = createRelationDefRefDtoFromDiscriminatorValue;
17
16
  exports.createRelationDtoFromDiscriminatorValue = createRelationDtoFromDiscriminatorValue;
18
- exports.createTpUserFromDiscriminatorValue = createTpUserFromDiscriminatorValue;
19
17
  exports.createTypeDefDtoFromDiscriminatorValue = createTypeDefDtoFromDiscriminatorValue;
20
18
  exports.createTypeDefRefDtoFromDiscriminatorValue = createTypeDefRefDtoFromDiscriminatorValue;
21
19
  exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
@@ -26,7 +24,6 @@ exports.deserializeIntoFieldMappingDto = deserializeIntoFieldMappingDto;
26
24
  exports.deserializeIntoFieldMetaDto = deserializeIntoFieldMetaDto;
27
25
  exports.deserializeIntoGetEntityTypesDto = deserializeIntoGetEntityTypesDto;
28
26
  exports.deserializeIntoGetProfileSettingsDto = deserializeIntoGetProfileSettingsDto;
29
- exports.deserializeIntoGetSharedDataModelResponseDto = deserializeIntoGetSharedDataModelResponseDto;
30
27
  exports.deserializeIntoHttpValidationProblemDetails = deserializeIntoHttpValidationProblemDetails;
31
28
  exports.deserializeIntoHttpValidationProblemDetails_errors = deserializeIntoHttpValidationProblemDetails_errors;
32
29
  exports.deserializeIntoProblemDetails = deserializeIntoProblemDetails;
@@ -34,7 +31,6 @@ exports.deserializeIntoProfileDto = deserializeIntoProfileDto;
34
31
  exports.deserializeIntoProfileMappingDto = deserializeIntoProfileMappingDto;
35
32
  exports.deserializeIntoRelationDefRefDto = deserializeIntoRelationDefRefDto;
36
33
  exports.deserializeIntoRelationDto = deserializeIntoRelationDto;
37
- exports.deserializeIntoTpUser = deserializeIntoTpUser;
38
34
  exports.deserializeIntoTypeDefDto = deserializeIntoTypeDefDto;
39
35
  exports.deserializeIntoTypeDefRefDto = deserializeIntoTypeDefRefDto;
40
36
  exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
@@ -45,7 +41,6 @@ exports.serializeFieldMappingDto = serializeFieldMappingDto;
45
41
  exports.serializeFieldMetaDto = serializeFieldMetaDto;
46
42
  exports.serializeGetEntityTypesDto = serializeGetEntityTypesDto;
47
43
  exports.serializeGetProfileSettingsDto = serializeGetProfileSettingsDto;
48
- exports.serializeGetSharedDataModelResponseDto = serializeGetSharedDataModelResponseDto;
49
44
  exports.serializeHttpValidationProblemDetails = serializeHttpValidationProblemDetails;
50
45
  exports.serializeHttpValidationProblemDetails_errors = serializeHttpValidationProblemDetails_errors;
51
46
  exports.serializeProblemDetails = serializeProblemDetails;
@@ -53,7 +48,6 @@ exports.serializeProfileDto = serializeProfileDto;
53
48
  exports.serializeProfileMappingDto = serializeProfileMappingDto;
54
49
  exports.serializeRelationDefRefDto = serializeRelationDefRefDto;
55
50
  exports.serializeRelationDto = serializeRelationDto;
56
- exports.serializeTpUser = serializeTpUser;
57
51
  exports.serializeTypeDefDto = serializeTypeDefDto;
58
52
  exports.serializeTypeDefRefDto = serializeTypeDefRefDto;
59
53
  exports.serializeTypeMappingDto = serializeTypeMappingDto;
@@ -117,15 +111,6 @@ function createGetEntityTypesDtoFromDiscriminatorValue(parseNode) {
117
111
  function createGetProfileSettingsDtoFromDiscriminatorValue(parseNode) {
118
112
  return deserializeIntoGetProfileSettingsDto;
119
113
  }
120
- /**
121
- * Creates a new instance of the appropriate class based on discriminator value
122
- * @param parseNode The parse node to use to read the discriminator value and create the object
123
- * @returns {GetSharedDataModelResponseDto}
124
- */
125
- // @ts-ignore
126
- function createGetSharedDataModelResponseDtoFromDiscriminatorValue(parseNode) {
127
- return deserializeIntoGetSharedDataModelResponseDto;
128
- }
129
114
  /**
130
115
  * Creates a new instance of the appropriate class based on discriminator value
131
116
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -189,15 +174,6 @@ function createRelationDefRefDtoFromDiscriminatorValue(parseNode) {
189
174
  function createRelationDtoFromDiscriminatorValue(parseNode) {
190
175
  return deserializeIntoRelationDto;
191
176
  }
192
- /**
193
- * Creates a new instance of the appropriate class based on discriminator value
194
- * @param parseNode The parse node to use to read the discriminator value and create the object
195
- * @returns {TpUser}
196
- */
197
- // @ts-ignore
198
- function createTpUserFromDiscriminatorValue(parseNode) {
199
- return deserializeIntoTpUser;
200
- }
201
177
  /**
202
178
  * Creates a new instance of the appropriate class based on discriminator value
203
179
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -315,16 +291,6 @@ function deserializeIntoGetProfileSettingsDto(getProfileSettingsDto = {}) {
315
291
  * @returns {Record<string, (node: ParseNode) => void>}
316
292
  */
317
293
  // @ts-ignore
318
- function deserializeIntoGetSharedDataModelResponseDto(getSharedDataModelResponseDto = {}) {
319
- return {
320
- "users": n => { getSharedDataModelResponseDto.users = n.getCollectionOfObjectValues(createTpUserFromDiscriminatorValue); },
321
- };
322
- }
323
- /**
324
- * The deserialization information for the current model
325
- * @returns {Record<string, (node: ParseNode) => void>}
326
- */
327
- // @ts-ignore
328
294
  function deserializeIntoHttpValidationProblemDetails(httpValidationProblemDetails = {}) {
329
295
  return {
330
296
  ...deserializeIntoProblemDetails(httpValidationProblemDetails),
@@ -360,9 +326,10 @@ function deserializeIntoProblemDetails(problemDetails = {}) {
360
326
  // @ts-ignore
361
327
  function deserializeIntoProfileDto(profileDto = {}) {
362
328
  return {
329
+ "account": n => { profileDto.account = n.getStringValue(); },
330
+ "enabled": n => { profileDto.enabled = n.getBooleanValue(); },
363
331
  "id": n => { profileDto.id = n.getStringValue(); },
364
332
  "mappings": n => { profileDto.mappings = n.getCollectionOfObjectValues(createProfileMappingDtoFromDiscriminatorValue); },
365
- "name": n => { profileDto.name = n.getStringValue(); },
366
333
  };
367
334
  }
368
335
  /**
@@ -406,16 +373,6 @@ function deserializeIntoRelationDto(relationDto = {}) {
406
373
  * @returns {Record<string, (node: ParseNode) => void>}
407
374
  */
408
375
  // @ts-ignore
409
- function deserializeIntoTpUser(tpUser = {}) {
410
- return {
411
- "email": n => { tpUser.email = n.getStringValue(); },
412
- };
413
- }
414
- /**
415
- * The deserialization information for the current model
416
- * @returns {Record<string, (node: ParseNode) => void>}
417
- */
418
- // @ts-ignore
419
376
  function deserializeIntoTypeDefDto(typeDefDto = {}) {
420
377
  return {
421
378
  "id": n => { typeDefDto.id = n.getStringValue(); },
@@ -542,16 +499,6 @@ function serializeGetProfileSettingsDto(writer, getProfileSettingsDto = {}) {
542
499
  * @param writer Serialization writer to use to serialize this model
543
500
  */
544
501
  // @ts-ignore
545
- function serializeGetSharedDataModelResponseDto(writer, getSharedDataModelResponseDto = {}) {
546
- if (getSharedDataModelResponseDto) {
547
- writer.writeCollectionOfObjectValues("users", getSharedDataModelResponseDto.users, serializeTpUser);
548
- }
549
- }
550
- /**
551
- * Serializes information the current object
552
- * @param writer Serialization writer to use to serialize this model
553
- */
554
- // @ts-ignore
555
502
  function serializeHttpValidationProblemDetails(writer, httpValidationProblemDetails = {}) {
556
503
  if (httpValidationProblemDetails) {
557
504
  serializeProblemDetails(writer, httpValidationProblemDetails);
@@ -590,9 +537,10 @@ function serializeProblemDetails(writer, problemDetails = {}) {
590
537
  // @ts-ignore
591
538
  function serializeProfileDto(writer, profileDto = {}) {
592
539
  if (profileDto) {
540
+ writer.writeStringValue("account", profileDto.account);
541
+ writer.writeBooleanValue("enabled", profileDto.enabled);
593
542
  writer.writeStringValue("id", profileDto.id);
594
543
  writer.writeCollectionOfObjectValues("mappings", profileDto.mappings, serializeProfileMappingDto);
595
- writer.writeStringValue("name", profileDto.name);
596
544
  }
597
545
  }
598
546
  /**
@@ -636,16 +584,6 @@ function serializeRelationDto(writer, relationDto = {}) {
636
584
  * @param writer Serialization writer to use to serialize this model
637
585
  */
638
586
  // @ts-ignore
639
- function serializeTpUser(writer, tpUser = {}) {
640
- if (tpUser) {
641
- writer.writeStringValue("email", tpUser.email);
642
- }
643
- }
644
- /**
645
- * Serializes information the current object
646
- * @param writer Serialization writer to use to serialize this model
647
- */
648
- // @ts-ignore
649
587
  function serializeTypeDefDto(writer, typeDefDto = {}) {
650
588
  if (typeDefDto) {
651
589
  writer.writeStringValue("id", typeDefDto.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "0.1.0-0-0-4.1",
3
+ "version": "0.1.0-0-0-6.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/index.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { SettingsRequestBuilderNavigationMetadata, type SettingsRequestBuilder } from './settings/index.js';
5
+ import { SdmRequestBuilderNavigationMetadata, type SdmRequestBuilder } from './sdm/index.js';
6
6
  // @ts-ignore
7
- import { SharedDataRequestBuilderRequestsMetadata, type SharedDataRequestBuilder } from './sharedData/index.js';
7
+ import { SettingsRequestBuilderNavigationMetadata, type SettingsRequestBuilder } from './settings/index.js';
8
8
  // @ts-ignore
9
9
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
10
10
 
@@ -13,13 +13,13 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
13
13
  */
14
14
  export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder> {
15
15
  /**
16
- * The settings property
16
+ * The sdm property
17
17
  */
18
- get settings(): SettingsRequestBuilder;
18
+ get sdm(): SdmRequestBuilder;
19
19
  /**
20
- * The sharedData property
20
+ * The settings property
21
21
  */
22
- get sharedData(): SharedDataRequestBuilder;
22
+ get settings(): SettingsRequestBuilder;
23
23
  }
24
24
  /**
25
25
  * Uri template for the request builder.
@@ -29,12 +29,12 @@ export const ApiRequestBuilderUriTemplate = "{+baseurl}/api";
29
29
  * Metadata for all the navigation properties in the request builder.
30
30
  */
31
31
  export const ApiRequestBuilderNavigationMetadata: Record<Exclude<keyof ApiRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
32
+ sdm: {
33
+ navigationMetadata: SdmRequestBuilderNavigationMetadata,
34
+ },
32
35
  settings: {
33
36
  navigationMetadata: SettingsRequestBuilderNavigationMetadata,
34
37
  },
35
- sharedData: {
36
- requestsMetadata: SharedDataRequestBuilderRequestsMetadata,
37
- },
38
38
  };
39
39
  /* tslint:enable */
40
40
  /* eslint-enable */
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { type WithEntityTypeItemRequestBuilder, WithEntityTypeItemRequestBuilderRequestsMetadata } from './item/index.js';
6
+ // @ts-ignore
7
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
8
+
9
+ /**
10
+ * Builds and executes requests for operations under /api/sdm
11
+ */
12
+ export interface SdmRequestBuilder extends BaseRequestBuilder<SdmRequestBuilder> {
13
+ /**
14
+ * Gets an item from the Tp.api.sdm.item collection
15
+ * @param entityType Unique identifier of the item
16
+ * @returns {WithEntityTypeItemRequestBuilder}
17
+ */
18
+ byEntityType(entityType: string) : WithEntityTypeItemRequestBuilder;
19
+ }
20
+ /**
21
+ * Uri template for the request builder.
22
+ */
23
+ export const SdmRequestBuilderUriTemplate = "{+baseurl}/api/sdm";
24
+ /**
25
+ * Metadata for all the navigation properties in the request builder.
26
+ */
27
+ export const SdmRequestBuilderNavigationMetadata: Record<Exclude<keyof SdmRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
28
+ byEntityType: {
29
+ requestsMetadata: WithEntityTypeItemRequestBuilderRequestsMetadata,
30
+ pathParametersMappings: ["entityType"],
31
+ },
32
+ };
33
+ /* tslint:enable */
34
+ /* eslint-enable */
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type HttpValidationProblemDetails, type ProblemDetails } from '../../../models/index.js';
6
+ // @ts-ignore
7
+ import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
8
+
9
+ /**
10
+ * Builds and executes requests for operations under /api/sdm/{entityType}
11
+ */
12
+ export interface WithEntityTypeItemRequestBuilder extends BaseRequestBuilder<WithEntityTypeItemRequestBuilder> {
13
+ /**
14
+ * Retrieves Shared Data Model
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {Promise<UntypedNode>}
17
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
18
+ * @throws {ProblemDetails} error when the service returns a 401 status code
19
+ * @throws {ProblemDetails} error when the service returns a 404 status code
20
+ * @throws {ProblemDetails} error when the service returns a 500 status code
21
+ */
22
+ get(requestConfiguration?: RequestConfiguration<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined) : Promise<UntypedNode | undefined>;
23
+ /**
24
+ * Retrieves Shared Data Model
25
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
26
+ * @returns {RequestInformation}
27
+ */
28
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithEntityTypeItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
29
+ }
30
+ /**
31
+ * Retrieves Shared Data Model
32
+ */
33
+ export interface WithEntityTypeItemRequestBuilderGetQueryParameters {
34
+ filter?: string;
35
+ orderBy?: string;
36
+ select?: string;
37
+ skip?: number;
38
+ take?: number;
39
+ where?: string;
40
+ }
41
+ /**
42
+ * Uri template for the request builder.
43
+ */
44
+ export const WithEntityTypeItemRequestBuilderUriTemplate = "{+baseurl}/api/sdm/{entityType}{?filter*,orderBy*,select*,skip*,take*,where*}";
45
+ /**
46
+ * Metadata for all the requests in the request builder.
47
+ */
48
+ export const WithEntityTypeItemRequestBuilderRequestsMetadata: RequestsMetadata = {
49
+ get: {
50
+ uriTemplate: WithEntityTypeItemRequestBuilderUriTemplate,
51
+ responseBodyContentType: "application/json",
52
+ errorMappings: {
53
+ 400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
54
+ 401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
55
+ 404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
56
+ 500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
57
+ },
58
+ adapterMethodName: "send",
59
+ responseBodyFactory: createUntypedNodeFromDiscriminatorValue,
60
+ },
61
+ };
62
+ /* tslint:enable */
63
+ /* eslint-enable */
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "E436C40D81330BFB676DC18CA59580532934CE1824E35DCEF1C73CC91030FF0757C78D365B26D6D86AE942758CFF7892930176B5A9A396E8AFF556A3BF03262E",
2
+ "descriptionHash": "0BE5A6BF30E6E978520B5E5CD0593AB509D18B895001CF265730BCAC6BC1467EDB78A5AA776260DDD4749ECA100B3AA70107C2D7DE01523E4B72C4B880561637",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.22.3",
@@ -58,15 +58,6 @@ export function createGetEntityTypesDtoFromDiscriminatorValue(parseNode: ParseNo
58
58
  export function createGetProfileSettingsDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
59
59
  return deserializeIntoGetProfileSettingsDto;
60
60
  }
61
- /**
62
- * Creates a new instance of the appropriate class based on discriminator value
63
- * @param parseNode The parse node to use to read the discriminator value and create the object
64
- * @returns {GetSharedDataModelResponseDto}
65
- */
66
- // @ts-ignore
67
- export function createGetSharedDataModelResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
68
- return deserializeIntoGetSharedDataModelResponseDto;
69
- }
70
61
  /**
71
62
  * Creates a new instance of the appropriate class based on discriminator value
72
63
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -130,15 +121,6 @@ export function createRelationDefRefDtoFromDiscriminatorValue(parseNode: ParseNo
130
121
  export function createRelationDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
131
122
  return deserializeIntoRelationDto;
132
123
  }
133
- /**
134
- * Creates a new instance of the appropriate class based on discriminator value
135
- * @param parseNode The parse node to use to read the discriminator value and create the object
136
- * @returns {TpUser}
137
- */
138
- // @ts-ignore
139
- export function createTpUserFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
140
- return deserializeIntoTpUser;
141
- }
142
124
  /**
143
125
  * Creates a new instance of the appropriate class based on discriminator value
144
126
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -256,16 +238,6 @@ export function deserializeIntoGetProfileSettingsDto(getProfileSettingsDto: Part
256
238
  * @returns {Record<string, (node: ParseNode) => void>}
257
239
  */
258
240
  // @ts-ignore
259
- export function deserializeIntoGetSharedDataModelResponseDto(getSharedDataModelResponseDto: Partial<GetSharedDataModelResponseDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
260
- return {
261
- "users": n => { getSharedDataModelResponseDto.users = n.getCollectionOfObjectValues<TpUser>(createTpUserFromDiscriminatorValue); },
262
- }
263
- }
264
- /**
265
- * The deserialization information for the current model
266
- * @returns {Record<string, (node: ParseNode) => void>}
267
- */
268
- // @ts-ignore
269
241
  export function deserializeIntoHttpValidationProblemDetails(httpValidationProblemDetails: Partial<HttpValidationProblemDetails> | undefined = {}) : Record<string, (node: ParseNode) => void> {
270
242
  return {
271
243
  ...deserializeIntoProblemDetails(httpValidationProblemDetails),
@@ -302,9 +274,10 @@ export function deserializeIntoProblemDetails(problemDetails: Partial<ProblemDet
302
274
  // @ts-ignore
303
275
  export function deserializeIntoProfileDto(profileDto: Partial<ProfileDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
304
276
  return {
277
+ "account": n => { profileDto.account = n.getStringValue(); },
278
+ "enabled": n => { profileDto.enabled = n.getBooleanValue(); },
305
279
  "id": n => { profileDto.id = n.getStringValue(); },
306
280
  "mappings": n => { profileDto.mappings = n.getCollectionOfObjectValues<ProfileMappingDto>(createProfileMappingDtoFromDiscriminatorValue); },
307
- "name": n => { profileDto.name = n.getStringValue(); },
308
281
  }
309
282
  }
310
283
  /**
@@ -348,16 +321,6 @@ export function deserializeIntoRelationDto(relationDto: Partial<RelationDto> | u
348
321
  * @returns {Record<string, (node: ParseNode) => void>}
349
322
  */
350
323
  // @ts-ignore
351
- export function deserializeIntoTpUser(tpUser: Partial<TpUser> | undefined = {}) : Record<string, (node: ParseNode) => void> {
352
- return {
353
- "email": n => { tpUser.email = n.getStringValue(); },
354
- }
355
- }
356
- /**
357
- * The deserialization information for the current model
358
- * @returns {Record<string, (node: ParseNode) => void>}
359
- */
360
- // @ts-ignore
361
324
  export function deserializeIntoTypeDefDto(typeDefDto: Partial<TypeDefDto> | undefined = {}) : Record<string, (node: ParseNode) => void> {
362
325
  return {
363
326
  "id": n => { typeDefDto.id = n.getStringValue(); },
@@ -505,12 +468,6 @@ export interface GetProfileSettingsDto extends Parsable {
505
468
  */
506
469
  profile?: ProfileDto | null;
507
470
  }
508
- export interface GetSharedDataModelResponseDto extends Parsable {
509
- /**
510
- * The users property
511
- */
512
- users?: TpUser[] | null;
513
- }
514
471
  export interface HttpValidationProblemDetails extends ApiError, Parsable, ProblemDetails {
515
472
  /**
516
473
  * The errors property
@@ -550,6 +507,14 @@ export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable
550
507
  type?: string | null;
551
508
  }
552
509
  export interface ProfileDto extends Parsable {
510
+ /**
511
+ * The account property
512
+ */
513
+ account?: string | null;
514
+ /**
515
+ * The enabled property
516
+ */
517
+ enabled?: boolean | null;
553
518
  /**
554
519
  * The id property
555
520
  */
@@ -558,10 +523,6 @@ export interface ProfileDto extends Parsable {
558
523
  * The mappings property
559
524
  */
560
525
  mappings?: ProfileMappingDto[] | null;
561
- /**
562
- * The name property
563
- */
564
- name?: string | null;
565
526
  }
566
527
  export interface ProfileMappingDto extends Parsable {
567
528
  /**
@@ -687,16 +648,6 @@ export function serializeGetProfileSettingsDto(writer: SerializationWriter, getP
687
648
  * @param writer Serialization writer to use to serialize this model
688
649
  */
689
650
  // @ts-ignore
690
- export function serializeGetSharedDataModelResponseDto(writer: SerializationWriter, getSharedDataModelResponseDto: Partial<GetSharedDataModelResponseDto> | undefined | null = {}) : void {
691
- if (getSharedDataModelResponseDto) {
692
- writer.writeCollectionOfObjectValues<TpUser>("users", getSharedDataModelResponseDto.users, serializeTpUser);
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
651
  export function serializeHttpValidationProblemDetails(writer: SerializationWriter, httpValidationProblemDetails: Partial<HttpValidationProblemDetails> | undefined | null = {}) : void {
701
652
  if (httpValidationProblemDetails) {
702
653
  serializeProblemDetails(writer, httpValidationProblemDetails)
@@ -735,9 +686,10 @@ export function serializeProblemDetails(writer: SerializationWriter, problemDeta
735
686
  // @ts-ignore
736
687
  export function serializeProfileDto(writer: SerializationWriter, profileDto: Partial<ProfileDto> | undefined | null = {}) : void {
737
688
  if (profileDto) {
689
+ writer.writeStringValue("account", profileDto.account);
690
+ writer.writeBooleanValue("enabled", profileDto.enabled);
738
691
  writer.writeStringValue("id", profileDto.id);
739
692
  writer.writeCollectionOfObjectValues<ProfileMappingDto>("mappings", profileDto.mappings, serializeProfileMappingDto);
740
- writer.writeStringValue("name", profileDto.name);
741
693
  }
742
694
  }
743
695
  /**
@@ -781,16 +733,6 @@ export function serializeRelationDto(writer: SerializationWriter, relationDto: P
781
733
  * @param writer Serialization writer to use to serialize this model
782
734
  */
783
735
  // @ts-ignore
784
- export function serializeTpUser(writer: SerializationWriter, tpUser: Partial<TpUser> | undefined | null = {}) : void {
785
- if (tpUser) {
786
- writer.writeStringValue("email", tpUser.email);
787
- }
788
- }
789
- /**
790
- * Serializes information the current object
791
- * @param writer Serialization writer to use to serialize this model
792
- */
793
- // @ts-ignore
794
736
  export function serializeTypeDefDto(writer: SerializationWriter, typeDefDto: Partial<TypeDefDto> | undefined | null = {}) : void {
795
737
  if (typeDefDto) {
796
738
  writer.writeStringValue("id", typeDefDto.id);
@@ -836,12 +778,6 @@ export function serializeTypeMetaDefDto(writer: SerializationWriter, typeMetaDef
836
778
  writer.writeStringValue("name", typeMetaDefDto.name);
837
779
  }
838
780
  }
839
- export interface TpUser extends Parsable {
840
- /**
841
- * The email property
842
- */
843
- email?: string | null;
844
- }
845
781
  export interface TypeDefDto extends Parsable {
846
782
  /**
847
783
  * The id property
package/src/v1.json CHANGED
@@ -3,23 +3,84 @@
3
3
  "openapi": "3.0.0",
4
4
  "info": {
5
5
  "title": "Targetprocess Shared Data Model",
6
- "version": "v1.0"
6
+ "version": "v1"
7
7
  },
8
8
  "paths": {
9
- "/api/sharedData": {
9
+ "/api/sdm/{entityType}": {
10
10
  "get": {
11
11
  "tags": [
12
- "Shareddata"
12
+ "Sdm"
13
+ ],
14
+ "summary": "Retrieves Shared Data Model",
15
+ "operationId": "SharedDataGetEndpoint",
16
+ "parameters": [
17
+ {
18
+ "name": "entityType",
19
+ "in": "path",
20
+ "required": true,
21
+ "schema": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ {
26
+ "name": "select",
27
+ "in": "query",
28
+ "schema": {
29
+ "type": "string",
30
+ "nullable": true
31
+ }
32
+ },
33
+ {
34
+ "name": "skip",
35
+ "in": "query",
36
+ "schema": {
37
+ "type": "integer",
38
+ "format": "int32",
39
+ "nullable": true
40
+ }
41
+ },
42
+ {
43
+ "name": "take",
44
+ "in": "query",
45
+ "schema": {
46
+ "type": "integer",
47
+ "format": "int32",
48
+ "nullable": true
49
+ }
50
+ },
51
+ {
52
+ "name": "where",
53
+ "in": "query",
54
+ "schema": {
55
+ "type": "string",
56
+ "nullable": true
57
+ }
58
+ },
59
+ {
60
+ "name": "filter",
61
+ "in": "query",
62
+ "schema": {
63
+ "type": "string",
64
+ "nullable": true
65
+ }
66
+ },
67
+ {
68
+ "name": "orderBy",
69
+ "in": "query",
70
+ "schema": {
71
+ "type": "string",
72
+ "nullable": true
73
+ }
74
+ }
13
75
  ],
14
- "summary": "Retrieves data",
15
- "operationId": "SharedDataModelGetEndpoint",
16
76
  "responses": {
17
77
  "200": {
18
78
  "description": "Success",
19
79
  "content": {
20
80
  "application/json": {
21
81
  "schema": {
22
- "$ref": "#/components/schemas/GetSharedDataModelResponseDto"
82
+ "type": "array",
83
+ "items": {}
23
84
  }
24
85
  }
25
86
  }
@@ -34,6 +95,9 @@
34
95
  }
35
96
  }
36
97
  },
98
+ "403": {
99
+ "description": "Forbidden"
100
+ },
37
101
  "400": {
38
102
  "description": "Validation error",
39
103
  "content": {
@@ -116,6 +180,9 @@
116
180
  }
117
181
  }
118
182
  },
183
+ "403": {
184
+ "description": "Forbidden"
185
+ },
119
186
  "400": {
120
187
  "description": "Validation error",
121
188
  "content": {
@@ -183,6 +250,9 @@
183
250
  }
184
251
  }
185
252
  },
253
+ "403": {
254
+ "description": "Forbidden"
255
+ },
186
256
  "400": {
187
257
  "description": "Validation error",
188
258
  "content": {
@@ -252,6 +322,9 @@
252
322
  }
253
323
  }
254
324
  },
325
+ "403": {
326
+ "description": "Forbidden"
327
+ },
255
328
  "400": {
256
329
  "description": "Validation error",
257
330
  "content": {
@@ -296,33 +369,6 @@
296
369
  },
297
370
  "components": {
298
371
  "schemas": {
299
- "GetSharedDataModelResponseDto": {
300
- "type": "object",
301
- "additionalProperties": false,
302
- "required": [
303
- "users"
304
- ],
305
- "properties": {
306
- "users": {
307
- "type": "array",
308
- "items": {
309
- "$ref": "#/components/schemas/TpUser"
310
- }
311
- }
312
- }
313
- },
314
- "TpUser": {
315
- "type": "object",
316
- "additionalProperties": false,
317
- "required": [
318
- "email"
319
- ],
320
- "properties": {
321
- "email": {
322
- "type": "string"
323
- }
324
- }
325
- },
326
372
  "ProblemDetails": {
327
373
  "type": "object",
328
374
  "additionalProperties": {
@@ -379,19 +425,25 @@
379
425
  }
380
426
  ]
381
427
  },
428
+ "SharedDataRequestDto": {
429
+ "type": "object",
430
+ "additionalProperties": false
431
+ },
382
432
  "ProfileDto": {
383
433
  "type": "object",
384
434
  "additionalProperties": false,
385
435
  "required": [
386
- "name",
387
- "mappings"
436
+ "account",
437
+ "mappings",
438
+ "enabled"
388
439
  ],
389
440
  "properties": {
390
441
  "id": {
391
442
  "type": "string",
443
+ "format": "guid",
392
444
  "nullable": true
393
445
  },
394
- "name": {
446
+ "account": {
395
447
  "type": "string"
396
448
  },
397
449
  "mappings": {
@@ -399,6 +451,9 @@
399
451
  "items": {
400
452
  "$ref": "#/components/schemas/ProfileMappingDto"
401
453
  }
454
+ },
455
+ "enabled": {
456
+ "type": "boolean"
402
457
  }
403
458
  }
404
459
  },
@@ -835,7 +890,7 @@
835
890
  "clientCredentials": {
836
891
  "tokenUrl": "http://tplocal.com/svc/auth/connect/token",
837
892
  "scopes": {
838
- "account-data:manage": "AccountDataManage"
893
+ "tp": "Targetprocess"
839
894
  }
840
895
  }
841
896
  }
@@ -1,31 +0,0 @@
1
- import { type GetSharedDataModelResponseDto } from '../../models/index.js';
2
- import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
- /**
4
- * Builds and executes requests for operations under /api/sharedData
5
- */
6
- export interface SharedDataRequestBuilder extends BaseRequestBuilder<SharedDataRequestBuilder> {
7
- /**
8
- * Retrieves data
9
- * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
- * @returns {Promise<GetSharedDataModelResponseDto>}
11
- * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
12
- * @throws {ProblemDetails} error when the service returns a 401 status code
13
- * @throws {ProblemDetails} error when the service returns a 404 status code
14
- * @throws {ProblemDetails} error when the service returns a 500 status code
15
- */
16
- get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetSharedDataModelResponseDto | undefined>;
17
- /**
18
- * Retrieves data
19
- * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
- * @returns {RequestInformation}
21
- */
22
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
23
- }
24
- /**
25
- * Uri template for the request builder.
26
- */
27
- export declare const SharedDataRequestBuilderUriTemplate = "{+baseurl}/api/sharedData";
28
- /**
29
- * Metadata for all the requests in the request builder.
30
- */
31
- export declare const SharedDataRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -1,52 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- // Generated by Microsoft Kiota
4
- // @ts-ignore
5
- import { createGetSharedDataModelResponseDtoFromDiscriminatorValue, createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, type GetSharedDataModelResponseDto, type HttpValidationProblemDetails, type ProblemDetails } from '../../models/index.js';
6
- // @ts-ignore
7
- import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8
-
9
- /**
10
- * Builds and executes requests for operations under /api/sharedData
11
- */
12
- export interface SharedDataRequestBuilder extends BaseRequestBuilder<SharedDataRequestBuilder> {
13
- /**
14
- * Retrieves data
15
- * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
- * @returns {Promise<GetSharedDataModelResponseDto>}
17
- * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
18
- * @throws {ProblemDetails} error when the service returns a 401 status code
19
- * @throws {ProblemDetails} error when the service returns a 404 status code
20
- * @throws {ProblemDetails} error when the service returns a 500 status code
21
- */
22
- get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<GetSharedDataModelResponseDto | undefined>;
23
- /**
24
- * Retrieves data
25
- * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
26
- * @returns {RequestInformation}
27
- */
28
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
29
- }
30
- /**
31
- * Uri template for the request builder.
32
- */
33
- export const SharedDataRequestBuilderUriTemplate = "{+baseurl}/api/sharedData";
34
- /**
35
- * Metadata for all the requests in the request builder.
36
- */
37
- export const SharedDataRequestBuilderRequestsMetadata: RequestsMetadata = {
38
- get: {
39
- uriTemplate: SharedDataRequestBuilderUriTemplate,
40
- responseBodyContentType: "application/json",
41
- errorMappings: {
42
- 400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
43
- 401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
44
- 404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
45
- 500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
46
- },
47
- adapterMethodName: "send",
48
- responseBodyFactory: createGetSharedDataModelResponseDtoFromDiscriminatorValue,
49
- },
50
- };
51
- /* tslint:enable */
52
- /* eslint-enable */