@microsoft/msgraph-sdk-teamwork
Version:
Teamwork fluent API for Microsoft Graph
88 lines • 4.7 kB
TypeScript
import { type ItemBody, type KeyValuePair, type TeamworkActivityTopic, type TeamworkNotificationRecipient } from '@microsoft/msgraph-sdk/models/index.js';
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {SendActivityNotificationToRecipientsPostRequestBody}
*/
export declare function createSendActivityNotificationToRecipientsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* The deserialization information for the current model
* @param SendActivityNotificationToRecipientsPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoSendActivityNotificationToRecipientsPostRequestBody(sendActivityNotificationToRecipientsPostRequestBody?: Partial<SendActivityNotificationToRecipientsPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
export interface SendActivityNotificationToRecipientsPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
/**
* The activityType property
*/
activityType?: string | null;
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The chainId property
*/
chainId?: number | null;
/**
* The iconId property
*/
iconId?: string | null;
/**
* The previewText property
*/
previewText?: ItemBody | null;
/**
* The recipients property
*/
recipients?: TeamworkNotificationRecipient[] | null;
/**
* The teamsAppId property
*/
teamsAppId?: string | null;
/**
* The templateParameters property
*/
templateParameters?: KeyValuePair[] | null;
/**
* The topic property
*/
topic?: TeamworkActivityTopic | null;
}
/**
* Provides operations to call the sendActivityNotificationToRecipients method.
*/
export interface SendActivityNotificationToRecipientsRequestBuilder extends BaseRequestBuilder<SendActivityNotificationToRecipientsRequestBuilder> {
/**
* Send activity feed notifications to multiple users, in bulk. For more information, see sending Teams activity notifications.
* @param body The request body
* @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
* @see {@link https://learn.microsoft.com/graph/api/teamwork-sendactivitynotificationtorecipients?view=graph-rest-1.0|Find more info here}
*/
post(body: SendActivityNotificationToRecipientsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Send activity feed notifications to multiple users, in bulk. For more information, see sending Teams activity notifications.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: SendActivityNotificationToRecipientsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param SendActivityNotificationToRecipientsPostRequestBody The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeSendActivityNotificationToRecipientsPostRequestBody(writer: SerializationWriter, sendActivityNotificationToRecipientsPostRequestBody?: Partial<SendActivityNotificationToRecipientsPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
/**
* Uri template for the request builder.
*/
export declare const SendActivityNotificationToRecipientsRequestBuilderUriTemplate = "{+baseurl}/teamwork/sendActivityNotificationToRecipients";
/**
* Metadata for all the requests in the request builder.
*/
export declare const SendActivityNotificationToRecipientsRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map