@microsoft/msgraph-sdk-admin 1.0.0-preview.77 → 1.0.0-preview.79

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.
Files changed (34) hide show
  1. package/admin/teams/index.d.ts +8 -3
  2. package/admin/teams/index.d.ts.map +1 -1
  3. package/admin/teams/index.js +6 -0
  4. package/admin/teams/index.js.map +1 -1
  5. package/admin/teams/policy/index.d.ts +86 -0
  6. package/admin/teams/policy/index.d.ts.map +1 -0
  7. package/admin/teams/policy/index.js +73 -0
  8. package/admin/teams/policy/index.js.map +1 -0
  9. package/admin/teams/policy/microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/index.d.ts +93 -0
  10. package/admin/teams/policy/microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/index.d.ts.map +1 -0
  11. package/admin/teams/policy/microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/index.js +76 -0
  12. package/admin/teams/policy/microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/index.js.map +1 -0
  13. package/admin/teams/policy/userAssignments/count/index.d.ts +41 -0
  14. package/admin/teams/policy/userAssignments/count/index.d.ts.map +1 -0
  15. package/admin/teams/policy/userAssignments/count/index.js +34 -0
  16. package/admin/teams/policy/userAssignments/count/index.js.map +1 -0
  17. package/admin/teams/policy/userAssignments/index.d.ts +107 -0
  18. package/admin/teams/policy/userAssignments/index.d.ts.map +1 -0
  19. package/admin/teams/policy/userAssignments/index.js +80 -0
  20. package/admin/teams/policy/userAssignments/index.js.map +1 -0
  21. package/admin/teams/policy/userAssignments/item/index.d.ts +69 -0
  22. package/admin/teams/policy/userAssignments/item/index.d.ts.map +1 -0
  23. package/admin/teams/policy/userAssignments/item/index.js +56 -0
  24. package/admin/teams/policy/userAssignments/item/index.js.map +1 -0
  25. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationAssign/index.d.ts +60 -0
  26. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationAssign/index.d.ts.map +1 -0
  27. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationAssign/index.js +65 -0
  28. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationAssign/index.js.map +1 -0
  29. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationUnassign/index.d.ts +60 -0
  30. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationUnassign/index.d.ts.map +1 -0
  31. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationUnassign/index.js +65 -0
  32. package/admin/teams/policy/userAssignments/microsoftGraphTeamsAdministrationUnassign/index.js.map +1 -0
  33. package/package.json +1 -1
  34. package/tsconfig.tsbuildinfo +1 -1
@@ -1,10 +1,15 @@
1
1
  import { type TeamsAdminRoot } from '@microsoft/msgraph-sdk/models/teamsAdministration/index.js';
2
+ import { type PolicyRequestBuilder } from './policy/index.js';
2
3
  import { type UserConfigurationsRequestBuilder } from './userConfigurations/index.js';
3
4
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
5
  /**
5
6
  * Provides operations to manage the teams property of the microsoft.graph.admin entity.
6
7
  */
