codeapp-js 1.0.2 → 1.1.0

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 (128) hide show
  1. package/AI/skills/autoreview/SKILL.md +69 -0
  2. package/AI/skills/connections/SKILL.md +4 -4
  3. package/AI/skills/dataverse/SKILL.md +4 -2
  4. package/AI/skills/keyvault/SKILL.md +139 -0
  5. package/AI/skills/office365-groups/SKILL.md +46 -25
  6. package/AI/skills/office365-outlook/SKILL.md +56 -25
  7. package/AI/skills/office365-users/SKILL.md +41 -36
  8. package/AI/skills/sharepoint/SKILL.md +174 -31
  9. package/AI/skills/start/SKILL.md +1 -0
  10. package/codeApp/dist/connectors/autoreview.js +1654 -0
  11. package/codeApp/dist/connectors/office365groups.js +2995 -432
  12. package/{examples/outlook Demo/.power/schemas/office365/office365.Schema.json → codeApp/dist/connectors/office365outlook.js} +7439 -16
  13. package/codeApp/dist/connectors/office365users.js +2990 -349
  14. package/codeApp/dist/connectors/sharepoint.js +529 -308
  15. package/examples/combined demo/dist/connectors/office365outlook.js +28521 -0
  16. package/examples/combined demo/dist/connectors/office365users.js +3154 -0
  17. package/examples/combined demo/dist/index.js +2 -6
  18. package/examples/combined demo/power.config.json +1 -1
  19. package/examples/groups Demo/{.power/schemas/office365groups/office365groups.Schema.json → dist/connectors/office365groups.js } +3205 -2204
  20. package/examples/groups Demo/dist/index.js +1 -5
  21. package/examples/groups Demo/power.config.json +1 -1
  22. package/examples/myProfile/dist/connectors/office365users.js +3154 -0
  23. package/examples/myProfile/dist/index.js +1 -5
  24. package/examples/myProfile/power.config.json +1 -1
  25. package/examples/outlook Demo/dist/connectors/office365outlook.js +28521 -0
  26. package/examples/outlook Demo/dist/index.js +2 -5
  27. package/examples/outlook Demo/power.config.json +1 -1
  28. package/examples/sharePoint Demo/dist/connectors/sharepoint.js +687 -0
  29. package/examples/sharePoint Demo/dist/index.js +86 -127
  30. package/examples/sharePoint Demo/power.config.json +1 -1
  31. package/package.json +1 -1
  32. package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  33. package/codeApp/.power/schemas/jira/jira.Schema.json +0 -6903
  34. package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  35. package/codeApp/.power/schemas/office365groups/office365groups.Schema.json +0 -2204
  36. package/codeApp/.power/schemas/teams/teams.Schema.json +0 -11112
  37. package/codeApp/dist/connectors/outlook.js +0 -1393
  38. package/codeApp/src/generated/models/AzureKeyVaultModel.ts +0 -107
  39. package/codeApp/src/generated/models/JiraModel.ts +0 -501
  40. package/codeApp/src/generated/models/Office365GroupsModel.ts +0 -363
  41. package/codeApp/src/generated/models/Office365OutlookModel.ts +0 -2046
  42. package/codeApp/src/generated/models/Office365UsersModel.ts +0 -254
  43. package/codeApp/src/generated/services/AzureKeyVaultService.ts +0 -257
  44. package/codeApp/src/generated/services/JiraService.ts +0 -1124
  45. package/codeApp/src/generated/services/Office365GroupsService.ts +0 -326
  46. package/codeApp/src/generated/services/Office365OutlookService.ts +0 -2476
  47. package/codeApp/src/generated/services/Office365UsersService.ts +0 -358
  48. package/examples/apps/kanban/dist/dataverse.js +0 -94
  49. package/examples/apps/kanban/dist/environmentVar.js +0 -55
  50. package/examples/apps/kanban/dist/index.css +0 -605
  51. package/examples/apps/kanban/dist/index.html +0 -21
  52. package/examples/apps/kanban/dist/index.js +0 -860
  53. package/examples/apps/kanban/dist/office365groups.js +0 -97
  54. package/examples/apps/kanban/dist/office365users.js +0 -451
  55. package/examples/apps/kanban/dist/outlook.js +0 -162
  56. package/examples/apps/kanban/dist/power-apps-data.js +0 -2953
  57. package/examples/apps/kanban/dist/sharepoint.js +0 -435
  58. package/examples/apps/kanban/power.config.json +0 -35
  59. package/examples/apps/kanban/src/generated/index.ts +0 -14
  60. package/examples/apps/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
  61. package/examples/apps/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
  62. package/examples/apps/kanban/src/generated/models/Office365UsersModel.ts +0 -254
  63. package/examples/apps/kanban/src/generated/services/Office365GroupsService.ts +0 -326
  64. package/examples/apps/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
  65. package/examples/apps/kanban/src/generated/services/Office365UsersService.ts +0 -358
  66. package/examples/apps/planning Poker/additional files/AgilePoker_1_0_0_1.zip +0 -0
  67. package/examples/apps/planning Poker/additional files/PokerTables_1_0_0_1.zip +0 -0
  68. package/examples/apps/planning Poker/additional files/customizations (tables).xml +0 -6429
  69. package/examples/apps/planning Poker/additional files/dataverse-tables.json +0 -165
  70. package/examples/apps/planning Poker/additional files/readme.md +0 -122
  71. package/examples/apps/planning Poker/dist/dataverse.js +0 -78
  72. package/examples/apps/planning Poker/dist/index.html +0 -198
  73. package/examples/apps/planning Poker/dist/index.js +0 -955
  74. package/examples/apps/planning Poker/dist/power-apps-data.js +0 -2953
  75. package/examples/apps/planning Poker/dist/styles.css +0 -815
  76. package/examples/apps/planning Poker/power.config.json +0 -50
  77. package/examples/apps/solution explorer/dist/codeapp.js +0 -1098
  78. package/examples/apps/solution explorer/dist/icon-512.png +0 -0
  79. package/examples/apps/solution explorer/dist/index.html +0 -80
  80. package/examples/apps/solution explorer/dist/index.js +0 -735
  81. package/examples/apps/solution explorer/dist/power-apps-data.js +0 -3007
  82. package/examples/apps/solution explorer/dist/styles.css +0 -571
  83. package/examples/apps/solution explorer/power.config.json +0 -151
  84. package/examples/apps/todo/dist/dataverse.js +0 -64
  85. package/examples/apps/todo/dist/icon192.png +0 -0
  86. package/examples/apps/todo/dist/index.html +0 -75
  87. package/examples/apps/todo/dist/index.js +0 -9
  88. package/examples/apps/todo/dist/power-apps-data.js +0 -2953
  89. package/examples/apps/todo/dist/renderer.js +0 -375
  90. package/examples/apps/todo/dist/styles.css +0 -691
  91. package/examples/apps/todo/power.config.json +0 -35
  92. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  93. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +0 -6903
  94. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  95. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +0 -11112
  96. package/examples/combined demo/dist/office365users.js +0 -513
  97. package/examples/combined demo/dist/outlook.js +0 -1393
  98. package/examples/combined demo/src/generated/index.ts +0 -12
  99. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +0 -107
  100. package/examples/combined demo/src/generated/models/JiraModel.ts +0 -501
  101. package/examples/combined demo/src/generated/models/Office365GroupsModel.ts +0 -363
  102. package/examples/combined demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  103. package/examples/combined demo/src/generated/models/Office365UsersModel.ts +0 -254
  104. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +0 -257
  105. package/examples/combined demo/src/generated/services/JiraService.ts +0 -1124
  106. package/examples/combined demo/src/generated/services/Office365GroupsService.ts +0 -326
  107. package/examples/combined demo/src/generated/services/Office365OutlookService.ts +0 -2476
  108. package/examples/combined demo/src/generated/services/Office365UsersService.ts +0 -358
  109. package/examples/groups Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -613
  110. package/examples/groups Demo/dist/office365groups.js +0 -642
  111. package/examples/groups Demo/src/generated/index.ts +0 -10
  112. package/examples/groups Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  113. package/examples/groups Demo/src/generated/services/Office365GroupsService.ts +0 -326
  114. package/examples/myProfile/dist/office365users.js +0 -517
  115. package/examples/outlook Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6512
  116. package/examples/outlook Demo/dist/outlook.js +0 -1393
  117. package/examples/outlook Demo/src/generated/index.ts +0 -10
  118. package/examples/outlook Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  119. package/examples/outlook Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  120. package/examples/sharePoint Demo/dist/sharepoint.js +0 -466
  121. package/examples/sharePoint Demo/src/generated/index.ts +0 -14
  122. package/examples/sharePoint Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  123. package/examples/sharePoint Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  124. package/examples/sharePoint Demo/src/generated/models/Office365UsersModel.ts +0 -254
  125. package/examples/sharePoint Demo/src/generated/services/Office365GroupsService.ts +0 -326
  126. package/examples/sharePoint Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  127. package/examples/sharePoint Demo/src/generated/services/Office365UsersService.ts +0 -358
  128. package/readme.md +0 -590
@@ -1,218 +1,2652 @@
1
- // ────────────────────────────────────────────────────────────────────────────
2
- // ────────────────────────────── O365 Groups──────────────────────────────────
3
- // ────────────────────────────────────────────────────────────────────────────
1
+ /*
2
+ * This file is autogenerated by CAP. Do not edit this file directly.
3
+ * Source metadata comes from PAC-generated artifacts under src/generated and .power/schemas.
4
+ */
5
+
4
6
  import { getClient } from "../power-apps-data.js";
