Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
298 changes: 298 additions & 0 deletions packages/kiota-dom-export.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "EE655C46667963A6B56284D80428908D898ADF7596E1B9840E2353EEE838BF5BDD1519D02373734226B3D8607AA86D05BD7FA51B4D709F95127054A6D86E6D4D",
"descriptionHash": "4F06022D5B45031BAB5C100A8706A34FA46122344724E8FCA8C63860D90BF29AC24BE841A1ED2D972C817F599F3CB3D773FDC21B97C78F4BD30527C351DF0259",
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.31.0",
"kiotaVersion": "1.30.0",
"clientClassName": "GraphBaseServiceClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-typescript/",
Expand Down
131 changes: 131 additions & 0 deletions packages/msgraph-sdk-admin/admin/exchange/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createExchangeAdminFromDiscriminatorValue, serializeExchangeAdmin, type ExchangeAdmin } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { TracingRequestBuilderNavigationMetadata, TracingRequestBuilderRequestsMetadata, type TracingRequestBuilder } from './tracing/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the exchange property of the microsoft.graph.admin entity.
*/
export interface ExchangeRequestBuilder extends BaseRequestBuilder<ExchangeRequestBuilder> {
/**
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
*/
get tracing(): TracingRequestBuilder;
/**
* Delete navigation property exchange for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* A container for the Exchange admin functionality. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ExchangeAdmin>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<ExchangeRequestBuilderGetQueryParameters> | undefined) : Promise<ExchangeAdmin | undefined>;
/**
* Update the navigation property exchange in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ExchangeAdmin>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: ExchangeAdmin, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ExchangeAdmin | undefined>;
/**
* Delete navigation property exchange for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* A container for the Exchange admin functionality. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ExchangeRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update the navigation property exchange in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: ExchangeAdmin, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* A container for the Exchange admin functionality. Read-only.
*/
export interface ExchangeRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export const ExchangeRequestBuilderUriTemplate = "{+baseurl}/admin/exchange{?%24expand,%24select}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const ExchangeRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"expand": "%24expand",
"select": "%24select",
};
/**
* Metadata for all the navigation properties in the request builder.
*/
export const ExchangeRequestBuilderNavigationMetadata: Record<Exclude<keyof ExchangeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
tracing: {
requestsMetadata: TracingRequestBuilderRequestsMetadata,
navigationMetadata: TracingRequestBuilderNavigationMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
*/
export const ExchangeRequestBuilderRequestsMetadata: RequestsMetadata = {
delete: {
uriTemplate: ExchangeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendNoResponseContent",
},
get: {
uriTemplate: ExchangeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createExchangeAdminFromDiscriminatorValue,
queryParametersMapper: ExchangeRequestBuilderGetQueryParametersMapper,
},
patch: {
uriTemplate: ExchangeRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createExchangeAdminFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeExchangeAdmin,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
131 changes: 131 additions & 0 deletions packages/msgraph-sdk-admin/admin/exchange/tracing/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createMessageTracingRootFromDiscriminatorValue, serializeMessageTracingRoot, type MessageTracingRoot } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { MessageTracesRequestBuilderNavigationMetadata, MessageTracesRequestBuilderRequestsMetadata, type MessageTracesRequestBuilder } from './messageTraces/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
*/
export interface TracingRequestBuilder extends BaseRequestBuilder<TracingRequestBuilder> {
/**
* Provides operations to manage the messageTraces property of the microsoft.graph.messageTracingRoot entity.
*/
get messageTraces(): MessageTracesRequestBuilder;
/**
* Delete navigation property tracing for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* Represents a container for administrative resources to trace messages.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<MessageTracingRoot>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<TracingRequestBuilderGetQueryParameters> | undefined) : Promise<MessageTracingRoot | undefined>;
/**
* Update the navigation property tracing in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<MessageTracingRoot>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: MessageTracingRoot, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<MessageTracingRoot | undefined>;
/**
* Delete navigation property tracing for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* Represents a container for administrative resources to trace messages.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<TracingRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update the navigation property tracing in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: MessageTracingRoot, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Represents a container for administrative resources to trace messages.
*/
export interface TracingRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export const TracingRequestBuilderUriTemplate = "{+baseurl}/admin/exchange/tracing{?%24expand,%24select}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const TracingRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"expand": "%24expand",
"select": "%24select",
};
/**
* Metadata for all the navigation properties in the request builder.
*/
export const TracingRequestBuilderNavigationMetadata: Record<Exclude<keyof TracingRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
messageTraces: {
requestsMetadata: MessageTracesRequestBuilderRequestsMetadata,
navigationMetadata: MessageTracesRequestBuilderNavigationMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
*/
export const TracingRequestBuilderRequestsMetadata: RequestsMetadata = {
delete: {
uriTemplate: TracingRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendNoResponseContent",
},
get: {
uriTemplate: TracingRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createMessageTracingRootFromDiscriminatorValue,
queryParametersMapper: TracingRequestBuilderGetQueryParametersMapper,
},
patch: {
uriTemplate: TracingRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createMessageTracingRootFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeMessageTracingRoot,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to count the resources in the collection.
*/
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<number>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
/**
* Get the number of the resource
*/
export interface CountRequestBuilderGetQueryParameters {
/**
* Filter items by property values
*/
filter?: string;
/**
* Search items by search phrases
*/
search?: string;
}
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/exchange/tracing/messageTraces/$count{?%24filter,%24search}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"filter": "%24filter",
"search": "%24search",
};
/**
* Metadata for all the requests in the request builder.
*/
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: CountRequestBuilderUriTemplate,
responseBodyContentType: "text/plain;q=0.9",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendPrimitive",
responseBodyFactory: "number",
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
},
};
/* tslint:enable */
/* eslint-enable */
Loading