@microsoft/msgraph-sdk-users 1.0.0-preview.16 → 1.0.0-preview.18
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.
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/users/index.d.ts +4 -4
- package/users/item/calendar/calendarView/item/attachments/index.d.ts +3 -3
- package/users/item/calendar/calendarView/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/calendar/events/item/attachments/index.d.ts +3 -3
- package/users/item/calendar/events/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/index.d.ts +3 -3
- package/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/calendarGroups/item/calendars/item/events/item/attachments/index.d.ts +3 -3
- package/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/calendarView/item/attachments/index.d.ts +3 -3
- package/users/item/calendarView/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/calendars/item/calendarView/item/attachments/index.d.ts +3 -3
- package/users/item/calendars/item/calendarView/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/calendars/item/events/item/attachments/index.d.ts +3 -3
- package/users/item/calendars/item/events/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/chats/item/lastMessagePreview/index.d.ts +3 -3
- package/users/item/chats/item/messages/item/replies/index.d.ts +3 -3
- package/users/item/cloudClipboard/items/index.d.ts +3 -3
- package/users/item/cloudClipboard/items/item/index.d.ts +3 -3
- package/users/item/events/item/attachments/index.d.ts +3 -3
- package/users/item/events/item/instances/item/attachments/index.d.ts +3 -3
- package/users/item/followedSites/add/index.d.ts +84 -0
- package/users/item/followedSites/add/index.d.ts.map +1 -0
- package/users/item/followedSites/add/index.js +86 -0
- package/users/item/followedSites/index.d.ts +10 -0
- package/users/item/followedSites/index.d.ts.map +1 -1
- package/users/item/followedSites/index.js +8 -0
- package/users/item/followedSites/remove/index.d.ts +84 -0
- package/users/item/followedSites/remove/index.d.ts.map +1 -0
- package/users/item/followedSites/remove/index.js +86 -0
- package/users/item/index.d.ts +7 -7
- package/users/item/joinedTeams/item/archive/index.d.ts +2 -2
- package/users/item/joinedTeams/item/channels/item/members/index.d.ts +3 -3
- package/users/item/joinedTeams/item/channels/item/members/item/index.d.ts +6 -6
- package/users/item/joinedTeams/item/channels/item/messages/index.d.ts +3 -3
- package/users/item/joinedTeams/item/channels/item/messages/item/replies/index.d.ts +3 -3
- package/users/item/joinedTeams/item/channels/item/tabs/item/index.d.ts +2 -2
- package/users/item/joinedTeams/item/primaryChannel/members/index.d.ts +3 -3
- package/users/item/joinedTeams/item/primaryChannel/members/item/index.d.ts +6 -6
- package/users/item/joinedTeams/item/primaryChannel/messages/index.d.ts +3 -3
- package/users/item/joinedTeams/item/primaryChannel/messages/item/replies/index.d.ts +3 -3
- package/users/item/joinedTeams/item/primaryChannel/tabs/item/index.d.ts +2 -2
- package/users/item/joinedTeams/item/unarchive/index.d.ts +2 -2
- package/users/item/mailFolders/item/childFolders/index.d.ts +3 -3
- package/users/item/mailFolders/item/childFolders/item/messages/item/attachments/index.d.ts +3 -3
- package/users/item/mailFolders/item/messages/item/attachments/index.d.ts +3 -3
- package/users/item/messages/index.d.ts +1 -1
- package/users/item/messages/item/attachments/index.d.ts +3 -3
- package/users/item/messages/item/index.d.ts +1 -1
- package/users/item/messages/item/value/index.d.ts +1 -1
- package/users/item/settings/windows/index.d.ts +4 -3
- package/users/item/settings/windows/index.d.ts.map +1 -1
- package/users/item/settings/windows/item/index.d.ts +4 -3
- package/users/item/settings/windows/item/index.d.ts.map +1 -1
- package/users/item/settings/windows/item/instances/index.d.ts +4 -3
- package/users/item/settings/windows/item/instances/index.d.ts.map +1 -1
- package/users/item/settings/windows/item/instances/item/index.d.ts +4 -3
- package/users/item/settings/windows/item/instances/item/index.d.ts.map +1 -1
- package/users/item/todo/lists/item/tasks/item/linkedResources/item/index.d.ts +2 -2
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type BaseCollectionPaginationCountResponse, type Site } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
export interface AddPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
4
|
+
/**
|
|
5
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
6
|
+
*/
|
|
7
|
+
additionalData?: Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* Stores model information.
|
|
10
|
+
*/
|
|
11
|
+
backingStoreEnabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The value property
|
|
14
|
+
*/
|
|
15
|
+
value?: Site[];
|
|
16
|
+
}
|
|
17
|
+
export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
|
|
18
|
+
/**
|
|
19
|
+
* The value property
|
|
20
|
+
*/
|
|
21
|
+
value?: Site[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Provides operations to call the add method.
|
|
25
|
+
*/
|
|
26
|
+
export interface AddRequestBuilder extends BaseRequestBuilder<AddRequestBuilder> {
|
|
27
|
+
/**
|
|
28
|
+
* Follow a user's site or multiple sites.
|
|
29
|
+
* @param body The request body
|
|
30
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
* @returns {Promise<AddPostResponse>}
|
|
32
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
33
|
+
* @see {@link https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0|Find more info here}
|
|
34
|
+
*/
|
|
35
|
+
post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AddPostResponse | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Follow a user's site or multiple sites.
|
|
38
|
+
* @param body The request body
|
|
39
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
40
|
+
* @returns {RequestInformation}
|
|
41
|
+
*/
|
|
42
|
+
toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
46
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
47
|
+
* @returns {AddPostRequestBody}
|
|
48
|
+
*/
|
|
49
|
+
export declare function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
50
|
+
/**
|
|
51
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
52
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
53
|
+
* @returns {AddPostResponse}
|
|
54
|
+
*/
|
|
55
|
+
export declare function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
56
|
+
/**
|
|
57
|
+
* The deserialization information for the current model
|
|
58
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
59
|
+
*/
|
|
60
|
+
export declare function deserializeIntoAddPostRequestBody(addPostRequestBody?: Partial<AddPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
61
|
+
/**
|
|
62
|
+
* The deserialization information for the current model
|
|
63
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
64
|
+
*/
|
|
65
|
+
export declare function deserializeIntoAddPostResponse(addPostResponse?: Partial<AddPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
66
|
+
/**
|
|
67
|
+
* Serializes information the current object
|
|
68
|
+
* @param writer Serialization writer to use to serialize this model
|
|
69
|
+
*/
|
|
70
|
+
export declare function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody?: Partial<AddPostRequestBody> | undefined): void;
|
|
71
|
+
/**
|
|
72
|
+
* Serializes information the current object
|
|
73
|
+
* @param writer Serialization writer to use to serialize this model
|
|
74
|
+
*/
|
|
75
|
+
export declare function serializeAddPostResponse(writer: SerializationWriter, addPostResponse?: Partial<AddPostResponse> | undefined): void;
|
|
76
|
+
/**
|
|
77
|
+
* Uri template for the request builder.
|
|
78
|
+
*/
|
|
79
|
+
export declare const AddRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/followedSites/add";
|
|
80
|
+
/**
|
|
81
|
+
* Metadata for all the requests in the request builder.
|
|
82
|
+
*/
|
|
83
|
+
export declare const AddRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
84
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyJ,KAAK,qCAAqC,EAAE,KAAK,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAE9P,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACnF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAClB;AACD,MAAM,WAAW,eAAgB,SAAQ,qCAAqC,EAAE,QAAQ;IACpF;;OAEG;IACH,KAAK,CAAC,EA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AE,kBAAkB,GAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAc,GAAI,IAAI,CAGhJ;AACD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,eAAe,GAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAc,GAAI,IAAI,CAGvI;AACD;;GAEG;AACH,eAAO,MAAM,4BAA4B,mDAAmD,CAAC;AAC7F;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,gBAa/C,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddRequestBuilderRequestsMetadata = exports.AddRequestBuilderUriTemplate = exports.serializeAddPostResponse = exports.serializeAddPostRequestBody = exports.deserializeIntoAddPostResponse = exports.deserializeIntoAddPostRequestBody = exports.createAddPostResponseFromDiscriminatorValue = exports.createAddPostRequestBodyFromDiscriminatorValue = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns {AddPostRequestBody}
|
|
13
|
+
*/
|
|
14
|
+
function createAddPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoAddPostRequestBody;
|
|
16
|
+
}
|
|
17
|
+
exports.createAddPostRequestBodyFromDiscriminatorValue = createAddPostRequestBodyFromDiscriminatorValue;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
20
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
21
|
+
* @returns {AddPostResponse}
|
|
22
|
+
*/
|
|
23
|
+
function createAddPostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoAddPostResponse;
|
|
25
|
+
}
|
|
26
|
+
exports.createAddPostResponseFromDiscriminatorValue = createAddPostResponseFromDiscriminatorValue;
|
|
27
|
+
/**
|
|
28
|
+
* The deserialization information for the current model
|
|
29
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
30
|
+
*/
|
|
31
|
+
function deserializeIntoAddPostRequestBody(addPostRequestBody = {}) {
|
|
32
|
+
return {
|
|
33
|
+
"backingStoreEnabled": n => { addPostRequestBody.backingStoreEnabled = true; },
|
|
34
|
+
"value": n => { addPostRequestBody.value = n.getCollectionOfObjectValues(models_1.createSiteFromDiscriminatorValue); },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.deserializeIntoAddPostRequestBody = deserializeIntoAddPostRequestBody;
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
41
|
+
*/
|
|
42
|
+
function deserializeIntoAddPostResponse(addPostResponse = {}) {
|
|
43
|
+
return Object.assign(Object.assign({}, (0, models_1.deserializeIntoBaseCollectionPaginationCountResponse)(addPostResponse)), { "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(models_1.createSiteFromDiscriminatorValue); } });
|
|
44
|
+
}
|
|
45
|
+
exports.deserializeIntoAddPostResponse = deserializeIntoAddPostResponse;
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
function serializeAddPostRequestBody(writer, addPostRequestBody = {}) {
|
|
51
|
+
writer.writeCollectionOfObjectValues("value", addPostRequestBody.value, models_1.serializeSite);
|
|
52
|
+
writer.writeAdditionalData(addPostRequestBody.additionalData);
|
|
53
|
+
}
|
|
54
|
+
exports.serializeAddPostRequestBody = serializeAddPostRequestBody;
|
|
55
|
+
/**
|
|
56
|
+
* Serializes information the current object
|
|
57
|
+
* @param writer Serialization writer to use to serialize this model
|
|
58
|
+
*/
|
|
59
|
+
function serializeAddPostResponse(writer, addPostResponse = {}) {
|
|
60
|
+
(0, models_1.serializeBaseCollectionPaginationCountResponse)(writer, addPostResponse);
|
|
61
|
+
writer.writeCollectionOfObjectValues("value", addPostResponse.value, models_1.serializeSite);
|
|
62
|
+
}
|
|
63
|
+
exports.serializeAddPostResponse = serializeAddPostResponse;
|
|
64
|
+
/**
|
|
65
|
+
* Uri template for the request builder.
|
|
66
|
+
*/
|
|
67
|
+
exports.AddRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/followedSites/add";
|
|
68
|
+
/**
|
|
69
|
+
* Metadata for all the requests in the request builder.
|
|
70
|
+
*/
|
|
71
|
+
exports.AddRequestBuilderRequestsMetadata = {
|
|
72
|
+
post: {
|
|
73
|
+
uriTemplate: exports.AddRequestBuilderUriTemplate,
|
|
74
|
+
responseBodyContentType: "application/json",
|
|
75
|
+
errorMappings: {
|
|
76
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
77
|
+
},
|
|
78
|
+
adapterMethodName: "send",
|
|
79
|
+
responseBodyFactory: createAddPostResponseFromDiscriminatorValue,
|
|
80
|
+
requestBodyContentType: "application/json",
|
|
81
|
+
requestBodySerializer: serializeAddPostRequestBody,
|
|
82
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
/* tslint:enable */
|
|
86
|
+
/* eslint-enable */
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { type SiteCollectionResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type AddRequestBuilder } from './add/';
|
|
2
3
|
import { type CountRequestBuilder } from './count/';
|
|
3
4
|
import { type SiteItemRequestBuilder } from './item/';
|
|
5
|
+
import { type RemoveRequestBuilder } from './remove/';
|
|
4
6
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
5
7
|
/**
|
|
6
8
|
* Provides operations to manage the followedSites property of the microsoft.graph.user entity.
|
|
7
9
|
*/
|
|
8
10
|
export interface FollowedSitesRequestBuilder extends BaseRequestBuilder<FollowedSitesRequestBuilder> {
|
|
11
|
+
/**
|
|
12
|
+
* Provides operations to call the add method.
|
|
13
|
+
*/
|
|
14
|
+
get add(): AddRequestBuilder;
|
|
9
15
|
/**
|
|
10
16
|
* Provides operations to count the resources in the collection.
|
|
11
17
|
*/
|
|
12
18
|
get count(): CountRequestBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* Provides operations to call the remove method.
|
|
21
|
+
*/
|
|
22
|
+
get remove(): RemoveRequestBuilder;
|
|
13
23
|
/**
|
|
14
24
|
* Provides operations to manage the followedSites property of the microsoft.graph.user entity.
|
|
15
25
|
* @param siteId The unique identifier of site
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsD,KAAK,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAEjI,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzF,OAAO,EAA0C,KAAK,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,kBAAkB,CAAC,2BAA2B,CAAC;IAChG;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAI,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H,eAAO,MAAM,sCAAsC,4HAA4H,CAAC;AAchL;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,2BAA2B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAcpK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,gBAWzD,CAAC"}
|
|
@@ -6,8 +6,10 @@ exports.FollowedSitesRequestBuilderRequestsMetadata = exports.FollowedSitesReque
|
|
|
6
6
|
// Generated by Microsoft Kiota
|
|
7
7
|
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
8
|
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
const add_1 = require("./add/");
|
|
9
10
|
const count_1 = require("./count/");
|
|
10
11
|
const item_1 = require("./item/");
|
|
12
|
+
const remove_1 = require("./remove/");
|
|
11
13
|
/**
|
|
12
14
|
* Uri template for the request builder.
|
|
13
15
|
*/
|
|
@@ -33,9 +35,15 @@ exports.FollowedSitesRequestBuilderNavigationMetadata = {
|
|
|
33
35
|
requestsMetadata: item_1.SiteItemRequestBuilderRequestsMetadata,
|
|
34
36
|
pathParametersMappings: ["site%2Did"],
|
|
35
37
|
},
|
|
38
|
+
add: {
|
|
39
|
+
requestsMetadata: add_1.AddRequestBuilderRequestsMetadata,
|
|
40
|
+
},
|
|
36
41
|
count: {
|
|
37
42
|
requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
|
|
38
43
|
},
|
|
44
|
+
remove: {
|
|
45
|
+
requestsMetadata: remove_1.RemoveRequestBuilderRequestsMetadata,
|
|
46
|
+
},
|
|
39
47
|
};
|
|
40
48
|
/**
|
|
41
49
|
* Metadata for all the requests in the request builder.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type BaseCollectionPaginationCountResponse, type Site } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns {RemovePostRequestBody}
|
|
7
|
+
*/
|
|
8
|
+
export declare function createRemovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns {RemovePostResponse}
|
|
13
|
+
*/
|
|
14
|
+
export declare function createRemovePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
15
|
+
/**
|
|
16
|
+
* The deserialization information for the current model
|
|
17
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
18
|
+
*/
|
|
19
|
+
export declare function deserializeIntoRemovePostRequestBody(removePostRequestBody?: Partial<RemovePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
20
|
+
/**
|
|
21
|
+
* The deserialization information for the current model
|
|
22
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
23
|
+
*/
|
|
24
|
+
export declare function deserializeIntoRemovePostResponse(removePostResponse?: Partial<RemovePostResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
25
|
+
export interface RemovePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
26
|
+
/**
|
|
27
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
28
|
+
*/
|
|
29
|
+
additionalData?: Record<string, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* Stores model information.
|
|
32
|
+
*/
|
|
33
|
+
backingStoreEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The value property
|
|
36
|
+
*/
|
|
37
|
+
value?: Site[];
|
|
38
|
+
}
|
|
39
|
+
export interface RemovePostResponse extends BaseCollectionPaginationCountResponse, Parsable {
|
|
40
|
+
/**
|
|
41
|
+
* The value property
|
|
42
|
+
*/
|
|
43
|
+
value?: Site[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Provides operations to call the remove method.
|
|
47
|
+
*/
|
|
48
|
+
export interface RemoveRequestBuilder extends BaseRequestBuilder<RemoveRequestBuilder> {
|
|
49
|
+
/**
|
|
50
|
+
* Unfollow a user's site or multiple sites.
|
|
51
|
+
* @param body The request body
|
|
52
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
53
|
+
* @returns {Promise<RemovePostResponse>}
|
|
54
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
55
|
+
* @see {@link https://learn.microsoft.com/graph/api/site-unfollow?view=graph-rest-1.0|Find more info here}
|
|
56
|
+
*/
|
|
57
|
+
post(body: RemovePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RemovePostResponse | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Unfollow a user's site or multiple sites.
|
|
60
|
+
* @param body The request body
|
|
61
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
62
|
+
* @returns {RequestInformation}
|
|
63
|
+
*/
|
|
64
|
+
toPostRequestInformation(body: RemovePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Serializes information the current object
|
|
68
|
+
* @param writer Serialization writer to use to serialize this model
|
|
69
|
+
*/
|
|
70
|
+
export declare function serializeRemovePostRequestBody(writer: SerializationWriter, removePostRequestBody?: Partial<RemovePostRequestBody> | undefined): void;
|
|
71
|
+
/**
|
|
72
|
+
* Serializes information the current object
|
|
73
|
+
* @param writer Serialization writer to use to serialize this model
|
|
74
|
+
*/
|
|
75
|
+
export declare function serializeRemovePostResponse(writer: SerializationWriter, removePostResponse?: Partial<RemovePostResponse> | undefined): void;
|
|
76
|
+
/**
|
|
77
|
+
* Uri template for the request builder.
|
|
78
|
+
*/
|
|
79
|
+
export declare const RemoveRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/followedSites/remove";
|
|
80
|
+
/**
|
|
81
|
+
* Metadata for all the requests in the request builder.
|
|
82
|
+
*/
|
|
83
|
+
export declare const RemoveRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
84
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyJ,KAAK,qCAAqC,EAAE,KAAK,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAE9P,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS;;;;GAIG;AACH,wBAAgB,iDAAiD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEzK;AACD;;;;GAIG;AACH,wBAAgB,8CAA8C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEtK;AACD;;;GAGG;AACH,wBAAgB,oCAAoC,CAAC,qBAAqB,GAAE,OAAO,CAAC,qBAA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E,mBAAmB,EAAE,kBAAkB,GAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAc,GAAI,IAAI,CAGhJ;AACD;;GAEG;AACH,eAAO,MAAM,+BAA+B,sDAAsD,CAAC;AACnG;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,gBAalD,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveRequestBuilderRequestsMetadata = exports.RemoveRequestBuilderUriTemplate = exports.serializeRemovePostResponse = exports.serializeRemovePostRequestBody = exports.deserializeIntoRemovePostResponse = exports.deserializeIntoRemovePostRequestBody = exports.createRemovePostResponseFromDiscriminatorValue = exports.createRemovePostRequestBodyFromDiscriminatorValue = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns {RemovePostRequestBody}
|
|
13
|
+
*/
|
|
14
|
+
function createRemovePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoRemovePostRequestBody;
|
|
16
|
+
}
|
|
17
|
+
exports.createRemovePostRequestBodyFromDiscriminatorValue = createRemovePostRequestBodyFromDiscriminatorValue;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
20
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
21
|
+
* @returns {RemovePostResponse}
|
|
22
|
+
*/
|
|
23
|
+
function createRemovePostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoRemovePostResponse;
|
|
25
|
+
}
|
|
26
|
+
exports.createRemovePostResponseFromDiscriminatorValue = createRemovePostResponseFromDiscriminatorValue;
|
|
27
|
+
/**
|
|
28
|
+
* The deserialization information for the current model
|
|
29
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
30
|
+
*/
|
|
31
|
+
function deserializeIntoRemovePostRequestBody(removePostRequestBody = {}) {
|
|
32
|
+
return {
|
|
33
|
+
"backingStoreEnabled": n => { removePostRequestBody.backingStoreEnabled = true; },
|
|
34
|
+
"value": n => { removePostRequestBody.value = n.getCollectionOfObjectValues(models_1.createSiteFromDiscriminatorValue); },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.deserializeIntoRemovePostRequestBody = deserializeIntoRemovePostRequestBody;
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
41
|
+
*/
|
|
42
|
+
function deserializeIntoRemovePostResponse(removePostResponse = {}) {
|
|
43
|
+
return Object.assign(Object.assign({}, (0, models_1.deserializeIntoBaseCollectionPaginationCountResponse)(removePostResponse)), { "value": n => { removePostResponse.value = n.getCollectionOfObjectValues(models_1.createSiteFromDiscriminatorValue); } });
|
|
44
|
+
}
|
|
45
|
+
exports.deserializeIntoRemovePostResponse = deserializeIntoRemovePostResponse;
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
function serializeRemovePostRequestBody(writer, removePostRequestBody = {}) {
|
|
51
|
+
writer.writeCollectionOfObjectValues("value", removePostRequestBody.value, models_1.serializeSite);
|
|
52
|
+
writer.writeAdditionalData(removePostRequestBody.additionalData);
|
|
53
|
+
}
|
|
54
|
+
exports.serializeRemovePostRequestBody = serializeRemovePostRequestBody;
|
|
55
|
+
/**
|
|
56
|
+
* Serializes information the current object
|
|
57
|
+
* @param writer Serialization writer to use to serialize this model
|
|
58
|
+
*/
|
|
59
|
+
function serializeRemovePostResponse(writer, removePostResponse = {}) {
|
|
60
|
+
(0, models_1.serializeBaseCollectionPaginationCountResponse)(writer, removePostResponse);
|
|
61
|
+
writer.writeCollectionOfObjectValues("value", removePostResponse.value, models_1.serializeSite);
|
|
62
|
+
}
|
|
63
|
+
exports.serializeRemovePostResponse = serializeRemovePostResponse;
|
|
64
|
+
/**
|
|
65
|
+
* Uri template for the request builder.
|
|
66
|
+
*/
|
|
67
|
+
exports.RemoveRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/followedSites/remove";
|
|
68
|
+
/**
|
|
69
|
+
* Metadata for all the requests in the request builder.
|
|
70
|
+
*/
|
|
71
|
+
exports.RemoveRequestBuilderRequestsMetadata = {
|
|
72
|
+
post: {
|
|
73
|
+
uriTemplate: exports.RemoveRequestBuilderUriTemplate,
|
|
74
|
+
responseBodyContentType: "application/json",
|
|
75
|
+
errorMappings: {
|
|
76
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
77
|
+
},
|
|
78
|
+
adapterMethodName: "send",
|
|
79
|
+
responseBodyFactory: createRemovePostResponseFromDiscriminatorValue,
|
|
80
|
+
requestBodyContentType: "application/json",
|
|
81
|
+
requestBodySerializer: serializeRemovePostRequestBody,
|
|
82
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
/* tslint:enable */
|
|
86
|
+
/* eslint-enable */
|
package/users/item/index.d.ts
CHANGED
|
@@ -370,7 +370,7 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder<UserItemReque
|
|
|
370
370
|
* Deletes a user.
|
|
371
371
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
372
372
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
373
|
-
* @see {@link https://learn.microsoft.com/graph/api/intune-
|
|
373
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0|Find more info here}
|
|
374
374
|
*/
|
|
375
375
|
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
376
376
|
/**
|
|
@@ -381,15 +381,15 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder<UserItemReque
|
|
|
381
381
|
*/
|
|
382
382
|
exportDeviceAndAppManagementDataWithSkipWithTop(skip: number | undefined, top: number | undefined): ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder;
|
|
383
383
|
/**
|
|
384
|
-
*
|
|
384
|
+
* Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.
|
|
385
385
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
386
386
|
* @returns {Promise<User>}
|
|
387
387
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
388
|
-
* @see {@link https://learn.microsoft.com/graph/api/
|
|
388
|
+
* @see {@link https://learn.microsoft.com/graph/api/user-get?view=graph-rest-1.0|Find more info here}
|
|
389
389
|
*/
|
|
390
390
|
get(requestConfiguration?: RequestConfiguration<UserItemRequestBuilderGetQueryParameters> | undefined): Promise<User | undefined>;
|
|
391
391
|
/**
|
|
392
|
-
* Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage.
|
|
392
|
+
* Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update.
|
|
393
393
|
* @param body The request body
|
|
394
394
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
395
395
|
* @returns {Promise<User>}
|
|
@@ -411,13 +411,13 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder<UserItemReque
|
|
|
411
411
|
*/
|
|
412
412
|
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
413
413
|
/**
|
|
414
|
-
*
|
|
414
|
+
* Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.
|
|
415
415
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
416
416
|
* @returns {RequestInformation}
|
|
417
417
|
*/
|
|
418
418
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<UserItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
419
419
|
/**
|
|
420
|
-
* Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage.
|
|
420
|
+
* Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update.
|
|
421
421
|
* @param body The request body
|
|
422
422
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
423
423
|
* @returns {RequestInformation}
|
|
@@ -425,7 +425,7 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder<UserItemReque
|
|
|
425
425
|
toPatchRequestInformation(body: User, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
|
-
*
|
|
428
|
+
* Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.
|
|
429
429
|
*/
|
|
430
430
|
export interface UserItemRequestBuilderGetQueryParameters {
|
|
431
431
|
/**
|
|
@@ -18,7 +18,7 @@ export interface ArchivePostRequestBody extends AdditionalDataHolder, BackedMode
|
|
|
18
18
|
*/
|
|
19
19
|
export interface ArchiveRequestBuilder extends BaseRequestBuilder<ArchiveRequestBuilder> {
|
|
20
20
|
/**
|
|
21
|
-
* Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team
|
|
21
|
+
* Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive.
|
|
22
22
|
* @param body The request body
|
|
23
23
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
24
24
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
@@ -26,7 +26,7 @@ export interface ArchiveRequestBuilder extends BaseRequestBuilder<ArchiveRequest
|
|
|
26
26
|
*/
|
|
27
27
|
post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
28
28
|
/**
|
|
29
|
-
* Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team
|
|
29
|
+
* Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive.
|
|
30
30
|
* @param body The request body
|
|
31
31
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
32
32
|
* @returns {RequestInformation}
|
|
@@ -30,12 +30,12 @@ export interface MembersRequestBuilder extends BaseRequestBuilder<MembersRequest
|
|
|
30
30
|
*/
|
|
31
31
|
get(requestConfiguration?: RequestConfiguration<MembersRequestBuilderGetQueryParameters> | undefined): Promise<ConversationMemberCollectionResponse | undefined>;
|
|
32
32
|
/**
|
|
33
|
-
* Add a conversationMember to a channel.
|
|
33
|
+
* Add a conversationMember to a channel.
|
|
34
34
|
* @param body The request body
|
|
35
35
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
36
|
* @returns {Promise<ConversationMember>}
|
|
37
37
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
38
|
-
* @see {@link https://learn.microsoft.com/graph/api/
|
|
38
|
+
* @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here}
|
|
39
39
|
*/
|
|
40
40
|
post(body: ConversationMember, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ConversationMember | undefined>;
|
|
41
41
|
/**
|
|
@@ -45,7 +45,7 @@ export interface MembersRequestBuilder extends BaseRequestBuilder<MembersRequest
|
|
|
45
45
|
*/
|
|
46
46
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<MembersRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
47
47
|
/**
|
|
48
|
-
* Add a conversationMember to a channel.
|
|
48
|
+
* Add a conversationMember to a channel.
|
|
49
49
|
* @param body The request body
|
|
50
50
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
51
|
* @returns {RequestInformation}
|
|
@@ -5,10 +5,10 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
|
|
|
5
5
|
*/
|
|
6
6
|
export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder<ConversationMemberItemRequestBuilder> {
|
|
7
7
|
/**
|
|
8
|
-
* Delete a conversationMember from a channel.
|
|
8
|
+
* Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.
|
|
9
9
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
10
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
11
|
-
* @see {@link https://learn.microsoft.com/graph/api/
|
|
11
|
+
* @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here}
|
|
12
12
|
*/
|
|
13
13
|
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
14
14
|
/**
|
|
@@ -20,16 +20,16 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
|
|
|
20
20
|
*/
|
|
21
21
|
get(requestConfiguration?: RequestConfiguration<ConversationMemberItemRequestBuilderGetQueryParameters> | undefined): Promise<ConversationMember | undefined>;
|
|
22
22
|
/**
|
|
23
|
-
* Update the role of a conversationMember in a
|
|
23
|
+
* Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared.
|
|
24
24
|
* @param body The request body
|
|
25
25
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
26
26
|
* @returns {Promise<ConversationMember>}
|
|
27
27
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
28
|
-
* @see {@link https://learn.microsoft.com/graph/api/
|
|
28
|
+
* @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here}
|
|
29
29
|
*/
|
|
30
30
|
patch(body: ConversationMember, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ConversationMember | undefined>;
|
|
31
31
|
/**
|
|
32
|
-
* Delete a conversationMember from a channel.
|
|
32
|
+
* Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.
|
|
33
33
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
34
34
|
* @returns {RequestInformation}
|
|
35
35
|
*/
|
|
@@ -41,7 +41,7 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
|
|
|
41
41
|
*/
|
|
42
42
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ConversationMemberItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
43
43
|
/**
|
|
44
|
-
* Update the role of a conversationMember in a
|
|
44
|
+
* Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared.
|
|
45
45
|
* @param body The request body
|
|
46
46
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
47
47
|
* @returns {RequestInformation}
|
|
@@ -30,12 +30,12 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder<MessagesReque
|
|
|
30
30
|
*/
|
|
31
31
|
get(requestConfiguration?: RequestConfiguration<MessagesRequestBuilderGetQueryParameters> | undefined): Promise<ChatMessageCollectionResponse | undefined>;
|
|
32
32
|
/**
|
|
33
|
-
* Send a new chatMessage in the specified channel.
|
|
33
|
+
* Send a new chatMessage in the specified channel or a chat.
|
|
34
34
|
* @param body The request body
|
|
35
35
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
36
|
* @returns {Promise<ChatMessage>}
|
|
37
37
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
38
|
-
* @see {@link https://learn.microsoft.com/graph/api/
|
|
38
|
+
* @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here}
|
|
39
39
|
*/
|
|
40
40
|
post(body: ChatMessage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ChatMessage | undefined>;
|
|
41
41
|
/**
|
|
@@ -45,7 +45,7 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder<MessagesReque
|
|
|
45
45
|
*/
|
|
46
46
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<MessagesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
47
47
|
/**
|
|
48
|
-
* Send a new chatMessage in the specified channel.
|
|
48
|
+
* Send a new chatMessage in the specified channel or a chat.
|
|
49
49
|
* @param body The request body
|
|
50
50
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
51
|
* @returns {RequestInformation}
|
|
@@ -30,12 +30,12 @@ export interface RepliesRequestBuilder extends BaseRequestBuilder<RepliesRequest
|
|
|
30
30
|
*/
|
|
31
31
|
get(requestConfiguration?: RequestConfiguration<RepliesRequestBuilderGetQueryParameters> | undefined): Promise<ChatMessageCollectionResponse | undefined>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Create a new reply to a chatMessage in a specified channel.
|
|
34
34
|
* @param body The request body
|
|
35
35
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
36
|
* @returns {Promise<ChatMessage>}
|
|
37
37
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
38
|
-
* @see {@link https://learn.microsoft.com/graph/api/
|
|
38
|
+
* @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here}
|
|
39
39
|
*/
|
|
40
40
|
post(body: ChatMessage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ChatMessage | undefined>;
|
|
41
41
|
/**
|
|
@@ -45,7 +45,7 @@ export interface RepliesRequestBuilder extends BaseRequestBuilder<RepliesRequest
|
|
|
45
45
|
*/
|
|
46
46
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RepliesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Create a new reply to a chatMessage in a specified channel.
|
|
49
49
|
* @param body The request body
|
|
50
50
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
51
|
* @returns {RequestInformation}
|
|
@@ -25,7 +25,7 @@ export interface TeamsTabItemRequestBuilder extends BaseRequestBuilder<TeamsTabI
|
|
|
25
25
|
*/
|
|
26
26
|
get(requestConfiguration?: RequestConfiguration<TeamsTabItemRequestBuilderGetQueryParameters> | undefined): Promise<TeamsTab | undefined>;
|
|
27
27
|
/**
|
|
28
|
-
* Update the properties of the specified tab.This can be used to configure the content of the tab.
|
|
28
|
+
* Update the properties of the specified tab.This API can be used to configure the content of the tab.
|
|
29
29
|
* @param body The request body
|
|
30
30
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
31
|
* @returns {Promise<TeamsTab>}
|
|
@@ -46,7 +46,7 @@ export interface TeamsTabItemRequestBuilder extends BaseRequestBuilder<TeamsTabI
|
|
|
46
46
|
*/
|
|
47
47
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<TeamsTabItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
48
48
|
/**
|
|
49
|
-
* Update the properties of the specified tab.This can be used to configure the content of the tab.
|
|
49
|
+
* Update the properties of the specified tab.This API can be used to configure the content of the tab.
|
|
50
50
|
* @param body The request body
|
|
51
51
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
52
52
|
* @returns {RequestInformation}
|