5
- import {_dbgWrap,unwrapResult } from "../codeapp.js";
6
- // ── Data source names (must match connectionReferences in power.config.json) ──
7
- const DATA_SOURCE_GROUPS_CANDIDATES = ["office365groups", "Office365Groups"];
8
- const GROUPS_APIS = {
9
- ListGroupMembers: {
10
- path: "/{connectionId}/v1.0/groups/{groupId}/members",
11
- method: "GET",
12
- parameters: [
13
- { name: "connectionId", in: "path", required: true, type: "string" },
14
- { name: "groupId", in: "path", required: true, type: "string" },
15
- { name: "$top", in: "query", required: false, type: "integer" },
16
- ],
17
- responseInfo: { 200: { type: "object" } },
18
- },
19
- OnGroupMembershipChange: {
20
- path: "/{connectionId}/trigger/v1.0/groups/delta",
21
- method: "GET",
22
- parameters: [
23
- { name: "connectionId", in: "path", required: true, type: "string" },
24
- { name: "groupId", in: "query", required: true, type: "string" },
25
- { name: "$select", in: "query", required: false, type: "string" },
26
- ],
27
- responseInfo: { 200: { type: "array" } },
28
- },
29
- AddMemberToGroup: {
30
- path: "/{connectionId}/v1.0/groups/{groupId}/members/$ref",
31
- method: "POST",
32
- parameters: [
33
- { name: "connectionId", in: "path", required: true, type: "string" },
34
- { name: "groupId", in: "path", required: true, type: "string" },
35
- { name: "userUpn", in: "query", required: true, type: "string" },
36
- ],
37
- responseInfo: { 204: { type: "void" } },
38
- },
39
- ListOwnedGroups: {
40
- path: "/{connectionId}/v1.0/me/memberOf/$/microsoft.graph.group",
41
- method: "GET",
42
- parameters: [
43
- { name: "connectionId", in: "path", required: true, type: "string" },
44
- ],
45
- responseInfo: { 200: { type: "object" } },
46
- },
47
- ListOwnedGroups_V2: {
48
- path: "/{connectionId}/v1.0/me/ownedObjects/$/microsoft.graph.group",
49
- method: "GET",
50
- parameters: [
51
- { name: "connectionId", in: "path", required: true, type: "string" },
52
- { name: "extractSensitivityLabel", in: "query", required: false, type: "boolean" },
53
- { name: "fetchSensitivityLabelMetadata", in: "query", required: false, type: "boolean" },
54
- ],
55
- responseInfo: { 200: { type: "object" } },
56
- },
57
- ListOwnedGroups_V3: {
58
- path: "/{connectionId}/v2/v1.0/me/memberOf/$/microsoft.graph.group",
59
- method: "GET",
60
- parameters: [
61
- { name: "connectionId", in: "path", required: true, type: "string" },
62
- { name: "extractSensitivityLabel", in: "query", required: false, type: "boolean" },
63
- { name: "fetchSensitivityLabelMetadata", in: "query", required: false, type: "boolean" },
64
- ],
65
- responseInfo: { 200: { type: "object" } },
66
- },
67
- ListGroups: {
68
- path: "/{connectionId}/v1.0/groups",
69
- method: "GET",
70
- parameters: [
71
- { name: "connectionId", in: "path", required: true, type: "string" },
72
- { name: "extractSensitivityLabel", in: "query", required: false, type: "boolean" },
73
- { name: "fetchSensitivityLabelMetadata", in: "query", required: false, type: "boolean" },
74
- { name: "$filter", in: "query", required: false, type: "string" },
75
- { name: "$top", in: "query", required: false, type: "integer" },
76
- { name: "$skiptoken", in: "query", required: false, type: "string" },
77
- ],
78
- responseInfo: { 200: { type: "object" } },
79
- },
80
- CreateCalendarEvent: {
81
- path: "/{connectionId}/v1.0/groups/{groupId}/events",
82
- method: "POST",
83
- parameters: [
84
- { name: "connectionId", in: "path", required: true, type: "string" },
85
- { name: "groupId", in: "path", required: true, type: "string" },
86
- { name: "body", in: "body", required: true, type: "object" },
87
- ],
88
- responseInfo: { 201: { type: "object" } },
89
- },
90
- CreateCalendarEventV2: {
91
- path: "/{connectionId}/v2/v1.0/groups/{groupId}/events",
92
- method: "POST",
93
- parameters: [
94
- { name: "connectionId", in: "path", required: true, type: "string" },
95
- { name: "groupId", in: "path", required: true, type: "string" },
96
- { name: "body", in: "body", required: true, type: "object" },
97
- ],
98
- responseInfo: { 201: { type: "object" } },
99
- },
100
- CalendarDeleteItem_V2: {
101
- path: "/{connectionId}/v1.0/groups/{groupId}/events/{event}",
102
- method: "DELETE",
103
- parameters: [
104
- { name: "connectionId", in: "path", required: true, type: "string" },
105
- { name: "groupId", in: "path", required: true, type: "string" },
106
- { name: "event", in: "path", required: true, type: "string" },
107
- ],
108
- responseInfo: { 204: { type: "void" }, default: { type: "void" } },
109
- },
110
- UpdateCalendarEvent: {
111
- path: "/{connectionId}/v1.0/groups/{groupId}/events/{event}",
112
- method: "PATCH",
113
- parameters: [
114
- { name: "connectionId", in: "path", required: true, type: "string" },
115
- { name: "groupId", in: "path", required: true, type: "string" },
116
- { name: "event", in: "path", required: true, type: "string" },
117
- { name: "body", in: "body", required: true, type: "object" },
118
- ],
119
- responseInfo: { 200: { type: "object" } },
120
- },
121
- RemoveMemberFromGroup: {
122
- path: "/{connectionId}/v1.0/groups/{groupId}/members/memberId/$ref",
123
- method: "DELETE",
124
- parameters: [
125
- { name: "connectionId", in: "path", required: true, type: "string" },
126
- { name: "groupId", in: "path", required: true, type: "string" },
127
- { name: "userUpn", in: "query", required: true, type: "string" },
128
- ],
129
- responseInfo: { 204: { type: "void" } },
130
- },
131
- OnNewEvent: {
132
- path: "/{connectionId}/trigger/v1.0/groups/{groupId}/events",
133
- method: "GET",
134
- parameters: [
135
- { name: "connectionId", in: "path", required: true, type: "string" },
136
- { name: "groupId", in: "path", required: true, type: "string" },
137
- ],
138
- responseInfo: { 200: { type: "array" } },
139
- },
140
- HttpRequestV2: {
141
- path: "/{connectionId}/v2/httprequest",
142
- method: "POST",
143
- parameters: [
144
- { name: "connectionId", in: "path", required: true, type: "string" },
145
- { name: "Uri", in: "header", required: true, type: "string" },
146
- { name: "Method", in: "header", required: true, type: "string" },
147
- { name: "Body", in: "body", required: false, type: "object" },
148
- { name: "ContentType", in: "header", required: false, type: "string" },
149
- { name: "CustomHeader1", in: "header", required: false, type: "string" },
150
- { name: "CustomHeader2", in: "header", required: false, type: "string" },
151
- { name: "CustomHeader3", in: "header", required: false, type: "string" },
152
- { name: "CustomHeader4", in: "header", required: false, type: "string" },
153
- { name: "CustomHeader5", in: "header", required: false, type: "string" },
154
- ],
155
- responseInfo: { 200: { type: "object" }, default: { type: "void" } },
156
- },
157
- HttpRequest: {
158
- path: "/{connectionId}/httprequest",
159
- method: "POST",
160
- parameters: [
161
- { name: "connectionId", in: "path", required: true, type: "string" },
162
- { name: "Uri", in: "header", required: true, type: "string" },
163
- { name: "Method", in: "header", required: true, type: "string" },
164
- { name: "Body", in: "body", required: false, type: "object" },
165
- { name: "ContentType", in: "header", required: false, type: "string" },
166
- { name: "CustomHeader1", in: "header", required: false, type: "string" },
167
- { name: "CustomHeader2", in: "header", required: false, type: "string" },
168
- { name: "CustomHeader3", in: "header", required: false, type: "string" },
169
- { name: "CustomHeader4", in: "header", required: false, type: "string" },
170
- { name: "CustomHeader5", in: "header", required: false, type: "string" },
171
- ],
172
- responseInfo: { 200: { type: "object" }, default: { type: "void" } },
173
- },
174
- ListDeletedGroups: {
175
- path: "/{connectionId}/v1.0/directory/deletedItems/microsoft.graph.group",
176
- method: "GET",
177
- parameters: [
178
- { name: "connectionId", in: "path", required: true, type: "string" },
179
- ],
180
- responseInfo: { 200: { type: "object" } },
181
- },
182
- RestoreDeletedGroup: {
183
- path: "/{connectionId}/v1.0/directory/deletedItems/{groupId}/restore",
184
- method: "POST",
185
- parameters: [
186
- { name: "connectionId", in: "path", required: true, type: "string" },
187
- { name: "groupId", in: "path", required: true, type: "string" },
7
+ import { _dbgWrap, unwrapResult } from "../codeapp.js";
8
+
9
+ const schema = {
10
+ "name": "shared_office365groups",
11
+ "id": "/providers/Microsoft.PowerApps/apis/shared_office365groups",
12
+ "type": "Microsoft.PowerApps/apis",
13
+ "properties": {
14
+ "displayName": "Office 365 Groups",
15
+ "iconUri": "https://conn-afd-prod-endpoint-bmc9bqahasf3grgk.b01.azurefd.net/releases/v1.0.1777/1.0.1777.4410/office365groups/icon.png",
16
+ "iconBrandColor": "#EB3C00",
17
+ "apiEnvironment": "Shared",
18
+ "isCustomApi": false,
19
+ "blobUrisAreProxied": false,
20
+ "connectionParameters": {
21
+ "token": {
22
+ "type": "oauthSetting",
23
+ "oAuthSettings": {
24
+ "identityProvider": "aadcertificate",
25
+ "clientId": "7ab7862c-4c57-491e-8a45-d52a7e023983",
26
+ "scopes": [
27
+ "Group.ReadWrite.All offline_access"
28
+ ],
29
+ "redirectMode": "GlobalPerConnector",
30
+ "redirectUrl": "https://global.consent.azure-apim.net/redirect/office365groups",
31
+ "properties": {
32
+ "IsFirstParty": "True",
33
+ "AzureActiveDirectoryResourceId": "https://graph.microsoft.com/",
34
+ "IsOnbehalfofLoginSupported": true
35
+ },
36
+ "customParameters": {
37
+ "ResourceUri": {
38
+ "value": "https://graph.microsoft.com/"
39
+ },
40
+ "LoginUri": {
41
+ "value": "https://login.windows.net"
42
+ },
43
+ "LoginUriAAD": {
44
+ "value": "https://login.windows.net"
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "token:TenantId": {
50
+ "type": "string",
51
+ "metadata": {
52
+ "sourceType": "AzureActiveDirectoryTenant"
53
+ },
54
+ "uiDefinition": {
55
+ "displayName": "Tenant",
56
+ "description": "The tenant ID of for the Microsoft Entra ID application",
57
+ "constraints": {
58
+ "required": "false",
59
+ "hidden": "true"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "swagger": {
65
+ "swagger": "2.0",
66
+ "info": {
67
+ "version": "1.0.0",
68
+ "title": "Office 365 Groups",
69
+ "description": "Office 365 Groups lets you manage group membership and calendar events in your organization using your Office 365 account. You can perform various actions such as get group roster, add or remove members and create group events.",
70
+ "x-ms-api-annotation": {
71
+ "status": "Production"
72
+ },
73
+ "contact": {
74
+ "name": "Office 365 Groups",
75
+ "url": "https://learn.microsoft.com/en-us/connectors/office365groups/",
76
+ "email": "idcknowledgeeco@microsoft.com"
77
+ }
78
+ },
79
+ "host": "unitedstates-002.azure-apim.net",
80
+ "basePath": "/apim/office365groups",
81
+ "schemes": [
82
+ "https"
83
+ ],
84
+ "consumes": [],
85
+ "produces": [
86
+ "application/json"
87
+ ],
88
+ "paths": {
89
+ "/{connectionId}/v1.0/groups/{groupId}/members": {
90
+ "get": {
91
+ "summary": "List group members",
92
+ "description": "This operation returns a list of all members in the given group and their details such as name, title, email, etc. You can query up to 1000 items using Top parameter. In case you need to retrieve more than 1000 values please turn on Settings->Pagination feature and provide Threshold limit.",
93
+ "operationId": "ListGroupMembers",
94
+ "parameters": [
95
+ {
96
+ "name": "connectionId",
97
+ "in": "path",
98
+ "required": true,
99
+ "type": "string",
100
+ "x-ms-visibility": "internal"
101
+ },
102
+ {
103
+ "$ref": "#/parameters/groupId__in_path"
104
+ },
105
+ {
106
+ "name": "$top",
107
+ "in": "query",
108
+ "x-ms-summary": "Top",
109
+ "description": "Number of group members to retrieve (from 1 to 999, default is 100).",
110
+ "required": false,
111
+ "x-ms-visibility": "advanced",
112
+ "type": "integer",
113
+ "format": "int32"
114
+ }
115
+ ],
116
+ "responses": {
117
+ "200": {
118
+ "description": "Operation Successful",
119
+ "schema": {
120
+ "$ref": "#/definitions/ListGroupMembers_Response"
121
+ }
122
+ }
123
+ },
124
+ "deprecated": false,
125
+ "x-ms-visibility": "advanced",
126
+ "x-ms-test-value": "ee115782-220d-4acc-92c4-e261619d63cd",
127
+ "x-ms-pageable": {
128
+ "nextLinkName": "@odata.nextLink"
129
+ },
130
+ "externalDocs": {
131
+ "url": "https://docs.microsoft.com/connectors/office365groups/#list-group-members"
132
+ }
133
+ }
134
+ },
135
+ "/{connectionId}/trigger/v1.0/groups/delta": {
136
+ "get": {
137
+ "summary": "When a group member is added or removed",
138
+ "description": "This operation triggers when a member is added to or removed from the given group.",
139
+ "operationId": "OnGroupMembershipChange",
140
+ "parameters": [
141
+ {
142
+ "name": "connectionId",
143
+ "in": "path",
144
+ "required": true,
145
+ "type": "string",
146
+ "x-ms-visibility": "internal"
147
+ },
148
+ {
149
+ "$ref": "#/parameters/groupId__in_query"
150
+ },
151
+ {
152
+ "name": "$select",
153
+ "in": "query",
154
+ "x-ms-summary": "Select",
155
+ "x-ms-test-value": "members",
156
+ "x-ms-visibility": "internal",
157
+ "type": "string",
158
+ "default": "members"
159
+ }
160
+ ],
161
+ "responses": {
162
+ "200": {
163
+ "description": "Operation Successful",
164
+ "schema": {
165
+ "$ref": "#/definitions/OnGroupMemberAddedOrRemoved_Response"
166
+ }
167
+ }
168
+ },
169
+ "deprecated": false,
170
+ "x-ms-visibility": "advanced",
171
+ "x-ms-test-value": "ee115782-220d-4acc-92c4-e261619d63cd",
172
+ "x-ms-pageable": {
173
+ "nextLinkName": "@odata.nextLink"
174
+ },
175
+ "x-ms-trigger": "batch",
176
+ "x-ms-trigger-hint": "To see it work now, add a member to the group.",
177
+ "x-ms-dev-triggerType": "DeltaLink",
178
+ "x-ms-dev-triggerValueCollection": "value[0].members@delta",
179
+ "x-ms-dev-triggerValuePath": "@odata.deltaLink",
180
+ "x-ms-dev-queryfilterParamName": "$deltatoken",
181
+ "externalDocs": {
182
+ "url": "https://docs.microsoft.com/connectors/office365groups/#when-a-group-member-is-added-or-removed"
183
+ }
184
+ }
185
+ },
186
+ "/{connectionId}/v1.0/groups/{groupId}/members/$ref": {
187
+ "post": {
188
+ "summary": "Add member to group",
189
+ "description": "This operation is used to add a member to an O365 group, using a UPN.",
190
+ "operationId": "AddMemberToGroup",
191
+ "parameters": [
192
+ {
193
+ "name": "connectionId",
194
+ "in": "path",
195
+ "required": true,
196
+ "type": "string",
197
+ "x-ms-visibility": "internal"
198
+ },
199
+ {
200
+ "$ref": "#/parameters/groupId__in_path"
201
+ },
202
+ {
203
+ "name": "userUpn",
204
+ "in": "query",
205
+ "description": "The user principal name (UPN) of the user.",
206
+ "required": true,
207
+ "x-ms-summary": "User Principal Name",
208
+ "type": "string"
209
+ }
210
+ ],
211
+ "responses": {
212
+ "204": {
213
+ "description": "Operation Successful"
214
+ }
215
+ },
216
+ "deprecated": false,
217
+ "x-ms-no-generic-test": true,
218
+ "x-ms-visibility": "important",
219
+ "externalDocs": {
220
+ "url": "https://docs.microsoft.com/connectors/office365groups/#add-member-to-group"
221
+ }
222
+ }
223
+ },
224
+ "/{connectionId}/v1.0/me/memberOf/$/microsoft.graph.group": {
225
+ "get": {
226
+ "summary": "List my owned groups",
227
+ "description": "This operation returns a list of all groups that you own.",
228
+ "operationId": "ListOwnedGroups",
229
+ "parameters": [
230
+ {
231
+ "name": "connectionId",
232
+ "in": "path",
233
+ "required": true,
234
+ "type": "string",
235
+ "x-ms-visibility": "internal"
236
+ }
237
+ ],
238
+ "responses": {
239
+ "200": {
240
+ "description": "Operation Successful",
241
+ "schema": {
242
+ "$ref": "#/definitions/ListOwnedGroups_Response"
243
+ }
244
+ }
245
+ },
246
+ "deprecated": false,
247
+ "x-ms-visibility": "advanced",
248
+ "externalDocs": {
249
+ "url": "https://docs.microsoft.com/connectors/office365groups/#list-my-owned-groups"
250
+ }
251
+ }
252
+ },
253
+ "/{connectionId}/v1.0/me/ownedObjects/$/microsoft.graph.group": {
254
+ "get": {
255
+ "summary": "List my owned groups (V2)",
256
+ "description": "This operation returns a list of all groups that you own.",
257
+ "operationId": "ListOwnedGroups_V2",
258
+ "parameters": [
259
+ {
260
+ "name": "connectionId",
261
+ "in": "path",
262
+ "required": true,
263
+ "type": "string",
264
+ "x-ms-visibility": "internal"
265
+ },
266
+ {
267
+ "$ref": "#/parameters/extractSensitivityLabel"
268
+ },
269
+ {
270
+ "$ref": "#/parameters/fetchSensitivityLabelMetadata"
271
+ }
272
+ ],
273
+ "responses": {
274
+ "200": {
275
+ "description": "Operation Successful",
276
+ "schema": {
277
+ "$ref": "#/definitions/ListOwnedGroups_V2_Response"
278
+ }
279
+ }
280
+ },
281
+ "deprecated": false,
282
+ "x-ms-visibility": "advanced",
283
+ "externalDocs": {
284
+ "url": "https://docs.microsoft.com/connectors/office365groups/#list-my-owned-groups-(v2)"
285
+ }
286
+ }
287
+ },
288
+ "/{connectionId}/v2/v1.0/me/memberOf/$/microsoft.graph.group": {
289
+ "get": {
290
+ "summary": "List groups that I own and belong to",
291
+ "description": "This operation returns a list of all groups that you own and belong to.",
292
+ "operationId": "ListOwnedGroups_V3",
293
+ "parameters": [
294
+ {
295
+ "name": "connectionId",
296
+ "in": "path",
297
+ "required": true,
298
+ "type": "string",
299
+ "x-ms-visibility": "internal"
300
+ },
301
+ {
302
+ "$ref": "#/parameters/extractSensitivityLabel"
303
+ },
304
+ {
305
+ "$ref": "#/parameters/fetchSensitivityLabelMetadata"
306
+ }
307
+ ],
308
+ "responses": {
309
+ "200": {
310
+ "description": "Operation Successful",
311
+ "schema": {
312
+ "$ref": "#/definitions/ListOwnedGroups_Response"
313
+ }
314
+ }
315
+ },
316
+ "deprecated": false,
317
+ "x-ms-visibility": "advanced",
318
+ "externalDocs": {
319
+ "url": "https://docs.microsoft.com/connectors/office365groups/#list-groups-that-i-own-and-belong-to"
320
+ }
321
+ }
322
+ },
323
+ "/{connectionId}/v1.0/groups": {
324
+ "get": {
325
+ "summary": "List groups",
326
+ "description": "This operation returns a list of all groups in the organization.",
327
+ "operationId": "ListGroups",
328
+ "parameters": [
329
+ {
330
+ "name": "connectionId",
331
+ "in": "path",
332
+ "required": true,
333
+ "type": "string",
334
+ "x-ms-visibility": "internal"
335
+ },
336
+ {
337
+ "$ref": "#/parameters/extractSensitivityLabel"
338
+ },
339
+ {
340
+ "$ref": "#/parameters/fetchSensitivityLabelMetadata"
341
+ },
342
+ {
343
+ "name": "$filter",
344
+ "in": "query",
345
+ "description": "Enter an OData style filter expression to limit which rows are listed.",
346
+ "required": false,
347
+ "x-ms-summary": "Filter rows",
348
+ "x-ms-visibility": "advanced",
349
+ "type": "string"
350
+ },
351
+ {
352
+ "name": "$top",
353
+ "in": "query",
354
+ "description": "Sets the page size of results.",
355
+ "required": false,
356
+ "x-ms-summary": "Page size",
357
+ "x-ms-visibility": "advanced",
358
+ "type": "integer"
359
+ },
360
+ {
361
+ "name": "$skiptoken",
362
+ "in": "query",
363
+ "required": false,
364
+ "type": "string",
365
+ "x-ms-summary": "Skip token",
366
+ "x-ms-visibility": "advanced",
367
+ "description": "Token that references the next page of results and is returned in the @odata.nextLink property in the response."
368
+ }
369
+ ],
370
+ "responses": {
371
+ "200": {
372
+ "description": "Operation Successful",
373
+ "schema": {
374
+ "$ref": "#/definitions/ListGroups_Response"
375
+ }
376
+ }
377
+ },
378
+ "deprecated": false,
379
+ "x-ms-visibility": "advanced",
380
+ "x-ms-pageable": {
381
+ "nextLinkName": "@odata.nextLink"
382
+ },
383
+ "externalDocs": {
384
+ "url": "https://docs.microsoft.com/connectors/office365groups/#list-groups"
385
+ }
386
+ }
387
+ },
388
+ "/{connectionId}/v1.0/groups/{groupId}/events": {
389
+ "post": {
390
+ "summary": "Create a group event",
391
+ "description": "This operation is used to create a new event in a group calendar.",
392
+ "operationId": "CreateCalendarEvent",
393
+ "parameters": [
394
+ {
395
+ "name": "connectionId",
396
+ "in": "path",
397
+ "required": true,
398
+ "type": "string",
399
+ "x-ms-visibility": "internal"
400
+ },
401
+ {
402
+ "$ref": "#/parameters/groupId__in_path"
403
+ },
404
+ {
405
+ "name": "body",
406
+ "in": "body",
407
+ "required": true,
408
+ "schema": {
409
+ "$ref": "#/definitions/UpdateCalendarEvent_Request"
410
+ }
411
+ }
412
+ ],
413
+ "responses": {
414
+ "201": {
415
+ "description": "Operation Successful",
416
+ "schema": {
417
+ "$ref": "#/definitions/CreateCalendarEvent_Response"
418
+ }
419
+ }
420
+ },
421
+ "deprecated": true,
422
+ "x-ms-no-generic-test": true,
423
+ "x-ms-api-annotation": {
424
+ "status": "Production",
425
+ "family": "CreateCalendarEvent",
426
+ "revision": 1
427
+ },
428
+ "externalDocs": {
429
+ "url": "https://docs.microsoft.com/connectors/office365groups/#create-a-group-event-%5bdeprecated%5d"
430
+ }
431
+ }
432
+ },
433
+ "/{connectionId}/v2/v1.0/groups/{groupId}/events": {
434
+ "post": {
435
+ "summary": "Create a group event (V2)",
436
+ "description": "This operation is used to create a new event in a group calendar.",
437
+ "operationId": "CreateCalendarEventV2",
438
+ "parameters": [
439
+ {
440
+ "name": "connectionId",
441
+ "in": "path",
442
+ "required": true,
443
+ "type": "string",
444
+ "x-ms-visibility": "internal"
445
+ },
446
+ {
447
+ "$ref": "#/parameters/groupId__in_path"
448
+ },
449
+ {
450
+ "name": "body",
451
+ "in": "body",
452
+ "required": true,
453
+ "schema": {
454
+ "$ref": "#/definitions/UpdateCalendarEvent_HTMLRequest"
455
+ }
456
+ }
457
+ ],
458
+ "responses": {
459
+ "201": {
460
+ "description": "Operation Successful",
461
+ "schema": {
462
+ "$ref": "#/definitions/CreateCalendarEvent_Response"
463
+ }
464
+ }
465
+ },
466
+ "deprecated": false,
467
+ "x-ms-no-generic-test": true,
468
+ "x-ms-api-annotation": {
469
+ "status": "Production",
470
+ "family": "CreateCalendarEvent",
471
+ "revision": 2
472
+ },
473
+ "externalDocs": {
474
+ "url": "https://docs.microsoft.com/connectors/office365groups/#create-a-group-event-(v2)"
475
+ }
476
+ }
477
+ },
478
+ "/{connectionId}/v1.0/groups/{groupId}/events/{event}": {
479
+ "delete": {
480
+ "summary": "Delete event (V2)",
481
+ "description": "This operation deletes an event in a calendar.",
482
+ "operationId": "CalendarDeleteItem_V2",
483
+ "parameters": [
484
+ {
485
+ "name": "connectionId",
486
+ "in": "path",
487
+ "required": true,
488
+ "type": "string",
489
+ "x-ms-visibility": "internal"
490
+ },
491
+ {
492
+ "$ref": "#/parameters/groupId__in_path"
493
+ },
494
+ {
495
+ "name": "event",
496
+ "in": "path",
497
+ "description": "Select an event",
498
+ "required": true,
499
+ "x-ms-summary": "Id",
500
+ "x-ms-url-encoding": "double",
501
+ "type": "string"
502
+ }
503
+ ],
504
+ "responses": {
505
+ "204": {
506
+ "description": "OK"
507
+ },
508
+ "default": {
509
+ "description": "Operation Failed."
510
+ }
511
+ },
512
+ "deprecated": false,
513
+ "x-ms-no-generic-test": true,
514
+ "x-ms-visibility": "important",
515
+ "externalDocs": {
516
+ "url": "https://docs.microsoft.com/connectors/office365groups/#delete-event-(v2)"
517
+ }
518
+ },
519
+ "patch": {
520
+ "summary": "Update a group event",
521
+ "description": "This operation is used to update a new event in a group calendar.",
522
+ "operationId": "UpdateCalendarEvent",
523
+ "parameters": [
524
+ {
525
+ "name": "connectionId",
526
+ "in": "path",
527
+ "required": true,
528
+ "type": "string",
529
+ "x-ms-visibility": "internal"
530
+ },
531
+ {
532
+ "$ref": "#/parameters/groupId__in_path"
533
+ },
534
+ {
535
+ "name": "event",
536
+ "in": "path",
537
+ "description": "Select an event",
538
+ "required": true,
539
+ "x-ms-summary": "Id",
540
+ "x-ms-url-encoding": "double",
541
+ "type": "string"
542
+ },
543
+ {
544
+ "name": "body",
545
+ "in": "body",
546
+ "required": true,
547
+ "schema": {
548
+ "$ref": "#/definitions/UpdateCalendarEvent_HTMLRequest"
549
+ }
550
+ }
551
+ ],
552
+ "responses": {
553
+ "200": {
554
+ "description": "Operation Successful",
555
+ "schema": {
556
+ "$ref": "#/definitions/CreateCalendarEvent_Response"
557
+ }
558
+ }
559
+ },
560
+ "deprecated": false,
561
+ "x-ms-no-generic-test": true,
562
+ "x-ms-visibility": "important",
563
+ "externalDocs": {
564
+ "url": "https://docs.microsoft.com/connectors/office365groups/#update-a-group-event"
565
+ }
566
+ }
567
+ },
568
+ "/{connectionId}/v1.0/groups/{groupId}/members/memberId/$ref": {
569
+ "delete": {
570
+ "summary": "Remove member from group",
571
+ "description": "This operation is used to remove a member from an O365 group, using a UPN.",
572
+ "operationId": "RemoveMemberFromGroup",
573
+ "parameters": [
574
+ {
575
+ "name": "connectionId",
576
+ "in": "path",
577
+ "required": true,
578
+ "type": "string",
579
+ "x-ms-visibility": "internal"
580
+ },
581
+ {
582
+ "$ref": "#/parameters/groupId__in_path"
583
+ },
584
+ {
585
+ "name": "userUpn",
586
+ "in": "query",
587
+ "description": "The user principal name (UPN) of the user",
588
+ "required": true,
589
+ "x-ms-summary": "User Principal Name",
590
+ "type": "string"
591
+ }
592
+ ],
593
+ "responses": {
594
+ "204": {
595
+ "description": "Operation Successful"
596
+ }
597
+ },
598
+ "deprecated": false,
599
+ "x-ms-no-generic-test": true,
600
+ "x-ms-visibility": "important",
601
+ "externalDocs": {
602
+ "url": "https://docs.microsoft.com/connectors/office365groups/#remove-member-from-group"
603
+ }
604
+ }
605
+ },
606
+ "/{connectionId}/trigger/v1.0/groups/{groupId}/events": {
607
+ "get": {
608
+ "summary": "When there is a new event",
609
+ "description": "This operation triggers when a new event is added to a group calendar.",
610
+ "operationId": "OnNewEvent",
611
+ "parameters": [
612
+ {
613
+ "name": "connectionId",
614
+ "in": "path",
615
+ "required": true,
616
+ "type": "string",
617
+ "x-ms-visibility": "internal"
618
+ },
619
+ {
620
+ "$ref": "#/parameters/groupId__in_path"
621
+ }
622
+ ],
623
+ "responses": {
624
+ "200": {
625
+ "description": "Operation Successful",
626
+ "schema": {
627
+ "$ref": "#/definitions/OnNewEvent_Response"
628
+ }
629
+ }
630
+ },
631
+ "deprecated": false,
632
+ "x-ms-visibility": "important",
633
+ "x-ms-trigger": "batch",
634
+ "x-ms-trigger-hint": "To see it work now, create an event in Office 365 Groups.",
635
+ "x-ms-dev-triggerType": "QueryFilter",
636
+ "x-ms-dev-triggerDateFormat": "iso",
637
+ "x-ms-dev-triggerValueCollection": "value",
638
+ "x-ms-dev-triggerValuePath": "createdDateTime",
639
+ "x-ms-dev-queryfilterParamName": "$filter",
640
+ "externalDocs": {
641
+ "url": "https://docs.microsoft.com/connectors/office365groups/#when-there-is-a-new-event"
642
+ }
643
+ }
644
+ },
645
+ "/{connectionId}/v2/httprequest": {
646
+ "post": {
647
+ "summary": "Send an HTTP request V2",
648
+ "description": "Construct a Microsoft Graph REST API request to invoke. There is one segment that is supported: /groups. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api.",
649
+ "operationId": "HttpRequestV2",
650
+ "consumes": [],
651
+ "produces": [],
652
+ "parameters": [
653
+ {
654
+ "name": "connectionId",
655
+ "in": "path",
656
+ "required": true,
657
+ "type": "string",
658
+ "x-ms-visibility": "internal"
659
+ },
660
+ {
661
+ "name": "Uri",
662
+ "in": "header",
663
+ "description": "The full or relative URI. Example: https://graph.microsoft.com/{version}/{resource}.",
664
+ "required": true,
665
+ "x-ms-summary": "URI",
666
+ "type": "string"
667
+ },
668
+ {
669
+ "name": "Method",
670
+ "in": "header",
671
+ "description": "The HTTP method (default is GET).",
672
+ "default": "GET",
673
+ "enum": [
674
+ "GET",
675
+ "POST",
676
+ "PUT",
677
+ "PATCH",
678
+ "DELETE"
679
+ ],
680
+ "required": true,
681
+ "x-ms-summary": "Method",
682
+ "type": "string"
683
+ },
684
+ {
685
+ "name": "Body",
686
+ "in": "body",
687
+ "description": "The request body content.",
688
+ "required": false,
689
+ "schema": {
690
+ "format": "binary",
691
+ "type": "string"
692
+ },
693
+ "x-ms-summary": "Body"
694
+ },
695
+ {
696
+ "name": "ContentType",
697
+ "in": "header",
698
+ "description": "The content-type header for the body (default is application/json).",
699
+ "required": false,
700
+ "x-ms-summary": "Content-Type",
701
+ "type": "string",
702
+ "default": "application/json"
703
+ },
704
+ {
705
+ "name": "CustomHeader1",
706
+ "in": "header",
707
+ "description": "Custom header 1. Specify in format: header-name: header-value",
708
+ "required": false,
709
+ "x-ms-summary": "CustomHeader1",
710
+ "type": "string",
711
+ "x-ms-visibility": "advanced"
712
+ },
713
+ {
714
+ "name": "CustomHeader2",
715
+ "in": "header",
716
+ "description": "Custom header 2. Specify in format: header-name: header-value",
717
+ "required": false,
718
+ "x-ms-summary": "CustomHeader2",
719
+ "type": "string",
720
+ "x-ms-visibility": "advanced"
721
+ },
722
+ {
723
+ "name": "CustomHeader3",
724
+ "in": "header",
725
+ "description": "Custom header 3. Specify in format: header-name: header-value",
726
+ "required": false,
727
+ "x-ms-summary": "CustomHeader3",
728
+ "type": "string",
729
+ "x-ms-visibility": "advanced"
730
+ },
731
+ {
732
+ "name": "CustomHeader4",
733
+ "in": "header",
734
+ "description": "Custom header 4. Specify in format: header-name: header-value",
735
+ "required": false,
736
+ "x-ms-summary": "CustomHeader4",
737
+ "type": "string",
738
+ "x-ms-visibility": "advanced"
739
+ },
740
+ {
741
+ "name": "CustomHeader5",
742
+ "in": "header",
743
+ "description": "Custom header 5. Specify in format: header-name: header-value",
744
+ "required": false,
745
+ "x-ms-summary": "CustomHeader5",
746
+ "type": "string",
747
+ "x-ms-visibility": "advanced"
748
+ }
749
+ ],
750
+ "responses": {
751
+ "200": {
752
+ "description": "OK",
753
+ "schema": {
754
+ "$ref": "#/definitions/ObjectWithoutType"
755
+ }
756
+ },
757
+ "default": {
758
+ "description": "Operation Failed."
759
+ }
760
+ },
761
+ "deprecated": false,
762
+ "x-ms-visibility": "important",
763
+ "x-ms-api-annotation": {
764
+ "status": "Production",
765
+ "family": "HttpRequest",
766
+ "revision": 2
767
+ },
768
+ "externalDocs": {
769
+ "url": "https://docs.microsoft.com/connectors/office365groups/#send-an-http-request-v2"
770
+ }
771
+ }
772
+ },
773
+ "/{connectionId}/httprequest": {
774
+ "post": {
775
+ "summary": "Send an HTTP request",
776
+ "description": "Construct a Microsoft Graph REST API request to invoke. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api",
777
+ "operationId": "HttpRequest",
778
+ "consumes": [],
779
+ "produces": [],
780
+ "parameters": [
781
+ {
782
+ "name": "connectionId",
783
+ "in": "path",
784
+ "required": true,
785
+ "type": "string",
786
+ "x-ms-visibility": "internal"
787
+ },
788
+ {
789
+ "name": "Uri",
790
+ "in": "header",
791
+ "description": "The full or relative URI. Example: https://graph.microsoft.com/{version}/{resource}.",
792
+ "required": true,
793
+ "x-ms-summary": "URI",
794
+ "type": "string"
795
+ },
796
+ {
797
+ "name": "Method",
798
+ "in": "header",
799
+ "description": "The HTTP method (default is GET).",
800
+ "default": "GET",
801
+ "enum": [
802
+ "GET",
803
+ "POST",
804
+ "PUT",
805
+ "PATCH",
806
+ "DELETE"
807
+ ],
808
+ "required": true,
809
+ "x-ms-summary": "Method",
810
+ "type": "string"
811
+ },
812
+ {
813
+ "name": "Body",
814
+ "in": "body",
815
+ "description": "The request body content.",
816
+ "required": false,
817
+ "schema": {
818
+ "format": "binary",
819
+ "type": "string"
820
+ },
821
+ "x-ms-summary": "Body"
822
+ },
823
+ {
824
+ "name": "ContentType",
825
+ "in": "header",
826
+ "description": "The content-type header for the body (default is application/json).",
827
+ "required": false,
828
+ "x-ms-summary": "Content-Type",
829
+ "type": "string",
830
+ "default": "application/json"
831
+ },
832
+ {
833
+ "name": "CustomHeader1",
834
+ "in": "header",
835
+ "description": "Custom header 1. Specify in format: header-name: header-value",
836
+ "required": false,
837
+ "x-ms-summary": "CustomHeader1",
838
+ "type": "string",
839
+ "x-ms-visibility": "advanced"
840
+ },
841
+ {
842
+ "name": "CustomHeader2",
843
+ "in": "header",
844
+ "description": "Custom header 2. Specify in format: header-name: header-value",
845
+ "required": false,
846
+ "x-ms-summary": "CustomHeader2",
847
+ "type": "string",
848
+ "x-ms-visibility": "advanced"
849
+ },
850
+ {
851
+ "name": "CustomHeader3",
852
+ "in": "header",
853
+ "description": "Custom header 3. Specify in format: header-name: header-value",
854
+ "required": false,
855
+ "x-ms-summary": "CustomHeader3",
856
+ "type": "string",
857
+ "x-ms-visibility": "advanced"
858
+ },
859
+ {
860
+ "name": "CustomHeader4",
861
+ "in": "header",
862
+ "description": "Custom header 4. Specify in format: header-name: header-value",
863
+ "required": false,
864
+ "x-ms-summary": "CustomHeader4",
865
+ "type": "string",
866
+ "x-ms-visibility": "advanced"
867
+ },
868
+ {
869
+ "name": "CustomHeader5",
870
+ "in": "header",
871
+ "description": "Custom header 5. Specify in format: header-name: header-value",
872
+ "required": false,
873
+ "x-ms-summary": "CustomHeader5",
874
+ "type": "string",
875
+ "x-ms-visibility": "advanced"
876
+ }
877
+ ],
878
+ "responses": {
879
+ "200": {
880
+ "description": "OK",
881
+ "schema": {
882
+ "$ref": "#/definitions/ObjectWithoutType"
883
+ }
884
+ },
885
+ "default": {
886
+ "description": "Operation Failed."
887
+ }
888
+ },
889
+ "deprecated": true,
890
+ "x-ms-visibility": "important",
891
+ "x-ms-api-annotation": {
892
+ "status": "Production",
893
+ "family": "HttpRequest",
894
+ "revision": 1
895
+ },
896
+ "externalDocs": {
897
+ "url": "https://docs.microsoft.com/connectors/office365groups/#send-an-http-request-%5bdeprecated%5d"
898
+ }
899
+ }
900
+ },
901
+ "/{connectionId}/v1.0/directory/deletedItems/microsoft.graph.group": {
902
+ "get": {
903
+ "summary": "List deleted groups",
904
+ "description": "Lists deleted groups that can be restored.",
905
+ "operationId": "ListDeletedGroups",
906
+ "responses": {
907
+ "200": {
908
+ "description": "Operation successful",
909
+ "schema": {
910
+ "$ref": "#/definitions/ListGroups_Response"
911
+ }
912
+ }
913
+ },
914
+ "deprecated": false,
915
+ "x-ms-no-generic-test": true,
916
+ "x-ms-visibility": "advanced",
917
+ "externalDocs": {
918
+ "url": "https://docs.microsoft.com/connectors/office365groups/#list-deleted-groups"
919
+ },
920
+ "parameters": [
921
+ {
922
+ "name": "connectionId",
923
+ "in": "path",
924
+ "required": true,
925
+ "type": "string",
926
+ "x-ms-visibility": "internal"
927
+ }
928
+ ]
929
+ }
930
+ },
931
+ "/{connectionId}/v1.0/directory/deletedItems/{groupId}/restore": {
932
+ "post": {
933
+ "summary": "Restore a deleted group",
934
+ "description": "Restore a recently deleted group",
935
+ "operationId": "RestoreDeletedGroup",
936
+ "parameters": [
937
+ {
938
+ "name": "connectionId",
939
+ "in": "path",
940
+ "required": true,
941
+ "type": "string",
942
+ "x-ms-visibility": "internal"
943
+ },
944
+ {
945
+ "$ref": "#/parameters/deletedGroupId__in_path"
946
+ }
947
+ ],
948
+ "responses": {
949
+ "200": {
950
+ "description": "Operation successful"
951
+ }
952
+ },
953
+ "deprecated": false,
954
+ "x-ms-no-generic-test": true,
955
+ "x-ms-visibility": "advanced",
956
+ "externalDocs": {
957
+ "url": "https://docs.microsoft.com/connectors/office365groups/#restore-a-deleted-group"
958
+ }
959
+ }
960
+ },
961
+ "/{connectionId}/v1.0/directory/deletedItems/getUserOwnedObjects": {
962
+ "post": {
963
+ "summary": "List deleted groups by owner",
964
+ "description": "List deleted groups that can be restored by owner",
965
+ "operationId": "ListDeletedGroupsByOwner",
966
+ "parameters": [
967
+ {
968
+ "name": "connectionId",
969
+ "in": "path",
970
+ "required": true,
971
+ "type": "string",
972
+ "x-ms-visibility": "internal"
973
+ },
974
+ {
975
+ "name": "userId",
976
+ "in": "header",
977
+ "description": "Enter a user id.",
978
+ "required": true,
979
+ "x-ms-summary": "User Id",
980
+ "x-ms-visibility": "important",
981
+ "type": "string",
982
+ "format": "guid"
983
+ }
984
+ ],
985
+ "responses": {
986
+ "200": {
987
+ "description": "Operation successful",
988
+ "schema": {
989
+ "$ref": "#/definitions/ListGroups_Response"
990
+ }
991
+ }
992
+ },
993
+ "deprecated": false,
994
+ "x-ms-no-generic-test": true,
995
+ "x-ms-visibility": "advanced",
996
+ "externalDocs": {
997
+ "url": "https://docs.microsoft.com/connectors/office365groups/#list-deleted-groups-by-owner"
998
+ }
999
+ }
1000
+ }
1001
+ },
1002
+ "definitions": {
1003
+ "SensitivityLabelMetadata": {
1004
+ "type": "object",
1005
+ "properties": {
1006
+ "sensitivityLabelId": {
1007
+ "type": "string",
1008
+ "description": "SensitivityLabel Id.",
1009
+ "x-ms-summary": "SensitivityLabel Id",
1010
+ "title": "sensitivityLabelId"
1011
+ },
1012
+ "name": {
1013
+ "type": "string",
1014
+ "description": "SensitivityLabel name.",
1015
+ "x-ms-summary": "name",
1016
+ "title": "name"
1017
+ },
1018
+ "displayName": {
1019
+ "type": "string",
1020
+ "description": "SensitivityLabel displayName info",
1021
+ "x-ms-summary": "SensitivityLabel displayName info",
1022
+ "title": "displayName"
1023
+ },
1024
+ "tooltip": {
1025
+ "type": "string",
1026
+ "description": "SensitivityLabel details on tooltip.",
1027
+ "x-ms-summary": "tooltip info",
1028
+ "title": "tooltip"
1029
+ },
1030
+ "priority": {
1031
+ "type": "integer",
1032
+ "format": "int32",
1033
+ "description": "SensitivityLabel priority.",
1034
+ "x-ms-summary": "priority of SensitivityLabel",
1035
+ "title": "priority"
1036
+ },
1037
+ "color": {
1038
+ "type": "string",
1039
+ "description": "SensitivityLabel color.",
1040
+ "x-ms-summary": "color to be displayed for SensitivityLabel.",
1041
+ "title": "color"
1042
+ },
1043
+ "isEncrypted": {
1044
+ "type": "boolean",
1045
+ "description": " is SensitivityLabel Encrypted.",
1046
+ "x-ms-summary": "isEncrypted status of SensitivityLabel",
1047
+ "title": "isEncrypted"
1048
+ },
1049
+ "isEnabled": {
1050
+ "type": "boolean",
1051
+ "description": "Whether SensitivityLabel is Enabled.",
1052
+ "x-ms-summary": "Whether SensitivityLabel is Enabled.",
1053
+ "title": "isEnabled"
1054
+ },
1055
+ "isParent": {
1056
+ "type": "boolean",
1057
+ "description": "Whether SensitivityLabel is Parent.",
1058
+ "x-ms-summary": "Whether SensitivityLabel is Parent",
1059
+ "title": "isParent"
1060
+ },
1061
+ "parentSensitivityLabelId": {
1062
+ "type": "string",
1063
+ "description": "Parent SensitivityLabel Id.",
1064
+ "x-ms-summary": "Parent SensitivityLabel Id",
1065
+ "title": "parentSensitivityLabelId"
1066
+ }
1067
+ }
1068
+ },
1069
+ "ListGroupMembers_Response": {
1070
+ "type": "object",
1071
+ "properties": {
1072
+ "@odata.context": {
1073
+ "type": "string",
1074
+ "description": "The OData context.",
1075
+ "title": "OData context",
1076
+ "x-ms-visibility": "internal"
1077
+ },
1078
+ "@odata.nextLink": {
1079
+ "type": "string",
1080
+ "description": "Only used in Power Apps Canvas to genereate the `$skipToken` for pagination. Power Automate and Logic Apps must use the pagination setting.",
1081
+ "title": "OData NextLink",
1082
+ "x-ms-visibility": "advanced"
1083
+ },
1084
+ "value": {
1085
+ "description": "value",
1086
+ "type": "array",
1087
+ "items": {
1088
+ "type": "object",
1089
+ "properties": {
1090
+ "id": {
1091
+ "description": "Unique id of the user.",
1092
+ "type": "string",
1093
+ "x-ms-visibility": "advanced",
1094
+ "x-ms-summary": "User Id"
1095
+ },
1096
+ "displayName": {
1097
+ "description": "User's display name.",
1098
+ "type": "string",
1099
+ "x-ms-summary": "Display Name"
1100
+ },
1101
+ "givenName": {
1102
+ "description": "User's first name.",
1103
+ "type": "string",
1104
+ "x-ms-summary": "Given Name"
1105
+ },
1106
+ "jobTitle": {
1107
+ "description": "User's job title.",
1108
+ "type": "string",
1109
+ "x-ms-summary": "Job Title"
1110
+ },
1111
+ "mail": {
1112
+ "description": "User's email address.",
1113
+ "type": "string",
1114
+ "x-ms-summary": "Mail"
1115
+ },
1116
+ "mobilePhone": {
1117
+ "description": "User's mobile number.",
1118
+ "type": "string",
1119
+ "x-ms-visibility": "advanced",
1120
+ "x-ms-summary": "Mobile Phone"
1121
+ },
1122
+ "officeLocation": {
1123
+ "description": "User's office address.",
1124
+ "type": "string",
1125
+ "x-ms-visibility": "advanced",
1126
+ "x-ms-summary": "Office Location"
1127
+ },
1128
+ "surname": {
1129
+ "description": "User's last name.",
1130
+ "type": "string",
1131
+ "x-ms-summary": "Surname"
1132
+ },
1133
+ "userPrincipalName": {
1134
+ "description": "UPN id of the user.",
1135
+ "type": "string",
1136
+ "x-ms-visibility": "advanced",
1137
+ "x-ms-summary": "User Principal Name"
1138
+ }
1139
+ }
1140
+ }
1141
+ }
1142
+ }
1143
+ },
1144
+ "OnGroupMemberAddedOrRemoved_Response": {
1145
+ "description": "value",
1146
+ "type": "array",
1147
+ "items": {
1148
+ "type": "object",
1149
+ "properties": {
1150
+ "id": {
1151
+ "description": "Unique id of the user.",
1152
+ "type": "string",
1153
+ "x-ms-visibility": "advanced",
1154
+ "x-ms-summary": "User Id"
1155
+ },
1156
+ "@removed": {
1157
+ "type": "object",
1158
+ "properties": {
1159
+ "reason": {
1160
+ "description": "Reason that caused the user to be removed from the group.",
1161
+ "type": "string",
1162
+ "x-ms-summary": "Reason"
1163
+ }
1164
+ }
1165
+ }
1166
+ }
1167
+ }
1168
+ },
1169
+ "ListOwnedGroups_Response": {
1170
+ "type": "object",
1171
+ "properties": {
1172
+ "@odata.context": {
1173
+ "description": "The OData context.",
1174
+ "type": "string",
1175
+ "x-ms-summary": "OData context",
1176
+ "x-ms-visibility": "internal"
1177
+ },
1178
+ "value": {
1179
+ "description": "value",
1180
+ "type": "array",
1181
+ "items": {
1182
+ "type": "object",
1183
+ "properties": {
1184
+ "classification": {
1185
+ "description": "O365 group classification.",
1186
+ "type": "string",
1187
+ "x-ms-summary": "Classification",
1188
+ "x-ms-visibility": "advanced"
1189
+ },
1190
+ "createdDateTime": {
1191
+ "format": "date-time",
1192
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1193
+ "type": "string",
1194
+ "x-ms-summary": "Created Date-Time",
1195
+ "x-ms-visibility": "advanced"
1196
+ },
1197
+ "deletedDateTime": {
1198
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1199
+ "type": "string",
1200
+ "x-ms-summary": "Deleted Date-Time",
1201
+ "x-ms-visibility": "advanced"
1202
+ },
1203
+ "description": {
1204
+ "description": "More information about the group.",
1205
+ "type": "string",
1206
+ "x-ms-summary": "Description"
1207
+ },
1208
+ "displayName": {
1209
+ "description": "O365 group name.",
1210
+ "type": "string",
1211
+ "x-ms-summary": "Name"
1212
+ },
1213
+ "id": {
1214
+ "description": "Unique identifier of the group.",
1215
+ "type": "string",
1216
+ "x-ms-summary": "Group Id",
1217
+ "x-ms-visibility": "advanced"
1218
+ },
1219
+ "mail": {
1220
+ "description": "Email address of the group.",
1221
+ "type": "string",
1222
+ "x-ms-summary": "Email"
1223
+ },
1224
+ "mailEnabled": {
1225
+ "description": "True if mail is enabled for the group.",
1226
+ "type": "boolean",
1227
+ "x-ms-summary": "Mail Enabled",
1228
+ "x-ms-visibility": "advanced"
1229
+ },
1230
+ "mailNickname": {
1231
+ "description": "Group nickname.",
1232
+ "type": "string",
1233
+ "x-ms-summary": "Nickname",
1234
+ "x-ms-visibility": "advanced"
1235
+ },
1236
+ "onPremisesLastSyncDateTime": {
1237
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1238
+ "type": "string",
1239
+ "x-ms-summary": "On-Premises Last Sync Date-Time",
1240
+ "x-ms-visibility": "advanced"
1241
+ },
1242
+ "onPremisesSecurityIdentifier": {
1243
+ "description": "The on-premises security identifier.",
1244
+ "type": "string",
1245
+ "x-ms-summary": "On-Premises Security Identifier",
1246
+ "x-ms-visibility": "advanced"
1247
+ },
1248
+ "onPremisesSyncEnabled": {
1249
+ "description": "True if on-premises sync is enabled for the group.",
1250
+ "type": "string",
1251
+ "x-ms-summary": "On-Premises Sync Enabled",
1252
+ "x-ms-visibility": "advanced"
1253
+ },
1254
+ "renewedDateTime": {
1255
+ "format": "date-time",
1256
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1257
+ "type": "string",
1258
+ "x-ms-summary": "Renewed Date-Time",
1259
+ "x-ms-visibility": "advanced"
1260
+ },
1261
+ "securityEnabled": {
1262
+ "description": "True if the owner is security enabled.",
1263
+ "type": "boolean",
1264
+ "x-ms-summary": "Security Enabled",
1265
+ "x-ms-visibility": "advanced"
1266
+ },
1267
+ "visibility": {
1268
+ "description": "The owner's visibility.",
1269
+ "type": "string",
1270
+ "x-ms-summary": "Visibility",
1271
+ "x-ms-visibility": "advanced"
1272
+ },
1273
+ "sensitivityLabelInfo": {
1274
+ "description": "List of Sensitivity Label Information",
1275
+ "type": "array",
1276
+ "items": {
1277
+ "$ref": "#/definitions/SensitivityLabelMetadata"
1278
+ }
1279
+ }
1280
+ }
1281
+ }
1282
+ }
1283
+ }
1284
+ },
1285
+ "ListOwnedGroups_V2_Response": {
1286
+ "type": "object",
1287
+ "properties": {
1288
+ "@odata.context": {
1289
+ "description": "The OData context.",
1290
+ "type": "string",
1291
+ "x-ms-summary": "OData context",
1292
+ "x-ms-visibility": "internal"
1293
+ },
1294
+ "value": {
1295
+ "description": "value",
1296
+ "type": "array",
1297
+ "items": {
1298
+ "type": "object",
1299
+ "properties": {
1300
+ "classification": {
1301
+ "description": "O365 group classification.",
1302
+ "type": "string",
1303
+ "x-ms-summary": "Classification",
1304
+ "x-ms-visibility": "advanced"
1305
+ },
1306
+ "createdDateTime": {
1307
+ "format": "date-time",
1308
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1309
+ "type": "string",
1310
+ "x-ms-summary": "Created Date-Time",
1311
+ "x-ms-visibility": "advanced"
1312
+ },
1313
+ "description": {
1314
+ "description": "More information about the group.",
1315
+ "type": "string",
1316
+ "x-ms-summary": "Description"
1317
+ },
1318
+ "displayName": {
1319
+ "description": "O365 group name.",
1320
+ "type": "string",
1321
+ "x-ms-summary": "Name"
1322
+ },
1323
+ "id": {
1324
+ "description": "Unique identifier of the group.",
1325
+ "type": "string",
1326
+ "x-ms-summary": "Group Id",
1327
+ "x-ms-visibility": "advanced"
1328
+ },
1329
+ "mail": {
1330
+ "description": "Email address of the group.",
1331
+ "type": "string",
1332
+ "x-ms-summary": "Email"
1333
+ },
1334
+ "mailEnabled": {
1335
+ "description": "True if mail is enabled for the group.",
1336
+ "type": "boolean",
1337
+ "x-ms-summary": "Mail Enabled",
1338
+ "x-ms-visibility": "advanced"
1339
+ },
1340
+ "mailNickname": {
1341
+ "description": "Group nickname.",
1342
+ "type": "string",
1343
+ "x-ms-summary": "Nickname",
1344
+ "x-ms-visibility": "advanced"
1345
+ },
1346
+ "onPremisesLastSyncDateTime": {
1347
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1348
+ "type": "string",
1349
+ "x-ms-summary": "On-Premises Last Sync Date-Time",
1350
+ "x-ms-visibility": "advanced"
1351
+ },
1352
+ "onPremisesSecurityIdentifier": {
1353
+ "description": "The on-premises security identifier.",
1354
+ "type": "string",
1355
+ "x-ms-summary": "On-Premises Security Identifier",
1356
+ "x-ms-visibility": "advanced"
1357
+ },
1358
+ "onPremisesSyncEnabled": {
1359
+ "description": "True if on-premises sync is enabled for the group.",
1360
+ "type": "string",
1361
+ "x-ms-summary": "On-Premises Sync Enabled",
1362
+ "x-ms-visibility": "advanced"
1363
+ },
1364
+ "renewedDateTime": {
1365
+ "format": "date-time",
1366
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1367
+ "type": "string",
1368
+ "x-ms-summary": "Renewed Date-Time",
1369
+ "x-ms-visibility": "advanced"
1370
+ },
1371
+ "securityEnabled": {
1372
+ "description": "True if the owner is security enabled.",
1373
+ "type": "boolean",
1374
+ "x-ms-summary": "Security Enabled",
1375
+ "x-ms-visibility": "advanced"
1376
+ },
1377
+ "visibility": {
1378
+ "description": "The owner's visibility.",
1379
+ "type": "string",
1380
+ "x-ms-summary": "Visibility",
1381
+ "x-ms-visibility": "advanced"
1382
+ },
1383
+ "sensitivityLabelInfo": {
1384
+ "description": "List of Sensitivity Label Information",
1385
+ "type": "array",
1386
+ "items": {
1387
+ "$ref": "#/definitions/SensitivityLabelMetadata"
1388
+ }
1389
+ }
1390
+ }
1391
+ }
1392
+ }
1393
+ }
1394
+ },
1395
+ "ListGroups_Response": {
1396
+ "type": "object",
1397
+ "properties": {
1398
+ "@odata.context": {
1399
+ "type": "string",
1400
+ "description": "The OData context.",
1401
+ "title": "OData context",
1402
+ "x-ms-visibility": "internal"
1403
+ },
1404
+ "@odata.nextLink": {
1405
+ "type": "string",
1406
+ "description": "Only used in Power Apps Canvas to genereate the `$skipToken` for pagination. Power Automate and Logic Apps must use the pagination setting.",
1407
+ "title": "OData NextLink",
1408
+ "x-ms-visibility": "advanced"
1409
+ },
1410
+ "value": {
1411
+ "description": "value",
1412
+ "type": "array",
1413
+ "items": {
1414
+ "type": "object",
1415
+ "properties": {
1416
+ "classification": {
1417
+ "description": "O365 group classification.",
1418
+ "type": "string",
1419
+ "x-ms-summary": "Classification",
1420
+ "x-ms-visibility": "advanced"
1421
+ },
1422
+ "createdDateTime": {
1423
+ "format": "date-time",
1424
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1425
+ "type": "string",
1426
+ "x-ms-summary": "Created Date-Time",
1427
+ "x-ms-visibility": "advanced"
1428
+ },
1429
+ "description": {
1430
+ "description": "More information about the group.",
1431
+ "type": "string",
1432
+ "x-ms-summary": "Description"
1433
+ },
1434
+ "displayName": {
1435
+ "description": "O365 group name.",
1436
+ "type": "string",
1437
+ "x-ms-summary": "Name"
1438
+ },
1439
+ "id": {
1440
+ "description": "Unique identifier of the group.",
1441
+ "type": "string",
1442
+ "x-ms-summary": "Group Id",
1443
+ "x-ms-visibility": "advanced"
1444
+ },
1445
+ "mail": {
1446
+ "description": "Email address of the group.",
1447
+ "type": "string",
1448
+ "x-ms-summary": "Email"
1449
+ },
1450
+ "mailEnabled": {
1451
+ "description": "True if mail is enabled for the group.",
1452
+ "type": "boolean",
1453
+ "x-ms-summary": "Mail Enabled",
1454
+ "x-ms-visibility": "advanced"
1455
+ },
1456
+ "mailNickname": {
1457
+ "description": "Group nickname.",
1458
+ "type": "string",
1459
+ "x-ms-summary": "Nickname",
1460
+ "x-ms-visibility": "advanced"
1461
+ },
1462
+ "onPremisesLastSyncDateTime": {
1463
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1464
+ "type": "string",
1465
+ "x-ms-summary": "On-Premises Last Sync Date-Time",
1466
+ "x-ms-visibility": "advanced"
1467
+ },
1468
+ "onPremisesSecurityIdentifier": {
1469
+ "description": "The on-premises security identifier.",
1470
+ "type": "string",
1471
+ "x-ms-summary": "On-Premises Security Identifier",
1472
+ "x-ms-visibility": "advanced"
1473
+ },
1474
+ "onPremisesSyncEnabled": {
1475
+ "description": "True if on-premises sync is enabled for the group.",
1476
+ "type": "boolean",
1477
+ "x-ms-summary": "On-Premises Sync Enabled",
1478
+ "x-ms-visibility": "advanced"
1479
+ },
1480
+ "renewedDateTime": {
1481
+ "format": "date-time",
1482
+ "description": "yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)",
1483
+ "type": "string",
1484
+ "x-ms-summary": "Renewed Date-Time",
1485
+ "x-ms-visibility": "advanced"
1486
+ },
1487
+ "securityEnabled": {
1488
+ "description": "True if the owner is security enabled.",
1489
+ "type": "boolean",
1490
+ "x-ms-summary": "Security Enabled",
1491
+ "x-ms-visibility": "advanced"
1492
+ },
1493
+ "visibility": {
1494
+ "description": "The owner's visibility.",
1495
+ "type": "string",
1496
+ "x-ms-summary": "Visibility",
1497
+ "x-ms-visibility": "advanced"
1498
+ },
1499
+ "sensitivityLabelInfo": {
1500
+ "description": "List of Sensitivity Label Information",
1501
+ "type": "array",
1502
+ "items": {
1503
+ "$ref": "#/definitions/SensitivityLabelMetadata"
1504
+ }
1505
+ }
1506
+ }
1507
+ }
1508
+ }
1509
+ }
1510
+ },
1511
+ "CreateCalendarEvent_Response": {
1512
+ "type": "object",
1513
+ "properties": {
1514
+ "id": {
1515
+ "description": "Unique id of the event.",
1516
+ "type": "string",
1517
+ "x-ms-visibility": "advanced",
1518
+ "x-ms-summary": "Id"
1519
+ },
1520
+ "reminderMinutesBeforeStart": {
1521
+ "format": "int32",
1522
+ "description": "Time in minutes before event starts to remind.",
1523
+ "type": "integer",
1524
+ "x-ms-visibility": "advanced",
1525
+ "x-ms-summary": "Reminder Start Duration"
1526
+ },
1527
+ "isReminderOn": {
1528
+ "description": "Set to true if the event has a reminder.",
1529
+ "type": "boolean",
1530
+ "x-ms-visibility": "advanced",
1531
+ "x-ms-summary": "Is Reminder On"
1532
+ },
1533
+ "subject": {
1534
+ "description": "Title of the event.",
1535
+ "type": "string",
1536
+ "x-ms-summary": "Subject"
1537
+ },
1538
+ "importance": {
1539
+ "description": "The importance of the event: Low, Normal, or High.",
1540
+ "type": "string",
1541
+ "x-ms-summary": "Importance"
1542
+ },
1543
+ "isAllDay": {
1544
+ "description": "True if the event is an all day event.",
1545
+ "type": "boolean",
1546
+ "x-ms-visibility": "advanced",
1547
+ "x-ms-summary": "Is All Day"
1548
+ },
1549
+ "responseRequested": {
1550
+ "description": "True if a response was requested for the event.",
1551
+ "type": "boolean",
1552
+ "x-ms-visibility": "advanced",
1553
+ "x-ms-summary": "Response Requested"
1554
+ },
1555
+ "showAs": {
1556
+ "description": "Status to show during the event.",
1557
+ "type": "string",
1558
+ "x-ms-visibility": "advanced",
1559
+ "x-ms-summary": "Show As"
1560
+ },
1561
+ "body": {
1562
+ "description": "body",
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "contentType": {
1566
+ "description": "Text or Html.",
1567
+ "type": "string",
1568
+ "x-ms-visibility": "advanced",
1569
+ "x-ms-summary": "Content Type"
1570
+ },
1571
+ "content": {
1572
+ "description": "The content of the body of this event.",
1573
+ "type": "string",
1574
+ "x-ms-visibility": "advanced",
1575
+ "x-ms-summary": "Content"
1576
+ }
1577
+ },
1578
+ "x-ms-summary": "Body"
1579
+ },
1580
+ "start": {
1581
+ "description": "start",
1582
+ "type": "object",
1583
+ "properties": {
1584
+ "dateTime": {
1585
+ "format": "date-time",
1586
+ "description": "Start time of the event (example: '2016-11-01T14:30:00-07:00').",
1587
+ "type": "string",
1588
+ "x-ms-summary": "Date Time"
1589
+ },
1590
+ "timeZone": {
1591
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
1592
+ "default": "UTC",
1593
+ "type": "string",
1594
+ "x-ms-visibility": "advanced",
1595
+ "x-ms-summary": "Time Zone"
1596
+ }
1597
+ },
1598
+ "x-ms-summary": "Start"
1599
+ },
1600
+ "end": {
1601
+ "description": "end",
1602
+ "type": "object",
1603
+ "properties": {
1604
+ "dateTime": {
1605
+ "format": "date-time",
1606
+ "description": "End time of the event (example: '2016-11-01T15:30:00-07:00').",
1607
+ "type": "string",
1608
+ "x-ms-summary": "Date Time"
1609
+ },
1610
+ "timeZone": {
1611
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
1612
+ "default": "UTC",
1613
+ "type": "string",
1614
+ "x-ms-visibility": "advanced",
1615
+ "x-ms-summary": "Time Zone"
1616
+ }
1617
+ },
1618
+ "x-ms-summary": "End"
1619
+ },
1620
+ "location": {
1621
+ "description": "location",
1622
+ "type": "object",
1623
+ "properties": {
1624
+ "displayName": {
1625
+ "description": "The display name for the location of the event.",
1626
+ "type": "string",
1627
+ "x-ms-visibility": "advanced",
1628
+ "x-ms-summary": "Name"
1629
+ }
1630
+ },
1631
+ "x-ms-summary": "Location"
1632
+ }
1633
+ }
1634
+ },
1635
+ "UpdateCalendarEvent_Request": {
1636
+ "required": [
1637
+ "subject",
1638
+ "start",
1639
+ "end"
1640
+ ],
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "subject": {
1644
+ "description": "Title of the event.",
1645
+ "type": "string",
1646
+ "x-ms-summary": "Subject"
1647
+ },
1648
+ "start": {
1649
+ "required": [
1650
+ "dateTime",
1651
+ "timeZone"
1652
+ ],
1653
+ "type": "object",
1654
+ "properties": {
1655
+ "dateTime": {
1656
+ "format": "date-time",
1657
+ "description": "Start time of the event (example: '2016-11-01T14:30:00').",
1658
+ "type": "string",
1659
+ "x-ms-summary": "Start Time"
1660
+ },
1661
+ "timeZone": {
1662
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
1663
+ "default": "UTC",
1664
+ "type": "string",
1665
+ "x-ms-visibility": "internal",
1666
+ "x-ms-summary": "Time zone"
1667
+ }
1668
+ }
1669
+ },
1670
+ "end": {
1671
+ "required": [
1672
+ "dateTime",
1673
+ "timeZone"
1674
+ ],
1675
+ "type": "object",
1676
+ "properties": {
1677
+ "dateTime": {
1678
+ "format": "date-time",
1679
+ "description": "End time of the event (example: '2016-11-01T15:30:00').",
1680
+ "type": "string",
1681
+ "x-ms-summary": "End Time"
1682
+ },
1683
+ "timeZone": {
1684
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
1685
+ "default": "UTC",
1686
+ "type": "string",
1687
+ "x-ms-visibility": "internal",
1688
+ "x-ms-summary": "Time zone"
1689
+ }
1690
+ }
1691
+ },
1692
+ "body": {
1693
+ "type": "object",
1694
+ "properties": {
1695
+ "content": {
1696
+ "description": "Body of the message associated with the event.",
1697
+ "type": "string",
1698
+ "x-ms-visibility": "advanced",
1699
+ "x-ms-summary": "Body"
1700
+ },
1701
+ "contentType": {
1702
+ "description": "Pick the content type: Text or Html.",
1703
+ "enum": [
1704
+ "Text",
1705
+ "Html"
1706
+ ],
1707
+ "type": "string",
1708
+ "x-ms-visibility": "advanced",
1709
+ "x-ms-summary": "Body Content Type"
1710
+ }
1711
+ }
1712
+ },
1713
+ "location": {
1714
+ "type": "object",
1715
+ "properties": {
1716
+ "displayName": {
1717
+ "description": "Location of the event.",
1718
+ "type": "string",
1719
+ "x-ms-visibility": "advanced",
1720
+ "x-ms-summary": "Location"
1721
+ }
1722
+ }
1723
+ },
1724
+ "importance": {
1725
+ "description": "The importance of the event: Low, Normal, or High.",
1726
+ "enum": [
1727
+ "Low",
1728
+ "Normal",
1729
+ "High"
1730
+ ],
1731
+ "type": "string",
1732
+ "x-ms-visibility": "advanced",
1733
+ "x-ms-summary": "Importance"
1734
+ },
1735
+ "isAllDay": {
1736
+ "description": "Set to true if the event lasts all day.",
1737
+ "type": "boolean",
1738
+ "x-ms-visibility": "advanced",
1739
+ "x-ms-summary": "Is All Day"
1740
+ },
1741
+ "isReminderOn": {
1742
+ "description": "Set to true if the event has a reminder.",
1743
+ "type": "boolean",
1744
+ "x-ms-visibility": "advanced",
1745
+ "x-ms-summary": "Is Reminder On"
1746
+ },
1747
+ "reminderMinutesBeforeStart": {
1748
+ "format": "int32",
1749
+ "description": "Time in minutes before event start to remind.",
1750
+ "type": "integer",
1751
+ "x-ms-visibility": "advanced",
1752
+ "x-ms-summary": "Reminder Start Duration"
1753
+ },
1754
+ "showAs": {
1755
+ "description": "Status to show during the event.",
1756
+ "enum": [
1757
+ "Free",
1758
+ "Tentative",
1759
+ "Busy",
1760
+ "Oof",
1761
+ "WorkingElsewhere",
1762
+ "Unknown"
1763
+ ],
1764
+ "type": "string",
1765
+ "x-ms-visibility": "advanced",
1766
+ "x-ms-summary": "Show As"
1767
+ },
1768
+ "responseRequested": {
1769
+ "description": "Set to true if the sender would like a response when the event is accepted or declined.",
1770
+ "type": "boolean",
1771
+ "x-ms-visibility": "advanced",
1772
+ "x-ms-summary": "Response Requested"
1773
+ }
1774
+ },
1775
+ "x-ms-test-value": {
1776
+ "subject": "Test Event from Postman",
1777
+ "start": {
1778
+ "dateTime": "2017-12-31T14:00:00",
1779
+ "timeZone": "UTC"
1780
+ },
1781
+ "end": {
1782
+ "dateTime": "2017-12-31T14:30:00",
1783
+ "timeZone": "UTC"
1784
+ },
1785
+ "originalStartTimeZone": "Pacific Standard Time",
1786
+ "originalEndTimeZone": "Pacific Standard Time",
1787
+ "body": {
1788
+ "contentType": "text",
1789
+ "content": "Test Body"
1790
+ },
1791
+ "location": {
1792
+ "displayName": "Redmond"
1793
+ },
1794
+ "importance": "normal",
1795
+ "isAllDay": false,
1796
+ "reminderMinutesBeforeStart": 99,
1797
+ "isReminderOn": true,
1798
+ "showAs": "busy",
1799
+ "responseRequested": true
1800
+ }
1801
+ },
1802
+ "UpdateCalendarEvent_HTMLRequest": {
1803
+ "required": [
1804
+ "subject",
1805
+ "start",
1806
+ "end"
1807
+ ],
1808
+ "type": "object",
1809
+ "properties": {
1810
+ "subject": {
1811
+ "description": "Title of the event.",
1812
+ "type": "string",
1813
+ "x-ms-summary": "Subject"
1814
+ },
1815
+ "start": {
1816
+ "required": [
1817
+ "dateTime",
1818
+ "timeZone"
1819
+ ],
1820
+ "type": "object",
1821
+ "properties": {
1822
+ "dateTime": {
1823
+ "format": "date-time",
1824
+ "description": "Start time of the event (example: '2016-11-01T14:30:00').",
1825
+ "type": "string",
1826
+ "x-ms-summary": "Start Time"
1827
+ },
1828
+ "timeZone": {
1829
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
1830
+ "default": "UTC",
1831
+ "type": "string",
1832
+ "x-ms-visibility": "internal",
1833
+ "x-ms-summary": "Time zone"
1834
+ }
1835
+ }
1836
+ },
1837
+ "end": {
1838
+ "required": [
1839
+ "dateTime",
1840
+ "timeZone"
1841
+ ],
1842
+ "type": "object",
1843
+ "properties": {
1844
+ "dateTime": {
1845
+ "format": "date-time",
1846
+ "description": "End time of the event (example: '2016-11-01T15:30:00').",
1847
+ "type": "string",
1848
+ "x-ms-summary": "End Time"
1849
+ },
1850
+ "timeZone": {
1851
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
1852
+ "default": "UTC",
1853
+ "type": "string",
1854
+ "x-ms-visibility": "internal",
1855
+ "x-ms-summary": "Time zone"
1856
+ }
1857
+ }
1858
+ },
1859
+ "body": {
1860
+ "type": "object",
1861
+ "required": [
1862
+ "contentType"
1863
+ ],
1864
+ "properties": {
1865
+ "content": {
1866
+ "description": "Body of the message associated with the event.",
1867
+ "type": "string",
1868
+ "format": "html",
1869
+ "x-ms-visibility": "advanced",
1870
+ "x-ms-summary": "Body"
1871
+ },
1872
+ "contentType": {
1873
+ "description": "Pick the content type: Text or Html.",
1874
+ "default": "Html",
1875
+ "type": "string",
1876
+ "x-ms-summary": "Body Content Type",
1877
+ "x-ms-visibility": "internal"
1878
+ }
1879
+ }
1880
+ },
1881
+ "location": {
1882
+ "type": "object",
1883
+ "properties": {
1884
+ "displayName": {
1885
+ "description": "Location of the event.",
1886
+ "type": "string",
1887
+ "x-ms-visibility": "advanced",
1888
+ "x-ms-summary": "Location"
1889
+ }
1890
+ }
1891
+ },
1892
+ "importance": {
1893
+ "description": "The importance of the event: Low, Normal, or High.",
1894
+ "enum": [
1895
+ "Low",
1896
+ "Normal",
1897
+ "High"
1898
+ ],
1899
+ "type": "string",
1900
+ "x-ms-visibility": "advanced",
1901
+ "x-ms-summary": "Importance"
1902
+ },
1903
+ "isAllDay": {
1904
+ "description": "Set to true if the event lasts all day.",
1905
+ "type": "boolean",
1906
+ "x-ms-visibility": "advanced",
1907
+ "x-ms-summary": "Is All Day"
1908
+ },
1909
+ "isReminderOn": {
1910
+ "description": "Set to true if the event has a reminder.",
1911
+ "type": "boolean",
1912
+ "x-ms-visibility": "advanced",
1913
+ "x-ms-summary": "Is Reminder On"
1914
+ },
1915
+ "reminderMinutesBeforeStart": {
1916
+ "format": "int32",
1917
+ "description": "Time in minutes before event start to remind.",
1918
+ "type": "integer",
1919
+ "x-ms-visibility": "advanced",
1920
+ "x-ms-summary": "Reminder Start Duration"
1921
+ },
1922
+ "showAs": {
1923
+ "description": "Status to show during the event.",
1924
+ "enum": [
1925
+ "Free",
1926
+ "Tentative",
1927
+ "Busy",
1928
+ "Oof",
1929
+ "WorkingElsewhere",
1930
+ "Unknown"
1931
+ ],
1932
+ "type": "string",
1933
+ "x-ms-visibility": "advanced",
1934
+ "x-ms-summary": "Show As"
1935
+ },
1936
+ "responseRequested": {
1937
+ "description": "Set to true if the sender would like a response when the event is accepted or declined.",
1938
+ "type": "boolean",
1939
+ "x-ms-visibility": "advanced",
1940
+ "x-ms-summary": "Response Requested"
1941
+ }
1942
+ },
1943
+ "x-ms-test-value": {
1944
+ "subject": "Test Event from Postman",
1945
+ "start": {
1946
+ "dateTime": "2017-12-31T15:00:00",
1947
+ "timeZone": "UTC"
1948
+ },
1949
+ "end": {
1950
+ "dateTime": "2017-12-31T15:30:00",
1951
+ "timeZone": "UTC"
1952
+ },
1953
+ "originalStartTimeZone": "Pacific Standard Time",
1954
+ "originalEndTimeZone": "Pacific Standard Time",
1955
+ "body": {
1956
+ "content": "Test Body"
1957
+ },
1958
+ "location": {
1959
+ "displayName": "Redmond"
1960
+ },
1961
+ "importance": "normal",
1962
+ "isAllDay": false,
1963
+ "reminderMinutesBeforeStart": 99,
1964
+ "isReminderOn": true,
1965
+ "showAs": "busy",
1966
+ "responseRequested": true
1967
+ }
1968
+ },
1969
+ "OnNewEvent_Response": {
1970
+ "description": "value",
1971
+ "type": "array",
1972
+ "items": {
1973
+ "type": "object",
1974
+ "properties": {
1975
+ "id": {
1976
+ "description": "Unique id of the event.",
1977
+ "type": "string",
1978
+ "x-ms-visibility": "advanced",
1979
+ "x-ms-summary": "Id"
1980
+ },
1981
+ "reminderMinutesBeforeStart": {
1982
+ "format": "int32",
1983
+ "description": "The number of minutes before the start of the event the reminder will fire.",
1984
+ "type": "integer",
1985
+ "x-ms-visibility": "advanced",
1986
+ "x-ms-summary": "Reminder Start Duration"
1987
+ },
1988
+ "isReminderOn": {
1989
+ "description": "Set to true if the event has a reminder.",
1990
+ "type": "boolean",
1991
+ "x-ms-visibility": "advanced",
1992
+ "x-ms-summary": "Is Reminder On"
1993
+ },
1994
+ "subject": {
1995
+ "description": "Title of the event.",
1996
+ "type": "string",
1997
+ "x-ms-summary": "Subject"
1998
+ },
1999
+ "importance": {
2000
+ "description": "The importance of the event: Low, Normal, or High.",
2001
+ "type": "string",
2002
+ "x-ms-summary": "Importance"
2003
+ },
2004
+ "isAllDay": {
2005
+ "description": "Set to true if the event lasts all day.",
2006
+ "type": "boolean",
2007
+ "x-ms-visibility": "advanced",
2008
+ "x-ms-summary": "Is All Day"
2009
+ },
2010
+ "responseRequested": {
2011
+ "description": "Set to true if the sender would like a response when the event is accepted or declined.",
2012
+ "type": "boolean",
2013
+ "x-ms-visibility": "advanced",
2014
+ "x-ms-summary": "Response Requested"
2015
+ },
2016
+ "showAs": {
2017
+ "description": "Status to show during the event.",
2018
+ "type": "string",
2019
+ "x-ms-visibility": "advanced",
2020
+ "x-ms-summary": "Show As"
2021
+ },
2022
+ "body": {
2023
+ "description": "body",
2024
+ "type": "object",
2025
+ "properties": {
2026
+ "contentType": {
2027
+ "description": "Body of the message associated with the event.",
2028
+ "type": "string",
2029
+ "x-ms-visibility": "advanced",
2030
+ "x-ms-summary": "Content Type"
2031
+ },
2032
+ "content": {
2033
+ "description": "Pick the content type: Text or Html.",
2034
+ "type": "string",
2035
+ "x-ms-visibility": "advanced",
2036
+ "x-ms-summary": "Content"
2037
+ }
2038
+ },
2039
+ "x-ms-summary": "Body"
2040
+ },
2041
+ "start": {
2042
+ "description": "start",
2043
+ "type": "object",
2044
+ "properties": {
2045
+ "dateTime": {
2046
+ "format": "date-time",
2047
+ "description": "Start time of the event (example: '2016-11-01T14:30:00-07:00').",
2048
+ "type": "string",
2049
+ "x-ms-summary": "Date Time"
2050
+ },
2051
+ "timeZone": {
2052
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
2053
+ "type": "string",
2054
+ "x-ms-visibility": "advanced",
2055
+ "x-ms-summary": "Time Zone"
2056
+ }
2057
+ },
2058
+ "x-ms-summary": "Start"
2059
+ },
2060
+ "end": {
2061
+ "description": "end",
2062
+ "type": "object",
2063
+ "properties": {
2064
+ "dateTime": {
2065
+ "format": "date-time",
2066
+ "description": "End time of the event (example: '2016-11-01T15:30:00-07:00').",
2067
+ "type": "string",
2068
+ "x-ms-summary": "Date Time"
2069
+ },
2070
+ "timeZone": {
2071
+ "description": "Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').",
2072
+ "type": "string",
2073
+ "x-ms-visibility": "advanced",
2074
+ "x-ms-summary": "Time Zone"
2075
+ }
2076
+ },
2077
+ "x-ms-summary": "End"
2078
+ },
2079
+ "location": {
2080
+ "description": "location",
2081
+ "type": "object",
2082
+ "properties": {
2083
+ "displayName": {
2084
+ "description": "The display name for the location of the event.",
2085
+ "type": "string",
2086
+ "x-ms-visibility": "advanced",
2087
+ "x-ms-summary": "Name"
2088
+ }
2089
+ },
2090
+ "x-ms-summary": "Location"
2091
+ }
2092
+ }
2093
+ },
2094
+ "x-ms-summary": "value"
2095
+ },
2096
+ "ObjectWithoutType": {}
2097
+ },
2098
+ "parameters": {
2099
+ "groupId__in_path": {
2100
+ "name": "groupId",
2101
+ "in": "path",
2102
+ "description": "Pick a group from the drop down or enter group id.",
2103
+ "required": true,
2104
+ "x-ms-summary": "Group Id",
2105
+ "x-ms-dynamic-values": {
2106
+ "operationId": "ListOwnedGroups_V2",
2107
+ "value-path": "id",
2108
+ "value-title": "displayName",
2109
+ "value-collection": "value"
2110
+ },
2111
+ "x-ms-visibility": "important",
2112
+ "type": "string",
2113
+ "format": "guid"
2114
+ },
2115
+ "groupId__in_query": {
2116
+ "name": "groupId",
2117
+ "in": "query",
2118
+ "description": "Pick a group from the drop down or enter group id.",
2119
+ "required": true,
2120
+ "x-ms-summary": "Group Id",
2121
+ "x-ms-dynamic-values": {
2122
+ "operationId": "ListOwnedGroups_V2",
2123
+ "value-path": "id",
2124
+ "value-title": "displayName",
2125
+ "value-collection": "value"
2126
+ },
2127
+ "x-ms-visibility": "important",
2128
+ "type": "string",
2129
+ "format": "guid"
2130
+ },
2131
+ "deletedGroupId__in_path": {
2132
+ "name": "groupId",
2133
+ "in": "path",
2134
+ "description": "Pick a group from the drop down or enter group id.",
2135
+ "required": true,
2136
+ "x-ms-summary": "Group Id",
2137
+ "x-ms-visibility": "important",
2138
+ "type": "string",
2139
+ "format": "guid"
2140
+ },
2141
+ "extractSensitivityLabel": {
2142
+ "name": "extractSensitivityLabel",
2143
+ "in": "query",
2144
+ "required": false,
2145
+ "type": "boolean",
2146
+ "description": "A boolean whether to extract sensitivity label Id for associated artefact.",
2147
+ "x-ms-summary": "Extract Sensitivity Label",
2148
+ "x-ms-visibility": "important"
2149
+ },
2150
+ "fetchSensitivityLabelMetadata": {
2151
+ "name": "fetchSensitivityLabelMetadata",
2152
+ "in": "query",
2153
+ "required": false,
2154
+ "type": "boolean",
2155
+ "description": "A boolean whether to fetch sensitivity label Metadata for associated LabelId.",
2156
+ "x-ms-summary": "Sensitivity Label Metadata",
2157
+ "x-ms-visibility": "important"
2158
+ }
2159
+ },
2160
+ "securityDefinitions": {},
2161
+ "security": [],
2162
+ "x-ms-connector-metadata": [
2163
+ {
2164
+ "propertyName": "Website",
2165
+ "propertyValue": "https://www.office.com/"
2166
+ },
2167
+ {
2168
+ "propertyName": "Privacy policy",
2169
+ "propertyValue": "https://privacy.microsoft.com/"
2170
+ },
2171
+ {
2172
+ "propertyName": "Categories",
2173
+ "propertyValue": "AI;Business Intelligence"
2174
+ }
2175
+ ],
2176
+ "externalDocs": {
2177
+ "url": "https://docs.microsoft.com/connectors/office365groups"
2178
+ }
2179
+ },
2180
+ "runtimeUrls": [
2181
+ "https://unitedstates-002.azure-apim.net/apim/office365groups"
188
2182
  ],
189
- responseInfo: { 200: { type: "void" } },
190
- },
191
- ListDeletedGroupsByOwner: {
192
- path: "/{connectionId}/v1.0/directory/deletedItems/getUserOwnedObjects",
193
- method: "POST",
194
- parameters: [
195
- { name: "connectionId", in: "path", required: true, type: "string" },
196
- { name: "userId", in: "header", required: true, type: "string" },
2183
+ "primaryRuntimeUrl": "https://unitedstates-002.azure-apim.net/apim/office365groups",
2184
+ "doNotUseApiHubNetRuntimeUrl": "https://unitedstates-002.azure-apim.net/apim/office365groups",
2185
+ "metadata": {
2186
+ "source": "marketplace",
2187
+ "brandColor": "#EB3C00",
2188
+ "useNewApimVersion": "true",
2189
+ "version": {
2190
+ "previous": "1759\\1.0.1759.4274",
2191
+ "current": "releases/v1.0.1777\\1.0.1777.4410"
2192
+ }
2193
+ },
2194
+ "capabilities": [
2195
+ "actions",
2196
+ "triggers"
197
2197
  ],
198
- responseInfo: { 200: { type: "object" } },
199
- },
2198
+ "interfaces": {},
2199
+ "description": "Office 365 Groups lets you manage group membership and calendar events in your organization using your Office 365 account. You can perform various actions such as get group roster, add or remove members and create group events.",
2200
+ "createdTime": "2018-09-18T20:23:24.4590653Z",
2201
+ "changedTime": "2025-10-16T05:32:37.4996627Z",
2202
+ "releaseTag": "Production",
2203
+ "tier": "Standard",
2204
+ "publisher": "Microsoft",
2205
+ "scopes": {
2206
+ "will": [],
2207
+ "wont": []
2208
+ },
2209
+ "rateLimit": 0,
2210
+ "apiVersion": "None"
2211
+ }
200
2212
  };
201
2213
 
202
- function initGroupsClient() {
203
- const dataSourcesInfo = {};
2214
+ const DATA_SOURCE_NAME = "office365groups";
2215
+
2216
+ const dataSourcesInfo = {
2217
+ [DATA_SOURCE_NAME]: {
2218
+ "tableId": "",
2219
+ "version": "",
2220
+ "primaryKey": "",
2221
+ "dataSourceType": "Connector",
2222
+ "apis": {
2223
+ "ListGroupMembers": {
2224
+ "path": "/{connectionId}/v1.0/groups/{groupId}/members",
2225
+ "method": "GET",
2226
+ "parameters": [
2227
+ {
2228
+ "name": "connectionId",
2229
+ "in": "path",
2230
+ "required": true,
2231
+ "type": "string"
2232
+ },
2233
+ {
2234
+ "name": "$top",
2235
+ "in": "query",
2236
+ "required": false,
2237
+ "type": "integer"
2238
+ }
2239
+ ]
2240
+ },
2241
+ "OnGroupMembershipChange": {
2242
+ "path": "/{connectionId}/trigger/v1.0/groups/delta",
2243
+ "method": "GET",
2244
+ "parameters": [
2245
+ {
2246
+ "name": "connectionId",
2247
+ "in": "path",
2248
+ "required": true,
2249
+ "type": "string"
2250
+ },
2251
+ {
2252
+ "name": "$select",
2253
+ "in": "query",
2254
+ "required": false,
2255
+ "type": "string",
2256
+ "default": "members"
2257
+ }
2258
+ ]
2259
+ },
2260
+ "AddMemberToGroup": {
2261
+ "path": "/{connectionId}/v1.0/groups/{groupId}/members/$ref",
2262
+ "method": "POST",
2263
+ "parameters": [
2264
+ {
2265
+ "name": "connectionId",
2266
+ "in": "path",
2267
+ "required": true,
2268
+ "type": "string"
2269
+ },
2270
+ {
2271
+ "name": "userUpn",
2272
+ "in": "query",
2273
+ "required": true,
2274
+ "type": "string"
2275
+ }
2276
+ ]
2277
+ },
2278
+ "ListOwnedGroups": {
2279
+ "path": "/{connectionId}/v1.0/me/memberOf/$/microsoft.graph.group",
2280
+ "method": "GET",
2281
+ "parameters": [
2282
+ {
2283
+ "name": "connectionId",
2284
+ "in": "path",
2285
+ "required": true,
2286
+ "type": "string"
2287
+ }
2288
+ ]
2289
+ },
2290
+ "ListOwnedGroups_V2": {
2291
+ "path": "/{connectionId}/v1.0/me/ownedObjects/$/microsoft.graph.group",
2292
+ "method": "GET",
2293
+ "parameters": [
2294
+ {
2295
+ "name": "connectionId",
2296
+ "in": "path",
2297
+ "required": true,
2298
+ "type": "string"
2299
+ }
2300
+ ]
2301
+ },
2302
+ "ListOwnedGroups_V3": {
2303
+ "path": "/{connectionId}/v2/v1.0/me/memberOf/$/microsoft.graph.group",
2304
+ "method": "GET",
2305
+ "parameters": [
2306
+ {
2307
+ "name": "connectionId",
2308
+ "in": "path",
2309
+ "required": true,
2310
+ "type": "string"
2311
+ }
2312
+ ]
2313
+ },
2314
+ "ListGroups": {
2315
+ "path": "/{connectionId}/v1.0/groups",
2316
+ "method": "GET",
2317
+ "parameters": [
2318
+ {
2319
+ "name": "connectionId",
2320
+ "in": "path",
2321
+ "required": true,
2322
+ "type": "string"
2323
+ },
2324
+ {
2325
+ "name": "$filter",
2326
+ "in": "query",
2327
+ "required": false,
2328
+ "type": "string"
2329
+ },
2330
+ {
2331
+ "name": "$top",
2332
+ "in": "query",
2333
+ "required": false,
2334
+ "type": "integer"
2335
+ },
2336
+ {
2337
+ "name": "$skiptoken",
2338
+ "in": "query",
2339
+ "required": false,
2340
+ "type": "string"
2341
+ }
2342
+ ]
2343
+ },
2344
+ "CreateCalendarEvent": {
2345
+ "path": "/{connectionId}/v1.0/groups/{groupId}/events",
2346
+ "method": "POST",
2347
+ "parameters": [
2348
+ {
2349
+ "name": "connectionId",
2350
+ "in": "path",
2351
+ "required": true,
2352
+ "type": "string"
2353
+ },
2354
+ {
2355
+ "name": "body",
2356
+ "in": "body",
2357
+ "required": true,
2358
+ "type": "object"
2359
+ }
2360
+ ]
2361
+ },
2362
+ "CreateCalendarEventV2": {
2363
+ "path": "/{connectionId}/v2/v1.0/groups/{groupId}/events",
2364
+ "method": "POST",
2365
+ "parameters": [
2366
+ {
2367
+ "name": "connectionId",
2368
+ "in": "path",
2369
+ "required": true,
2370
+ "type": "string"
2371
+ },
2372
+ {
2373
+ "name": "body",
2374
+ "in": "body",
2375
+ "required": true,
2376
+ "type": "object"
2377
+ }
2378
+ ]
2379
+ },
2380
+ "CalendarDeleteItem_V2": {
2381
+ "path": "/{connectionId}/v1.0/groups/{groupId}/events/{event}",
2382
+ "method": "DELETE",
2383
+ "parameters": [
2384
+ {
2385
+ "name": "connectionId",
2386
+ "in": "path",
2387
+ "required": true,
2388
+ "type": "string"
2389
+ },
2390
+ {
2391
+ "name": "event",
2392
+ "in": "path",
2393
+ "required": true,
2394
+ "type": "string"
2395
+ }
2396
+ ]
2397
+ },
2398
+ "UpdateCalendarEvent": {
2399
+ "path": "/{connectionId}/v1.0/groups/{groupId}/events/{event}",
2400
+ "method": "PATCH",
2401
+ "parameters": [
2402
+ {
2403
+ "name": "connectionId",
2404
+ "in": "path",
2405
+ "required": true,
2406
+ "type": "string"
2407
+ },
2408
+ {
2409
+ "name": "event",
2410
+ "in": "path",
2411
+ "required": true,
2412
+ "type": "string"
2413
+ },
2414
+ {
2415
+ "name": "body",
2416
+ "in": "body",
2417
+ "required": true,
2418
+ "type": "object"
2419
+ }
2420
+ ]
2421
+ },
2422
+ "RemoveMemberFromGroup": {
2423
+ "path": "/{connectionId}/v1.0/groups/{groupId}/members/memberId/$ref",
2424
+ "method": "DELETE",
2425
+ "parameters": [
2426
+ {
2427
+ "name": "connectionId",
2428
+ "in": "path",
2429
+ "required": true,
2430
+ "type": "string"
2431
+ },
2432
+ {
2433
+ "name": "userUpn",
2434
+ "in": "query",
2435
+ "required": true,
2436
+ "type": "string"
2437
+ }
2438
+ ]
2439
+ },
2440
+ "OnNewEvent": {
2441
+ "path": "/{connectionId}/trigger/v1.0/groups/{groupId}/events",
2442
+ "method": "GET",
2443
+ "parameters": [
2444
+ {
2445
+ "name": "connectionId",
2446
+ "in": "path",
2447
+ "required": true,
2448
+ "type": "string"
2449
+ }
2450
+ ]
2451
+ },
2452
+ "HttpRequestV2": {
2453
+ "path": "/{connectionId}/v2/httprequest",
2454
+ "method": "POST",
2455
+ "parameters": [
2456
+ {
2457
+ "name": "connectionId",
2458
+ "in": "path",
2459
+ "required": true,
2460
+ "type": "string"
2461
+ },
2462
+ {
2463
+ "name": "Uri",
2464
+ "in": "header",
2465
+ "required": true,
2466
+ "type": "string"
2467
+ },
2468
+ {
2469
+ "name": "Method",
2470
+ "in": "header",
2471
+ "required": true,
2472
+ "type": "string",
2473
+ "default": "GET"
2474
+ },
2475
+ {
2476
+ "name": "Body",
2477
+ "in": "body",
2478
+ "required": false,
2479
+ "type": "object"
2480
+ },
2481
+ {
2482
+ "name": "ContentType",
2483
+ "in": "header",
2484
+ "required": false,
2485
+ "type": "string",
2486
+ "default": "application/json"
2487
+ },
2488
+ {
2489
+ "name": "CustomHeader1",
2490
+ "in": "header",
2491
+ "required": false,
2492
+ "type": "string"
2493
+ },
2494
+ {
2495
+ "name": "CustomHeader2",
2496
+ "in": "header",
2497
+ "required": false,
2498
+ "type": "string"
2499
+ },
2500
+ {
2501
+ "name": "CustomHeader3",
2502
+ "in": "header",
2503
+ "required": false,
2504
+ "type": "string"
2505
+ },
2506
+ {
2507
+ "name": "CustomHeader4",
2508
+ "in": "header",
2509
+ "required": false,
2510
+ "type": "string"
2511
+ },
2512
+ {
2513
+ "name": "CustomHeader5",
2514
+ "in": "header",
2515
+ "required": false,
2516
+ "type": "string"
2517
+ }
2518
+ ]
2519
+ },
2520
+ "HttpRequest": {
2521
+ "path": "/{connectionId}/httprequest",
2522
+ "method": "POST",
2523
+ "parameters": [
2524
+ {
2525
+ "name": "connectionId",
2526
+ "in": "path",
2527
+ "required": true,
2528
+ "type": "string"
2529
+ },
2530
+ {
2531
+ "name": "Uri",
2532
+ "in": "header",
2533
+ "required": true,
2534
+ "type": "string"
2535
+ },
2536
+ {
2537
+ "name": "Method",
2538
+ "in": "header",
2539
+ "required": true,
2540
+ "type": "string",
2541
+ "default": "GET"
2542
+ },
2543
+ {
2544
+ "name": "Body",
2545
+ "in": "body",
2546
+ "required": false,
2547
+ "type": "object"
2548
+ },
2549
+ {
2550
+ "name": "ContentType",
2551
+ "in": "header",
2552
+ "required": false,
2553
+ "type": "string",
2554
+ "default": "application/json"
2555
+ },
2556
+ {
2557
+ "name": "CustomHeader1",
2558
+ "in": "header",
2559
+ "required": false,
2560
+ "type": "string"
2561
+ },
2562
+ {
2563
+ "name": "CustomHeader2",
2564
+ "in": "header",
2565
+ "required": false,
2566
+ "type": "string"
2567
+ },
2568
+ {
2569
+ "name": "CustomHeader3",
2570
+ "in": "header",
2571
+ "required": false,
2572
+ "type": "string"
2573
+ },
2574
+ {
2575
+ "name": "CustomHeader4",
2576
+ "in": "header",
2577
+ "required": false,
2578
+ "type": "string"
2579
+ },
2580
+ {
2581
+ "name": "CustomHeader5",
2582
+ "in": "header",
2583
+ "required": false,
2584
+ "type": "string"
2585
+ }
2586
+ ]
2587
+ },
2588
+ "ListDeletedGroups": {
2589
+ "path": "/{connectionId}/v1.0/directory/deletedItems/microsoft.graph.group",
2590
+ "method": "GET",
2591
+ "parameters": [
2592
+ {
2593
+ "name": "connectionId",
2594
+ "in": "path",
2595
+ "required": true,
2596
+ "type": "string"
2597
+ }
2598
+ ]
2599
+ },
2600
+ "RestoreDeletedGroup": {
2601
+ "path": "/{connectionId}/v1.0/directory/deletedItems/{groupId}/restore",
2602
+ "method": "POST",
2603
+ "parameters": [
2604
+ {
2605
+ "name": "connectionId",
2606
+ "in": "path",
2607
+ "required": true,
2608
+ "type": "string"
2609
+ }
2610
+ ]
2611
+ },
2612
+ "ListDeletedGroupsByOwner": {
2613
+ "path": "/{connectionId}/v1.0/directory/deletedItems/getUserOwnedObjects",
2614
+ "method": "POST",
2615
+ "parameters": [
2616
+ {
2617
+ "name": "connectionId",
2618
+ "in": "path",
2619
+ "required": true,
2620
+ "type": "string"
2621
+ },
2622
+ {
2623
+ "name": "userId",
2624
+ "in": "header",
2625
+ "required": true,
2626
+ "type": "string"
2627
+ }
2628
+ ]
2629
+ }
2630
+ }
2631
+ }
2632
+ };
204
2633
 
205
- DATA_SOURCE_GROUPS_CANDIDATES.forEach(function(sDataSourceName) {
206
- dataSourcesInfo[sDataSourceName] = {
207
- tableId: "",
208
- version: "",
209
- primaryKey: "",
210
- dataSourceType: "Connector",
211
- apis: GROUPS_APIS,
212
- };
213
- });
2634
+ const client = getClient(dataSourcesInfo);
214
2635
 
215
- return getClient(dataSourcesInfo);
2636
+ async function executeConnectorOperation(operationName, parameters) {
2637
+ const payload = {
2638
+ connectorOperation: {
2639
+ tableName: DATA_SOURCE_NAME,
2640
+ operationName
2641
+ }
2642
+ };
2643
+
2644
+ if (parameters && Object.keys(parameters).length > 0) {
2645
+ payload.connectorOperation.parameters = parameters;
2646
+ }
2647
+
2648
+ const result = await client.executeAsync(payload);
2649
+ return unwrapResult(result);
216
2650
  }
217
2651
 
218
2652
  function isGroupsObject(oValue) {
@@ -222,8 +2656,11 @@ function isGroupsObject(oValue) {
222
2656
  function pickGroupsValue() {
223
2657
  for (let iIndex = 0; iIndex < arguments.length; iIndex += 1) {
224
2658
  const oValue = arguments[iIndex];
225
- if (oValue !== undefined && oValue !== null) return oValue;
2659
+ if (oValue !== undefined && oValue !== null) {
2660
+ return oValue;
2661
+ }
226
2662
  }
2663
+
227
2664
  return undefined;
228
2665
  }
229
2666
 
@@ -233,25 +2670,18 @@ function setGroupsIfDefined(oTarget, sKey, oValue) {
233
2670
  }
234
2671
  }
235
2672
 
236
- function stringifyGroupsError(oError) {
237
- if (!oError) return "Unknown error";
238
- if (typeof oError === "string") return oError;
239
- if (typeof oError.message === "string" && oError.message) return oError.message;
240
-
241
- try {
242
- return JSON.stringify(oError);
243
- } catch (oErr) {
244
- return String(oError);
2673
+ function normalizeGroupsSelect(oValue) {
2674
+ if (Array.isArray(oValue)) {
2675
+ return oValue.join(",");
245
2676
  }
246
- }
247
2677
 
248
- function normalizeGroupsSelect(oValue) {
249
- if (Array.isArray(oValue)) return oValue.join(",");
250
2678
  return oValue;
251
2679
  }
252
2680
 
253
2681
  function extractGroupsSkipToken(sNextLink) {
254
- if (!sNextLink || typeof sNextLink !== "string") return undefined;
2682
+ if (!sNextLink || typeof sNextLink !== "string") {
2683
+ return undefined;
2684
+ }
255
2685
 
256
2686
  try {
257
2687
  const oUrl = new URL(sNextLink);
@@ -267,7 +2697,9 @@ function extractGroupsSkipToken(sNextLink) {
267
2697
  }
268
2698
 
269
2699
  function getGroupsHeaderValue(oHeaders, sName) {
270
- if (!isGroupsObject(oHeaders)) return undefined;
2700
+ if (!isGroupsObject(oHeaders)) {
2701
+ return undefined;
2702
+ }
271
2703
 
272
2704
  const sMatch = String(sName).toLowerCase();
273
2705
  const aEntries = Object.entries(oHeaders);
@@ -284,15 +2716,25 @@ function getGroupsHeaderValue(oHeaders, sName) {
284
2716
  function normalizeGroupsCustomHeaders(oHeaders, aCustomHeaders) {
285
2717
  const aResolved = Array.isArray(aCustomHeaders) ? aCustomHeaders.filter((oValue) => oValue != null) : [];
286
2718
 
287
- if (!isGroupsObject(oHeaders)) return aResolved.slice(0, 5);
2719
+ if (!isGroupsObject(oHeaders)) {
2720
+ return aResolved.slice(0, 5);
2721
+ }
288
2722
 
289
2723
  const aEntries = Object.entries(oHeaders);
290
2724
  for (let iIndex = 0; iIndex < aEntries.length; iIndex += 1) {
291
2725
  const [sHeaderName, oValue] = aEntries[iIndex];
292
- if (oValue === undefined || oValue === null) continue;
293
- if (String(sHeaderName).toLowerCase() === "content-type") continue;
2726
+ if (oValue === undefined || oValue === null) {
2727
+ continue;
2728
+ }
2729
+
2730
+ if (String(sHeaderName).toLowerCase() === "content-type") {
2731
+ continue;
2732
+ }
2733
+
294
2734
  aResolved.push(String(sHeaderName) + ": " + String(oValue));
295
- if (aResolved.length >= 5) break;
2735
+ if (aResolved.length >= 5) {
2736
+ break;
2737
+ }
296
2738
  }
297
2739
 
298
2740
  return aResolved.slice(0, 5);
@@ -304,7 +2746,7 @@ function normalizeGroupsStartEnd(oSource, sKey) {
304
2746
  if (isGroupsObject(oValue)) {
305
2747
  return {
306
2748
  dateTime: pickGroupsValue(oValue.dateTime, oValue.DateTime),
307
- timeZone: pickGroupsValue(oValue.timeZone, oValue.TimeZone, oSource.timeZone, oSource.TimeZone, oSource.timezone),
2749
+ timeZone: pickGroupsValue(oValue.timeZone, oValue.TimeZone, oSource.timeZone, oSource.TimeZone, oSource.timezone)
308
2750
  };
309
2751
  }
310
2752
 
@@ -316,11 +2758,13 @@ function normalizeGroupsStartEnd(oSource, sKey) {
316
2758
  oSource[sKey.charAt(0).toUpperCase() + sKey.slice(1) + "At"]
317
2759
  );
318
2760
 
319
- if (sDateTime === undefined || sDateTime === null) return undefined;
2761
+ if (sDateTime === undefined || sDateTime === null) {
2762
+ return undefined;
2763
+ }
320
2764
 
321
2765
  return {
322
2766
  dateTime: sDateTime,
323
- timeZone: pickGroupsValue(oSource.timeZone, oSource.TimeZone, oSource.timezone),
2767
+ timeZone: pickGroupsValue(oSource.timeZone, oSource.TimeZone, oSource.timezone)
324
2768
  };
325
2769
  }
326
2770
 
@@ -335,11 +2779,13 @@ function normalizeGroupsEventBody(oSource) {
335
2779
  }
336
2780
 
337
2781
  const sContent = pickGroupsValue(oSource.bodyContent, oSource.description, oSource.content);
338
- if (sContent === undefined || sContent === null) return undefined;
2782
+ if (sContent === undefined || sContent === null) {
2783
+ return undefined;
2784
+ }
339
2785
 
340
2786
  return {
341
2787
  content: sContent,
342
- contentType: pickGroupsValue(oSource.contentType, oSource.ContentType, oSource.isHtml === false ? "Text" : "Html"),
2788
+ contentType: pickGroupsValue(oSource.contentType, oSource.ContentType, oSource.isHtml === false ? "Text" : "Html")
343
2789
  };
344
2790
  }
345
2791
 
@@ -360,8 +2806,8 @@ function normalizeGroupsEventPayload(oOptions) {
360
2806
  const oSource = isGroupsObject(oOptions && oOptions.body) && pickGroupsValue(oOptions.body.subject, oOptions.body.Subject, oOptions.body.start, oOptions.body.Start)
361
2807
  ? oOptions.body
362
2808
  : (isGroupsObject(oOptions) ? oOptions : {});
363
-
364
2809
  const oPayload = {};
2810
+
365
2811
  setGroupsIfDefined(oPayload, "subject", pickGroupsValue(oSource.subject, oSource.Subject, oSource.title));
366
2812
  setGroupsIfDefined(oPayload, "start", normalizeGroupsStartEnd(oSource, "start"));
367
2813
  setGroupsIfDefined(oPayload, "end", normalizeGroupsStartEnd(oSource, "end"));
@@ -373,61 +2819,18 @@ function normalizeGroupsEventPayload(oOptions) {
373
2819
  setGroupsIfDefined(oPayload, "reminderMinutesBeforeStart", pickGroupsValue(oSource.reminderMinutesBeforeStart, oSource.ReminderMinutesBeforeStart, oSource.reminderMinutes, oSource.reminder));
374
2820
  setGroupsIfDefined(oPayload, "showAs", pickGroupsValue(oSource.showAs, oSource.ShowAs));
375
2821
  setGroupsIfDefined(oPayload, "responseRequested", pickGroupsValue(oSource.responseRequested, oSource.ResponseRequested));
376
- return oPayload;
377
- }
378
-
379
- // ── Internal: execute a connector operation ────────────────────
380
- async function execGroupsOp(operationName, parameters) {
381
- if (!Object.prototype.hasOwnProperty.call(GROUPS_APIS, operationName)) {
382
- throw new Error("Office 365 Groups operation metadata is not registered for: " + operationName);
383
- }
384
2822
 
385
- const client = await initGroupsClient();
386
- const aErrors = [];
387
-
388
- for (let iIndex = 0; iIndex < DATA_SOURCE_GROUPS_CANDIDATES.length; iIndex += 1) {
389
- const sDataSourceName = DATA_SOURCE_GROUPS_CANDIDATES[iIndex];
390
-
391
- try {
392
- const result = await client.executeAsync({
393
- connectorOperation: {
394
- tableName: sDataSourceName,
395
- operationName,
396
- parameters,
397
- },
398
- });
399
-
400
- return unwrapResult(result);
401
- } catch (oErr) {
402
- const sMessage = stringifyGroupsError(oErr);
403
- aErrors.push(sDataSourceName + ": " + sMessage);
404
-
405
- if (sMessage.indexOf("Connection reference not found") === -1) {
406
- throw oErr;
407
- }
408
- }
409
- }
410
-
411
- throw new Error("No Office 365 Groups connection reference matched. Tried: " + aErrors.join(" || "));
2823
+ return oPayload;
412
2824
  }
413
2825
 
414
- // ═══════════════════════════════════════════════════════════════
415
- // GENERIC
416
- // ═══════════════════════════════════════════════════════════════
417
-
418
- // ── Call any Office 365 Groups operation by name ───────────────
419
- export async function callGroupsOperation(operationName, parameters = {}) {
420
- return _dbgWrap('callGroupsOperation', [operationName, parameters], async function() {
421
- return execGroupsOp(operationName, parameters);
422
- });
423
- }
2826
+ const callGroupsOperation = async (operationName, parameters = {}) => _dbgWrap("callGroupsOperation", [operationName, parameters], async function() {
2827
+ return executeConnectorOperation(operationName, parameters);
2828
+ });
424
2829
 
425
- // ── Open HTTP Request ──────────────────────────────────────────
426
- export async function openGroupsHttpRequest({ method = "GET", uri, headers, body, contentType, customHeaders, version, useV2, operationName } = {}) {
427
- return _dbgWrap('openGroupsHttpRequest', [{ method, uri, headers, body, contentType, customHeaders, version, useV2, operationName }], async function() {
2830
+ const openGroupsHttpRequest = async ({ method = "GET", uri, headers, body, contentType, customHeaders, version, useV2, operationName } = {}) => _dbgWrap("openGroupsHttpRequest", [{ method, uri, headers, body, contentType, customHeaders, version, useV2, operationName }], async function() {
428
2831
  const aHeaders = normalizeGroupsCustomHeaders(headers, customHeaders);
429
2832
  const sOperationName = operationName || (pickGroupsValue(version, useV2 ? 2 : undefined) === 2 ? "HttpRequestV2" : "HttpRequest");
430
- return execGroupsOp(sOperationName, {
2833
+ return executeConnectorOperation(sOperationName, {
431
2834
  Uri: uri,
432
2835
  Method: method,
433
2836
  Body: body,
@@ -436,207 +2839,367 @@ export async function openGroupsHttpRequest({ method = "GET", uri, headers, body
436
2839
  CustomHeader2: aHeaders[1],
437
2840
  CustomHeader3: aHeaders[2],
438
2841
  CustomHeader4: aHeaders[3],
439
- CustomHeader5: aHeaders[4],
2842
+ CustomHeader5: aHeaders[4]
440
2843
  });
441
- });
442
- }
443
-
444
- // ═══════════════════════════════════════════════════════════════
445
- // GROUPS
446
- // ═══════════════════════════════════════════════════════════════
447
-
448
- // ── List My Groups ─────────────────────────────────────────────
449
- export async function listMyGroups(oOptions = {}) {
450
- return _dbgWrap('listMyGroups', [oOptions], async function() {
451
- if (!isGroupsObject(oOptions)) {
452
- oOptions = {};
453
- }
2844
+ });
454
2845
 
2846
+ const listMyGroups = async (oOptions = {}) => _dbgWrap("listMyGroups", [oOptions], async function() {
2847
+ oOptions = isGroupsObject(oOptions) ? oOptions : {};
455
2848
  const iVersion = pickGroupsValue(oOptions.version, oOptions.v, 1);
456
2849
  const sOperationName = iVersion === 3 ? "ListOwnedGroups_V3" : (iVersion === 2 ? "ListOwnedGroups_V2" : "ListOwnedGroups");
457
- const params = {};
458
- setGroupsIfDefined(params, "extractSensitivityLabel", oOptions.extractSensitivityLabel);
459
- setGroupsIfDefined(params, "fetchSensitivityLabelMetadata", oOptions.fetchSensitivityLabelMetadata);
460
- return execGroupsOp(sOperationName, params);
461
- });
462
- }
2850
+ const oParameters = {};
2851
+ setGroupsIfDefined(oParameters, "extractSensitivityLabel", oOptions.extractSensitivityLabel);
2852
+ setGroupsIfDefined(oParameters, "fetchSensitivityLabelMetadata", oOptions.fetchSensitivityLabelMetadata);
2853
+ return executeConnectorOperation(sOperationName, oParameters);
2854
+ });
463
2855
 
464
- // ── List Members of a Group ────────────────────────────────────
465
- export async function listGroupMembers(groupId, oOptions) {
466
- return _dbgWrap('listGroupMembers', [groupId, oOptions], async function() {
2856
+ const createGroupEvent = async (groupId, oBodyOrOptions) => _dbgWrap("createGroupEvent", [groupId, oBodyOrOptions], async function() {
2857
+ let oOptions = isGroupsObject(oBodyOrOptions) ? oBodyOrOptions : {};
467
2858
  if (isGroupsObject(groupId)) {
468
2859
  oOptions = groupId;
469
2860
  groupId = pickGroupsValue(oOptions.groupId, oOptions.id);
470
2861
  }
471
2862
 
472
- oOptions = isGroupsObject(oOptions) ? oOptions : {};
473
- const params = { groupId };
474
- setGroupsIfDefined(params, "$top", pickGroupsValue(oOptions.top, oOptions.$top));
475
- return execGroupsOp("ListGroupMembers", params);
2863
+ const iVersion = pickGroupsValue(oOptions.version, oOptions.v, 2);
2864
+ return executeConnectorOperation(iVersion === 1 ? "CreateCalendarEvent" : "CreateCalendarEventV2", {
2865
+ groupId,
2866
+ body: normalizeGroupsEventPayload(oOptions)
476
2867
  });
477
- }
2868
+ });
478
2869
 
479
- export async function listOwnedGroups(oOptions = {}) {
480
- return _dbgWrap('listOwnedGroups', [oOptions], async function() {
481
- return listMyGroups(oOptions);
2870
+ const updateGroupEvent = async (eventId, oBodyOrOptions, groupId) => _dbgWrap("updateGroupEvent", [eventId, oBodyOrOptions, groupId], async function() {
2871
+ let oOptions = isGroupsObject(oBodyOrOptions) ? oBodyOrOptions : {};
2872
+ if (isGroupsObject(eventId)) {
2873
+ oOptions = eventId;
2874
+ eventId = pickGroupsValue(oOptions.eventId, oOptions.id, oOptions.event);
2875
+ groupId = pickGroupsValue(oOptions.groupId, oOptions.group, oOptions.ownerGroupId);
2876
+ }
2877
+
2878
+ return executeConnectorOperation("UpdateCalendarEvent", {
2879
+ event: eventId,
2880
+ groupId: pickGroupsValue(oOptions.groupId, groupId),
2881
+ body: normalizeGroupsEventPayload(oOptions)
482
2882
  });
483
- }
2883
+ });
484
2884
 
485
- export async function listGroups(oOptions = {}) {
486
- return _dbgWrap('listGroups', [oOptions], async function() {
487
- oOptions = isGroupsObject(oOptions) ? oOptions : {};
488
- const params = {};
489
- setGroupsIfDefined(params, "extractSensitivityLabel", oOptions.extractSensitivityLabel);
490
- setGroupsIfDefined(params, "fetchSensitivityLabelMetadata", oOptions.fetchSensitivityLabelMetadata);
491
- setGroupsIfDefined(params, "$filter", pickGroupsValue(oOptions.filter, oOptions.$filter));
492
- setGroupsIfDefined(params, "$top", pickGroupsValue(oOptions.top, oOptions.$top));
2885
+ const deleteGroupEvent = async (eventId, groupId) => _dbgWrap("deleteGroupEvent", [eventId, groupId], async function() {
2886
+ if (isGroupsObject(eventId)) {
2887
+ groupId = pickGroupsValue(eventId.groupId, eventId.group, eventId.ownerGroupId);
2888
+ eventId = pickGroupsValue(eventId.eventId, eventId.id, eventId.event);
2889
+ }
493
2890
 
494
- const oSkipToken = pickGroupsValue(
495
- oOptions.skipToken,
496
- oOptions.$skipToken,
497
- oOptions.$skiptoken,
498
- extractGroupsSkipToken(oOptions.nextLink),
499
- oOptions.skip
500
- );
2891
+ return executeConnectorOperation("CalendarDeleteItem_V2", {
2892
+ event: eventId,
2893
+ groupId
2894
+ });
2895
+ });
501
2896
 
502
- if (oSkipToken !== undefined && oSkipToken !== null) {
503
- params.$skiptoken = String(oSkipToken);
2897
+ const onNewGroupEvent = async (groupId) => _dbgWrap("onNewGroupEvent", [groupId], async function() {
2898
+ if (isGroupsObject(groupId)) {
2899
+ groupId = pickGroupsValue(groupId.groupId, groupId.id);
504
2900
  }
505
2901
 
506
- return execGroupsOp("ListGroups", params);
2902
+ return executeConnectorOperation("OnNewEvent", {
2903
+ groupId
507
2904
  });
508
- }
509
-
510
- export async function onGroupMembershipChange(groupId, oOptions = {}) {
511
- return _dbgWrap('onGroupMembershipChange', [groupId, oOptions], async function() {
2905
+ });
2906
+
2907
+ /**
2908
+ * List group members
2909
+ * This operation returns a list of all members in the given group and their details such as name, title, email, etc. You can query up to 1000 items using Top parameter. In case you need to retrieve more than 1000 values please turn on Settings->Pagination feature and provide Threshold limit.
2910
+ */
2911
+ const listGroupMembers = async (groupId, top) => _dbgWrap("ListGroupMembers", [groupId, top], async function() {
2912
+ let oOptions = isGroupsObject(top) ? top : {};
512
2913
  if (isGroupsObject(groupId)) {
513
2914
  oOptions = groupId;
514
2915
  groupId = pickGroupsValue(oOptions.groupId, oOptions.id);
515
2916
  }
516
2917
 
517
- oOptions = isGroupsObject(oOptions) ? oOptions : {};
518
- return execGroupsOp("OnGroupMembershipChange", {
519
- groupId,
520
- $select: normalizeGroupsSelect(pickGroupsValue(oOptions.select, oOptions.$select)),
521
- });
522
- });
523
- }
524
-
525
- export async function addMemberToGroup(userUpn, groupId) {
526
- return _dbgWrap('addMemberToGroup', [userUpn, groupId], async function() {
527
- if (isGroupsObject(userUpn)) {
528
- groupId = pickGroupsValue(userUpn.groupId, userUpn.id);
529
- userUpn = pickGroupsValue(userUpn.userUpn, userUpn.upn, userUpn.userPrincipalName, userUpn.email, userUpn.mail);
2918
+ const parameters = {
2919
+ groupId
2920
+ };
2921
+ setGroupsIfDefined(parameters, "$top", pickGroupsValue(oOptions.top, oOptions.$top, top));
2922
+ return executeConnectorOperation("ListGroupMembers", parameters);
2923
+ });
2924
+
2925
+ /**
2926
+ * When a group member is added or removed
2927
+ * This operation triggers when a member is added to or removed from the given group.
2928
+ */
2929
+ const onGroupMembershipChange = async (groupId, select) => _dbgWrap("OnGroupMembershipChange", [groupId, select], async function() {
2930
+ let oOptions = isGroupsObject(select) ? select : {};
2931
+ if (isGroupsObject(groupId)) {
2932
+ oOptions = groupId;
2933
+ groupId = pickGroupsValue(oOptions.groupId, oOptions.id);
530
2934
  }
531
2935
 
532
- return execGroupsOp("AddMemberToGroup", {
533
- userUpn,
534
- groupId,
535
- });
536
- });
537
- }
538
-
539
- export async function removeMemberFromGroup(userUpn, groupId) {
540
- return _dbgWrap('removeMemberFromGroup', [userUpn, groupId], async function() {
2936
+ const parameters = {
2937
+ groupId
2938
+ };
2939
+ setGroupsIfDefined(parameters, "$select", normalizeGroupsSelect(pickGroupsValue(oOptions.select, oOptions.$select, select)));
2940
+ return executeConnectorOperation("OnGroupMembershipChange", parameters);
2941
+ });
2942
+
2943
+ /**
2944
+ * Add member to group
2945
+ * This operation is used to add a member to an O365 group, using a UPN.
2946
+ */
2947
+ const addMemberToGroup = async (userUpn, groupId) => _dbgWrap("AddMemberToGroup", [userUpn, groupId], async function() {
541
2948
  if (isGroupsObject(userUpn)) {
542
2949
  groupId = pickGroupsValue(userUpn.groupId, userUpn.id);
543
2950
  userUpn = pickGroupsValue(userUpn.userUpn, userUpn.upn, userUpn.userPrincipalName, userUpn.email, userUpn.mail);
544
2951
  }
545
2952
 
546
- return execGroupsOp("RemoveMemberFromGroup", {
2953
+ return executeConnectorOperation("AddMemberToGroup", {
547
2954
  userUpn,
548
- groupId,
549
- });
2955
+ groupId
550
2956
  });
551
- }
2957
+ });
552
2958
 
553
- export async function createGroupEvent(groupId, oBodyOrOptions) {
554
- return _dbgWrap('createGroupEvent', [groupId, oBodyOrOptions], async function() {
555
- let oOptions = isGroupsObject(oBodyOrOptions) ? oBodyOrOptions : {};
556
-
557
- if (isGroupsObject(groupId)) {
558
- oOptions = groupId;
559
- groupId = pickGroupsValue(oOptions.groupId, oOptions.id);
2959
+ /**
2960
+ * List my owned groups
2961
+ * This operation returns a list of all groups that you own.
2962
+ */
2963
+ const listOwnedGroups = async (oOptions) => _dbgWrap("ListOwnedGroups", [oOptions], async function() {
2964
+ return listMyGroups(oOptions);
2965
+ });
2966
+
2967
+ /**
2968
+ * List my owned groups (V2)
2969
+ * This operation returns a list of all groups that you own.
2970
+ */
2971
+ const listOwnedGroups_V2 = async (extractSensitivityLabel, fetchSensitivityLabelMetadata) => _dbgWrap("ListOwnedGroups_V2", [extractSensitivityLabel, fetchSensitivityLabelMetadata], async function() {
2972
+ const parameters = {};
2973
+ if (extractSensitivityLabel !== undefined) parameters["extractSensitivityLabel"] = extractSensitivityLabel;
2974
+ if (fetchSensitivityLabelMetadata !== undefined) parameters["fetchSensitivityLabelMetadata"] = fetchSensitivityLabelMetadata;
2975
+ return executeConnectorOperation("ListOwnedGroups_V2", parameters);
2976
+ });
2977
+
2978
+ /**
2979
+ * List groups that I own and belong to
2980
+ * This operation returns a list of all groups that you own and belong to.
2981
+ */
2982
+ const listOwnedGroups_V3 = async (extractSensitivityLabel, fetchSensitivityLabelMetadata) => _dbgWrap("ListOwnedGroups_V3", [extractSensitivityLabel, fetchSensitivityLabelMetadata], async function() {
2983
+ const parameters = {};
2984
+ if (extractSensitivityLabel !== undefined) parameters["extractSensitivityLabel"] = extractSensitivityLabel;
2985
+ if (fetchSensitivityLabelMetadata !== undefined) parameters["fetchSensitivityLabelMetadata"] = fetchSensitivityLabelMetadata;
2986
+ return executeConnectorOperation("ListOwnedGroups_V3", parameters);
2987
+ });
2988
+
2989
+ /**
2990
+ * List groups
2991
+ * This operation returns a list of all groups in the organization.
2992
+ */
2993
+ const listGroups = async (extractSensitivityLabel, fetchSensitivityLabelMetadata, filter, top, skiptoken) => _dbgWrap("ListGroups", [extractSensitivityLabel, fetchSensitivityLabelMetadata, filter, top, skiptoken], async function() {
2994
+ let oOptions = {};
2995
+ if (isGroupsObject(extractSensitivityLabel)) {
2996
+ oOptions = extractSensitivityLabel;
2997
+ } else {
2998
+ oOptions = {
2999
+ extractSensitivityLabel,
3000
+ fetchSensitivityLabelMetadata,
3001
+ filter,
3002
+ top,
3003
+ skipToken: skiptoken
3004
+ };
560
3005
  }
561
3006
 
562
- const iVersion = pickGroupsValue(oOptions.version, oOptions.v, 2);
563
- return execGroupsOp(iVersion === 1 ? "CreateCalendarEvent" : "CreateCalendarEventV2", {
564
- groupId,
565
- body: normalizeGroupsEventPayload(oOptions),
566
- });
567
- });
568
- }
569
-
570
- export async function updateGroupEvent(sEventId, oBodyOrOptions, sGroupId) {
571
- return _dbgWrap('updateGroupEvent', [sEventId, oBodyOrOptions, sGroupId], async function() {
572
- let oOptions = isGroupsObject(oBodyOrOptions) ? oBodyOrOptions : {};
3007
+ const parameters = {};
3008
+ setGroupsIfDefined(parameters, "extractSensitivityLabel", oOptions.extractSensitivityLabel);
3009
+ setGroupsIfDefined(parameters, "fetchSensitivityLabelMetadata", oOptions.fetchSensitivityLabelMetadata);
3010
+ setGroupsIfDefined(parameters, "$filter", pickGroupsValue(oOptions.filter, oOptions.$filter));
3011
+ setGroupsIfDefined(parameters, "$top", pickGroupsValue(oOptions.top, oOptions.$top));
573
3012
 
574
- if (isGroupsObject(sEventId)) {
575
- oOptions = sEventId;
576
- sEventId = pickGroupsValue(oOptions.eventId, oOptions.id, oOptions.event);
577
- sGroupId = pickGroupsValue(oOptions.groupId, oOptions.group, oOptions.ownerGroupId);
578
- }
579
-
580
- return execGroupsOp("UpdateCalendarEvent", {
581
- event: sEventId,
582
- groupId: pickGroupsValue(oOptions.groupId, sGroupId),
583
- body: normalizeGroupsEventPayload(oOptions),
584
- });
585
- });
586
- }
3013
+ const oSkipToken = pickGroupsValue(
3014
+ oOptions.skipToken,
3015
+ oOptions.$skipToken,
3016
+ oOptions.$skiptoken,
3017
+ extractGroupsSkipToken(oOptions.nextLink),
3018
+ oOptions.skip
3019
+ );
587
3020
 
588
- export async function deleteGroupEvent(sEventId, sGroupId) {
589
- return _dbgWrap('deleteGroupEvent', [sEventId, sGroupId], async function() {
590
- if (isGroupsObject(sEventId)) {
591
- sGroupId = pickGroupsValue(sEventId.groupId, sEventId.group, sEventId.ownerGroupId);
592
- sEventId = pickGroupsValue(sEventId.eventId, sEventId.id, sEventId.event);
3021
+ if (oSkipToken !== undefined && oSkipToken !== null) {
3022
+ parameters.$skiptoken = String(oSkipToken);
593
3023
  }
594
3024
 
595
- return execGroupsOp("CalendarDeleteItem_V2", {
596
- event: sEventId,
597
- groupId: sGroupId,
598
- });
599
- });
600
- }
601
-
602
- export async function onNewGroupEvent(groupId) {
603
- return _dbgWrap('onNewGroupEvent', [groupId], async function() {
604
- if (isGroupsObject(groupId)) {
605
- groupId = pickGroupsValue(groupId.groupId, groupId.id);
3025
+ return executeConnectorOperation("ListGroups", parameters);
3026
+ });
3027
+
3028
+ /**
3029
+ * Create a group event
3030
+ * This operation is used to create a new event in a group calendar.
3031
+ */
3032
+ const createCalendarEvent = async (body, groupId) => _dbgWrap("CreateCalendarEvent", [body, groupId], async function() {
3033
+ const parameters = {};
3034
+ if (body !== undefined) parameters["body"] = body;
3035
+ if (groupId !== undefined) parameters["groupId"] = groupId;
3036
+ return executeConnectorOperation("CreateCalendarEvent", parameters);
3037
+ });
3038
+
3039
+ /**
3040
+ * Create a group event (V2)
3041
+ * This operation is used to create a new event in a group calendar.
3042
+ */
3043
+ const createCalendarEventV2 = async (body, groupId) => _dbgWrap("CreateCalendarEventV2", [body, groupId], async function() {
3044
+ const parameters = {};
3045
+ if (body !== undefined) parameters["body"] = body;
3046
+ if (groupId !== undefined) parameters["groupId"] = groupId;
3047
+ return executeConnectorOperation("CreateCalendarEventV2", parameters);
3048
+ });
3049
+
3050
+ /**
3051
+ * Delete event (V2)
3052
+ * This operation deletes an event in a calendar.
3053
+ */
3054
+ const calendarDeleteItem_V2 = async (event, groupId) => _dbgWrap("CalendarDeleteItem_V2", [event, groupId], async function() {
3055
+ const parameters = {};
3056
+ if (event !== undefined) parameters["event"] = event;
3057
+ if (groupId !== undefined) parameters["groupId"] = groupId;
3058
+ return executeConnectorOperation("CalendarDeleteItem_V2", parameters);
3059
+ });
3060
+
3061
+ /**
3062
+ * Update a group event
3063
+ * This operation is used to update a new event in a group calendar.
3064
+ */
3065
+ const updateCalendarEvent = async (event, body, groupId) => _dbgWrap("UpdateCalendarEvent", [event, body, groupId], async function() {
3066
+ const parameters = {};
3067
+ if (event !== undefined) parameters["event"] = event;
3068
+ if (body !== undefined) parameters["body"] = body;
3069
+ if (groupId !== undefined) parameters["groupId"] = groupId;
3070
+ return executeConnectorOperation("UpdateCalendarEvent", parameters);
3071
+ });
3072
+
3073
+ /**
3074
+ * Remove member from group
3075
+ * This operation is used to remove a member from an O365 group, using a UPN.
3076
+ */
3077
+ const removeMemberFromGroup = async (userUpn, groupId) => _dbgWrap("RemoveMemberFromGroup", [userUpn, groupId], async function() {
3078
+ if (isGroupsObject(userUpn)) {
3079
+ groupId = pickGroupsValue(userUpn.groupId, userUpn.id);
3080
+ userUpn = pickGroupsValue(userUpn.userUpn, userUpn.upn, userUpn.userPrincipalName, userUpn.email, userUpn.mail);
606
3081
  }
607
3082
 
608
- return execGroupsOp("OnNewEvent", {
609
- groupId,
610
- });
611
- });
612
- }
613
-
614
- export async function listDeletedGroups() {
615
- return _dbgWrap('listDeletedGroups', [], async function() {
616
- return execGroupsOp("ListDeletedGroups", {});
3083
+ return executeConnectorOperation("RemoveMemberFromGroup", {
3084
+ userUpn,
3085
+ groupId
617
3086
  });
618
- }
619
-
620
- export async function restoreDeletedGroup(groupId) {
621
- return _dbgWrap('restoreDeletedGroup', [groupId], async function() {
3087
+ });
3088
+
3089
+ /**
3090
+ * When there is a new event
3091
+ * This operation triggers when a new event is added to a group calendar.
3092
+ */
3093
+ const onNewEvent = async (groupId) => _dbgWrap("OnNewEvent", [groupId], async function() {
3094
+ const parameters = {};
3095
+ if (groupId !== undefined) parameters["groupId"] = groupId;
3096
+ return executeConnectorOperation("OnNewEvent", parameters);
3097
+ });
3098
+
3099
+ /**
3100
+ * Send an HTTP request V2
3101
+ * Construct a Microsoft Graph REST API request to invoke. There is one segment that is supported: /groups. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api.
3102
+ */
3103
+ const httpRequestV2 = async (uri, method, body, contentType, customHeader1, customHeader2, customHeader3, customHeader4, customHeader5) => _dbgWrap("HttpRequestV2", [uri, method, body, contentType, customHeader1, customHeader2, customHeader3, customHeader4, customHeader5], async function() {
3104
+ const parameters = {};
3105
+ if (uri !== undefined) parameters["Uri"] = uri;
3106
+ if (method !== undefined) parameters["Method"] = method;
3107
+ if (body !== undefined) parameters["Body"] = body;
3108
+ if (contentType !== undefined) parameters["ContentType"] = contentType;
3109
+ if (customHeader1 !== undefined) parameters["CustomHeader1"] = customHeader1;
3110
+ if (customHeader2 !== undefined) parameters["CustomHeader2"] = customHeader2;
3111
+ if (customHeader3 !== undefined) parameters["CustomHeader3"] = customHeader3;
3112
+ if (customHeader4 !== undefined) parameters["CustomHeader4"] = customHeader4;
3113
+ if (customHeader5 !== undefined) parameters["CustomHeader5"] = customHeader5;
3114
+ return executeConnectorOperation("HttpRequestV2", parameters);
3115
+ });
3116
+
3117
+ /**
3118
+ * Send an HTTP request
3119
+ * Construct a Microsoft Graph REST API request to invoke. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api
3120
+ */
3121
+ const httpRequest = async (uri, method, body, contentType, customHeader1, customHeader2, customHeader3, customHeader4, customHeader5) => _dbgWrap("HttpRequest", [uri, method, body, contentType, customHeader1, customHeader2, customHeader3, customHeader4, customHeader5], async function() {
3122
+ const parameters = {};
3123
+ if (uri !== undefined) parameters["Uri"] = uri;
3124
+ if (method !== undefined) parameters["Method"] = method;
3125
+ if (body !== undefined) parameters["Body"] = body;
3126
+ if (contentType !== undefined) parameters["ContentType"] = contentType;
3127
+ if (customHeader1 !== undefined) parameters["CustomHeader1"] = customHeader1;
3128
+ if (customHeader2 !== undefined) parameters["CustomHeader2"] = customHeader2;
3129
+ if (customHeader3 !== undefined) parameters["CustomHeader3"] = customHeader3;
3130
+ if (customHeader4 !== undefined) parameters["CustomHeader4"] = customHeader4;
3131
+ if (customHeader5 !== undefined) parameters["CustomHeader5"] = customHeader5;
3132
+ return executeConnectorOperation("HttpRequest", parameters);
3133
+ });
3134
+
3135
+ /**
3136
+ * List deleted groups
3137
+ * Lists deleted groups that can be restored.
3138
+ */
3139
+ const listDeletedGroups = async () => _dbgWrap("ListDeletedGroups", [], async function() {
3140
+ return executeConnectorOperation("ListDeletedGroups");
3141
+ });
3142
+
3143
+ /**
3144
+ * Restore a deleted group
3145
+ * Restore a recently deleted group
3146
+ */
3147
+ const restoreDeletedGroup = async (groupId) => _dbgWrap("RestoreDeletedGroup", [groupId], async function() {
622
3148
  if (isGroupsObject(groupId)) {
623
3149
  groupId = pickGroupsValue(groupId.groupId, groupId.id);
624
3150
  }
625
3151
 
626
- return execGroupsOp("RestoreDeletedGroup", {
627
- groupId,
628
- });
3152
+ return executeConnectorOperation("RestoreDeletedGroup", {
3153
+ groupId
629
3154
  });
630
- }
3155
+ });
631
3156
 
632
- export async function listDeletedGroupsByOwner(userId) {
633
- return _dbgWrap('listDeletedGroupsByOwner', [userId], async function() {
3157
+ /**
3158
+ * List deleted groups by owner
3159
+ * List deleted groups that can be restored by owner
3160
+ */
3161
+ const listDeletedGroupsByOwner = async (userId) => _dbgWrap("ListDeletedGroupsByOwner", [userId], async function() {
634
3162
  if (isGroupsObject(userId)) {
635
3163
  userId = pickGroupsValue(userId.userId, userId.id, userId.ownerId);
636
3164
  }
637
3165
 
638
- return execGroupsOp("ListDeletedGroupsByOwner", {
639
- userId,
3166
+ return executeConnectorOperation("ListDeletedGroupsByOwner", {
3167
+ userId
640
3168
  });
641
- });
642
- }
3169
+ });
3170
+
3171
+ const Office365GroupsService = {
3172
+ ListGroupMembers: listGroupMembers,
3173
+ OnGroupMembershipChange: onGroupMembershipChange,
3174
+ AddMemberToGroup: addMemberToGroup,
3175
+ ListOwnedGroups: listOwnedGroups,
3176
+ ListOwnedGroups_V2: listOwnedGroups_V2,
3177
+ ListOwnedGroups_V3: listOwnedGroups_V3,
3178
+ ListGroups: listGroups,
3179
+ CreateCalendarEvent: createCalendarEvent,
3180
+ CreateCalendarEventV2: createCalendarEventV2,
3181
+ CalendarDeleteItem_V2: calendarDeleteItem_V2,
3182
+ UpdateCalendarEvent: updateCalendarEvent,
3183
+ RemoveMemberFromGroup: removeMemberFromGroup,
3184
+ OnNewEvent: onNewEvent,
3185
+ HttpRequestV2: httpRequestV2,
3186
+ HttpRequest: httpRequest,
3187
+ ListDeletedGroups: listDeletedGroups,
3188
+ RestoreDeletedGroup: restoreDeletedGroup,
3189
+ ListDeletedGroupsByOwner: listDeletedGroupsByOwner
3190
+ };
3191
+
3192
+ Object.assign(Office365GroupsService, {
3193
+ callGroupsOperation,
3194
+ openGroupsHttpRequest,
3195
+ listMyGroups,
3196
+ createGroupEvent,
3197
+ updateGroupEvent,
3198
+ deleteGroupEvent,
3199
+ onNewGroupEvent
3200
+ });
3201
+
3202
+ export { listGroupMembers as ListGroupMembers, onGroupMembershipChange as OnGroupMembershipChange, addMemberToGroup as AddMemberToGroup, listOwnedGroups as ListOwnedGroups, listOwnedGroups_V2 as ListOwnedGroups_V2, listOwnedGroups_V3 as ListOwnedGroups_V3, listGroups as ListGroups, createCalendarEvent as CreateCalendarEvent, createCalendarEventV2 as CreateCalendarEventV2, calendarDeleteItem_V2 as CalendarDeleteItem_V2, updateCalendarEvent as UpdateCalendarEvent, removeMemberFromGroup as RemoveMemberFromGroup, onNewEvent as OnNewEvent, httpRequestV2 as HttpRequestV2, httpRequest as HttpRequest, listDeletedGroups as ListDeletedGroups, restoreDeletedGroup as RestoreDeletedGroup, listDeletedGroupsByOwner as ListDeletedGroupsByOwner };
3203
+ export { callGroupsOperation, openGroupsHttpRequest, listMyGroups, listGroupMembers, listOwnedGroups, listGroups, onGroupMembershipChange, addMemberToGroup, removeMemberFromGroup, createGroupEvent, updateGroupEvent, deleteGroupEvent, onNewGroupEvent, listDeletedGroups, restoreDeletedGroup, listDeletedGroupsByOwner };
3204
+ export { Office365GroupsService };
3205
+ export default Office365GroupsService;