@targetprocess/shared-data-model-client 0.5.0 → 0.6.0-us817837-mapping.5

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.
@@ -4,7 +4,7 @@
4
4
  // @ts-ignore
5
5
  import { EntityTypesRequestBuilderRequestsMetadata, type EntityTypesRequestBuilder } from './entityTypes/index.js';
6
6
  // @ts-ignore
7
- import { ProfileRequestBuilderRequestsMetadata, type ProfileRequestBuilder } from './profile/index.js';
7
+ import { ProfileRequestBuilderNavigationMetadata, ProfileRequestBuilderRequestsMetadata, type ProfileRequestBuilder } from './profile/index.js';
8
8
  // @ts-ignore
9
9
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
10
10
 
@@ -34,6 +34,7 @@ export const SettingsRequestBuilderNavigationMetadata: Record<Exclude<keyof Sett
34
34
  },
35
35
  profile: {
36
36
  requestsMetadata: ProfileRequestBuilderRequestsMetadata,
37
+ navigationMetadata: ProfileRequestBuilderNavigationMetadata,
37
38
  },
38
39
  };
39
40
  /* tslint:enable */
@@ -4,12 +4,18 @@
4
4
  // @ts-ignore
5
5
  import { createGetProfileSettingsDtoFromDiscriminatorValue, createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createProfileDtoFromDiscriminatorValue, serializeProfileDto, type GetProfileSettingsDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto } from '../../../models/index.js';
6
6
  // @ts-ignore
7
- import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
7
+ import { type ValidateRequestBuilder, ValidateRequestBuilderRequestsMetadata } from './validate/index.js';
8
+ // @ts-ignore
9
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8
10
 
9
11
  /**
10
12
  * Builds and executes requests for operations under /api/settings/profile
11
13
  */
12
14
  export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequestBuilder> {
15
+ /**
16
+ * The validate property
17
+ */
18
+ get validate(): ValidateRequestBuilder;
13
19
  /**
14
20
  * Get settings profile
15
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -19,7 +25,7 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
19
25
  * @throws {ProblemDetails} error when the service returns a 404 status code
20
26
  * @throws {ProblemDetails} error when the service returns a 500 status code
21
27
  */
22
- get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<GetProfileSettingsDto | undefined>;
28
+ get(requestConfiguration?: RequestConfiguration<ProfileRequestBuilderGetQueryParameters> | undefined) : Promise<GetProfileSettingsDto | undefined>;
23
29
  /**
24
30
  * Update settings profile
25
31
  * @param body The request body
@@ -36,7 +42,7 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
36
42
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
43
  * @returns {RequestInformation}
38
44
  */
39
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
45
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfileRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
40
46
  /**
41
47
  * Update settings profile
42
48
  * @param body The request body
@@ -45,10 +51,24 @@ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequest
45
51
  */
46
52
  toPutRequestInformation(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
47
53
  }
54
+ /**
55
+ * Get settings profile
56
+ */
57
+ export interface ProfileRequestBuilderGetQueryParameters {
58
+ validate?: boolean;
59
+ }
48
60
  /**
49
61
  * Uri template for the request builder.
50
62
  */
51
- export const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
63
+ export const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile{?validate*}";
64
+ /**
65
+ * Metadata for all the navigation properties in the request builder.
66
+ */
67
+ export const ProfileRequestBuilderNavigationMetadata: Record<Exclude<keyof ProfileRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
68
+ validate: {
69
+ requestsMetadata: ValidateRequestBuilderRequestsMetadata,
70
+ },
71
+ };
52
72
  /**
53
73
  * Metadata for all the requests in the request builder.
54
74
  */
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createHttpValidationProblemDetailsFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, createValidatedProfileDtoFromDiscriminatorValue, serializeProfileDto, serializeValidatedProfileDto, type HttpValidationProblemDetails, type ProblemDetails, type ProfileDto, type ValidatedProfileDto } 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/settings/profile/validate
11
+ */
12
+ export interface ValidateRequestBuilder extends BaseRequestBuilder<ValidateRequestBuilder> {
13
+ /**
14
+ * Validate profile
15
+ * @param body The request body
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {Promise<ValidatedProfileDto>}
18
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
19
+ * @throws {ProblemDetails} error when the service returns a 401 status code
20
+ * @throws {ProblemDetails} error when the service returns a 404 status code
21
+ * @throws {ProblemDetails} error when the service returns a 500 status code
22
+ */
23
+ put(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ValidatedProfileDto | undefined>;
24
+ /**
25
+ * Validate profile
26
+ * @param body The request body
27
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
28
+ * @returns {RequestInformation}
29
+ */
30
+ toPutRequestInformation(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
31
+ }
32
+ /**
33
+ * Uri template for the request builder.
34
+ */
35
+ export const ValidateRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/validate";
36
+ /**
37
+ * Metadata for all the requests in the request builder.
38
+ */
39
+ export const ValidateRequestBuilderRequestsMetadata: RequestsMetadata = {
40
+ put: {
41
+ uriTemplate: ValidateRequestBuilderUriTemplate,
42
+ responseBodyContentType: "application/json",
43
+ errorMappings: {
44
+ 400: createHttpValidationProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
45
+ 401: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
46
+ 404: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
47
+ 500: createProblemDetailsFromDiscriminatorValue as ParsableFactory<Parsable>,
48
+ },
49
+ adapterMethodName: "send",
50
+ responseBodyFactory: createValidatedProfileDtoFromDiscriminatorValue,
51
+ requestBodyContentType: "application/json",
52
+ requestBodySerializer: serializeProfileDto,
53
+ requestInformationContentSetMethod: "setContentFromParsable",
54
+ },
55
+ };
56
+ /* tslint:enable */
57
+ /* eslint-enable */
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "C3F6D3F8FB77AFEF885CDC82CE77A498F8EA391FB20488FD36F21E979332BC86353956B09178D734C79A6C64313121B831F27D8B2D9A048ACFBA765318E942DE",
2
+ "descriptionHash": "0AA72E31A5564D61F7A89B0DC7902CB243C951D6EE913C1C12B9B9C92E109F0B5BB392EBFDAAF81F13F4D1B4741DDA79CB0972CF36965D74EBA86AE99F28BD05",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.22.3",