7
8
  export interface TeamsRequestBuilder extends BaseRequestBuilder<TeamsRequestBuilder> {
9
+ /**
10
+ * Provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity.
11
+ */
12
+ get policy(): PolicyRequestBuilder;
8
13
  /**
9
14
  * Provides operations to manage the userConfigurations property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity.
10
15
  */
@@ -16,7 +21,7 @@ export interface TeamsRequestBuilder extends BaseRequestBuilder<TeamsRequestBuil
16
21
  */
17
22
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
18
23
  /**
19
- * Represents a collection of user configurations.
24
+ * A container for Teams administration functionalities, such as user configurations and policy assignments.
20
25
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
26
  * @returns {Promise<TeamsAdminRoot>}
22
27
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
@@ -37,7 +42,7 @@ export interface TeamsRequestBuilder extends BaseRequestBuilder<TeamsRequestBuil
37
42
  */
38
43
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
39
44
  /**
40
- * Represents a collection of user configurations.
45
+ * A container for Teams administration functionalities, such as user configurations and policy assignments.
41
46
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
47
  * @returns {RequestInformation}
43
48
  */
@@ -51,7 +56,7 @@ export interface TeamsRequestBuilder extends BaseRequestBuilder<TeamsRequestBuil
51
56
  toPatchRequestInformation(body: TeamsAdminRoot, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
57
  }
53
58
  /**
54
- * Represents a collection of user configurations.
59
+ * A container for Teams administration functionalities, such as user configurations and policy assignments.
55
60
  */
56
61
  export interface TeamsRequestBuilderGetQueryParameters {
57
62
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAuE,KAAK,cAAc,EAAE,MAAM,4DAA4D,CAAC;AAEtK,OAAO,EAAE,KAAK,gCAAgC,EAAwG,MAAM,+BAA+B,CAAC;AAE5L,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,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;OAEG;IACH,IAAI,kBAAkB,IAAI,gCAAgC,CAAC;IAC3D;;;;OAIG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,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CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC1I;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,iDAAiD,CAAC;AAQ7F;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,mBAAmB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CASpJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBA+BjD,CAAC"}
@@ -6,6 +6,8 @@ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/m
6
6
  // @ts-ignore
7
7
  import { createTeamsAdminRootFromDiscriminatorValue, serializeTeamsAdminRoot } from '@microsoft/msgraph-sdk/models/teamsAdministration/index.js';
8
8
  // @ts-ignore
9
+ import { PolicyRequestBuilderNavigationMetadata, PolicyRequestBuilderRequestsMetadata } from './policy/index.js';
10
+ // @ts-ignore
9
11
  import { UserConfigurationsRequestBuilderNavigationMetadata, UserConfigurationsRequestBuilderRequestsMetadata } from './userConfigurations/index.js';
10
12
  /**
11
13
  * Uri template for the request builder.
@@ -22,6 +24,10 @@ const TeamsRequestBuilderGetQueryParametersMapper = {
22
24
  * Metadata for all the navigation properties in the request builder.
23
25
  */
24
26
  export const TeamsRequestBuilderNavigationMetadata = {
27
+ policy: {
28
+ requestsMetadata: PolicyRequestBuilderRequestsMetadata,
29
+ navigationMetadata: PolicyRequestBuilderNavigationMetadata,
30
+ },
25
31
  userConfigurations: {
26
32
  requestsMetadata: UserConfigurationsRequestBuilderRequestsMetadata,
27
33
  navigationMetadata: UserConfigurationsRequestBuilderNavigationMetadata,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names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AAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,0CAA0C;QAChE,qBAAqB,EAAE,2CAA2C;KACrE;IACD,KAAK,EAAE;QACH,WAAW,EAAE,8BAA8B;QAC3C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,0CAA0C;QAChE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,uBAAuB;QAC9C,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,86 @@
1
+ import { type TeamsPolicyAssignment } from '@microsoft/msgraph-sdk/models/teamsAdministration/index.js';
2
+ import { type MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder } from './microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/index.js';
3
+ import { type UserAssignmentsRequestBuilder } from './userAssignments/index.js';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity.
7
+ */
8
+ export interface PolicyRequestBuilder extends BaseRequestBuilder<PolicyRequestBuilder> {
9
+ /**
10
+ * Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
11
+ */
12
+ get userAssignments(): UserAssignmentsRequestBuilder;
13
+ /**
14
+ * Delete navigation property policy for admin
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
17
+ */
18
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
19
+ /**
20
+ * Represents a navigation property to the Teams policy assignment object.
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns {Promise<TeamsPolicyAssignment>}
23
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
+ */
25
+ get(requestConfiguration?: RequestConfiguration<PolicyRequestBuilderGetQueryParameters> | undefined): Promise<TeamsPolicyAssignment | undefined>;
26
+ /**
27
+ * Provides operations to call the getPolicyId method.
28
+ * @param name Usage: name='{name}'
29
+ * @param type Usage: type='{type}'
30
+ * @returns {MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder}
31
+ */
32
+ microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName(name: string | undefined, type: string | undefined): MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder;
33
+ /**
34
+ * Update the navigation property policy in admin
35
+ * @param body The request body
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {Promise<TeamsPolicyAssignment>}
38
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
39
+ */
40
+ patch(body: TeamsPolicyAssignment, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamsPolicyAssignment | undefined>;
41
+ /**
42
+ * Delete navigation property policy for admin
43
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
+ * @returns {RequestInformation}
45
+ */
46
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
47
+ /**
48
+ * Represents a navigation property to the Teams policy assignment object.
49
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50
+ * @returns {RequestInformation}
51
+ */
52
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PolicyRequestBuilderGetQueryParameters> | undefined): RequestInformation;
53
+ /**
54
+ * Update the navigation property policy in admin
55
+ * @param body The request body
56
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
57
+ * @returns {RequestInformation}
58
+ */
59
+ toPatchRequestInformation(body: TeamsPolicyAssignment, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
60
+ }
61
+ /**
62
+ * Represents a navigation property to the Teams policy assignment object.
63
+ */
64
+ export interface PolicyRequestBuilderGetQueryParameters {
65
+ /**
66
+ * Expand related entities
67
+ */
68
+ expand?: string[];
69
+ /**
70
+ * Select properties to be returned
71
+ */
72
+ select?: string[];
73
+ }
74
+ /**
75
+ * Uri template for the request builder.
76
+ */
77
+ export declare const PolicyRequestBuilderUriTemplate = "{+baseurl}/admin/teams/policy{?%24expand,%24select}";
78
+ /**
79
+ * Metadata for all the navigation properties in the request builder.
80
+ */
81
+ export declare const PolicyRequestBuilderNavigationMetadata: Record<Exclude<keyof PolicyRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
82
+ /**
83
+ * Metadata for all the requests in the request builder.
84
+ */
85
+ export declare const PolicyRequestBuilderRequestsMetadata: RequestsMetadata;
86
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqF,KAAK,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAE3L,OAAO,EAA8F,KAAK,0EAA0E,EAAE,MAAM,yEAAyE,CAAC;AAEtQ,OAAO,EAAE,KAAK,6BAA6B,EAAkG,MAAM,4BAA4B,CAAC;AAEhL,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,oBAAqB,SAAQ,kBAAkB,CAAC,oBAAoB,CAAC;IAClF;;OAEG;IACH,IAAI,eAAe,IAAI,6BAA6B,CAAC;IACrD;;;;OAIG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,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,EAAE,gBA+BlD,CAAC"}
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
6
+ // @ts-ignore
7
+ import { createTeamsPolicyAssignmentFromDiscriminatorValue, serializeTeamsPolicyAssignment } from '@microsoft/msgraph-sdk/models/teamsAdministration/index.js';
8
+ // @ts-ignore
9
+ import { MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderRequestsMetadata } from './microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/index.js';
10
+ // @ts-ignore
11
+ import { UserAssignmentsRequestBuilderNavigationMetadata, UserAssignmentsRequestBuilderRequestsMetadata } from './userAssignments/index.js';
12
+ /**
13
+ * Uri template for the request builder.
14
+ */
15
+ export const PolicyRequestBuilderUriTemplate = "{+baseurl}/admin/teams/policy{?%24expand,%24select}";
16
+ /**
17
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
18
+ */
19
+ const PolicyRequestBuilderGetQueryParametersMapper = {
20
+ "expand": "%24expand",
21
+ "select": "%24select",
22
+ };
23
+ /**
24
+ * Metadata for all the navigation properties in the request builder.
25
+ */
26
+ export const PolicyRequestBuilderNavigationMetadata = {
27
+ microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName: {
28
+ requestsMetadata: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderRequestsMetadata,
29
+ pathParametersMappings: ["name", "type"],
30
+ },
31
+ userAssignments: {
32
+ requestsMetadata: UserAssignmentsRequestBuilderRequestsMetadata,
33
+ navigationMetadata: UserAssignmentsRequestBuilderNavigationMetadata,
34
+ },
35
+ };
36
+ /**
37
+ * Metadata for all the requests in the request builder.
38
+ */
39
+ export const PolicyRequestBuilderRequestsMetadata = {
40
+ delete: {
41
+ uriTemplate: PolicyRequestBuilderUriTemplate,
42
+ responseBodyContentType: "application/json",
43
+ errorMappings: {
44
+ XXX: createODataErrorFromDiscriminatorValue,
45
+ },
46
+ adapterMethodName: "sendNoResponseContent",
47
+ },
48
+ get: {
49
+ uriTemplate: PolicyRequestBuilderUriTemplate,
50
+ responseBodyContentType: "application/json",
51
+ errorMappings: {
52
+ XXX: createODataErrorFromDiscriminatorValue,
53
+ },
54
+ adapterMethodName: "send",
55
+ responseBodyFactory: createTeamsPolicyAssignmentFromDiscriminatorValue,
56
+ queryParametersMapper: PolicyRequestBuilderGetQueryParametersMapper,
57
+ },
58
+ patch: {
59
+ uriTemplate: PolicyRequestBuilderUriTemplate,
60
+ responseBodyContentType: "application/json",
61
+ errorMappings: {
62
+ XXX: createODataErrorFromDiscriminatorValue,
63
+ },
64
+ adapterMethodName: "send",
65
+ responseBodyFactory: createTeamsPolicyAssignmentFromDiscriminatorValue,
66
+ requestBodyContentType: "application/json",
67
+ requestBodySerializer: serializeTeamsPolicyAssignment,
68
+ requestInformationContentSetMethod: "setContentFromParsable",
69
+ },
70
+ };
71
+ /* tslint:enable */
72
+ /* eslint-enable */
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,iDAAiD,EAAE,8BAA8B,EAA8B,MAAM,4DAA4D,CAAC;AAC3L,aAAa;AACb,OAAO,EAAE,0FAA0F,EAAmF,MAAM,yEAAyE,CAAC;AACtQ,aAAa;AACb,OAAO,EAAsC,+CAA+C,EAAE,6CAA6C,EAAE,MAAM,4BAA4B,CAAC;AAyEhL;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,qDAAqD,CAAC;AACrG;;GAEG;AACH,MAAM,4CAA4C,GAA2B;IACzE,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAwG;IACvJ,4DAA4D,EAAE;QAC1D,gBAAgB,EAAE,0FAA0F;QAC5G,sBAAsB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC3C;IACD,eAAe,EAAE;QACb,gBAAgB,EAAE,6CAA6C;QAC/D,kBAAkB,EAAE,+CAA+C;KACtE;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAqB;IAClE,MAAM,EAAE;QACJ,WAAW,EAAE,+BAA+B;QAC5C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;IACD,GAAG,EAAE;QACD,WAAW,EAAE,+BAA+B;QAC5C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,iDAAiD;QACvE,qBAAqB,EAAE,4CAA4C;KACtE;IACD,KAAK,EAAE;QACH,WAAW,EAAE,+BAA+B;QAC5C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,iDAAiD;QACvE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,8BAA8B;QACrD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,93 @@
1
+ import { type BaseCollectionPaginationCountResponse } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type PolicyIdentifierDetail } from '@microsoft/msgraph-sdk/models/teamsAdministration/index.js';
3
+ import { type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Creates a new instance of the appropriate class based on discriminator value
6
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7
+ * @returns {GetPolicyIdWithTypeWithNameGetResponse}
8
+ */
9
+ export declare function createGetPolicyIdWithTypeWithNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
10
+ /**
11
+ * The deserialization information for the current model
12
+ * @param GetPolicyIdWithTypeWithNameGetResponse The instance to deserialize into.
13
+ * @returns {Record<string, (node: ParseNode) => void>}
14
+ */
15
+ export declare function deserializeIntoGetPolicyIdWithTypeWithNameGetResponse(getPolicyIdWithTypeWithNameGetResponse?: Partial<GetPolicyIdWithTypeWithNameGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
16
+ export interface GetPolicyIdWithTypeWithNameGetResponse extends BaseCollectionPaginationCountResponse, Parsable {
17
+ /**
18
+ * The value property
19
+ */
20
+ value?: PolicyIdentifierDetail[] | null;
21
+ }
22
+ /**
23
+ * Provides operations to call the getPolicyId method.
24
+ */
25
+ export interface MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder extends BaseRequestBuilder<MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder> {
26
+ /**
27
+ * Get the policy ID for a given policy name and policy type within Teams administration.
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {Promise<GetPolicyIdWithTypeWithNameGetResponse>}
30
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
+ * @see {@link https://learn.microsoft.com/graph/api/teamsadministration-teamspolicyassignment-getpolicyid?view=graph-rest-1.0|Find more info here}
32
+ */
33
+ get(requestConfiguration?: RequestConfiguration<MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters> | undefined): Promise<GetPolicyIdWithTypeWithNameGetResponse | undefined>;
34
+ /**
35
+ * Get the policy ID for a given policy name and policy type within Teams administration.
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {RequestInformation}
38
+ */
39
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters> | undefined): RequestInformation;
40
+ }
41
+ /**
42
+ * Get the policy ID for a given policy name and policy type within Teams administration.
43
+ */
44
+ export interface MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters {
45
+ /**
46
+ * Include count of items
47
+ */
48
+ count?: boolean;
49
+ /**
50
+ * Expand related entities
51
+ */
52
+ expand?: string[];
53
+ /**
54
+ * Filter items by property values
55
+ */
56
+ filter?: string;
57
+ /**
58
+ * Order items by property values
59
+ */
60
+ orderby?: string[];
61
+ /**
62
+ * Search items by search phrases
63
+ */
64
+ search?: string;
65
+ /**
66
+ * Select properties to be returned
67
+ */
68
+ select?: string[];
69
+ /**
70
+ * Skip the first n items
71
+ */
72
+ skip?: number;
73
+ /**
74
+ * Show only the first n items
75
+ */
76
+ top?: number;
77
+ }
78
+ /**
79
+ * Serializes information the current object
80
+ * @param GetPolicyIdWithTypeWithNameGetResponse The instance to serialize from.
81
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
82
+ * @param writer Serialization writer to use to serialize this model
83
+ */
84
+ export declare function serializeGetPolicyIdWithTypeWithNameGetResponse(writer: SerializationWriter, getPolicyIdWithTypeWithNameGetResponse?: Partial<GetPolicyIdWithTypeWithNameGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
85
+ /**
86
+ * Uri template for the request builder.
87
+ */
88
+ export declare const MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderUriTemplate = "{+baseurl}/admin/teams/policy/microsoft.graph.teamsAdministration.getPolicyId(type='{type}',name='{name}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
89
+ /**
90
+ * Metadata for all the requests in the request builder.
91
+ */
92
+ export declare const MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderRequestsMetadata: RequestsMetadata;
93
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAwG,KAAK,qCAAqC,EAAE,MAAM,wCAAwC,CAAC;AAI1M,OAAO,EAAuF,KAAK,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAE9L,OAAO,EAAE,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;AAElO;;;;GAIG;AAEH,wBAAgB,kEAAkE,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,CAE1L;AACD;;;;GAIG;AAEH,wBAAgB,qDAAqD,CAAC,sCAAsC,GAAE,OAAO,CAAC,sCAAsC,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK1N;AACD,MAAM,WAAW,sCAAuC,SAAQ,qCAAqC,EAAE,QAAQ;IAC3G;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC3C;AACD;;GAEG;AACH,MAAM,WAAW,0EAA2E,SAAQ,kBAAkB,CAAC,0EAA0E,CAAC;IAC9L;;;;;;OAMG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,4FAA4F,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,sCAAsC,GAAG,SAAS,CAAC,CAAC;IAC1N;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,4FAA4F,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACxM;AACD;;GAEG;AACH,MAAM,WAAW,4FAA4F;IACzG;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;;;;GAKG;AAEH,wBAAgB,+CAA+C,CAAC,MAAM,EAAE,mBAAmB,EAAE,sCAAsC,GAAE,OAAO,CAAC,sCAAsC,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAI9P;AACD;;GAEG;AACH,eAAO,MAAM,qFAAqF,4LAA4L,CAAC;AAc/R;;GAEG;AACH,eAAO,MAAM,0FAA0F,EAAE,gBAWxG,CAAC"}
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ // @ts-ignore
9
+ import { createPolicyIdentifierDetailFromDiscriminatorValue, serializePolicyIdentifierDetail } from '@microsoft/msgraph-sdk/models/teamsAdministration/index.js';
10
+ /**
11
+ * Creates a new instance of the appropriate class based on discriminator value
12
+ * @param parseNode The parse node to use to read the discriminator value and create the object
13
+ * @returns {GetPolicyIdWithTypeWithNameGetResponse}
14
+ */
15
+ // @ts-ignore
16
+ export function createGetPolicyIdWithTypeWithNameGetResponseFromDiscriminatorValue(parseNode) {
17
+ return deserializeIntoGetPolicyIdWithTypeWithNameGetResponse;
18
+ }
19
+ /**
20
+ * The deserialization information for the current model
21
+ * @param GetPolicyIdWithTypeWithNameGetResponse The instance to deserialize into.
22
+ * @returns {Record<string, (node: ParseNode) => void>}
23
+ */
24
+ // @ts-ignore
25
+ export function deserializeIntoGetPolicyIdWithTypeWithNameGetResponse(getPolicyIdWithTypeWithNameGetResponse = {}) {
26
+ return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(getPolicyIdWithTypeWithNameGetResponse)), { "value": n => { getPolicyIdWithTypeWithNameGetResponse.value = n.getCollectionOfObjectValues(createPolicyIdentifierDetailFromDiscriminatorValue); } });
27
+ }
28
+ /**
29
+ * Serializes information the current object
30
+ * @param GetPolicyIdWithTypeWithNameGetResponse The instance to serialize from.
31
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
32
+ * @param writer Serialization writer to use to serialize this model
33
+ */
34
+ // @ts-ignore
35
+ export function serializeGetPolicyIdWithTypeWithNameGetResponse(writer, getPolicyIdWithTypeWithNameGetResponse = {}, isSerializingDerivedType = false) {
36
+ if (!getPolicyIdWithTypeWithNameGetResponse || isSerializingDerivedType) {
37
+ return;
38
+ }
39
+ serializeBaseCollectionPaginationCountResponse(writer, getPolicyIdWithTypeWithNameGetResponse, isSerializingDerivedType);
40
+ writer.writeCollectionOfObjectValues("value", getPolicyIdWithTypeWithNameGetResponse.value, serializePolicyIdentifierDetail);
41
+ }
42
+ /**
43
+ * Uri template for the request builder.
44
+ */
45
+ export const MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderUriTemplate = "{+baseurl}/admin/teams/policy/microsoft.graph.teamsAdministration.getPolicyId(type='{type}',name='{name}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
46
+ /**
47
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
48
+ */
49
+ const MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParametersMapper = {
50
+ "count": "%24count",
51
+ "expand": "%24expand",
52
+ "filter": "%24filter",
53
+ "orderby": "%24orderby",
54
+ "search": "%24search",
55
+ "select": "%24select",
56
+ "skip": "%24skip",
57
+ "top": "%24top",
58
+ };
59
+ /**
60
+ * Metadata for all the requests in the request builder.
61
+ */
62
+ export const MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderRequestsMetadata = {
63
+ get: {
64
+ uriTemplate: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderUriTemplate,
65
+ responseBodyContentType: "application/json",
66
+ errorMappings: {
67
+ XXX: createODataErrorFromDiscriminatorValue,
68
+ },
69
+ adapterMethodName: "send",
70
+ responseBodyFactory: createGetPolicyIdWithTypeWithNameGetResponseFromDiscriminatorValue,
71
+ queryParametersMapper: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParametersMapper,
72
+ },
73
+ };
74
+ /* tslint:enable */
75
+ /* eslint-enable */
76
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oDAAoD,EAAE,8CAA8C,EAA8C,MAAM,wCAAwC,CAAC;AAC1M,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAA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AAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,kEAAkE;QACxF,qBAAqB,EAAE,kGAAkG;KAC5H;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,41 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
13
+ /**
14
+ * Get the number of the resource
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Get the number of the resource
22
+ */
23
+ export interface CountRequestBuilderGetQueryParameters {
24
+ /**
25
+ * Filter items by property values
26
+ */
27
+ filter?: string;
28
+ /**
29
+ * Search items by search phrases
30
+ */
31
+ search?: string;
32
+ }
33
+ /**
34
+ * Uri template for the request builder.
35
+ */
36
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/admin/teams/policy/userAssignments/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,+EAA+E,CAAC;AAQ3H;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/teams/policy/userAssignments/$count{?%24filter,%24search}";
10
+ /**
11
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
+ */
13
+ const CountRequestBuilderGetQueryParametersMapper = {
14
+ "filter": "%24filter",
15
+ "search": "%24search",
16
+ };
17
+ /**
18
+ * Metadata for all the requests in the request builder.
19
+ */
20
+ export const CountRequestBuilderRequestsMetadata = {
21
+ get: {
22
+ uriTemplate: CountRequestBuilderUriTemplate,
23
+ responseBodyContentType: "text/plain;q=0.9",
24
+ errorMappings: {
25
+ XXX: createODataErrorFromDiscriminatorValue,
26
+ },
27
+ adapterMethodName: "sendPrimitive",
28
+ responseBodyFactory: "number",
29
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
30
+ },
31
+ };
32
+ /* tslint:enable */
33
+ /* eslint-enable */
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAmC7H;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,4EAA4E,CAAC;AAC3H;;GAEG;AACH,MAAM,2CAA2C,GAA2B;IACxE,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqB;IACjE,GAAG,EAAE;QACD,WAAW,EAAE,8BAA8B;QAC3C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,eAAe;QAClC,mBAAmB,EAAG,QAAQ;QAC9B,qBAAqB,EAAE,2CAA2C;KACrE;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,107 @@
1
+ import { type TeamsPolicyUserAssignment, type TeamsPolicyUserAssignmentCollectionResponse } from '@microsoft/msgraph-sdk/models/teamsAdministration/index.js';
2
+ import { type CountRequestBuilder } from './count/index.js';
3
+ import { type TeamsPolicyUserAssignmentItemRequestBuilder } from './item/index.js';
4
+ import { type MicrosoftGraphTeamsAdministrationAssignRequestBuilder } from './microsoftGraphTeamsAdministrationAssign/index.js';
5
+ import { type MicrosoftGraphTeamsAdministrationUnassignRequestBuilder } from './microsoftGraphTeamsAdministrationUnassign/index.js';
6
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
7
+ /**
8
+ * Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
9
+ */
10
+ export interface UserAssignmentsRequestBuilder extends BaseRequestBuilder<UserAssignmentsRequestBuilder> {
11
+ /**
12
+ * Provides operations to count the resources in the collection.
13
+ */
14
+ get count(): CountRequestBuilder;
15
+ /**
16
+ * Provides operations to call the assign method.
17
+ */
18
+ get microsoftGraphTeamsAdministrationAssign(): MicrosoftGraphTeamsAdministrationAssignRequestBuilder;
19
+ /**
20
+ * Provides operations to call the unassign method.
21
+ */
22
+ get microsoftGraphTeamsAdministrationUnassign(): MicrosoftGraphTeamsAdministrationUnassignRequestBuilder;
23
+ /**
24
+ * Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
25
+ * @param teamsPolicyUserAssignmentId The unique identifier of teamsPolicyUserAssignment
26
+ * @returns {TeamsPolicyUserAssignmentItemRequestBuilder}
27
+ */
28
+ byTeamsPolicyUserAssignmentId(teamsPolicyUserAssignmentId: string): TeamsPolicyUserAssignmentItemRequestBuilder;
29
+ /**
30
+ * The collection of user policy assignments.
31
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32
+ * @returns {Promise<TeamsPolicyUserAssignmentCollectionResponse>}
33
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
34
+ */
35
+ get(requestConfiguration?: RequestConfiguration<UserAssignmentsRequestBuilderGetQueryParameters> | undefined): Promise<TeamsPolicyUserAssignmentCollectionResponse | undefined>;
36
+ /**
37
+ * Create new navigation property to userAssignments for admin
38
+ * @param body The request body
39
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40
+ * @returns {Promise<TeamsPolicyUserAssignment>}
41
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
42
+ */
43
+ post(body: TeamsPolicyUserAssignment, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamsPolicyUserAssignment | undefined>;
44
+ /**
45
+ * The collection of user policy assignments.
46
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
47
+ * @returns {RequestInformation}
48
+ */
49
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<UserAssignmentsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
50
+ /**
51
+ * Create new navigation property to userAssignments for admin
52
+ * @param body The request body
53
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
54
+ * @returns {RequestInformation}
55
+ */
56
+ toPostRequestInformation(body: TeamsPolicyUserAssignment, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
57
+ }
58
+ /**
59
+ * The collection of user policy assignments.
60
+ */
61
+ export interface UserAssignmentsRequestBuilderGetQueryParameters {
62
+ /**
63
+ * Include count of items
64
+ */
65
+ count?: boolean;
66
+ /**
67
+ * Expand related entities
68
+ */
69
+ expand?: string[];
70
+ /**
71
+ * Filter items by property values
72
+ */
73
+ filter?: string;
74
+ /**
75
+ * Order items by property values
76
+ */
77
+ orderby?: string[];
78
+ /**
79
+ * Search items by search phrases
80
+ */
81
+ search?: string;
82
+ /**
83
+ * Select properties to be returned
84
+ */
85
+ select?: string[];
86
+ /**
87
+ * Skip the first n items
88
+ */
89
+ skip?: number;
90
+ /**
91
+ * Show only the first n items
92
+ */
93
+ top?: number;
94
+ }
95
+ /**
96
+ * Uri template for the request builder.
97
+ */
98
+ export declare const UserAssignmentsRequestBuilderUriTemplate = "{+baseurl}/admin/teams/policy/userAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
99
+ /**
100
+ * Metadata for all the navigation properties in the request builder.
101
+ */
102
+ export declare const UserAssignmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof UserAssignmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
103
+ /**
104
+ * Metadata for all the requests in the request builder.
105
+ */
106
+ export declare const UserAssignmentsRequestBuilderRequestsMetadata: RequestsMetadata;
107
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAsK,KAAK,yBAAyB,EAAE,KAAK,2CAA2C,EAAE,MAAM,4DAA4D,CAAC;AAElU,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,OAAO,EAA+D,KAAK,2CAA2C,EAAE,MAAM,iBAAiB,CAAC;AAEhJ,OAAO,EAAyE,KAAK,qDAAqD,EAAE,MAAM,oDAAoD,CAAC;AAEvM,OAAO,EAA2E,KAAK,uDAAuD,EAAE,MAAM,sDAAsD,CAAC;AAE7M,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,6BAA8B,SAAQ,kBAAkB,CAAC,6BAA6B,CAAC;IACpG;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,uCAAuC,IAAI,qDAAqD,CAAC;IACrG;;OAEG;IACH,IAAI,yCAAyC,IAAI,uDAAuD,CAAC;IACzG;;;;OAIG;IACF,6BAA6B,CAAC,2BAA2B,EAAE,MAAM,GAAI,2CAA2C,CAAC;IAClH;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,+CAA+C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,2CAA2C,GAAG,SAAS,CAAC,CAAC;IAClL;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,yBAAyB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CA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