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.
- package/AI/skills/autoreview/SKILL.md +69 -0
- package/AI/skills/connections/SKILL.md +4 -4
- package/AI/skills/dataverse/SKILL.md +4 -2
- package/AI/skills/keyvault/SKILL.md +139 -0
- package/AI/skills/office365-groups/SKILL.md +46 -25
- package/AI/skills/office365-outlook/SKILL.md +56 -25
- package/AI/skills/office365-users/SKILL.md +41 -36
- package/AI/skills/sharepoint/SKILL.md +174 -31
- package/AI/skills/start/SKILL.md +1 -0
- package/codeApp/dist/connectors/autoreview.js +1654 -0
- package/codeApp/dist/connectors/office365groups.js +2995 -432
- package/{examples/outlook Demo/.power/schemas/office365/office365.Schema.json → codeApp/dist/connectors/office365outlook.js} +7439 -16
- package/codeApp/dist/connectors/office365users.js +2990 -349
- package/codeApp/dist/connectors/sharepoint.js +529 -308
- package/examples/combined demo/dist/connectors/office365outlook.js +28521 -0
- package/examples/combined demo/dist/connectors/office365users.js +3154 -0
- package/examples/combined demo/dist/index.js +2 -6
- package/examples/combined demo/power.config.json +1 -1
- package/examples/groups Demo/{.power/schemas/office365groups/office365groups.Schema.json → dist/connectors/office365groups.js } +3205 -2204
- package/examples/groups Demo/dist/index.js +1 -5
- package/examples/groups Demo/power.config.json +1 -1
- package/examples/myProfile/dist/connectors/office365users.js +3154 -0
- package/examples/myProfile/dist/index.js +1 -5
- package/examples/myProfile/power.config.json +1 -1
- package/examples/outlook Demo/dist/connectors/office365outlook.js +28521 -0
- package/examples/outlook Demo/dist/index.js +2 -5
- package/examples/outlook Demo/power.config.json +1 -1
- package/examples/sharePoint Demo/dist/connectors/sharepoint.js +687 -0
- package/examples/sharePoint Demo/dist/index.js +86 -127
- package/examples/sharePoint Demo/power.config.json +1 -1
- package/package.json +1 -1
- package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
- package/codeApp/.power/schemas/jira/jira.Schema.json +0 -6903
- package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
- package/codeApp/.power/schemas/office365groups/office365groups.Schema.json +0 -2204
- package/codeApp/.power/schemas/teams/teams.Schema.json +0 -11112
- package/codeApp/dist/connectors/outlook.js +0 -1393
- package/codeApp/src/generated/models/AzureKeyVaultModel.ts +0 -107
- package/codeApp/src/generated/models/JiraModel.ts +0 -501
- package/codeApp/src/generated/models/Office365GroupsModel.ts +0 -363
- package/codeApp/src/generated/models/Office365OutlookModel.ts +0 -2046
- package/codeApp/src/generated/models/Office365UsersModel.ts +0 -254
- package/codeApp/src/generated/services/AzureKeyVaultService.ts +0 -257
- package/codeApp/src/generated/services/JiraService.ts +0 -1124
- package/codeApp/src/generated/services/Office365GroupsService.ts +0 -326
- package/codeApp/src/generated/services/Office365OutlookService.ts +0 -2476
- package/codeApp/src/generated/services/Office365UsersService.ts +0 -358
- package/examples/apps/kanban/dist/dataverse.js +0 -94
- package/examples/apps/kanban/dist/environmentVar.js +0 -55
- package/examples/apps/kanban/dist/index.css +0 -605
- package/examples/apps/kanban/dist/index.html +0 -21
- package/examples/apps/kanban/dist/index.js +0 -860
- package/examples/apps/kanban/dist/office365groups.js +0 -97
- package/examples/apps/kanban/dist/office365users.js +0 -451
- package/examples/apps/kanban/dist/outlook.js +0 -162
- package/examples/apps/kanban/dist/power-apps-data.js +0 -2953
- package/examples/apps/kanban/dist/sharepoint.js +0 -435
- package/examples/apps/kanban/power.config.json +0 -35
- package/examples/apps/kanban/src/generated/index.ts +0 -14
- package/examples/apps/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
- package/examples/apps/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
- package/examples/apps/kanban/src/generated/models/Office365UsersModel.ts +0 -254
- package/examples/apps/kanban/src/generated/services/Office365GroupsService.ts +0 -326
- package/examples/apps/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
- package/examples/apps/kanban/src/generated/services/Office365UsersService.ts +0 -358
- package/examples/apps/planning Poker/additional files/AgilePoker_1_0_0_1.zip +0 -0
- package/examples/apps/planning Poker/additional files/PokerTables_1_0_0_1.zip +0 -0
- package/examples/apps/planning Poker/additional files/customizations (tables).xml +0 -6429
- package/examples/apps/planning Poker/additional files/dataverse-tables.json +0 -165
- package/examples/apps/planning Poker/additional files/readme.md +0 -122
- package/examples/apps/planning Poker/dist/dataverse.js +0 -78
- package/examples/apps/planning Poker/dist/index.html +0 -198
- package/examples/apps/planning Poker/dist/index.js +0 -955
- package/examples/apps/planning Poker/dist/power-apps-data.js +0 -2953
- package/examples/apps/planning Poker/dist/styles.css +0 -815
- package/examples/apps/planning Poker/power.config.json +0 -50
- package/examples/apps/solution explorer/dist/codeapp.js +0 -1098
- package/examples/apps/solution explorer/dist/icon-512.png +0 -0
- package/examples/apps/solution explorer/dist/index.html +0 -80
- package/examples/apps/solution explorer/dist/index.js +0 -735
- package/examples/apps/solution explorer/dist/power-apps-data.js +0 -3007
- package/examples/apps/solution explorer/dist/styles.css +0 -571
- package/examples/apps/solution explorer/power.config.json +0 -151
- package/examples/apps/todo/dist/dataverse.js +0 -64
- package/examples/apps/todo/dist/icon192.png +0 -0
- package/examples/apps/todo/dist/index.html +0 -75
- package/examples/apps/todo/dist/index.js +0 -9
- package/examples/apps/todo/dist/power-apps-data.js +0 -2953
- package/examples/apps/todo/dist/renderer.js +0 -375
- package/examples/apps/todo/dist/styles.css +0 -691
- package/examples/apps/todo/power.config.json +0 -35
- package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
- package/examples/combined demo/.power/schemas/jira/jira.Schema.json +0 -6903
- package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
- package/examples/combined demo/.power/schemas/teams/teams.Schema.json +0 -11112
- package/examples/combined demo/dist/office365users.js +0 -513
- package/examples/combined demo/dist/outlook.js +0 -1393
- package/examples/combined demo/src/generated/index.ts +0 -12
- package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +0 -107
- package/examples/combined demo/src/generated/models/JiraModel.ts +0 -501
- package/examples/combined demo/src/generated/models/Office365GroupsModel.ts +0 -363
- package/examples/combined demo/src/generated/models/Office365OutlookModel.ts +0 -2046
- package/examples/combined demo/src/generated/models/Office365UsersModel.ts +0 -254
- package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +0 -257
- package/examples/combined demo/src/generated/services/JiraService.ts +0 -1124
- package/examples/combined demo/src/generated/services/Office365GroupsService.ts +0 -326
- package/examples/combined demo/src/generated/services/Office365OutlookService.ts +0 -2476
- package/examples/combined demo/src/generated/services/Office365UsersService.ts +0 -358
- package/examples/groups Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -613
- package/examples/groups Demo/dist/office365groups.js +0 -642
- package/examples/groups Demo/src/generated/index.ts +0 -10
- package/examples/groups Demo/src/generated/models/Office365GroupsModel.ts +0 -363
- package/examples/groups Demo/src/generated/services/Office365GroupsService.ts +0 -326
- package/examples/myProfile/dist/office365users.js +0 -517
- package/examples/outlook Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6512
- package/examples/outlook Demo/dist/outlook.js +0 -1393
- package/examples/outlook Demo/src/generated/index.ts +0 -10
- package/examples/outlook Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
- package/examples/outlook Demo/src/generated/services/Office365OutlookService.ts +0 -2476
- package/examples/sharePoint Demo/dist/sharepoint.js +0 -466
- package/examples/sharePoint Demo/src/generated/index.ts +0 -14
- package/examples/sharePoint Demo/src/generated/models/Office365GroupsModel.ts +0 -363
- package/examples/sharePoint Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
- package/examples/sharePoint Demo/src/generated/models/Office365UsersModel.ts +0 -254
- package/examples/sharePoint Demo/src/generated/services/Office365GroupsService.ts +0 -326
- package/examples/sharePoint Demo/src/generated/services/Office365OutlookService.ts +0 -2476
- package/examples/sharePoint Demo/src/generated/services/Office365UsersService.ts +0 -358
- package/readme.md +0 -590
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* This file is autogenerated. Do not edit this file directly.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export interface SensitivityLabelMetadata {
|
|
7
|
-
// SensitivityLabel Id.
|
|
8
|
-
sensitivityLabelId?: string;
|
|
9
|
-
// SensitivityLabel name.
|
|
10
|
-
name?: string;
|
|
11
|
-
// SensitivityLabel displayName info
|
|
12
|
-
displayName?: string;
|
|
13
|
-
// SensitivityLabel details on tooltip.
|
|
14
|
-
tooltip?: string;
|
|
15
|
-
// SensitivityLabel priority.
|
|
16
|
-
priority?: number;
|
|
17
|
-
// SensitivityLabel color.
|
|
18
|
-
color?: string;
|
|
19
|
-
// is SensitivityLabel Encrypted.
|
|
20
|
-
isEncrypted?: boolean;
|
|
21
|
-
// Whether SensitivityLabel is Enabled.
|
|
22
|
-
isEnabled?: boolean;
|
|
23
|
-
// Whether SensitivityLabel is Parent.
|
|
24
|
-
isParent?: boolean;
|
|
25
|
-
// Parent SensitivityLabel Id.
|
|
26
|
-
parentSensitivityLabelId?: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface ListGroupMembers_Response {
|
|
30
|
-
// The OData context.
|
|
31
|
-
"@odata.context"?: string;
|
|
32
|
-
// Only used in Power Apps Canvas to genereate the `$skipToken` for pagination. Power Automate and Logic Apps must use the pagination setting.
|
|
33
|
-
"@odata.nextLink"?: string;
|
|
34
|
-
// value
|
|
35
|
-
value?: {
|
|
36
|
-
// Unique id of the user.
|
|
37
|
-
id?: string;
|
|
38
|
-
// User's display name.
|
|
39
|
-
displayName?: string;
|
|
40
|
-
// User's first name.
|
|
41
|
-
givenName?: string;
|
|
42
|
-
// User's job title.
|
|
43
|
-
jobTitle?: string;
|
|
44
|
-
// User's email address.
|
|
45
|
-
mail?: string;
|
|
46
|
-
// User's mobile number.
|
|
47
|
-
mobilePhone?: string;
|
|
48
|
-
// User's office address.
|
|
49
|
-
officeLocation?: string;
|
|
50
|
-
// User's last name.
|
|
51
|
-
surname?: string;
|
|
52
|
-
// UPN id of the user.
|
|
53
|
-
userPrincipalName?: string;
|
|
54
|
-
}[];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface OnGroupMemberAddedOrRemoved_ResponseItem {
|
|
58
|
-
// Unique id of the user.
|
|
59
|
-
id?: string;
|
|
60
|
-
_removed?: {
|
|
61
|
-
// Reason that caused the user to be removed from the group.
|
|
62
|
-
reason?: string;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export type OnGroupMemberAddedOrRemoved_Response = OnGroupMemberAddedOrRemoved_ResponseItem[];
|
|
67
|
-
|
|
68
|
-
export interface ListOwnedGroups_Response {
|
|
69
|
-
// The OData context.
|
|
70
|
-
"@odata.context"?: string;
|
|
71
|
-
// value
|
|
72
|
-
value?: {
|
|
73
|
-
// O365 group classification.
|
|
74
|
-
classification?: string;
|
|
75
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
76
|
-
createdDateTime?: string;
|
|
77
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
78
|
-
deletedDateTime?: string;
|
|
79
|
-
// More information about the group.
|
|
80
|
-
description?: string;
|
|
81
|
-
// O365 group name.
|
|
82
|
-
displayName?: string;
|
|
83
|
-
// Unique identifier of the group.
|
|
84
|
-
id?: string;
|
|
85
|
-
// Email address of the group.
|
|
86
|
-
mail?: string;
|
|
87
|
-
// True if mail is enabled for the group.
|
|
88
|
-
mailEnabled?: boolean;
|
|
89
|
-
// Group nickname.
|
|
90
|
-
mailNickname?: string;
|
|
91
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
92
|
-
onPremisesLastSyncDateTime?: string;
|
|
93
|
-
// The on-premises security identifier.
|
|
94
|
-
onPremisesSecurityIdentifier?: string;
|
|
95
|
-
// True if on-premises sync is enabled for the group.
|
|
96
|
-
onPremisesSyncEnabled?: string;
|
|
97
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
98
|
-
renewedDateTime?: string;
|
|
99
|
-
// True if the owner is security enabled.
|
|
100
|
-
securityEnabled?: boolean;
|
|
101
|
-
// The owner's visibility.
|
|
102
|
-
visibility?: string;
|
|
103
|
-
// List of Sensitivity Label Information
|
|
104
|
-
sensitivityLabelInfo?: SensitivityLabelMetadata[];
|
|
105
|
-
}[];
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface ListOwnedGroups_V2_Response {
|
|
109
|
-
// The OData context.
|
|
110
|
-
"@odata.context"?: string;
|
|
111
|
-
// value
|
|
112
|
-
value?: {
|
|
113
|
-
// O365 group classification.
|
|
114
|
-
classification?: string;
|
|
115
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
116
|
-
createdDateTime?: string;
|
|
117
|
-
// More information about the group.
|
|
118
|
-
description?: string;
|
|
119
|
-
// O365 group name.
|
|
120
|
-
displayName?: string;
|
|
121
|
-
// Unique identifier of the group.
|
|
122
|
-
id?: string;
|
|
123
|
-
// Email address of the group.
|
|
124
|
-
mail?: string;
|
|
125
|
-
// True if mail is enabled for the group.
|
|
126
|
-
mailEnabled?: boolean;
|
|
127
|
-
// Group nickname.
|
|
128
|
-
mailNickname?: string;
|
|
129
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
130
|
-
onPremisesLastSyncDateTime?: string;
|
|
131
|
-
// The on-premises security identifier.
|
|
132
|
-
onPremisesSecurityIdentifier?: string;
|
|
133
|
-
// True if on-premises sync is enabled for the group.
|
|
134
|
-
onPremisesSyncEnabled?: string;
|
|
135
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
136
|
-
renewedDateTime?: string;
|
|
137
|
-
// True if the owner is security enabled.
|
|
138
|
-
securityEnabled?: boolean;
|
|
139
|
-
// The owner's visibility.
|
|
140
|
-
visibility?: string;
|
|
141
|
-
// List of Sensitivity Label Information
|
|
142
|
-
sensitivityLabelInfo?: SensitivityLabelMetadata[];
|
|
143
|
-
}[];
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface ListGroups_Response {
|
|
147
|
-
// The OData context.
|
|
148
|
-
"@odata.context"?: string;
|
|
149
|
-
// Only used in Power Apps Canvas to genereate the `$skipToken` for pagination. Power Automate and Logic Apps must use the pagination setting.
|
|
150
|
-
"@odata.nextLink"?: string;
|
|
151
|
-
// value
|
|
152
|
-
value?: {
|
|
153
|
-
// O365 group classification.
|
|
154
|
-
classification?: string;
|
|
155
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
156
|
-
createdDateTime?: string;
|
|
157
|
-
// More information about the group.
|
|
158
|
-
description?: string;
|
|
159
|
-
// O365 group name.
|
|
160
|
-
displayName?: string;
|
|
161
|
-
// Unique identifier of the group.
|
|
162
|
-
id?: string;
|
|
163
|
-
// Email address of the group.
|
|
164
|
-
mail?: string;
|
|
165
|
-
// True if mail is enabled for the group.
|
|
166
|
-
mailEnabled?: boolean;
|
|
167
|
-
// Group nickname.
|
|
168
|
-
mailNickname?: string;
|
|
169
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
170
|
-
onPremisesLastSyncDateTime?: string;
|
|
171
|
-
// The on-premises security identifier.
|
|
172
|
-
onPremisesSecurityIdentifier?: string;
|
|
173
|
-
// True if on-premises sync is enabled for the group.
|
|
174
|
-
onPremisesSyncEnabled?: boolean;
|
|
175
|
-
// yyyy-MM-ddTHH:mm:ss.fffZ (ISO8601 format, UTC timezone)
|
|
176
|
-
renewedDateTime?: string;
|
|
177
|
-
// True if the owner is security enabled.
|
|
178
|
-
securityEnabled?: boolean;
|
|
179
|
-
// The owner's visibility.
|
|
180
|
-
visibility?: string;
|
|
181
|
-
// List of Sensitivity Label Information
|
|
182
|
-
sensitivityLabelInfo?: SensitivityLabelMetadata[];
|
|
183
|
-
}[];
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface CreateCalendarEvent_Response {
|
|
187
|
-
// Unique id of the event.
|
|
188
|
-
id?: string;
|
|
189
|
-
// Time in minutes before event starts to remind.
|
|
190
|
-
reminderMinutesBeforeStart?: number;
|
|
191
|
-
// Set to true if the event has a reminder.
|
|
192
|
-
isReminderOn?: boolean;
|
|
193
|
-
// Title of the event.
|
|
194
|
-
subject?: string;
|
|
195
|
-
// The importance of the event: Low, Normal, or High.
|
|
196
|
-
importance?: string;
|
|
197
|
-
// True if the event is an all day event.
|
|
198
|
-
isAllDay?: boolean;
|
|
199
|
-
// True if a response was requested for the event.
|
|
200
|
-
responseRequested?: boolean;
|
|
201
|
-
// Status to show during the event.
|
|
202
|
-
showAs?: string;
|
|
203
|
-
// body
|
|
204
|
-
body?: {
|
|
205
|
-
// Text or Html.
|
|
206
|
-
contentType?: string;
|
|
207
|
-
// The content of the body of this event.
|
|
208
|
-
content?: string;
|
|
209
|
-
};
|
|
210
|
-
// start
|
|
211
|
-
start?: {
|
|
212
|
-
// Start time of the event (example: '2016-11-01T14:30:00-07:00').
|
|
213
|
-
dateTime?: string;
|
|
214
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
215
|
-
timeZone?: string;
|
|
216
|
-
};
|
|
217
|
-
// end
|
|
218
|
-
end?: {
|
|
219
|
-
// End time of the event (example: '2016-11-01T15:30:00-07:00').
|
|
220
|
-
dateTime?: string;
|
|
221
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
222
|
-
timeZone?: string;
|
|
223
|
-
};
|
|
224
|
-
// location
|
|
225
|
-
location?: {
|
|
226
|
-
// The display name for the location of the event.
|
|
227
|
-
displayName?: string;
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export type UpdateCalendarEvent_RequestcontentType = 'Text'|'Html';
|
|
232
|
-
export type UpdateCalendarEvent_Requestimportance = 'Low'|'Normal'|'High';
|
|
233
|
-
export type UpdateCalendarEvent_RequestshowAs = 'Free'|'Tentative'|'Busy'|'Oof'|'WorkingElsewhere'|'Unknown';
|
|
234
|
-
|
|
235
|
-
export interface UpdateCalendarEvent_Request {
|
|
236
|
-
// Title of the event.
|
|
237
|
-
subject: string;
|
|
238
|
-
start: {
|
|
239
|
-
// Start time of the event (example: '2016-11-01T14:30:00').
|
|
240
|
-
dateTime: string;
|
|
241
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
242
|
-
timeZone: string;
|
|
243
|
-
};
|
|
244
|
-
end: {
|
|
245
|
-
// End time of the event (example: '2016-11-01T15:30:00').
|
|
246
|
-
dateTime: string;
|
|
247
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
248
|
-
timeZone: string;
|
|
249
|
-
};
|
|
250
|
-
body?: {
|
|
251
|
-
// Body of the message associated with the event.
|
|
252
|
-
content?: string;
|
|
253
|
-
// Pick the content type: Text or Html.
|
|
254
|
-
contentType?: UpdateCalendarEvent_RequestcontentType;
|
|
255
|
-
};
|
|
256
|
-
location?: {
|
|
257
|
-
// Location of the event.
|
|
258
|
-
displayName?: string;
|
|
259
|
-
};
|
|
260
|
-
// The importance of the event: Low, Normal, or High.
|
|
261
|
-
importance?: UpdateCalendarEvent_Requestimportance;
|
|
262
|
-
// Set to true if the event lasts all day.
|
|
263
|
-
isAllDay?: boolean;
|
|
264
|
-
// Set to true if the event has a reminder.
|
|
265
|
-
isReminderOn?: boolean;
|
|
266
|
-
// Time in minutes before event start to remind.
|
|
267
|
-
reminderMinutesBeforeStart?: number;
|
|
268
|
-
// Status to show during the event.
|
|
269
|
-
showAs?: UpdateCalendarEvent_RequestshowAs;
|
|
270
|
-
// Set to true if the sender would like a response when the event is accepted or declined.
|
|
271
|
-
responseRequested?: boolean;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export type UpdateCalendarEvent_HTMLRequestimportance = 'Low'|'Normal'|'High';
|
|
275
|
-
export type UpdateCalendarEvent_HTMLRequestshowAs = 'Free'|'Tentative'|'Busy'|'Oof'|'WorkingElsewhere'|'Unknown';
|
|
276
|
-
|
|
277
|
-
export interface UpdateCalendarEvent_HTMLRequest {
|
|
278
|
-
// Title of the event.
|
|
279
|
-
subject: string;
|
|
280
|
-
start: {
|
|
281
|
-
// Start time of the event (example: '2016-11-01T14:30:00').
|
|
282
|
-
dateTime: string;
|
|
283
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
284
|
-
timeZone: string;
|
|
285
|
-
};
|
|
286
|
-
end: {
|
|
287
|
-
// End time of the event (example: '2016-11-01T15:30:00').
|
|
288
|
-
dateTime: string;
|
|
289
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
290
|
-
timeZone: string;
|
|
291
|
-
};
|
|
292
|
-
body?: {
|
|
293
|
-
// Body of the message associated with the event.
|
|
294
|
-
content?: string;
|
|
295
|
-
// Pick the content type: Text or Html.
|
|
296
|
-
contentType: string;
|
|
297
|
-
};
|
|
298
|
-
location?: {
|
|
299
|
-
// Location of the event.
|
|
300
|
-
displayName?: string;
|
|
301
|
-
};
|
|
302
|
-
// The importance of the event: Low, Normal, or High.
|
|
303
|
-
importance?: UpdateCalendarEvent_HTMLRequestimportance;
|
|
304
|
-
// Set to true if the event lasts all day.
|
|
305
|
-
isAllDay?: boolean;
|
|
306
|
-
// Set to true if the event has a reminder.
|
|
307
|
-
isReminderOn?: boolean;
|
|
308
|
-
// Time in minutes before event start to remind.
|
|
309
|
-
reminderMinutesBeforeStart?: number;
|
|
310
|
-
// Status to show during the event.
|
|
311
|
-
showAs?: UpdateCalendarEvent_HTMLRequestshowAs;
|
|
312
|
-
// Set to true if the sender would like a response when the event is accepted or declined.
|
|
313
|
-
responseRequested?: boolean;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export interface OnNewEvent_ResponseItem {
|
|
317
|
-
// Unique id of the event.
|
|
318
|
-
id?: string;
|
|
319
|
-
// The number of minutes before the start of the event the reminder will fire.
|
|
320
|
-
reminderMinutesBeforeStart?: number;
|
|
321
|
-
// Set to true if the event has a reminder.
|
|
322
|
-
isReminderOn?: boolean;
|
|
323
|
-
// Title of the event.
|
|
324
|
-
subject?: string;
|
|
325
|
-
// The importance of the event: Low, Normal, or High.
|
|
326
|
-
importance?: string;
|
|
327
|
-
// Set to true if the event lasts all day.
|
|
328
|
-
isAllDay?: boolean;
|
|
329
|
-
// Set to true if the sender would like a response when the event is accepted or declined.
|
|
330
|
-
responseRequested?: boolean;
|
|
331
|
-
// Status to show during the event.
|
|
332
|
-
showAs?: string;
|
|
333
|
-
// body
|
|
334
|
-
body?: {
|
|
335
|
-
// Body of the message associated with the event.
|
|
336
|
-
contentType?: string;
|
|
337
|
-
// Pick the content type: Text or Html.
|
|
338
|
-
content?: string;
|
|
339
|
-
};
|
|
340
|
-
// start
|
|
341
|
-
start?: {
|
|
342
|
-
// Start time of the event (example: '2016-11-01T14:30:00-07:00').
|
|
343
|
-
dateTime?: string;
|
|
344
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
345
|
-
timeZone?: string;
|
|
346
|
-
};
|
|
347
|
-
// end
|
|
348
|
-
end?: {
|
|
349
|
-
// End time of the event (example: '2016-11-01T15:30:00-07:00').
|
|
350
|
-
dateTime?: string;
|
|
351
|
-
// Time zone of the event, specified as a time zone index value (example: 'Pacific Standard Time').
|
|
352
|
-
timeZone?: string;
|
|
353
|
-
};
|
|
354
|
-
// location
|
|
355
|
-
location?: {
|
|
356
|
-
// The display name for the location of the event.
|
|
357
|
-
displayName?: string;
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export type OnNewEvent_Response = OnNewEvent_ResponseItem[];
|
|
362
|
-
|
|
363
|
-
export type ObjectWithoutType = object;
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* This file is autogenerated. Do not edit this file directly.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { CreateCalendarEvent_Response } from '../models/Office365GroupsModel';
|
|
7
|
-
import type { IOperationResult } from '@microsoft/power-apps/data';
|
|
8
|
-
import type { ListGroupMembers_Response } from '../models/Office365GroupsModel';
|
|
9
|
-
import type { ListGroups_Response } from '../models/Office365GroupsModel';
|
|
10
|
-
import type { ListOwnedGroups_Response } from '../models/Office365GroupsModel';
|
|
11
|
-
import type { ListOwnedGroups_V2_Response } from '../models/Office365GroupsModel';
|
|
12
|
-
import type { ObjectWithoutType } from '../models/Office365GroupsModel';
|
|
13
|
-
import type { OnGroupMemberAddedOrRemoved_Response } from '../models/Office365GroupsModel';
|
|
14
|
-
import type { OnNewEvent_Response } from '../models/Office365GroupsModel';
|
|
15
|
-
import type { UpdateCalendarEvent_HTMLRequest } from '../models/Office365GroupsModel';
|
|
16
|
-
import type { UpdateCalendarEvent_Request } from '../models/Office365GroupsModel';
|
|
17
|
-
import { dataSourcesInfo } from '../../../.power/schemas/appschemas/dataSourcesInfo';
|
|
18
|
-
import { getClient } from '@microsoft/power-apps/data';
|
|
19
|
-
|
|
20
|
-
export class Office365GroupsService {
|
|
21
|
-
private static readonly dataSourceName = 'office365groups';
|
|
22
|
-
|
|
23
|
-
private static readonly client = getClient(dataSourcesInfo);
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* List group members
|
|
27
|
-
* 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.
|
|
28
|
-
*/
|
|
29
|
-
public static async ListGroupMembers(groupId: string, $top?: number): Promise<IOperationResult<ListGroupMembers_Response>> {
|
|
30
|
-
const params: { groupId: string, $top?: number } = { groupId, $top };
|
|
31
|
-
const result = await Office365GroupsService.client.executeAsync<{ groupId: string, $top?: number }, ListGroupMembers_Response>(
|
|
32
|
-
{
|
|
33
|
-
connectorOperation: {
|
|
34
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
35
|
-
operationName: 'ListGroupMembers',
|
|
36
|
-
parameters: params
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* When a group member is added or removed
|
|
44
|
-
* This operation triggers when a member is added to or removed from the given group.
|
|
45
|
-
*/
|
|
46
|
-
public static async OnGroupMembershipChange(groupId: string, $select?: string): Promise<IOperationResult<OnGroupMemberAddedOrRemoved_Response>> {
|
|
47
|
-
const params: { groupId: string, $select?: string } = { groupId, $select };
|
|
48
|
-
const result = await Office365GroupsService.client.executeAsync<{ groupId: string, $select?: string }, OnGroupMemberAddedOrRemoved_Response>(
|
|
49
|
-
{
|
|
50
|
-
connectorOperation: {
|
|
51
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
52
|
-
operationName: 'OnGroupMembershipChange',
|
|
53
|
-
parameters: params
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
return result;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Add member to group
|
|
61
|
-
* This operation is used to add a member to an O365 group, using a UPN.
|
|
62
|
-
*/
|
|
63
|
-
public static async AddMemberToGroup(userUpn: string, groupId: string): Promise<IOperationResult<void>> {
|
|
64
|
-
const params: { userUpn: string, groupId: string } = { userUpn, groupId };
|
|
65
|
-
const result = await Office365GroupsService.client.executeAsync<{ userUpn: string, groupId: string }, void>(
|
|
66
|
-
{
|
|
67
|
-
connectorOperation: {
|
|
68
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
69
|
-
operationName: 'AddMemberToGroup',
|
|
70
|
-
parameters: params
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
return result;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* List my owned groups
|
|
78
|
-
* This operation returns a list of all groups that you own.
|
|
79
|
-
*/
|
|
80
|
-
public static async ListOwnedGroups(): Promise<IOperationResult<ListOwnedGroups_Response>> {
|
|
81
|
-
const result = await Office365GroupsService.client.executeAsync<void, ListOwnedGroups_Response>(
|
|
82
|
-
{
|
|
83
|
-
connectorOperation: {
|
|
84
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
85
|
-
operationName: 'ListOwnedGroups',
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
return result;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* List my owned groups (V2)
|
|
93
|
-
* This operation returns a list of all groups that you own.
|
|
94
|
-
*/
|
|
95
|
-
public static async ListOwnedGroups_V2(extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean): Promise<IOperationResult<ListOwnedGroups_V2_Response>> {
|
|
96
|
-
const params: { extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean } = { extractSensitivityLabel, fetchSensitivityLabelMetadata };
|
|
97
|
-
const result = await Office365GroupsService.client.executeAsync<{ extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean }, ListOwnedGroups_V2_Response>(
|
|
98
|
-
{
|
|
99
|
-
connectorOperation: {
|
|
100
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
101
|
-
operationName: 'ListOwnedGroups_V2',
|
|
102
|
-
parameters: params
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
return result;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* List groups that I own and belong to
|
|
110
|
-
* This operation returns a list of all groups that you own and belong to.
|
|
111
|
-
*/
|
|
112
|
-
public static async ListOwnedGroups_V3(extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean): Promise<IOperationResult<ListOwnedGroups_Response>> {
|
|
113
|
-
const params: { extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean } = { extractSensitivityLabel, fetchSensitivityLabelMetadata };
|
|
114
|
-
const result = await Office365GroupsService.client.executeAsync<{ extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean }, ListOwnedGroups_Response>(
|
|
115
|
-
{
|
|
116
|
-
connectorOperation: {
|
|
117
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
118
|
-
operationName: 'ListOwnedGroups_V3',
|
|
119
|
-
parameters: params
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
return result;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* List groups
|
|
127
|
-
* This operation returns a list of all groups in the organization.
|
|
128
|
-
*/
|
|
129
|
-
public static async ListGroups(extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean, $filter?: string, $top?: number, $skiptoken?: string): Promise<IOperationResult<ListGroups_Response>> {
|
|
130
|
-
const params: { extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean, $filter?: string, $top?: number, $skiptoken?: string } = { extractSensitivityLabel, fetchSensitivityLabelMetadata, $filter, $top, $skiptoken };
|
|
131
|
-
const result = await Office365GroupsService.client.executeAsync<{ extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean, $filter?: string, $top?: number, $skiptoken?: string }, ListGroups_Response>(
|
|
132
|
-
{
|
|
133
|
-
connectorOperation: {
|
|
134
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
135
|
-
operationName: 'ListGroups',
|
|
136
|
-
parameters: params
|
|
137
|
-
},
|
|
138
|
-
});
|
|
139
|
-
return result;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Create a group event
|
|
144
|
-
* This operation is used to create a new event in a group calendar.
|
|
145
|
-
*/
|
|
146
|
-
public static async CreateCalendarEvent(body: UpdateCalendarEvent_Request, groupId: string): Promise<IOperationResult<void>> {
|
|
147
|
-
const params: { body: UpdateCalendarEvent_Request, groupId: string } = { body, groupId };
|
|
148
|
-
const result = await Office365GroupsService.client.executeAsync<{ body: UpdateCalendarEvent_Request, groupId: string }, void>(
|
|
149
|
-
{
|
|
150
|
-
connectorOperation: {
|
|
151
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
152
|
-
operationName: 'CreateCalendarEvent',
|
|
153
|
-
parameters: params
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
return result;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Create a group event (V2)
|
|
161
|
-
* This operation is used to create a new event in a group calendar.
|
|
162
|
-
*/
|
|
163
|
-
public static async CreateCalendarEventV2(body: UpdateCalendarEvent_HTMLRequest, groupId: string): Promise<IOperationResult<void>> {
|
|
164
|
-
const params: { body: UpdateCalendarEvent_HTMLRequest, groupId: string } = { body, groupId };
|
|
165
|
-
const result = await Office365GroupsService.client.executeAsync<{ body: UpdateCalendarEvent_HTMLRequest, groupId: string }, void>(
|
|
166
|
-
{
|
|
167
|
-
connectorOperation: {
|
|
168
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
169
|
-
operationName: 'CreateCalendarEventV2',
|
|
170
|
-
parameters: params
|
|
171
|
-
},
|
|
172
|
-
});
|
|
173
|
-
return result;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Delete event (V2)
|
|
178
|
-
* This operation deletes an event in a calendar.
|
|
179
|
-
*/
|
|
180
|
-
public static async CalendarDeleteItem_V2(event: string, groupId: string): Promise<IOperationResult<void>> {
|
|
181
|
-
const params: { event: string, groupId: string } = { event, groupId };
|
|
182
|
-
const result = await Office365GroupsService.client.executeAsync<{ event: string, groupId: string }, void>(
|
|
183
|
-
{
|
|
184
|
-
connectorOperation: {
|
|
185
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
186
|
-
operationName: 'CalendarDeleteItem_V2',
|
|
187
|
-
parameters: params
|
|
188
|
-
},
|
|
189
|
-
});
|
|
190
|
-
return result;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Update a group event
|
|
195
|
-
* This operation is used to update a new event in a group calendar.
|
|
196
|
-
*/
|
|
197
|
-
public static async UpdateCalendarEvent(event: string, body: UpdateCalendarEvent_HTMLRequest, groupId: string): Promise<IOperationResult<CreateCalendarEvent_Response>> {
|
|
198
|
-
const params: { event: string, body: UpdateCalendarEvent_HTMLRequest, groupId: string } = { event, body, groupId };
|
|
199
|
-
const result = await Office365GroupsService.client.executeAsync<{ event: string, body: UpdateCalendarEvent_HTMLRequest, groupId: string }, CreateCalendarEvent_Response>(
|
|
200
|
-
{
|
|
201
|
-
connectorOperation: {
|
|
202
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
203
|
-
operationName: 'UpdateCalendarEvent',
|
|
204
|
-
parameters: params
|
|
205
|
-
},
|
|
206
|
-
});
|
|
207
|
-
return result;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Remove member from group
|
|
212
|
-
* This operation is used to remove a member from an O365 group, using a UPN.
|
|
213
|
-
*/
|
|
214
|
-
public static async RemoveMemberFromGroup(userUpn: string, groupId: string): Promise<IOperationResult<void>> {
|
|
215
|
-
const params: { userUpn: string, groupId: string } = { userUpn, groupId };
|
|
216
|
-
const result = await Office365GroupsService.client.executeAsync<{ userUpn: string, groupId: string }, void>(
|
|
217
|
-
{
|
|
218
|
-
connectorOperation: {
|
|
219
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
220
|
-
operationName: 'RemoveMemberFromGroup',
|
|
221
|
-
parameters: params
|
|
222
|
-
},
|
|
223
|
-
});
|
|
224
|
-
return result;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* When there is a new event
|
|
229
|
-
* This operation triggers when a new event is added to a group calendar.
|
|
230
|
-
*/
|
|
231
|
-
public static async OnNewEvent(groupId: string): Promise<IOperationResult<OnNewEvent_Response>> {
|
|
232
|
-
const params: { groupId: string } = { groupId };
|
|
233
|
-
const result = await Office365GroupsService.client.executeAsync<{ groupId: string }, OnNewEvent_Response>(
|
|
234
|
-
{
|
|
235
|
-
connectorOperation: {
|
|
236
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
237
|
-
operationName: 'OnNewEvent',
|
|
238
|
-
parameters: params
|
|
239
|
-
},
|
|
240
|
-
});
|
|
241
|
-
return result;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Send an HTTP request V2
|
|
246
|
-
* 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.
|
|
247
|
-
*/
|
|
248
|
-
public static async HttpRequestV2(Uri: string, Method: string, Body?: string, ContentType?: string, CustomHeader1?: string, CustomHeader2?: string, CustomHeader3?: string, CustomHeader4?: string, CustomHeader5?: string): Promise<IOperationResult<ObjectWithoutType>> {
|
|
249
|
-
const params: { Uri: string, Method: string, Body?: string, ContentType?: string, CustomHeader1?: string, CustomHeader2?: string, CustomHeader3?: string, CustomHeader4?: string, CustomHeader5?: string } = { Uri, Method, Body, ContentType, CustomHeader1, CustomHeader2, CustomHeader3, CustomHeader4, CustomHeader5 };
|
|
250
|
-
const result = await Office365GroupsService.client.executeAsync<{ Uri: string, Method: string, Body?: string, ContentType?: string, CustomHeader1?: string, CustomHeader2?: string, CustomHeader3?: string, CustomHeader4?: string, CustomHeader5?: string }, ObjectWithoutType>(
|
|
251
|
-
{
|
|
252
|
-
connectorOperation: {
|
|
253
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
254
|
-
operationName: 'HttpRequestV2',
|
|
255
|
-
parameters: params
|
|
256
|
-
},
|
|
257
|
-
});
|
|
258
|
-
return result;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Send an HTTP request
|
|
263
|
-
* Construct a Microsoft Graph REST API request to invoke. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api
|
|
264
|
-
*/
|
|
265
|
-
public static async HttpRequest(Uri: string, Method: string, Body?: string, ContentType?: string, CustomHeader1?: string, CustomHeader2?: string, CustomHeader3?: string, CustomHeader4?: string, CustomHeader5?: string): Promise<IOperationResult<ObjectWithoutType>> {
|
|
266
|
-
const params: { Uri: string, Method: string, Body?: string, ContentType?: string, CustomHeader1?: string, CustomHeader2?: string, CustomHeader3?: string, CustomHeader4?: string, CustomHeader5?: string } = { Uri, Method, Body, ContentType, CustomHeader1, CustomHeader2, CustomHeader3, CustomHeader4, CustomHeader5 };
|
|
267
|
-
const result = await Office365GroupsService.client.executeAsync<{ Uri: string, Method: string, Body?: string, ContentType?: string, CustomHeader1?: string, CustomHeader2?: string, CustomHeader3?: string, CustomHeader4?: string, CustomHeader5?: string }, ObjectWithoutType>(
|
|
268
|
-
{
|
|
269
|
-
connectorOperation: {
|
|
270
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
271
|
-
operationName: 'HttpRequest',
|
|
272
|
-
parameters: params
|
|
273
|
-
},
|
|
274
|
-
});
|
|
275
|
-
return result;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* List deleted groups
|
|
280
|
-
* Lists deleted groups that can be restored.
|
|
281
|
-
*/
|
|
282
|
-
public static async ListDeletedGroups(): Promise<IOperationResult<ListGroups_Response>> {
|
|
283
|
-
const result = await Office365GroupsService.client.executeAsync<void, ListGroups_Response>(
|
|
284
|
-
{
|
|
285
|
-
connectorOperation: {
|
|
286
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
287
|
-
operationName: 'ListDeletedGroups',
|
|
288
|
-
},
|
|
289
|
-
});
|
|
290
|
-
return result;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Restore a deleted group
|
|
295
|
-
* Restore a recently deleted group
|
|
296
|
-
*/
|
|
297
|
-
public static async RestoreDeletedGroup(groupId: string): Promise<IOperationResult<void>> {
|
|
298
|
-
const params: { groupId: string } = { groupId };
|
|
299
|
-
const result = await Office365GroupsService.client.executeAsync<{ groupId: string }, void>(
|
|
300
|
-
{
|
|
301
|
-
connectorOperation: {
|
|
302
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
303
|
-
operationName: 'RestoreDeletedGroup',
|
|
304
|
-
parameters: params
|
|
305
|
-
},
|
|
306
|
-
});
|
|
307
|
-
return result;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* List deleted groups by owner
|
|
312
|
-
* List deleted groups that can be restored by owner
|
|
313
|
-
*/
|
|
314
|
-
public static async ListDeletedGroupsByOwner(userId: string): Promise<IOperationResult<ListGroups_Response>> {
|
|
315
|
-
const params: { userId: string } = { userId };
|
|
316
|
-
const result = await Office365GroupsService.client.executeAsync<{ userId: string }, ListGroups_Response>(
|
|
317
|
-
{
|
|
318
|
-
connectorOperation: {
|
|
319
|
-
tableName: Office365GroupsService.dataSourceName,
|
|
320
|
-
operationName: 'ListDeletedGroupsByOwner',
|
|
321
|
-
parameters: params
|
|
322
|
-
},
|
|
323
|
-
});
|
|
324
|
-
return result;
|
|
325
|
-
}
|
|
326
|
-
}
|