@targetprocess/shared-data-model-client 0.1.0-0-0-3.1 → 0.1.0-0-0-4.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,9 +1,14 @@
1
+ import { type SettingsRequestBuilder } from './settings/index.js';
1
2
  import { type SharedDataRequestBuilder } from './sharedData/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> {
8
+ /**
9
+ * The settings property
10
+ */
11
+ get settings(): SettingsRequestBuilder;
7
12
  /**
8
13
  * The sharedData property
9
14
  */
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("./sharedData/index.js");
8
+ const index_js_1 = require("./settings/index.js");
9
+ // @ts-ignore
10
+ const index_js_2 = require("./sharedData/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 = {
19
+ settings: {
20
+ navigationMetadata: index_js_1.SettingsRequestBuilderNavigationMetadata,
21
+ },
17
22
  sharedData: {
18
- requestsMetadata: index_js_1.SharedDataRequestBuilderRequestsMetadata,
23
+ requestsMetadata: index_js_2.SharedDataRequestBuilderRequestsMetadata,
19
24
  },
20
25
  };
21
26
  /* tslint:enable */
@@ -0,0 +1,31 @@
1
+ import { type GetEntityTypesDto } 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/settings/entityTypes
5
+ */
6
+ export interface EntityTypesRequestBuilder extends BaseRequestBuilder<EntityTypesRequestBuilder> {
7
+ /**
8
+ * Get Entity Types
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<GetEntityTypesDto>}
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<GetEntityTypesDto | undefined>;
17
+ /**
18
+ * Get Entity Types
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 EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/settings/entityTypes";
28
+ /**
29
+ * Metadata for all the requests in the request builder.
30
+ */
31
+ export declare const EntityTypesRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityTypesRequestBuilderRequestsMetadata = exports.EntityTypesRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("../../../models/index.js");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.EntityTypesRequestBuilderUriTemplate = "{+baseurl}/api/settings/entityTypes";
13
+ /**
14
+ * Metadata for all the requests in the request builder.
15
+ */
16
+ exports.EntityTypesRequestBuilderRequestsMetadata = {
17
+ get: {
18
+ uriTemplate: exports.EntityTypesRequestBuilderUriTemplate,
19
+ responseBodyContentType: "application/json",
20
+ errorMappings: {
21
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
22
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
23
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
24
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
+ },
26
+ adapterMethodName: "send",
27
+ responseBodyFactory: index_js_1.createGetEntityTypesDtoFromDiscriminatorValue,
28
+ },
29
+ };
30
+ /* tslint:enable */
31
+ /* eslint-enable */
@@ -0,0 +1,24 @@
1
+ import { type EntityTypesRequestBuilder } from './entityTypes/index.js';
2
+ import { type ProfileRequestBuilder } from './profile/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /api/settings
6
+ */
7
+ export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsRequestBuilder> {
8
+ /**
9
+ * The entityTypes property
10
+ */
11
+ get entityTypes(): EntityTypesRequestBuilder;
12
+ /**
13
+ * The profile property
14
+ */
15
+ get profile(): ProfileRequestBuilder;
16
+ }
17
+ /**
18
+ * Uri template for the request builder.
19
+ */
20
+ export declare const SettingsRequestBuilderUriTemplate = "{+baseurl}/api/settings";
21
+ /**
22
+ * Metadata for all the navigation properties in the request builder.
23
+ */
24
+ export declare const SettingsRequestBuilderNavigationMetadata: Record<Exclude<keyof SettingsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsRequestBuilderNavigationMetadata = exports.SettingsRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("./entityTypes/index.js");
9
+ // @ts-ignore
10
+ const index_js_2 = require("./profile/index.js");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.SettingsRequestBuilderUriTemplate = "{+baseurl}/api/settings";
15
+ /**
16
+ * Metadata for all the navigation properties in the request builder.
17
+ */
18
+ exports.SettingsRequestBuilderNavigationMetadata = {
19
+ entityTypes: {
20
+ requestsMetadata: index_js_1.EntityTypesRequestBuilderRequestsMetadata,
21
+ },
22
+ profile: {
23
+ requestsMetadata: index_js_2.ProfileRequestBuilderRequestsMetadata,
24
+ },
25
+ };
26
+ /* tslint:enable */
27
+ /* eslint-enable */
@@ -0,0 +1,49 @@
1
+ import { type GetProfileSettingsDto, type ProfileDto } 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/settings/profile
5
+ */
6
+ export interface ProfileRequestBuilder extends BaseRequestBuilder<ProfileRequestBuilder> {
7
+ /**
8
+ * Get settings profile
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<GetProfileSettingsDto>}
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<GetProfileSettingsDto | undefined>;
17
+ /**
18
+ * Update settings profile
19
+ * @param body The request body
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {Promise<ProfileDto>}
22
+ * @throws {HttpValidationProblemDetails} error when the service returns a 400 status code
23
+ * @throws {ProblemDetails} error when the service returns a 401 status code
24
+ * @throws {ProblemDetails} error when the service returns a 404 status code
25
+ * @throws {ProblemDetails} error when the service returns a 500 status code
26
+ */
27
+ put(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProfileDto | undefined>;
28
+ /**
29
+ * Get settings profile
30
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
+ * @returns {RequestInformation}
32
+ */
33
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
34
+ /**
35
+ * Update settings profile
36
+ * @param body The request body
37
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38
+ * @returns {RequestInformation}
39
+ */
40
+ toPutRequestInformation(body: ProfileDto, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
41
+ }
42
+ /**
43
+ * Uri template for the request builder.
44
+ */
45
+ export declare const ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
46
+ /**
47
+ * Metadata for all the requests in the request builder.
48
+ */
49
+ export declare const ProfileRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileRequestBuilderRequestsMetadata = exports.ProfileRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ // @ts-ignore
8
+ const index_js_1 = require("../../../models/index.js");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.ProfileRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile";
13
+ /**
14
+ * Metadata for all the requests in the request builder.
15
+ */
16
+ exports.ProfileRequestBuilderRequestsMetadata = {
17
+ get: {
18
+ uriTemplate: exports.ProfileRequestBuilderUriTemplate,
19
+ responseBodyContentType: "application/json",
20
+ errorMappings: {
21
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
22
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
23
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
24
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
+ },
26
+ adapterMethodName: "send",
27
+ responseBodyFactory: index_js_1.createGetProfileSettingsDtoFromDiscriminatorValue,
28
+ },
29
+ put: {
30
+ uriTemplate: exports.ProfileRequestBuilderUriTemplate,
31
+ responseBodyContentType: "application/json",
32
+ errorMappings: {
33
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
34
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
35
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
36
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
37
+ },
38
+ adapterMethodName: "send",
39
+ responseBodyFactory: index_js_1.createProfileDtoFromDiscriminatorValue,
40
+ requestBodyContentType: "application/json",
41
+ requestBodySerializer: index_js_1.serializeProfileDto,
42
+ requestInformationContentSetMethod: "setContentFromParsable",
43
+ },
44
+ };
45
+ /* tslint:enable */
46
+ /* eslint-enable */
@@ -1,4 +1,4 @@
1
- import { type TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto } from '../../models/index.js';
1
+ import { type GetSharedDataModelResponseDto } from '../../models/index.js';
2
2
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
4
  * Builds and executes requests for operations under /api/sharedData
@@ -7,13 +7,13 @@ export interface SharedDataRequestBuilder extends BaseRequestBuilder<SharedDataR
7
7
  /**
8
8
  * Retrieves data
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
- * @returns {Promise<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto>}
11
- * @throws {MicrosoftAspNetCoreHttpHttpValidationProblemDetails} error when the service returns a 400 status code
12
- * @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 401 status code
13
- * @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 404 status code
14
- * @throws {MicrosoftAspNetCoreMvcProblemDetails} error when the service returns a 500 status code
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
15
  */
16
- get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDto | undefined>;
16
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetSharedDataModelResponseDto | undefined>;
17
17
  /**
18
18
  * Retrieves data
19
19
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -18,13 +18,13 @@ exports.SharedDataRequestBuilderRequestsMetadata = {
18
18
  uriTemplate: exports.SharedDataRequestBuilderUriTemplate,
19
19
  responseBodyContentType: "application/json",
20
20
  errorMappings: {
21
- 400: index_js_1.createMicrosoftAspNetCoreHttpHttpValidationProblemDetailsFromDiscriminatorValue,
22
- 401: index_js_1.createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue,
23
- 404: index_js_1.createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue,
24
- 500: index_js_1.createMicrosoftAspNetCoreMvcProblemDetailsFromDiscriminatorValue,
21
+ 400: index_js_1.createHttpValidationProblemDetailsFromDiscriminatorValue,
22
+ 401: index_js_1.createProblemDetailsFromDiscriminatorValue,
23
+ 404: index_js_1.createProblemDetailsFromDiscriminatorValue,
24
+ 500: index_js_1.createProblemDetailsFromDiscriminatorValue,
25
25
  },
26
26
  adapterMethodName: "send",
27
- responseBodyFactory: index_js_1.createTpSharedDataModelServiceModulesSharedDataModelGetGetSharedDataModelResponseDtoFromDiscriminatorValue,
27
+ responseBodyFactory: index_js_1.createGetSharedDataModelResponseDtoFromDiscriminatorValue,
28
28
  },
29
29
  };
30
30
  /* tslint:enable */