codeapp-js 0.2.1 → 0.3.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/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -0
- package/codeApp/.power/schemas/jira/jira.Schema.json +6903 -0
- package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
- package/codeApp/.power/schemas/teams/teams.Schema.json +11112 -0
- package/codeApp/dist/codeapp.js +992 -4
- package/codeApp/dist/power-apps-data.js +145 -31
- package/codeApp/src/generated/index.ts +12 -0
- package/codeApp/src/generated/models/AzureKeyVaultModel.ts +107 -0
- package/codeApp/src/generated/models/JiraModel.ts +501 -0
- package/codeApp/src/generated/models/Office365GroupsModel.ts +363 -0
- package/codeApp/src/generated/models/Office365OutlookModel.ts +2046 -0
- package/codeApp/src/generated/models/Office365UsersModel.ts +254 -0
- package/codeApp/src/generated/services/AzureKeyVaultService.ts +257 -0
- package/codeApp/src/generated/services/JiraService.ts +1124 -0
- package/codeApp/src/generated/services/Office365GroupsService.ts +326 -0
- package/codeApp/src/generated/services/Office365OutlookService.ts +2476 -0
- package/codeApp/src/generated/services/Office365UsersService.ts +358 -0
- package/dev files/outlook.js +218 -9
- package/examples/combined demo/dist/codeapp.js +1098 -1098
- package/examples/combined demo/dist/index.js +470 -470
- package/examples/combined demo/dist/power-apps-data.js +3006 -3006
- package/examples/combined demo/power.config.json +42 -42
- package/examples/dataverse Demo/dist/codeapp.js +1085 -1085
- package/examples/dataverse Demo/dist/index.html +54 -54
- package/examples/dataverse Demo/dist/index.js +82 -82
- package/examples/dataverse Demo/dist/power-apps-data.js +2911 -2911
- package/examples/dataverse Demo/power.config.json +34 -34
- package/examples/dataverse Demo/readme.md +79 -79
- package/examples/groups Demo/dist/codeapp.js +1085 -1085
- package/examples/groups Demo/dist/index.js +113 -113
- package/examples/groups Demo/dist/power-apps-data.js +2911 -2911
- package/examples/kanban/dist/dataverse.js +94 -94
- package/examples/kanban/dist/environmentVar.js +55 -55
- package/examples/kanban/dist/office365groups.js +97 -97
- package/examples/kanban/dist/office365users.js +169 -169
- package/examples/kanban/dist/outlook.js +162 -162
- package/examples/kanban/dist/power-apps-data.js +2953 -2953
- package/examples/kanban/dist/sharepoint.js +339 -339
- package/examples/myProfile/dist/index.html +184 -184
- package/examples/myProfile/dist/index.js +141 -141
- package/examples/myProfile/dist/office365users.js +169 -169
- package/examples/myProfile/dist/power-apps-data.js +2953 -2953
- package/examples/myProfile/power.config.json +22 -22
- package/examples/myProfile/readme.md +79 -79
- package/examples/outlook Demo/dist/codeapp.js +1085 -1085
- package/examples/outlook Demo/dist/index.html +35 -35
- package/examples/outlook Demo/dist/index.js +170 -170
- package/examples/outlook Demo/dist/outlook.js +121 -121
- package/examples/outlook Demo/dist/power-apps-data.js +2911 -2911
- package/examples/outlook Demo/dist/styles.css +84 -84
- package/examples/outlook Demo/readme.md +82 -82
- package/examples/outlook Demo2/OutlookDemo_1_0_0_1.zip +0 -0
- package/examples/outlook Demo2/agent/decision-log.md +7 -0
- package/examples/{solution explorer → outlook Demo2}/dist/codeapp.js +245 -9
- package/examples/outlook Demo2/dist/index.html +98 -0
- package/examples/outlook Demo2/dist/index.js +272 -0
- package/examples/outlook Demo2/dist/styles.css +639 -0
- package/examples/outlook Demo2/power.config.json +23 -0
- package/examples/outlook Demo2/src/generated/index.ts +14 -0
- package/examples/outlook Demo2/src/generated/models/Office365GroupsModel.ts +363 -0
- package/examples/outlook Demo2/src/generated/models/Office365OutlookModel.ts +2046 -0
- package/examples/outlook Demo2/src/generated/models/Office365UsersModel.ts +254 -0
- package/examples/outlook Demo2/src/generated/services/Office365GroupsService.ts +326 -0
- package/examples/outlook Demo2/src/generated/services/Office365OutlookService.ts +2476 -0
- package/examples/outlook Demo2/src/generated/services/Office365UsersService.ts +358 -0
- package/examples/planning Poker/.vscode/settings.json +4 -4
- package/examples/planning Poker/additional files/customizations (tables).xml +6428 -6428
- package/examples/planning Poker/additional files/dataverse-tables.json +165 -165
- package/examples/planning Poker/additional files/readme.md +122 -122
- package/examples/planning Poker/dist/dataverse.js +78 -78
- package/examples/planning Poker/dist/index.html +198 -198
- package/examples/planning Poker/dist/index.js +954 -954
- package/examples/planning Poker/dist/power-apps-data.js +2953 -2953
- package/examples/planning Poker/dist/styles.css +815 -815
- package/examples/sharePoint Demo/agent/decision-log.md +5 -5
- package/examples/sharePoint Demo/dist/codeapp.js +1085 -1085
- package/examples/sharePoint Demo/dist/index.js +262 -262
- package/examples/sharePoint Demo/dist/power-apps-data.js +2911 -2911
- package/examples/sharePoint Demo/power.config.json +22 -22
- package/examples/todo/dist/dataverse.js +64 -64
- package/examples/todo/dist/index.html +75 -75
- package/examples/todo/dist/index.js +8 -8
- package/examples/todo/dist/power-apps-data.js +2953 -2953
- package/examples/todo/dist/renderer.js +375 -375
- package/examples/todo/dist/styles.css +691 -691
- package/examples/todo/power.config.json +34 -34
- package/package.json +1 -1
- package/readme.md +33 -4
- package/examples/solution explorer/agent/decision-log.md +0 -27
- package/examples/solution explorer/agent/mockup-01-swiss-grid.html +0 -452
- package/examples/solution explorer/agent/mockup-02-dark-glass.html +0 -496
- package/examples/solution explorer/agent/mockup-03-paper-console.html +0 -510
- package/examples/solution explorer/agent/mockup-04-neon-noir.html +0 -546
- package/examples/solution explorer/agent/mockup-05-zen-garden.html +0 -534
- package/examples/solution explorer/dist/index.html +0 -80
- package/examples/solution explorer/dist/index.js +0 -735
- package/examples/solution explorer/dist/styles.css +0 -571
- package/examples/solution explorer/power.config.json +0 -151
- /package/examples/{solution explorer → outlook Demo2}/dist/icon-512.png +0 -0
- /package/examples/{solution explorer → outlook Demo2}/dist/power-apps-data.js +0 -0
|
@@ -0,0 +1,2476 @@
|
|
|
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 { ApprovalEmailSubscription } from '../models/Office365OutlookModel';
|
|
7
|
+
import type { AutomaticRepliesSettingClient } from '../models/Office365OutlookModel';
|
|
8
|
+
import type { BatchOperationResult } from '../models/Office365OutlookModel';
|
|
9
|
+
import type { BatchResponse_ClientReceiveMessage } from '../models/Office365OutlookModel';
|
|
10
|
+
import type { BatchResponse_GraphClientReceiveMessage } from '../models/Office365OutlookModel';
|
|
11
|
+
import type { BatchResponse_SensitivityLabel } from '../models/Office365OutlookModel';
|
|
12
|
+
import type { CalendarEventBackend } from '../models/Office365OutlookModel';
|
|
13
|
+
import type { CalendarEventClient } from '../models/Office365OutlookModel';
|
|
14
|
+
import type { CalendarEventClientReceiveStringEnums } from '../models/Office365OutlookModel';
|
|
15
|
+
import type { CalendarEventHtmlClient } from '../models/Office365OutlookModel';
|
|
16
|
+
import type { CalendarEventList } from '../models/Office365OutlookModel';
|
|
17
|
+
import type { CalendarEventListClientReceive } from '../models/Office365OutlookModel';
|
|
18
|
+
import type { CalendarEventListWithActionType } from '../models/Office365OutlookModel';
|
|
19
|
+
import type { ClientDraftHtmlMessage } from '../models/Office365OutlookModel';
|
|
20
|
+
import type { ClientReceiveMessage } from '../models/Office365OutlookModel';
|
|
21
|
+
import type { ClientReceiveMessageStringEnums } from '../models/Office365OutlookModel';
|
|
22
|
+
import type { ClientSendHtmlMessage } from '../models/Office365OutlookModel';
|
|
23
|
+
import type { ClientSendMessage } from '../models/Office365OutlookModel';
|
|
24
|
+
import type { ClientSubscription } from '../models/Office365OutlookModel';
|
|
25
|
+
import type { Contact } from '../models/Office365OutlookModel';
|
|
26
|
+
import type { ContactResponse } from '../models/Office365OutlookModel';
|
|
27
|
+
import type { ContactResponse_V2 } from '../models/Office365OutlookModel';
|
|
28
|
+
import type { Contact_V2 } from '../models/Office365OutlookModel';
|
|
29
|
+
import type { DataSetsList } from '../models/Office365OutlookModel';
|
|
30
|
+
import type { DataSetsMetadata } from '../models/Office365OutlookModel';
|
|
31
|
+
import type { DirectForwardMessage } from '../models/Office365OutlookModel';
|
|
32
|
+
import type { EntityListResponse_CalendarEventBackend } from '../models/Office365OutlookModel';
|
|
33
|
+
import type { EntityListResponse_CalendarEventClientReceiveStringEnums } from '../models/Office365OutlookModel';
|
|
34
|
+
import type { EntityListResponse_ContactResponse } from '../models/Office365OutlookModel';
|
|
35
|
+
import type { EntityListResponse_ContactResponse_V2 } from '../models/Office365OutlookModel';
|
|
36
|
+
import type { EntityListResponse_FilePickerFile } from '../models/Office365OutlookModel';
|
|
37
|
+
import type { EntityListResponse_GraphCalendarEventClientReceive } from '../models/Office365OutlookModel';
|
|
38
|
+
import type { EntityListResponse_GraphContactFolder } from '../models/Office365OutlookModel';
|
|
39
|
+
import type { EntityListResponse_Table } from '../models/Office365OutlookModel';
|
|
40
|
+
import type { GraphCalendarEventClient } from '../models/Office365OutlookModel';
|
|
41
|
+
import type { GraphCalendarEventClientReceive } from '../models/Office365OutlookModel';
|
|
42
|
+
import type { GraphCalendarEventListClientReceive } from '../models/Office365OutlookModel';
|
|
43
|
+
import type { GraphCalendarEventListWithActionType } from '../models/Office365OutlookModel';
|
|
44
|
+
import type { GraphClientReceiveMessage } from '../models/Office365OutlookModel';
|
|
45
|
+
import type { GraphOutlookCategory } from '../models/Office365OutlookModel';
|
|
46
|
+
import type { IOperationResult } from '@microsoft/power-apps/data';
|
|
47
|
+
import type { MCPQueryRequest } from '../models/Office365OutlookModel';
|
|
48
|
+
import type { MCPQueryResponse } from '../models/Office365OutlookModel';
|
|
49
|
+
import type { MailTipsClientReceive } from '../models/Office365OutlookModel';
|
|
50
|
+
import type { MailTipsClientReceive_V2 } from '../models/Office365OutlookModel';
|
|
51
|
+
import type { ObjectWithoutType } from '../models/Office365OutlookModel';
|
|
52
|
+
import type { OptionsEmailSubscription } from '../models/Office365OutlookModel';
|
|
53
|
+
import type { OutlookReceiveMessage } from '../models/Office365OutlookModel';
|
|
54
|
+
import type { PaginatedListResponse_CalendarEventClientReceiveStringEnums } from '../models/Office365OutlookModel';
|
|
55
|
+
import type { ReplyHtmlMessage } from '../models/Office365OutlookModel';
|
|
56
|
+
import type { ReplyMessage } from '../models/Office365OutlookModel';
|
|
57
|
+
import type { ResponseToEventInvite } from '../models/Office365OutlookModel';
|
|
58
|
+
import type { SharedMailboxClientSendHtmlMessage } from '../models/Office365OutlookModel';
|
|
59
|
+
import type { SharedMailboxClientSendMessage } from '../models/Office365OutlookModel';
|
|
60
|
+
import type { SubscriptionPayload_OutlookReceiveMessage } from '../models/Office365OutlookModel';
|
|
61
|
+
import type { SubscriptionPayload_SubscriptionEvent } from '../models/Office365OutlookModel';
|
|
62
|
+
import type { TableMetadata } from '../models/Office365OutlookModel';
|
|
63
|
+
import type { TriggerBatchResponse_ClientReceiveMessage } from '../models/Office365OutlookModel';
|
|
64
|
+
import type { TriggerBatchResponse_GraphClientReceiveMessage } from '../models/Office365OutlookModel';
|
|
65
|
+
import type { UpdateEmailFlag } from '../models/Office365OutlookModel';
|
|
66
|
+
import { dataSourcesInfo } from '../../../.power/schemas/appschemas/dataSourcesInfo';
|
|
67
|
+
import { getClient } from '@microsoft/power-apps/data';
|
|
68
|
+
|
|
69
|
+
export class Office365OutlookService {
|
|
70
|
+
private static readonly dataSourceName = 'office365';
|
|
71
|
+
|
|
72
|
+
private static readonly client = getClient(dataSourcesInfo);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Get calendar metadata
|
|
76
|
+
* This operation gets metadata for a calendar.
|
|
77
|
+
*/
|
|
78
|
+
public static async CalendarGetTable(table: string): Promise<IOperationResult<TableMetadata>> {
|
|
79
|
+
const params: { table: string } = { table };
|
|
80
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string }, TableMetadata>(
|
|
81
|
+
{
|
|
82
|
+
connectorOperation: {
|
|
83
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
84
|
+
operationName: 'CalendarGetTable',
|
|
85
|
+
parameters: params
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Get folder metadata
|
|
93
|
+
* This operation gets metadata for a contacts folder.
|
|
94
|
+
*/
|
|
95
|
+
public static async ContactGetTable(table: string): Promise<IOperationResult<TableMetadata>> {
|
|
96
|
+
const params: { table: string } = { table };
|
|
97
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string }, TableMetadata>(
|
|
98
|
+
{
|
|
99
|
+
connectorOperation: {
|
|
100
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
101
|
+
operationName: 'ContactGetTable',
|
|
102
|
+
parameters: params
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* When an upcoming event is starting soon
|
|
110
|
+
* This operation triggers a flow when an upcoming calendar event is starting.
|
|
111
|
+
*/
|
|
112
|
+
public static async OnUpcomingEvents(table: string, lookAheadTimeInMinutes?: number): Promise<IOperationResult<CalendarEventList>> {
|
|
113
|
+
const params: { table: string, lookAheadTimeInMinutes?: number } = { table, lookAheadTimeInMinutes };
|
|
114
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, lookAheadTimeInMinutes?: number }, CalendarEventList>(
|
|
115
|
+
{
|
|
116
|
+
connectorOperation: {
|
|
117
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
118
|
+
operationName: 'OnUpcomingEvents',
|
|
119
|
+
parameters: params
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* When an upcoming event is starting soon (V2)
|
|
127
|
+
* This operation triggers a flow when an upcoming calendar event is starting.
|
|
128
|
+
*/
|
|
129
|
+
public static async OnUpcomingEventsV2(table: string, lookAheadTimeInMinutes?: number): Promise<IOperationResult<CalendarEventListClientReceive>> {
|
|
130
|
+
const params: { table: string, lookAheadTimeInMinutes?: number } = { table, lookAheadTimeInMinutes };
|
|
131
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, lookAheadTimeInMinutes?: number }, CalendarEventListClientReceive>(
|
|
132
|
+
{
|
|
133
|
+
connectorOperation: {
|
|
134
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
135
|
+
operationName: 'OnUpcomingEventsV2',
|
|
136
|
+
parameters: params
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* When an upcoming event is starting soon (V3)
|
|
144
|
+
* This operation triggers a flow when an upcoming calendar event is starting.
|
|
145
|
+
*/
|
|
146
|
+
public static async OnUpcomingEventsV3(table: string, lookAheadTimeInMinutes?: number): Promise<IOperationResult<GraphCalendarEventListClientReceive>> {
|
|
147
|
+
const params: { table: string, lookAheadTimeInMinutes?: number } = { table, lookAheadTimeInMinutes };
|
|
148
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, lookAheadTimeInMinutes?: number }, GraphCalendarEventListClientReceive>(
|
|
149
|
+
{
|
|
150
|
+
connectorOperation: {
|
|
151
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
152
|
+
operationName: 'OnUpcomingEventsV3',
|
|
153
|
+
parameters: params
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Get calendar view of events
|
|
161
|
+
* Get calendar view of events.
|
|
162
|
+
*/
|
|
163
|
+
public static async GetEventsCalendarView(calendarId: string, startDateTimeOffset: string, endDateTimeOffset: string): Promise<IOperationResult<PaginatedListResponse_CalendarEventClientReceiveStringEnums>> {
|
|
164
|
+
const params: { calendarId: string, startDateTimeOffset: string, endDateTimeOffset: string } = { calendarId, startDateTimeOffset, endDateTimeOffset };
|
|
165
|
+
const result = await Office365OutlookService.client.executeAsync<{ calendarId: string, startDateTimeOffset: string, endDateTimeOffset: string }, PaginatedListResponse_CalendarEventClientReceiveStringEnums>(
|
|
166
|
+
{
|
|
167
|
+
connectorOperation: {
|
|
168
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
169
|
+
operationName: 'GetEventsCalendarView',
|
|
170
|
+
parameters: params
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
return result;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* When an event is added, updated or deleted in a calendar - Outlook subscription
|
|
178
|
+
* Create an Outlook webhook subscription for the trigger when an event is added, updated or deleted in a calendar.
|
|
179
|
+
*/
|
|
180
|
+
public static async CreateOnChangedEventPokeSubscription(subscription: ClientSubscription, table: string, incomingDays?: number, pastDays?: number): Promise<IOperationResult<void>> {
|
|
181
|
+
const params: { subscription: ClientSubscription, table: string, incomingDays?: number, pastDays?: number } = { subscription, table, incomingDays, pastDays };
|
|
182
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, table: string, incomingDays?: number, pastDays?: number }, void>(
|
|
183
|
+
{
|
|
184
|
+
connectorOperation: {
|
|
185
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
186
|
+
operationName: 'CreateOnChangedEventPokeSubscription',
|
|
187
|
+
parameters: params
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
return result;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* When an event is added, updated or deleted in a calendar - Graph subscription
|
|
195
|
+
* Create a Graph webhook subscription for the trigger when an event is added, updated or deleted in a calendar.
|
|
196
|
+
*/
|
|
197
|
+
public static async CreateGraphOnChangedEventPokeSubscription(subscription: ClientSubscription, table: string, incomingDays?: number, pastDays?: number): Promise<IOperationResult<void>> {
|
|
198
|
+
const params: { subscription: ClientSubscription, table: string, incomingDays?: number, pastDays?: number } = { subscription, table, incomingDays, pastDays };
|
|
199
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, table: string, incomingDays?: number, pastDays?: number }, void>(
|
|
200
|
+
{
|
|
201
|
+
connectorOperation: {
|
|
202
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
203
|
+
operationName: 'CreateGraphOnChangedEventPokeSubscription',
|
|
204
|
+
parameters: params
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
return result;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Delete event subscription
|
|
212
|
+
* This operation deletes an event subscription.
|
|
213
|
+
*/
|
|
214
|
+
public static async DeleteEventSubscription(id: string, options: string): Promise<IOperationResult<void>> {
|
|
215
|
+
const params: { id: string, options: string } = { id, options };
|
|
216
|
+
const result = await Office365OutlookService.client.executeAsync<{ id: string, options: string }, void>(
|
|
217
|
+
{
|
|
218
|
+
connectorOperation: {
|
|
219
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
220
|
+
operationName: 'DeleteEventSubscription',
|
|
221
|
+
parameters: params
|
|
222
|
+
},
|
|
223
|
+
});
|
|
224
|
+
return result;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Update web hook
|
|
229
|
+
* Update web hook with renew interval.
|
|
230
|
+
*/
|
|
231
|
+
public static async RenewEventSubscription(id: string, options: string, subscription: ClientSubscription): Promise<IOperationResult<void>> {
|
|
232
|
+
const params: { id: string, options: string, subscription: ClientSubscription } = { id, options, subscription };
|
|
233
|
+
const result = await Office365OutlookService.client.executeAsync<{ id: string, options: string, subscription: ClientSubscription }, void>(
|
|
234
|
+
{
|
|
235
|
+
connectorOperation: {
|
|
236
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
237
|
+
operationName: 'RenewEventSubscription',
|
|
238
|
+
parameters: params
|
|
239
|
+
},
|
|
240
|
+
});
|
|
241
|
+
return result;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* When the file picker is opened for the first time
|
|
246
|
+
* When the file picker is opened for the first time.
|
|
247
|
+
*/
|
|
248
|
+
public static async OnFilePickerOpen(operation: string, top?: number, skip?: number, mailboxAddress?: string): Promise<IOperationResult<EntityListResponse_FilePickerFile>> {
|
|
249
|
+
const params: { operation: string, top?: number, skip?: number, mailboxAddress?: string } = { operation, top, skip, mailboxAddress };
|
|
250
|
+
const result = await Office365OutlookService.client.executeAsync<{ operation: string, top?: number, skip?: number, mailboxAddress?: string }, EntityListResponse_FilePickerFile>(
|
|
251
|
+
{
|
|
252
|
+
connectorOperation: {
|
|
253
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
254
|
+
operationName: 'OnFilePickerOpen',
|
|
255
|
+
parameters: params
|
|
256
|
+
},
|
|
257
|
+
});
|
|
258
|
+
return result;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* When the file picker is open and being browsed
|
|
263
|
+
* When the file picker is open and being browsed.
|
|
264
|
+
*/
|
|
265
|
+
public static async OnFilePickerBrowse(operation: string, id: string, top?: number, skip?: number, mailboxAddress?: string): Promise<IOperationResult<EntityListResponse_FilePickerFile>> {
|
|
266
|
+
const params: { operation: string, id: string, top?: number, skip?: number, mailboxAddress?: string } = { operation, id, top, skip, mailboxAddress };
|
|
267
|
+
const result = await Office365OutlookService.client.executeAsync<{ operation: string, id: string, top?: number, skip?: number, mailboxAddress?: string }, EntityListResponse_FilePickerFile>(
|
|
268
|
+
{
|
|
269
|
+
connectorOperation: {
|
|
270
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
271
|
+
operationName: 'OnFilePickerBrowse',
|
|
272
|
+
parameters: params
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
return result;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Get emails
|
|
280
|
+
* This operation gets emails from a folder.
|
|
281
|
+
*/
|
|
282
|
+
public static async GetEmails(folderPath?: string, fetchOnlyUnread?: boolean, includeAttachments?: boolean, searchQuery?: string, top?: number, skip?: number): Promise<IOperationResult<ClientReceiveMessageStringEnums[]>> {
|
|
283
|
+
const params: { folderPath?: string, fetchOnlyUnread?: boolean, includeAttachments?: boolean, searchQuery?: string, top?: number, skip?: number } = { folderPath, fetchOnlyUnread, includeAttachments, searchQuery, top, skip };
|
|
284
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, fetchOnlyUnread?: boolean, includeAttachments?: boolean, searchQuery?: string, top?: number, skip?: number }, ClientReceiveMessageStringEnums[]>(
|
|
285
|
+
{
|
|
286
|
+
connectorOperation: {
|
|
287
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
288
|
+
operationName: 'GetEmails',
|
|
289
|
+
parameters: params
|
|
290
|
+
},
|
|
291
|
+
});
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Send an email
|
|
297
|
+
* This operation sends an email message.
|
|
298
|
+
*/
|
|
299
|
+
public static async SendEmail(emailMessage: ClientSendMessage): Promise<IOperationResult<void>> {
|
|
300
|
+
const params: { emailMessage: ClientSendMessage } = { emailMessage };
|
|
301
|
+
const result = await Office365OutlookService.client.executeAsync<{ emailMessage: ClientSendMessage }, void>(
|
|
302
|
+
{
|
|
303
|
+
connectorOperation: {
|
|
304
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
305
|
+
operationName: 'SendEmail',
|
|
306
|
+
parameters: params
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
return result;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Get Outlook category names
|
|
314
|
+
* This operation gets Outlook category display names.
|
|
315
|
+
*/
|
|
316
|
+
public static async GetOutlookCategoryNames(): Promise<IOperationResult<GraphOutlookCategory[]>> {
|
|
317
|
+
const result = await Office365OutlookService.client.executeAsync<void, GraphOutlookCategory[]>(
|
|
318
|
+
{
|
|
319
|
+
connectorOperation: {
|
|
320
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
321
|
+
operationName: 'GetOutlookCategoryNames',
|
|
322
|
+
},
|
|
323
|
+
});
|
|
324
|
+
return result;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Draft an email message
|
|
329
|
+
* This operation drafts an email message.
|
|
330
|
+
*/
|
|
331
|
+
public static async DraftEmail(draftMessage: ClientDraftHtmlMessage, messageId?: string, draftType?: string, comment?: string): Promise<IOperationResult<OutlookReceiveMessage>> {
|
|
332
|
+
const params: { draftMessage: ClientDraftHtmlMessage, messageId?: string, draftType?: string, comment?: string } = { draftMessage, messageId, draftType, comment };
|
|
333
|
+
const result = await Office365OutlookService.client.executeAsync<{ draftMessage: ClientDraftHtmlMessage, messageId?: string, draftType?: string, comment?: string }, OutlookReceiveMessage>(
|
|
334
|
+
{
|
|
335
|
+
connectorOperation: {
|
|
336
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
337
|
+
operationName: 'DraftEmail',
|
|
338
|
+
parameters: params
|
|
339
|
+
},
|
|
340
|
+
});
|
|
341
|
+
return result;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Updates an email Draft message
|
|
346
|
+
* This operation updates an an email Draft message.
|
|
347
|
+
*/
|
|
348
|
+
public static async UpdateDraftEmail(draftMessage: ClientDraftHtmlMessage, messageId: string): Promise<IOperationResult<void>> {
|
|
349
|
+
const params: { draftMessage: ClientDraftHtmlMessage, messageId: string } = { draftMessage, messageId };
|
|
350
|
+
const result = await Office365OutlookService.client.executeAsync<{ draftMessage: ClientDraftHtmlMessage, messageId: string }, void>(
|
|
351
|
+
{
|
|
352
|
+
connectorOperation: {
|
|
353
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
354
|
+
operationName: 'UpdateDraftEmail',
|
|
355
|
+
parameters: params
|
|
356
|
+
},
|
|
357
|
+
});
|
|
358
|
+
return result;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Send a Draft message
|
|
363
|
+
* This operation sends a Draft message.
|
|
364
|
+
*/
|
|
365
|
+
public static async SendDraftEmail(messageId: string): Promise<IOperationResult<void>> {
|
|
366
|
+
const params: { messageId: string } = { messageId };
|
|
367
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string }, void>(
|
|
368
|
+
{
|
|
369
|
+
connectorOperation: {
|
|
370
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
371
|
+
operationName: 'SendDraftEmail',
|
|
372
|
+
parameters: params
|
|
373
|
+
},
|
|
374
|
+
});
|
|
375
|
+
return result;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Assigns an Outlook category
|
|
380
|
+
* This operation assigns an Outlook category to an email.
|
|
381
|
+
*/
|
|
382
|
+
public static async AssignCategory(messageId: string, category: string): Promise<IOperationResult<void>> {
|
|
383
|
+
const params: { messageId: string, category: string } = { messageId, category };
|
|
384
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, category: string }, void>(
|
|
385
|
+
{
|
|
386
|
+
connectorOperation: {
|
|
387
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
388
|
+
operationName: 'AssignCategory',
|
|
389
|
+
parameters: params
|
|
390
|
+
},
|
|
391
|
+
});
|
|
392
|
+
return result;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Assign a category to multiple emails
|
|
397
|
+
* This operation assigns an Outlook category to multiple emails.
|
|
398
|
+
*/
|
|
399
|
+
public static async AssignCategoryBulk(messageIds: unknown, categoryName: string): Promise<IOperationResult<BatchOperationResult>> {
|
|
400
|
+
const params: { messageIds: unknown, categoryName: string } = { messageIds, categoryName };
|
|
401
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageIds: unknown, categoryName: string }, BatchOperationResult>(
|
|
402
|
+
{
|
|
403
|
+
connectorOperation: {
|
|
404
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
405
|
+
operationName: 'AssignCategoryBulk',
|
|
406
|
+
parameters: params
|
|
407
|
+
},
|
|
408
|
+
});
|
|
409
|
+
return result;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Get emails (V2)
|
|
414
|
+
* This operation gets emails from a folder.
|
|
415
|
+
*/
|
|
416
|
+
public static async GetEmailsV2(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, subjectFilter?: string, fetchOnlyUnread?: boolean, fetchOnlyFlagged?: boolean, mailboxAddress?: string, includeAttachments?: boolean, searchQuery?: string, top?: number): Promise<IOperationResult<BatchResponse_ClientReceiveMessage>> {
|
|
417
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, subjectFilter?: string, fetchOnlyUnread?: boolean, fetchOnlyFlagged?: boolean, mailboxAddress?: string, includeAttachments?: boolean, searchQuery?: string, top?: number } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, subjectFilter, fetchOnlyUnread, fetchOnlyFlagged, mailboxAddress, includeAttachments, searchQuery, top };
|
|
418
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, subjectFilter?: string, fetchOnlyUnread?: boolean, fetchOnlyFlagged?: boolean, mailboxAddress?: string, includeAttachments?: boolean, searchQuery?: string, top?: number }, BatchResponse_ClientReceiveMessage>(
|
|
419
|
+
{
|
|
420
|
+
connectorOperation: {
|
|
421
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
422
|
+
operationName: 'GetEmailsV2',
|
|
423
|
+
parameters: params
|
|
424
|
+
},
|
|
425
|
+
});
|
|
426
|
+
return result;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Send an email (V2)
|
|
431
|
+
* This operation sends an email message.
|
|
432
|
+
*/
|
|
433
|
+
public static async SendEmailV2(emailMessage: ClientSendHtmlMessage): Promise<IOperationResult<void>> {
|
|
434
|
+
const params: { emailMessage: ClientSendHtmlMessage } = { emailMessage };
|
|
435
|
+
const result = await Office365OutlookService.client.executeAsync<{ emailMessage: ClientSendHtmlMessage }, void>(
|
|
436
|
+
{
|
|
437
|
+
connectorOperation: {
|
|
438
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
439
|
+
operationName: 'SendEmailV2',
|
|
440
|
+
parameters: params
|
|
441
|
+
},
|
|
442
|
+
});
|
|
443
|
+
return result;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Get email
|
|
448
|
+
* This operation gets an email by id.
|
|
449
|
+
*/
|
|
450
|
+
public static async GetEmail(messageId: string, mailboxAddress?: string, includeAttachments?: boolean, internetMessageId?: string): Promise<IOperationResult<ClientReceiveMessage>> {
|
|
451
|
+
const params: { messageId: string, mailboxAddress?: string, includeAttachments?: boolean, internetMessageId?: string } = { messageId, mailboxAddress, includeAttachments, internetMessageId };
|
|
452
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, mailboxAddress?: string, includeAttachments?: boolean, internetMessageId?: string }, ClientReceiveMessage>(
|
|
453
|
+
{
|
|
454
|
+
connectorOperation: {
|
|
455
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
456
|
+
operationName: 'GetEmail',
|
|
457
|
+
parameters: params
|
|
458
|
+
},
|
|
459
|
+
});
|
|
460
|
+
return result;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Delete email
|
|
465
|
+
* This operation deletes an email by id.
|
|
466
|
+
*/
|
|
467
|
+
public static async DeleteEmail(messageId: string): Promise<IOperationResult<void>> {
|
|
468
|
+
const params: { messageId: string } = { messageId };
|
|
469
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string }, void>(
|
|
470
|
+
{
|
|
471
|
+
connectorOperation: {
|
|
472
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
473
|
+
operationName: 'DeleteEmail',
|
|
474
|
+
parameters: params
|
|
475
|
+
},
|
|
476
|
+
});
|
|
477
|
+
return result;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Get email (V2)
|
|
482
|
+
* This operation gets an email by id.
|
|
483
|
+
*/
|
|
484
|
+
public static async GetEmailV2(messageId: string, mailboxAddress?: string, includeAttachments?: boolean, internetMessageId?: string, extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean): Promise<IOperationResult<GraphClientReceiveMessage>> {
|
|
485
|
+
const params: { messageId: string, mailboxAddress?: string, includeAttachments?: boolean, internetMessageId?: string, extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean } = { messageId, mailboxAddress, includeAttachments, internetMessageId, extractSensitivityLabel, fetchSensitivityLabelMetadata };
|
|
486
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, mailboxAddress?: string, includeAttachments?: boolean, internetMessageId?: string, extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean }, GraphClientReceiveMessage>(
|
|
487
|
+
{
|
|
488
|
+
connectorOperation: {
|
|
489
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
490
|
+
operationName: 'GetEmailV2',
|
|
491
|
+
parameters: params
|
|
492
|
+
},
|
|
493
|
+
});
|
|
494
|
+
return result;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Get emails (V3)
|
|
499
|
+
* This operation gets emails from a folder via graph apis. Please note that filtering related to these fields: To, Cc, To Or Cc, From, Importance, Fetch Only With Attachments, Subject Filter, is performed using first 250 items in a given mail folder. To avoid that limitation you can use 'Search Query' field.
|
|
500
|
+
*/
|
|
501
|
+
public static async GetEmailsV3(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, subjectFilter?: string, fetchOnlyUnread?: boolean, fetchOnlyFlagged?: boolean, mailboxAddress?: string, includeAttachments?: boolean, searchQuery?: string, top?: number): Promise<IOperationResult<BatchResponse_GraphClientReceiveMessage>> {
|
|
502
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, subjectFilter?: string, fetchOnlyUnread?: boolean, fetchOnlyFlagged?: boolean, mailboxAddress?: string, includeAttachments?: boolean, searchQuery?: string, top?: number } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, subjectFilter, fetchOnlyUnread, fetchOnlyFlagged, mailboxAddress, includeAttachments, searchQuery, top };
|
|
503
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, subjectFilter?: string, fetchOnlyUnread?: boolean, fetchOnlyFlagged?: boolean, mailboxAddress?: string, includeAttachments?: boolean, searchQuery?: string, top?: number }, BatchResponse_GraphClientReceiveMessage>(
|
|
504
|
+
{
|
|
505
|
+
connectorOperation: {
|
|
506
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
507
|
+
operationName: 'GetEmailsV3',
|
|
508
|
+
parameters: params
|
|
509
|
+
},
|
|
510
|
+
});
|
|
511
|
+
return result;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Move email
|
|
516
|
+
* This operation moves an email to the specified folder within the same mailbox.
|
|
517
|
+
*/
|
|
518
|
+
public static async Move(messageId: string, folderPath: string): Promise<IOperationResult<ClientReceiveMessageStringEnums>> {
|
|
519
|
+
const params: { messageId: string, folderPath: string } = { messageId, folderPath };
|
|
520
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, folderPath: string }, ClientReceiveMessageStringEnums>(
|
|
521
|
+
{
|
|
522
|
+
connectorOperation: {
|
|
523
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
524
|
+
operationName: 'Move',
|
|
525
|
+
parameters: params
|
|
526
|
+
},
|
|
527
|
+
});
|
|
528
|
+
return result;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Move email (V2)
|
|
533
|
+
* This operation moves an email to the specified folder within the same mailbox.
|
|
534
|
+
*/
|
|
535
|
+
public static async MoveV2(messageId: string, folderPath: string, mailboxAddress?: string): Promise<IOperationResult<GraphClientReceiveMessage>> {
|
|
536
|
+
const params: { messageId: string, folderPath: string, mailboxAddress?: string } = { messageId, folderPath, mailboxAddress };
|
|
537
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, folderPath: string, mailboxAddress?: string }, GraphClientReceiveMessage>(
|
|
538
|
+
{
|
|
539
|
+
connectorOperation: {
|
|
540
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
541
|
+
operationName: 'MoveV2',
|
|
542
|
+
parameters: params
|
|
543
|
+
},
|
|
544
|
+
});
|
|
545
|
+
return result;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Flag email
|
|
550
|
+
* This operation flags an email.
|
|
551
|
+
*/
|
|
552
|
+
public static async Flag(messageId: string): Promise<IOperationResult<void>> {
|
|
553
|
+
const params: { messageId: string } = { messageId };
|
|
554
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string }, void>(
|
|
555
|
+
{
|
|
556
|
+
connectorOperation: {
|
|
557
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
558
|
+
operationName: 'Flag',
|
|
559
|
+
parameters: params
|
|
560
|
+
},
|
|
561
|
+
});
|
|
562
|
+
return result;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Mark as read
|
|
567
|
+
* This operation marks an email as having been read.
|
|
568
|
+
*/
|
|
569
|
+
public static async MarkAsRead(messageId: string): Promise<IOperationResult<void>> {
|
|
570
|
+
const params: { messageId: string } = { messageId };
|
|
571
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string }, void>(
|
|
572
|
+
{
|
|
573
|
+
connectorOperation: {
|
|
574
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
575
|
+
operationName: 'MarkAsRead',
|
|
576
|
+
parameters: params
|
|
577
|
+
},
|
|
578
|
+
});
|
|
579
|
+
return result;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Reply to email
|
|
584
|
+
* This operation replies to an email.
|
|
585
|
+
*/
|
|
586
|
+
public static async ReplyTo(messageId: string, comment: string, replyAll?: boolean): Promise<IOperationResult<void>> {
|
|
587
|
+
const params: { messageId: string, comment: string, replyAll?: boolean } = { messageId, comment, replyAll };
|
|
588
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, comment: string, replyAll?: boolean }, void>(
|
|
589
|
+
{
|
|
590
|
+
connectorOperation: {
|
|
591
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
592
|
+
operationName: 'ReplyTo',
|
|
593
|
+
parameters: params
|
|
594
|
+
},
|
|
595
|
+
});
|
|
596
|
+
return result;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Reply to email (V2)
|
|
601
|
+
* This operation replies to an email.
|
|
602
|
+
*/
|
|
603
|
+
public static async ReplyToV2(messageId: string, replyParameters: ReplyMessage, mailboxAddress?: string): Promise<IOperationResult<void>> {
|
|
604
|
+
const params: { messageId: string, replyParameters: ReplyMessage, mailboxAddress?: string } = { messageId, replyParameters, mailboxAddress };
|
|
605
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, replyParameters: ReplyMessage, mailboxAddress?: string }, void>(
|
|
606
|
+
{
|
|
607
|
+
connectorOperation: {
|
|
608
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
609
|
+
operationName: 'ReplyToV2',
|
|
610
|
+
parameters: params
|
|
611
|
+
},
|
|
612
|
+
});
|
|
613
|
+
return result;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Reply to email (V3)
|
|
618
|
+
* This operation replies to an email.
|
|
619
|
+
*/
|
|
620
|
+
public static async ReplyToV3(messageId: string, replyParameters: ReplyHtmlMessage, mailboxAddress?: string): Promise<IOperationResult<void>> {
|
|
621
|
+
const params: { messageId: string, replyParameters: ReplyHtmlMessage, mailboxAddress?: string } = { messageId, replyParameters, mailboxAddress };
|
|
622
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, replyParameters: ReplyHtmlMessage, mailboxAddress?: string }, void>(
|
|
623
|
+
{
|
|
624
|
+
connectorOperation: {
|
|
625
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
626
|
+
operationName: 'ReplyToV3',
|
|
627
|
+
parameters: params
|
|
628
|
+
},
|
|
629
|
+
});
|
|
630
|
+
return result;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Get attachment
|
|
635
|
+
* This operation gets an email attachment by id.
|
|
636
|
+
*/
|
|
637
|
+
public static async GetAttachment(messageId: string, attachmentId: string): Promise<IOperationResult<string>> {
|
|
638
|
+
const params: { messageId: string, attachmentId: string } = { messageId, attachmentId };
|
|
639
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, attachmentId: string }, string>(
|
|
640
|
+
{
|
|
641
|
+
connectorOperation: {
|
|
642
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
643
|
+
operationName: 'GetAttachment',
|
|
644
|
+
parameters: params
|
|
645
|
+
},
|
|
646
|
+
});
|
|
647
|
+
return result;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* When a new email arrives
|
|
652
|
+
* This operation triggers a flow when a new email arrives. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
653
|
+
*/
|
|
654
|
+
public static async OnNewEmail(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string): Promise<IOperationResult<TriggerBatchResponse_ClientReceiveMessage>> {
|
|
655
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter, x_ms_operation_context };
|
|
656
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string }, TriggerBatchResponse_ClientReceiveMessage>(
|
|
657
|
+
{
|
|
658
|
+
connectorOperation: {
|
|
659
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
660
|
+
operationName: 'OnNewEmail',
|
|
661
|
+
parameters: params
|
|
662
|
+
},
|
|
663
|
+
});
|
|
664
|
+
return result;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* When a new email arrives (V2)
|
|
669
|
+
* This operation triggers a flow when a new email arrives. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
670
|
+
*/
|
|
671
|
+
public static async OnNewEmailV2(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
672
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter, x_ms_operation_context };
|
|
673
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
674
|
+
{
|
|
675
|
+
connectorOperation: {
|
|
676
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
677
|
+
operationName: 'OnNewEmailV2',
|
|
678
|
+
parameters: params
|
|
679
|
+
},
|
|
680
|
+
});
|
|
681
|
+
return result;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* When a new email arrives (V3)
|
|
686
|
+
* This operation triggers a flow when a new email arrives. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
687
|
+
*/
|
|
688
|
+
public static async OnNewEmailV3(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
689
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter, x_ms_operation_context };
|
|
690
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
691
|
+
{
|
|
692
|
+
connectorOperation: {
|
|
693
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
694
|
+
operationName: 'OnNewEmailV3',
|
|
695
|
+
parameters: params
|
|
696
|
+
},
|
|
697
|
+
});
|
|
698
|
+
return result;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* When an email is flagged
|
|
703
|
+
* This operation triggers a flow when an email is flagged.
|
|
704
|
+
*/
|
|
705
|
+
public static async OnFlaggedEmail(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string): Promise<IOperationResult<TriggerBatchResponse_ClientReceiveMessage>> {
|
|
706
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter, x_ms_operation_context };
|
|
707
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string }, TriggerBatchResponse_ClientReceiveMessage>(
|
|
708
|
+
{
|
|
709
|
+
connectorOperation: {
|
|
710
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
711
|
+
operationName: 'OnFlaggedEmail',
|
|
712
|
+
parameters: params
|
|
713
|
+
},
|
|
714
|
+
});
|
|
715
|
+
return result;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* When an email is flagged (V2)
|
|
720
|
+
* This operation triggers a flow when an email is flagged.
|
|
721
|
+
*/
|
|
722
|
+
public static async OnFlaggedEmailV2(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
723
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter };
|
|
724
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
725
|
+
{
|
|
726
|
+
connectorOperation: {
|
|
727
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
728
|
+
operationName: 'OnFlaggedEmailV2',
|
|
729
|
+
parameters: params
|
|
730
|
+
},
|
|
731
|
+
});
|
|
732
|
+
return result;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* When an email is flagged (V3)
|
|
737
|
+
* This operation triggers a flow when an email is flagged.
|
|
738
|
+
*/
|
|
739
|
+
public static async OnFlaggedEmailV3(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
740
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter };
|
|
741
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
742
|
+
{
|
|
743
|
+
connectorOperation: {
|
|
744
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
745
|
+
operationName: 'OnFlaggedEmailV3',
|
|
746
|
+
parameters: params
|
|
747
|
+
},
|
|
748
|
+
});
|
|
749
|
+
return result;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* When an email is flagged (V4)
|
|
754
|
+
* This operation triggers a flow when an email is flagged.
|
|
755
|
+
*/
|
|
756
|
+
public static async OnFlaggedEmailV4(folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
757
|
+
const params: { folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string } = { folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter };
|
|
758
|
+
const result = await Office365OutlookService.client.executeAsync<{ folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
759
|
+
{
|
|
760
|
+
connectorOperation: {
|
|
761
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
762
|
+
operationName: 'OnFlaggedEmailV4',
|
|
763
|
+
parameters: params
|
|
764
|
+
},
|
|
765
|
+
});
|
|
766
|
+
return result;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* When a new email mentioning me arrives
|
|
771
|
+
* This operation triggers a flow when a new email mentioning me arrives. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
772
|
+
*/
|
|
773
|
+
public static async OnNewMentionMeEmail(messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string): Promise<IOperationResult<TriggerBatchResponse_ClientReceiveMessage>> {
|
|
774
|
+
const params: { messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string } = { messageIdToFireOnFirstTriggerRun, folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter };
|
|
775
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string }, TriggerBatchResponse_ClientReceiveMessage>(
|
|
776
|
+
{
|
|
777
|
+
connectorOperation: {
|
|
778
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
779
|
+
operationName: 'OnNewMentionMeEmail',
|
|
780
|
+
parameters: params
|
|
781
|
+
},
|
|
782
|
+
});
|
|
783
|
+
return result;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* When a new email mentioning me arrives (V2)
|
|
788
|
+
* This operation triggers a flow when a new email mentioning me arrives. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
789
|
+
*/
|
|
790
|
+
public static async OnNewMentionMeEmailV2(messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
791
|
+
const params: { messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string } = { messageIdToFireOnFirstTriggerRun, folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter };
|
|
792
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
793
|
+
{
|
|
794
|
+
connectorOperation: {
|
|
795
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
796
|
+
operationName: 'OnNewMentionMeEmailV2',
|
|
797
|
+
parameters: params
|
|
798
|
+
},
|
|
799
|
+
});
|
|
800
|
+
return result;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* When a new email mentioning me arrives (V3)
|
|
805
|
+
* This operation triggers a flow when a new email mentioning me arrives. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
806
|
+
*/
|
|
807
|
+
public static async OnNewMentionMeEmailV3(messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
808
|
+
const params: { messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string } = { messageIdToFireOnFirstTriggerRun, folderPath, to, cc, toOrCc, from, importance, fetchOnlyWithAttachment, includeAttachments, subjectFilter };
|
|
809
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageIdToFireOnFirstTriggerRun?: string, folderPath?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, fetchOnlyWithAttachment?: boolean, includeAttachments?: boolean, subjectFilter?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
810
|
+
{
|
|
811
|
+
connectorOperation: {
|
|
812
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
813
|
+
operationName: 'OnNewMentionMeEmailV3',
|
|
814
|
+
parameters: params
|
|
815
|
+
},
|
|
816
|
+
});
|
|
817
|
+
return result;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Set up automatic replies
|
|
822
|
+
* Set the automatic replies setting for your mailbox.
|
|
823
|
+
*/
|
|
824
|
+
public static async SetAutomaticRepliesSetting(clientSetting: AutomaticRepliesSettingClient): Promise<IOperationResult<void>> {
|
|
825
|
+
const params: { clientSetting: AutomaticRepliesSettingClient } = { clientSetting };
|
|
826
|
+
const result = await Office365OutlookService.client.executeAsync<{ clientSetting: AutomaticRepliesSettingClient }, void>(
|
|
827
|
+
{
|
|
828
|
+
connectorOperation: {
|
|
829
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
830
|
+
operationName: 'SetAutomaticRepliesSetting',
|
|
831
|
+
parameters: params
|
|
832
|
+
},
|
|
833
|
+
});
|
|
834
|
+
return result;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Get mail tips for a mailbox
|
|
839
|
+
* Get mail tips for a mailbox such as automatic replies / OOF message or if the mailbox is full.
|
|
840
|
+
*/
|
|
841
|
+
public static async GetMailTips(mailboxAddress: string): Promise<IOperationResult<MailTipsClientReceive>> {
|
|
842
|
+
const params: { mailboxAddress: string } = { mailboxAddress };
|
|
843
|
+
const result = await Office365OutlookService.client.executeAsync<{ mailboxAddress: string }, MailTipsClientReceive>(
|
|
844
|
+
{
|
|
845
|
+
connectorOperation: {
|
|
846
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
847
|
+
operationName: 'GetMailTips',
|
|
848
|
+
parameters: params
|
|
849
|
+
},
|
|
850
|
+
});
|
|
851
|
+
return result;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Get sensitivity labels
|
|
856
|
+
* Get a collection of information protection labels available to the user.
|
|
857
|
+
*/
|
|
858
|
+
public static async GetSensitivityLabels(): Promise<IOperationResult<BatchResponse_SensitivityLabel>> {
|
|
859
|
+
const result = await Office365OutlookService.client.executeAsync<void, BatchResponse_SensitivityLabel>(
|
|
860
|
+
{
|
|
861
|
+
connectorOperation: {
|
|
862
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
863
|
+
operationName: 'GetSensitivityLabels',
|
|
864
|
+
},
|
|
865
|
+
});
|
|
866
|
+
return result;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* When a new email arrives (webhook)
|
|
871
|
+
* This operation triggers a flow when a new email arrives.
|
|
872
|
+
*/
|
|
873
|
+
public static async CreateOnNewEmailSubscription(subscription: ClientSubscription, folderPath?: string, importance?: string, hasAttachment?: string): Promise<IOperationResult<void>> {
|
|
874
|
+
const params: { subscription: ClientSubscription, folderPath?: string, importance?: string, hasAttachment?: string } = { subscription, folderPath, importance, hasAttachment };
|
|
875
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, folderPath?: string, importance?: string, hasAttachment?: string }, void>(
|
|
876
|
+
{
|
|
877
|
+
connectorOperation: {
|
|
878
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
879
|
+
operationName: 'CreateOnNewEmailSubscription',
|
|
880
|
+
parameters: params
|
|
881
|
+
},
|
|
882
|
+
});
|
|
883
|
+
return result;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Create a webhook subscription for the trigger when a new email arrives
|
|
888
|
+
* Create a webhook subscription for the trigger when a new email arrives.
|
|
889
|
+
*/
|
|
890
|
+
public static async CreateOnNewEmailPokeSubscription(subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean): Promise<IOperationResult<void>> {
|
|
891
|
+
const params: { subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean } = { subscription, folderPath, importance, fetchOnlyWithAttachment };
|
|
892
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean }, void>(
|
|
893
|
+
{
|
|
894
|
+
connectorOperation: {
|
|
895
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
896
|
+
operationName: 'CreateOnNewEmailPokeSubscription',
|
|
897
|
+
parameters: params
|
|
898
|
+
},
|
|
899
|
+
});
|
|
900
|
+
return result;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Create a Graph webhook subscription for the trigger when a new email arrives
|
|
905
|
+
* Create a Graph webhook subscription for the trigger when a new email arrives.
|
|
906
|
+
*/
|
|
907
|
+
public static async CreateGraphOnNewEmailPokeSubscription(subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean): Promise<IOperationResult<void>> {
|
|
908
|
+
const params: { subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean } = { subscription, folderPath, importance, fetchOnlyWithAttachment };
|
|
909
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean }, void>(
|
|
910
|
+
{
|
|
911
|
+
connectorOperation: {
|
|
912
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
913
|
+
operationName: 'CreateGraphOnNewEmailPokeSubscription',
|
|
914
|
+
parameters: params
|
|
915
|
+
},
|
|
916
|
+
});
|
|
917
|
+
return result;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* When a new mentioning me email arrives - Outlook subscription
|
|
922
|
+
* Create an Outlook webhook subscription for the trigger when a new mentioning me email arrives.
|
|
923
|
+
*/
|
|
924
|
+
public static async CreateOnNewMentionMeEmailPokeSubscription(subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean): Promise<IOperationResult<void>> {
|
|
925
|
+
const params: { subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean } = { subscription, folderPath, importance, fetchOnlyWithAttachment };
|
|
926
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean }, void>(
|
|
927
|
+
{
|
|
928
|
+
connectorOperation: {
|
|
929
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
930
|
+
operationName: 'CreateOnNewMentionMeEmailPokeSubscription',
|
|
931
|
+
parameters: params
|
|
932
|
+
},
|
|
933
|
+
});
|
|
934
|
+
return result;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* When a new mentioning me email arrives - Graph subscription
|
|
939
|
+
* Create a Graph webhook subscription for the trigger when a new mentioning me email arrives.
|
|
940
|
+
*/
|
|
941
|
+
public static async CreateGraphOnNewMentionMeEmailPokeSubscription(subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean): Promise<IOperationResult<void>> {
|
|
942
|
+
const params: { subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean } = { subscription, folderPath, importance, fetchOnlyWithAttachment };
|
|
943
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean }, void>(
|
|
944
|
+
{
|
|
945
|
+
connectorOperation: {
|
|
946
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
947
|
+
operationName: 'CreateGraphOnNewMentionMeEmailPokeSubscription',
|
|
948
|
+
parameters: params
|
|
949
|
+
},
|
|
950
|
+
});
|
|
951
|
+
return result;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Create an Outlook webhook subscription for the trigger when an email is flagged
|
|
956
|
+
* Create an Outlook webhook subscription for the trigger when an email is flagged.
|
|
957
|
+
*/
|
|
958
|
+
public static async CreateOnFlaggedEmailPokeSubscription(subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean): Promise<IOperationResult<void>> {
|
|
959
|
+
const params: { subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean } = { subscription, folderPath, importance, fetchOnlyWithAttachment };
|
|
960
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean }, void>(
|
|
961
|
+
{
|
|
962
|
+
connectorOperation: {
|
|
963
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
964
|
+
operationName: 'CreateOnFlaggedEmailPokeSubscription',
|
|
965
|
+
parameters: params
|
|
966
|
+
},
|
|
967
|
+
});
|
|
968
|
+
return result;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Create a Graph webhook subscription for the trigger when an email is flagged
|
|
973
|
+
* Create a Graph webhook subscription for the trigger when an email is flagged.
|
|
974
|
+
*/
|
|
975
|
+
public static async CreateGraphOnFlaggedEmailPokeSubscription(subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean): Promise<IOperationResult<void>> {
|
|
976
|
+
const params: { subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean } = { subscription, folderPath, importance, fetchOnlyWithAttachment };
|
|
977
|
+
const result = await Office365OutlookService.client.executeAsync<{ subscription: ClientSubscription, folderPath?: string, importance?: string, fetchOnlyWithAttachment?: boolean }, void>(
|
|
978
|
+
{
|
|
979
|
+
connectorOperation: {
|
|
980
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
981
|
+
operationName: 'CreateGraphOnFlaggedEmailPokeSubscription',
|
|
982
|
+
parameters: params
|
|
983
|
+
},
|
|
984
|
+
});
|
|
985
|
+
return result;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Delete mail subscription
|
|
990
|
+
* This operation deletes a mail subscription.
|
|
991
|
+
*/
|
|
992
|
+
public static async DeleteOnNewEmailSubscription(id: string, options: string): Promise<IOperationResult<void>> {
|
|
993
|
+
const params: { id: string, options: string } = { id, options };
|
|
994
|
+
const result = await Office365OutlookService.client.executeAsync<{ id: string, options: string }, void>(
|
|
995
|
+
{
|
|
996
|
+
connectorOperation: {
|
|
997
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
998
|
+
operationName: 'DeleteOnNewEmailSubscription',
|
|
999
|
+
parameters: params
|
|
1000
|
+
},
|
|
1001
|
+
});
|
|
1002
|
+
return result;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Update web hook
|
|
1007
|
+
* Update web hook with renew interval.
|
|
1008
|
+
*/
|
|
1009
|
+
public static async RenewOnNewEmailSubscription(id: string, options: string, subscription: ClientSubscription): Promise<IOperationResult<void>> {
|
|
1010
|
+
const params: { id: string, options: string, subscription: ClientSubscription } = { id, options, subscription };
|
|
1011
|
+
const result = await Office365OutlookService.client.executeAsync<{ id: string, options: string, subscription: ClientSubscription }, void>(
|
|
1012
|
+
{
|
|
1013
|
+
connectorOperation: {
|
|
1014
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1015
|
+
operationName: 'RenewOnNewEmailSubscription',
|
|
1016
|
+
parameters: params
|
|
1017
|
+
},
|
|
1018
|
+
});
|
|
1019
|
+
return result;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
public static async GetDataSetsMetadata(): Promise<IOperationResult<DataSetsMetadata>> {
|
|
1023
|
+
const result = await Office365OutlookService.client.executeAsync<void, DataSetsMetadata>(
|
|
1024
|
+
{
|
|
1025
|
+
connectorOperation: {
|
|
1026
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1027
|
+
operationName: 'GetDataSetsMetadata',
|
|
1028
|
+
},
|
|
1029
|
+
});
|
|
1030
|
+
return result;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Send email with options
|
|
1035
|
+
* This operation sends an email with multiple options and waits for the recipient to respond back with one of the options. Please refer to the following link regarding the support of actionable messages in different mail clients: https://docs.microsoft.com/outlook/actionable-messages/#outlook-version-requirements-for-actionable-messages.
|
|
1036
|
+
*/
|
|
1037
|
+
public static async SendMailWithOptions(optionsEmailSubscription: OptionsEmailSubscription): Promise<IOperationResult<void>> {
|
|
1038
|
+
const params: { optionsEmailSubscription: OptionsEmailSubscription } = { optionsEmailSubscription };
|
|
1039
|
+
const result = await Office365OutlookService.client.executeAsync<{ optionsEmailSubscription: OptionsEmailSubscription }, void>(
|
|
1040
|
+
{
|
|
1041
|
+
connectorOperation: {
|
|
1042
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1043
|
+
operationName: 'SendMailWithOptions',
|
|
1044
|
+
parameters: params
|
|
1045
|
+
},
|
|
1046
|
+
});
|
|
1047
|
+
return result;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Send approval email
|
|
1052
|
+
* This operation sends an approval email and waits for a response from the recipient. Please refer to the following link regarding the support of actionable messages in different mail clients: https://docs.microsoft.com/outlook/actionable-messages/#outlook-version-requirements-for-actionable-messages.
|
|
1053
|
+
*/
|
|
1054
|
+
public static async SendApprovalMail(approvalEmailSubscription: ApprovalEmailSubscription): Promise<IOperationResult<void>> {
|
|
1055
|
+
const params: { approvalEmailSubscription: ApprovalEmailSubscription } = { approvalEmailSubscription };
|
|
1056
|
+
const result = await Office365OutlookService.client.executeAsync<{ approvalEmailSubscription: ApprovalEmailSubscription }, void>(
|
|
1057
|
+
{
|
|
1058
|
+
connectorOperation: {
|
|
1059
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1060
|
+
operationName: 'SendApprovalMail',
|
|
1061
|
+
parameters: params
|
|
1062
|
+
},
|
|
1063
|
+
});
|
|
1064
|
+
return result;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Delete approval email subscription
|
|
1069
|
+
* This operation deletes a subscription of approval email.
|
|
1070
|
+
*/
|
|
1071
|
+
public static async DeleteApprovalMailSubscription(id: string): Promise<IOperationResult<void>> {
|
|
1072
|
+
const params: { id: string } = { id };
|
|
1073
|
+
const result = await Office365OutlookService.client.executeAsync<{ id: string }, void>(
|
|
1074
|
+
{
|
|
1075
|
+
connectorOperation: {
|
|
1076
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1077
|
+
operationName: 'DeleteApprovalMailSubscription',
|
|
1078
|
+
parameters: params
|
|
1079
|
+
},
|
|
1080
|
+
});
|
|
1081
|
+
return result;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Delete options email subscription
|
|
1086
|
+
* This operation deletes a subscription of options email.
|
|
1087
|
+
*/
|
|
1088
|
+
public static async DeleteOptionsMailSubscription(id: string): Promise<IOperationResult<void>> {
|
|
1089
|
+
const params: { id: string } = { id };
|
|
1090
|
+
const result = await Office365OutlookService.client.executeAsync<{ id: string }, void>(
|
|
1091
|
+
{
|
|
1092
|
+
connectorOperation: {
|
|
1093
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1094
|
+
operationName: 'DeleteOptionsMailSubscription',
|
|
1095
|
+
parameters: params
|
|
1096
|
+
},
|
|
1097
|
+
});
|
|
1098
|
+
return result;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Send an email from a shared mailbox
|
|
1103
|
+
* This operation sends an email from a shared mailbox. Your account should have permission to access the mailbox for this operation to succeed.
|
|
1104
|
+
*/
|
|
1105
|
+
public static async SharedMailboxSendEmail(emailMessage: SharedMailboxClientSendMessage): Promise<IOperationResult<void>> {
|
|
1106
|
+
const params: { emailMessage: SharedMailboxClientSendMessage } = { emailMessage };
|
|
1107
|
+
const result = await Office365OutlookService.client.executeAsync<{ emailMessage: SharedMailboxClientSendMessage }, void>(
|
|
1108
|
+
{
|
|
1109
|
+
connectorOperation: {
|
|
1110
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1111
|
+
operationName: 'SharedMailboxSendEmail',
|
|
1112
|
+
parameters: params
|
|
1113
|
+
},
|
|
1114
|
+
});
|
|
1115
|
+
return result;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Send an email from a shared mailbox (V2)
|
|
1120
|
+
* This operation sends an email from a shared mailbox. Your account should have permission to access the mailbox for this operation to succeed.
|
|
1121
|
+
*/
|
|
1122
|
+
public static async SharedMailboxSendEmailV2(emailMessage: SharedMailboxClientSendHtmlMessage): Promise<IOperationResult<void>> {
|
|
1123
|
+
const params: { emailMessage: SharedMailboxClientSendHtmlMessage } = { emailMessage };
|
|
1124
|
+
const result = await Office365OutlookService.client.executeAsync<{ emailMessage: SharedMailboxClientSendHtmlMessage }, void>(
|
|
1125
|
+
{
|
|
1126
|
+
connectorOperation: {
|
|
1127
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1128
|
+
operationName: 'SharedMailboxSendEmailV2',
|
|
1129
|
+
parameters: params
|
|
1130
|
+
},
|
|
1131
|
+
});
|
|
1132
|
+
return result;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* When a new email arrives in a shared mailbox
|
|
1137
|
+
* This operation triggers a flow when a new email arrives in a shared mailbox. Your account should have permission to access the mailbox for this operation to succeed. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
1138
|
+
*/
|
|
1139
|
+
public static async SharedMailboxOnNewEmail(mailboxAddress: string, folderId?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, hasAttachments?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string): Promise<IOperationResult<TriggerBatchResponse_ClientReceiveMessage>> {
|
|
1140
|
+
const params: { mailboxAddress: string, folderId?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, hasAttachments?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string } = { mailboxAddress, folderId, to, cc, toOrCc, from, importance, hasAttachments, includeAttachments, subjectFilter, x_ms_operation_context };
|
|
1141
|
+
const result = await Office365OutlookService.client.executeAsync<{ mailboxAddress: string, folderId?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, hasAttachments?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string }, TriggerBatchResponse_ClientReceiveMessage>(
|
|
1142
|
+
{
|
|
1143
|
+
connectorOperation: {
|
|
1144
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1145
|
+
operationName: 'SharedMailboxOnNewEmail',
|
|
1146
|
+
parameters: params
|
|
1147
|
+
},
|
|
1148
|
+
});
|
|
1149
|
+
return result;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* When a new email arrives in a shared mailbox (V2)
|
|
1154
|
+
* This operation triggers a flow when a new email arrives in a shared mailbox. Your account should have permission to access the mailbox for this operation to succeed. It will skip any email that has a total message size greater than the limit put by your Exchange Admin or 50 MB, whichever is less. It may also skip protected emails and emails with invalid body or attachments.
|
|
1155
|
+
*/
|
|
1156
|
+
public static async SharedMailboxOnNewEmailV2(mailboxAddress: string, folderId?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, hasAttachments?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string): Promise<IOperationResult<TriggerBatchResponse_GraphClientReceiveMessage>> {
|
|
1157
|
+
const params: { mailboxAddress: string, folderId?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, hasAttachments?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string } = { mailboxAddress, folderId, to, cc, toOrCc, from, importance, hasAttachments, includeAttachments, subjectFilter, x_ms_operation_context };
|
|
1158
|
+
const result = await Office365OutlookService.client.executeAsync<{ mailboxAddress: string, folderId?: string, to?: string, cc?: string, toOrCc?: string, from?: string, importance?: string, hasAttachments?: boolean, includeAttachments?: boolean, subjectFilter?: string, x_ms_operation_context?: string }, TriggerBatchResponse_GraphClientReceiveMessage>(
|
|
1159
|
+
{
|
|
1160
|
+
connectorOperation: {
|
|
1161
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1162
|
+
operationName: 'SharedMailboxOnNewEmailV2',
|
|
1163
|
+
parameters: params
|
|
1164
|
+
},
|
|
1165
|
+
});
|
|
1166
|
+
return result;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Tests the connection
|
|
1171
|
+
* Tests the connection.
|
|
1172
|
+
*/
|
|
1173
|
+
public static async TestConnection(): Promise<IOperationResult<void>> {
|
|
1174
|
+
const result = await Office365OutlookService.client.executeAsync<void, void>(
|
|
1175
|
+
{
|
|
1176
|
+
connectorOperation: {
|
|
1177
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1178
|
+
operationName: 'TestConnection',
|
|
1179
|
+
},
|
|
1180
|
+
});
|
|
1181
|
+
return result;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* Get calendars
|
|
1186
|
+
* This operation lists available calendars.
|
|
1187
|
+
*/
|
|
1188
|
+
public static async CalendarGetTables(): Promise<IOperationResult<EntityListResponse_Table>> {
|
|
1189
|
+
const result = await Office365OutlookService.client.executeAsync<void, EntityListResponse_Table>(
|
|
1190
|
+
{
|
|
1191
|
+
connectorOperation: {
|
|
1192
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1193
|
+
operationName: 'CalendarGetTables',
|
|
1194
|
+
},
|
|
1195
|
+
});
|
|
1196
|
+
return result;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Get events (V1)
|
|
1201
|
+
* This operation gets events from a calendar. (V1)
|
|
1202
|
+
*/
|
|
1203
|
+
public static async CalendarGetItems(table: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<EntityListResponse_CalendarEventBackend>> {
|
|
1204
|
+
const params: { table: string, $orderby?: string, $top?: number, $skip?: number } = { table, $orderby, $top, $skip };
|
|
1205
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $orderby?: string, $top?: number, $skip?: number }, EntityListResponse_CalendarEventBackend>(
|
|
1206
|
+
{
|
|
1207
|
+
connectorOperation: {
|
|
1208
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1209
|
+
operationName: 'CalendarGetItems',
|
|
1210
|
+
parameters: params
|
|
1211
|
+
},
|
|
1212
|
+
});
|
|
1213
|
+
return result;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Create event (V1)
|
|
1218
|
+
* This operation creates a new event in a calendar. (V1)
|
|
1219
|
+
*/
|
|
1220
|
+
public static async CalendarPostItem(table: string, item: CalendarEventBackend): Promise<IOperationResult<CalendarEventBackend>> {
|
|
1221
|
+
const params: { table: string, item: CalendarEventBackend } = { table, item };
|
|
1222
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, item: CalendarEventBackend }, CalendarEventBackend>(
|
|
1223
|
+
{
|
|
1224
|
+
connectorOperation: {
|
|
1225
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1226
|
+
operationName: 'CalendarPostItem',
|
|
1227
|
+
parameters: params
|
|
1228
|
+
},
|
|
1229
|
+
});
|
|
1230
|
+
return result;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Get event (V1)
|
|
1235
|
+
* This operation gets a specific event from a calendar. (V1)
|
|
1236
|
+
*/
|
|
1237
|
+
public static async CalendarGetItem(table: string, id: string): Promise<IOperationResult<CalendarEventBackend>> {
|
|
1238
|
+
const params: { table: string, id: string } = { table, id };
|
|
1239
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string }, CalendarEventBackend>(
|
|
1240
|
+
{
|
|
1241
|
+
connectorOperation: {
|
|
1242
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1243
|
+
operationName: 'CalendarGetItem',
|
|
1244
|
+
parameters: params
|
|
1245
|
+
},
|
|
1246
|
+
});
|
|
1247
|
+
return result;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Delete event
|
|
1252
|
+
* This operation deletes an event in a calendar.
|
|
1253
|
+
*/
|
|
1254
|
+
public static async CalendarDeleteItem(table: string, id: string): Promise<IOperationResult<void>> {
|
|
1255
|
+
const params: { table: string, id: string } = { table, id };
|
|
1256
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string }, void>(
|
|
1257
|
+
{
|
|
1258
|
+
connectorOperation: {
|
|
1259
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1260
|
+
operationName: 'CalendarDeleteItem',
|
|
1261
|
+
parameters: params
|
|
1262
|
+
},
|
|
1263
|
+
});
|
|
1264
|
+
return result;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Update event (V1)
|
|
1269
|
+
* This operation updates an event in a calendar. (V1)
|
|
1270
|
+
*/
|
|
1271
|
+
public static async CalendarPatchItem(table: string, id: string, item: CalendarEventBackend): Promise<IOperationResult<CalendarEventBackend>> {
|
|
1272
|
+
const params: { table: string, id: string, item: CalendarEventBackend } = { table, id, item };
|
|
1273
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string, item: CalendarEventBackend }, CalendarEventBackend>(
|
|
1274
|
+
{
|
|
1275
|
+
connectorOperation: {
|
|
1276
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1277
|
+
operationName: 'CalendarPatchItem',
|
|
1278
|
+
parameters: params
|
|
1279
|
+
},
|
|
1280
|
+
});
|
|
1281
|
+
return result;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* Get events (V3)
|
|
1286
|
+
* This operation gets events from a calendar. (V3)
|
|
1287
|
+
*/
|
|
1288
|
+
public static async V3CalendarGetItems(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<CalendarEventListClientReceive>> {
|
|
1289
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { table, $filter, $orderby, $top, $skip };
|
|
1290
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, CalendarEventListClientReceive>(
|
|
1291
|
+
{
|
|
1292
|
+
connectorOperation: {
|
|
1293
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1294
|
+
operationName: 'V3CalendarGetItems',
|
|
1295
|
+
parameters: params
|
|
1296
|
+
},
|
|
1297
|
+
});
|
|
1298
|
+
return result;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* Create event (V3)
|
|
1303
|
+
* This operation creates a new event in a calendar.
|
|
1304
|
+
*/
|
|
1305
|
+
public static async V3CalendarPostItem(table: string, item: CalendarEventHtmlClient): Promise<IOperationResult<CalendarEventClientReceiveStringEnums>> {
|
|
1306
|
+
const params: { table: string, item: CalendarEventHtmlClient } = { table, item };
|
|
1307
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, item: CalendarEventHtmlClient }, CalendarEventClientReceiveStringEnums>(
|
|
1308
|
+
{
|
|
1309
|
+
connectorOperation: {
|
|
1310
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1311
|
+
operationName: 'V3CalendarPostItem',
|
|
1312
|
+
parameters: params
|
|
1313
|
+
},
|
|
1314
|
+
});
|
|
1315
|
+
return result;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Get events (V4)
|
|
1320
|
+
* This operation gets events from a calendar using Graph API. (V4)
|
|
1321
|
+
*/
|
|
1322
|
+
public static async V4CalendarGetItems(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<GraphCalendarEventListClientReceive>> {
|
|
1323
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { table, $filter, $orderby, $top, $skip };
|
|
1324
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, GraphCalendarEventListClientReceive>(
|
|
1325
|
+
{
|
|
1326
|
+
connectorOperation: {
|
|
1327
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1328
|
+
operationName: 'V4CalendarGetItems',
|
|
1329
|
+
parameters: params
|
|
1330
|
+
},
|
|
1331
|
+
});
|
|
1332
|
+
return result;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Create event (V4)
|
|
1337
|
+
* This operation creates a new event in a calendar.
|
|
1338
|
+
*/
|
|
1339
|
+
public static async V4CalendarPostItem(table: string, item: GraphCalendarEventClient): Promise<IOperationResult<GraphCalendarEventClientReceive>> {
|
|
1340
|
+
const params: { table: string, item: GraphCalendarEventClient } = { table, item };
|
|
1341
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, item: GraphCalendarEventClient }, GraphCalendarEventClientReceive>(
|
|
1342
|
+
{
|
|
1343
|
+
connectorOperation: {
|
|
1344
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1345
|
+
operationName: 'V4CalendarPostItem',
|
|
1346
|
+
parameters: params
|
|
1347
|
+
},
|
|
1348
|
+
});
|
|
1349
|
+
return result;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Get events (V2)
|
|
1354
|
+
* This operation gets events from a calendar. (V2)
|
|
1355
|
+
*/
|
|
1356
|
+
public static async V2CalendarGetItems(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<EntityListResponse_CalendarEventClientReceiveStringEnums>> {
|
|
1357
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { table, $filter, $orderby, $top, $skip };
|
|
1358
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, EntityListResponse_CalendarEventClientReceiveStringEnums>(
|
|
1359
|
+
{
|
|
1360
|
+
connectorOperation: {
|
|
1361
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1362
|
+
operationName: 'V2CalendarGetItems',
|
|
1363
|
+
parameters: params
|
|
1364
|
+
},
|
|
1365
|
+
});
|
|
1366
|
+
return result;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Create event (V2)
|
|
1371
|
+
* This operation creates a new event in a calendar. (V2)
|
|
1372
|
+
*/
|
|
1373
|
+
public static async V2CalendarPostItem(table: string, item: CalendarEventClient): Promise<IOperationResult<CalendarEventClientReceiveStringEnums>> {
|
|
1374
|
+
const params: { table: string, item: CalendarEventClient } = { table, item };
|
|
1375
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, item: CalendarEventClient }, CalendarEventClientReceiveStringEnums>(
|
|
1376
|
+
{
|
|
1377
|
+
connectorOperation: {
|
|
1378
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1379
|
+
operationName: 'V2CalendarPostItem',
|
|
1380
|
+
parameters: params
|
|
1381
|
+
},
|
|
1382
|
+
});
|
|
1383
|
+
return result;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Get calendar view of events (V2)
|
|
1388
|
+
* This operation gets all events (including instances of recurrences) in a calendar. Recurrence property is null in this case.
|
|
1389
|
+
*/
|
|
1390
|
+
public static async GetEventsCalendarViewV2(calendarId: string, startDateTimeOffset: string, endDateTimeOffset: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, search?: string): Promise<IOperationResult<EntityListResponse_CalendarEventClientReceiveStringEnums>> {
|
|
1391
|
+
const params: { calendarId: string, startDateTimeOffset: string, endDateTimeOffset: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, search?: string } = { calendarId, startDateTimeOffset, endDateTimeOffset, $filter, $orderby, $top, $skip, search };
|
|
1392
|
+
const result = await Office365OutlookService.client.executeAsync<{ calendarId: string, startDateTimeOffset: string, endDateTimeOffset: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, search?: string }, EntityListResponse_CalendarEventClientReceiveStringEnums>(
|
|
1393
|
+
{
|
|
1394
|
+
connectorOperation: {
|
|
1395
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1396
|
+
operationName: 'GetEventsCalendarViewV2',
|
|
1397
|
+
parameters: params
|
|
1398
|
+
},
|
|
1399
|
+
});
|
|
1400
|
+
return result;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Get calendar view of events (V3)
|
|
1405
|
+
* This operation gets all events (including instances of recurrences) in a calendar using Graph API. Recurrence property is null in this case.
|
|
1406
|
+
*/
|
|
1407
|
+
public static async GetEventsCalendarViewV3(calendarId: string, startDateTimeUtc: string, endDateTimeUtc: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, search?: string): Promise<IOperationResult<EntityListResponse_GraphCalendarEventClientReceive>> {
|
|
1408
|
+
const params: { calendarId: string, startDateTimeUtc: string, endDateTimeUtc: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, search?: string } = { calendarId, startDateTimeUtc, endDateTimeUtc, $filter, $orderby, $top, $skip, search };
|
|
1409
|
+
const result = await Office365OutlookService.client.executeAsync<{ calendarId: string, startDateTimeUtc: string, endDateTimeUtc: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, search?: string }, EntityListResponse_GraphCalendarEventClientReceive>(
|
|
1410
|
+
{
|
|
1411
|
+
connectorOperation: {
|
|
1412
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1413
|
+
operationName: 'GetEventsCalendarViewV3',
|
|
1414
|
+
parameters: params
|
|
1415
|
+
},
|
|
1416
|
+
});
|
|
1417
|
+
return result;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Get event (V2)
|
|
1422
|
+
* This operation gets a specific event from a calendar. (V2)
|
|
1423
|
+
*/
|
|
1424
|
+
public static async V2CalendarGetItem(table: string, id: string): Promise<IOperationResult<CalendarEventClientReceiveStringEnums>> {
|
|
1425
|
+
const params: { table: string, id: string } = { table, id };
|
|
1426
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string }, CalendarEventClientReceiveStringEnums>(
|
|
1427
|
+
{
|
|
1428
|
+
connectorOperation: {
|
|
1429
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1430
|
+
operationName: 'V2CalendarGetItem',
|
|
1431
|
+
parameters: params
|
|
1432
|
+
},
|
|
1433
|
+
});
|
|
1434
|
+
return result;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* Update event (V2)
|
|
1439
|
+
* This operation updates an event in a calendar. (V2)
|
|
1440
|
+
*/
|
|
1441
|
+
public static async V2CalendarPatchItem(table: string, id: string, item: CalendarEventClient): Promise<IOperationResult<CalendarEventClientReceiveStringEnums>> {
|
|
1442
|
+
const params: { table: string, id: string, item: CalendarEventClient } = { table, id, item };
|
|
1443
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string, item: CalendarEventClient }, CalendarEventClientReceiveStringEnums>(
|
|
1444
|
+
{
|
|
1445
|
+
connectorOperation: {
|
|
1446
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1447
|
+
operationName: 'V2CalendarPatchItem',
|
|
1448
|
+
parameters: params
|
|
1449
|
+
},
|
|
1450
|
+
});
|
|
1451
|
+
return result;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Get event (V3)
|
|
1456
|
+
* This operation gets a specific event from a calendar using Graph API. (V3)
|
|
1457
|
+
*/
|
|
1458
|
+
public static async V3CalendarGetItem(table: string, id: string): Promise<IOperationResult<GraphCalendarEventClientReceive>> {
|
|
1459
|
+
const params: { table: string, id: string } = { table, id };
|
|
1460
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string }, GraphCalendarEventClientReceive>(
|
|
1461
|
+
{
|
|
1462
|
+
connectorOperation: {
|
|
1463
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1464
|
+
operationName: 'V3CalendarGetItem',
|
|
1465
|
+
parameters: params
|
|
1466
|
+
},
|
|
1467
|
+
});
|
|
1468
|
+
return result;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Update event (V3)
|
|
1473
|
+
* This operation updates an event in a calendar.
|
|
1474
|
+
*/
|
|
1475
|
+
public static async V3CalendarPatchItem(table: string, id: string, item: CalendarEventHtmlClient): Promise<IOperationResult<CalendarEventClientReceiveStringEnums>> {
|
|
1476
|
+
const params: { table: string, id: string, item: CalendarEventHtmlClient } = { table, id, item };
|
|
1477
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string, item: CalendarEventHtmlClient }, CalendarEventClientReceiveStringEnums>(
|
|
1478
|
+
{
|
|
1479
|
+
connectorOperation: {
|
|
1480
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1481
|
+
operationName: 'V3CalendarPatchItem',
|
|
1482
|
+
parameters: params
|
|
1483
|
+
},
|
|
1484
|
+
});
|
|
1485
|
+
return result;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Update event (V4)
|
|
1490
|
+
* This operation updates an event in a calendar using Graph API.
|
|
1491
|
+
*/
|
|
1492
|
+
public static async V4CalendarPatchItem(table: string, id: string, item: GraphCalendarEventClient): Promise<IOperationResult<GraphCalendarEventClientReceive>> {
|
|
1493
|
+
const params: { table: string, id: string, item: GraphCalendarEventClient } = { table, id, item };
|
|
1494
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string, item: GraphCalendarEventClient }, GraphCalendarEventClientReceive>(
|
|
1495
|
+
{
|
|
1496
|
+
connectorOperation: {
|
|
1497
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1498
|
+
operationName: 'V4CalendarPatchItem',
|
|
1499
|
+
parameters: params
|
|
1500
|
+
},
|
|
1501
|
+
});
|
|
1502
|
+
return result;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* When a new event is created (V1)
|
|
1507
|
+
* This operation triggers a flow when a new event is created in a calendar. (V1)
|
|
1508
|
+
*/
|
|
1509
|
+
public static async CalendarGetOnNewItems(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string): Promise<IOperationResult<CalendarEventList>> {
|
|
1510
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string } = { table, $filter, $orderby, $top, $skip, x_ms_operation_context };
|
|
1511
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string }, CalendarEventList>(
|
|
1512
|
+
{
|
|
1513
|
+
connectorOperation: {
|
|
1514
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1515
|
+
operationName: 'CalendarGetOnNewItems',
|
|
1516
|
+
parameters: params
|
|
1517
|
+
},
|
|
1518
|
+
});
|
|
1519
|
+
return result;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* When an event is modified (V1)
|
|
1524
|
+
* This operation triggers a flow when an event is modified in a calendar. (V1)
|
|
1525
|
+
*/
|
|
1526
|
+
public static async CalendarGetOnUpdatedItems(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<CalendarEventList>> {
|
|
1527
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { table, $filter, $orderby, $top, $skip };
|
|
1528
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, CalendarEventList>(
|
|
1529
|
+
{
|
|
1530
|
+
connectorOperation: {
|
|
1531
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1532
|
+
operationName: 'CalendarGetOnUpdatedItems',
|
|
1533
|
+
parameters: params
|
|
1534
|
+
},
|
|
1535
|
+
});
|
|
1536
|
+
return result;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* When a new item is created in a table
|
|
1541
|
+
* This operation triggers a flow when a new item is created in a table.
|
|
1542
|
+
*/
|
|
1543
|
+
public static async ODataStyleGetOnNewItems(dataset: string, table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<CalendarEventList>> {
|
|
1544
|
+
const params: { dataset: string, table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { dataset, table, $filter, $orderby, $top, $skip };
|
|
1545
|
+
const result = await Office365OutlookService.client.executeAsync<{ dataset: string, table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, CalendarEventList>(
|
|
1546
|
+
{
|
|
1547
|
+
connectorOperation: {
|
|
1548
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1549
|
+
operationName: 'ODataStyleGetOnNewItems',
|
|
1550
|
+
parameters: params
|
|
1551
|
+
},
|
|
1552
|
+
});
|
|
1553
|
+
return result;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* When an item is modified
|
|
1558
|
+
* This operation triggers a flow when an item is modified in a table.
|
|
1559
|
+
*/
|
|
1560
|
+
public static async ODataStyleCalendarGetOnUpdatedItems(dataset: string, table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<CalendarEventList>> {
|
|
1561
|
+
const params: { dataset: string, table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { dataset, table, $filter, $orderby, $top, $skip };
|
|
1562
|
+
const result = await Office365OutlookService.client.executeAsync<{ dataset: string, table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, CalendarEventList>(
|
|
1563
|
+
{
|
|
1564
|
+
connectorOperation: {
|
|
1565
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1566
|
+
operationName: 'ODataStyleCalendarGetOnUpdatedItems',
|
|
1567
|
+
parameters: params
|
|
1568
|
+
},
|
|
1569
|
+
});
|
|
1570
|
+
return result;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* When a new event is created (V2)
|
|
1575
|
+
* This operation triggers a flow when a new event is created in a calendar. (V2)
|
|
1576
|
+
*/
|
|
1577
|
+
public static async CalendarGetOnNewItemsV2(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string): Promise<IOperationResult<CalendarEventListClientReceive>> {
|
|
1578
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string } = { table, $filter, $orderby, $top, $skip, x_ms_operation_context };
|
|
1579
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string }, CalendarEventListClientReceive>(
|
|
1580
|
+
{
|
|
1581
|
+
connectorOperation: {
|
|
1582
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1583
|
+
operationName: 'CalendarGetOnNewItemsV2',
|
|
1584
|
+
parameters: params
|
|
1585
|
+
},
|
|
1586
|
+
});
|
|
1587
|
+
return result;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* When a new event is created (V3)
|
|
1592
|
+
* This operation triggers a flow when a new event is created in a calendar. (V3)
|
|
1593
|
+
*/
|
|
1594
|
+
public static async CalendarGetOnNewItemsV3(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string): Promise<IOperationResult<GraphCalendarEventListClientReceive>> {
|
|
1595
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string } = { table, $filter, $orderby, $top, $skip, x_ms_operation_context };
|
|
1596
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number, x_ms_operation_context?: string }, GraphCalendarEventListClientReceive>(
|
|
1597
|
+
{
|
|
1598
|
+
connectorOperation: {
|
|
1599
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1600
|
+
operationName: 'CalendarGetOnNewItemsV3',
|
|
1601
|
+
parameters: params
|
|
1602
|
+
},
|
|
1603
|
+
});
|
|
1604
|
+
return result;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* When an event is modified (V2)
|
|
1609
|
+
* This operation triggers a flow when an event is modified in a calendar. (V2)
|
|
1610
|
+
*/
|
|
1611
|
+
public static async CalendarGetOnUpdatedItemsV2(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<CalendarEventListClientReceive>> {
|
|
1612
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { table, $filter, $orderby, $top, $skip };
|
|
1613
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, CalendarEventListClientReceive>(
|
|
1614
|
+
{
|
|
1615
|
+
connectorOperation: {
|
|
1616
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1617
|
+
operationName: 'CalendarGetOnUpdatedItemsV2',
|
|
1618
|
+
parameters: params
|
|
1619
|
+
},
|
|
1620
|
+
});
|
|
1621
|
+
return result;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
* When an event is modified (V3)
|
|
1626
|
+
* This operation triggers a flow when an event is modified in a calendar. (V3)
|
|
1627
|
+
*/
|
|
1628
|
+
public static async CalendarGetOnUpdatedItemsV3(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<GraphCalendarEventListClientReceive>> {
|
|
1629
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { table, $filter, $orderby, $top, $skip };
|
|
1630
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, GraphCalendarEventListClientReceive>(
|
|
1631
|
+
{
|
|
1632
|
+
connectorOperation: {
|
|
1633
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1634
|
+
operationName: 'CalendarGetOnUpdatedItemsV3',
|
|
1635
|
+
parameters: params
|
|
1636
|
+
},
|
|
1637
|
+
});
|
|
1638
|
+
return result;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* When an event is added, updated or deleted
|
|
1643
|
+
* This operation triggers a flow when an event is added, updated or deleted in a calendar.
|
|
1644
|
+
*/
|
|
1645
|
+
public static async CalendarGetOnChangedItems(table: string, incomingDays?: number, pastDays?: number): Promise<IOperationResult<CalendarEventListWithActionType>> {
|
|
1646
|
+
const params: { table: string, incomingDays?: number, pastDays?: number } = { table, incomingDays, pastDays };
|
|
1647
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, incomingDays?: number, pastDays?: number }, CalendarEventListWithActionType>(
|
|
1648
|
+
{
|
|
1649
|
+
connectorOperation: {
|
|
1650
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1651
|
+
operationName: 'CalendarGetOnChangedItems',
|
|
1652
|
+
parameters: params
|
|
1653
|
+
},
|
|
1654
|
+
});
|
|
1655
|
+
return result;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* When an event is added, updated or deleted (V2)
|
|
1660
|
+
* This operation triggers a flow when an event is added, updated or deleted in a calendar. (V2)
|
|
1661
|
+
*/
|
|
1662
|
+
public static async CalendarGetOnChangedItemsV2(table: string, incomingDays?: number, pastDays?: number): Promise<IOperationResult<GraphCalendarEventListWithActionType>> {
|
|
1663
|
+
const params: { table: string, incomingDays?: number, pastDays?: number } = { table, incomingDays, pastDays };
|
|
1664
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, incomingDays?: number, pastDays?: number }, GraphCalendarEventListWithActionType>(
|
|
1665
|
+
{
|
|
1666
|
+
connectorOperation: {
|
|
1667
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1668
|
+
operationName: 'CalendarGetOnChangedItemsV2',
|
|
1669
|
+
parameters: params
|
|
1670
|
+
},
|
|
1671
|
+
});
|
|
1672
|
+
return result;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* When an event is added, updated or deleted (V3)
|
|
1677
|
+
* This operation triggers a flow when an event is added, updated or deleted in a calendar. (V3) This is not available in Mooncake.
|
|
1678
|
+
*/
|
|
1679
|
+
public static async CalendarGetOnChangedItemsV3(table: string, incomingDays?: number, pastDays?: number): Promise<IOperationResult<GraphCalendarEventListWithActionType>> {
|
|
1680
|
+
const params: { table: string, incomingDays?: number, pastDays?: number } = { table, incomingDays, pastDays };
|
|
1681
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, incomingDays?: number, pastDays?: number }, GraphCalendarEventListWithActionType>(
|
|
1682
|
+
{
|
|
1683
|
+
connectorOperation: {
|
|
1684
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1685
|
+
operationName: 'CalendarGetOnChangedItemsV3',
|
|
1686
|
+
parameters: params
|
|
1687
|
+
},
|
|
1688
|
+
});
|
|
1689
|
+
return result;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
* Get contact folders
|
|
1694
|
+
* This operation lists available contacts folders.
|
|
1695
|
+
*/
|
|
1696
|
+
public static async ContactGetTables(): Promise<IOperationResult<EntityListResponse_Table>> {
|
|
1697
|
+
const result = await Office365OutlookService.client.executeAsync<void, EntityListResponse_Table>(
|
|
1698
|
+
{
|
|
1699
|
+
connectorOperation: {
|
|
1700
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1701
|
+
operationName: 'ContactGetTables',
|
|
1702
|
+
},
|
|
1703
|
+
});
|
|
1704
|
+
return result;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Get contact folders (V2)
|
|
1709
|
+
* This operation lists available contacts folders using Graph API
|
|
1710
|
+
*/
|
|
1711
|
+
public static async ContactGetTablesV2(): Promise<IOperationResult<EntityListResponse_GraphContactFolder>> {
|
|
1712
|
+
const result = await Office365OutlookService.client.executeAsync<void, EntityListResponse_GraphContactFolder>(
|
|
1713
|
+
{
|
|
1714
|
+
connectorOperation: {
|
|
1715
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1716
|
+
operationName: 'ContactGetTablesV2',
|
|
1717
|
+
},
|
|
1718
|
+
});
|
|
1719
|
+
return result;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Get contacts
|
|
1724
|
+
* This operation gets contacts from a contacts folder.
|
|
1725
|
+
*/
|
|
1726
|
+
public static async ContactGetItems(table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<EntityListResponse_ContactResponse>> {
|
|
1727
|
+
const params: { table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { table, $filter, $orderby, $top, $skip };
|
|
1728
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, EntityListResponse_ContactResponse>(
|
|
1729
|
+
{
|
|
1730
|
+
connectorOperation: {
|
|
1731
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1732
|
+
operationName: 'ContactGetItems',
|
|
1733
|
+
parameters: params
|
|
1734
|
+
},
|
|
1735
|
+
});
|
|
1736
|
+
return result;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* Create contact
|
|
1741
|
+
* This operation creates a new contact in a contacts folder.
|
|
1742
|
+
*/
|
|
1743
|
+
public static async ContactPostItem(table: string, item: Contact): Promise<IOperationResult<ContactResponse>> {
|
|
1744
|
+
const params: { table: string, item: Contact } = { table, item };
|
|
1745
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, item: Contact }, ContactResponse>(
|
|
1746
|
+
{
|
|
1747
|
+
connectorOperation: {
|
|
1748
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1749
|
+
operationName: 'ContactPostItem',
|
|
1750
|
+
parameters: params
|
|
1751
|
+
},
|
|
1752
|
+
});
|
|
1753
|
+
return result;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Get contact
|
|
1758
|
+
* This operation gets a specific contact from a contacts folder.
|
|
1759
|
+
*/
|
|
1760
|
+
public static async ContactGetItem(table: string, id: string): Promise<IOperationResult<ContactResponse>> {
|
|
1761
|
+
const params: { table: string, id: string } = { table, id };
|
|
1762
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string }, ContactResponse>(
|
|
1763
|
+
{
|
|
1764
|
+
connectorOperation: {
|
|
1765
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1766
|
+
operationName: 'ContactGetItem',
|
|
1767
|
+
parameters: params
|
|
1768
|
+
},
|
|
1769
|
+
});
|
|
1770
|
+
return result;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* Delete contact
|
|
1775
|
+
* This operation deletes a contact from a contacts folder.
|
|
1776
|
+
*/
|
|
1777
|
+
public static async ContactDeleteItem(table: string, id: string): Promise<IOperationResult<void>> {
|
|
1778
|
+
const params: { table: string, id: string } = { table, id };
|
|
1779
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string }, void>(
|
|
1780
|
+
{
|
|
1781
|
+
connectorOperation: {
|
|
1782
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1783
|
+
operationName: 'ContactDeleteItem',
|
|
1784
|
+
parameters: params
|
|
1785
|
+
},
|
|
1786
|
+
});
|
|
1787
|
+
return result;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* Update contact
|
|
1792
|
+
* This operation updates a contact in a contacts folder.
|
|
1793
|
+
*/
|
|
1794
|
+
public static async ContactPatchItem(table: string, id: string, item: Contact): Promise<IOperationResult<ContactResponse>> {
|
|
1795
|
+
const params: { table: string, id: string, item: Contact } = { table, id, item };
|
|
1796
|
+
const result = await Office365OutlookService.client.executeAsync<{ table: string, id: string, item: Contact }, ContactResponse>(
|
|
1797
|
+
{
|
|
1798
|
+
connectorOperation: {
|
|
1799
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1800
|
+
operationName: 'ContactPatchItem',
|
|
1801
|
+
parameters: params
|
|
1802
|
+
},
|
|
1803
|
+
});
|
|
1804
|
+
return result;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* Get datasets
|
|
1809
|
+
* This operation gets Contacts or Calendars
|
|
1810
|
+
*/
|
|
1811
|
+
public static async GetDataSets(): Promise<IOperationResult<DataSetsList>> {
|
|
1812
|
+
const result = await Office365OutlookService.client.executeAsync<void, DataSetsList>(
|
|
1813
|
+
{
|
|
1814
|
+
connectorOperation: {
|
|
1815
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1816
|
+
operationName: 'GetDataSets',
|
|
1817
|
+
},
|
|
1818
|
+
});
|
|
1819
|
+
return result;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* Export email
|
|
1824
|
+
* Export the content of the email.
|
|
1825
|
+
*/
|
|
1826
|
+
public static async ExportEmail(messageId: string): Promise<IOperationResult<string>> {
|
|
1827
|
+
const params: { messageId: string } = { messageId };
|
|
1828
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string }, string>(
|
|
1829
|
+
{
|
|
1830
|
+
connectorOperation: {
|
|
1831
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1832
|
+
operationName: 'ExportEmail',
|
|
1833
|
+
parameters: params
|
|
1834
|
+
},
|
|
1835
|
+
});
|
|
1836
|
+
return result;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Export email (V2)
|
|
1841
|
+
* Export the content of the email in the EML file format.
|
|
1842
|
+
*/
|
|
1843
|
+
public static async ExportEmail_V2(messageId: string, mailboxAddress?: string): Promise<IOperationResult<string>> {
|
|
1844
|
+
const params: { messageId: string, mailboxAddress?: string } = { messageId, mailboxAddress };
|
|
1845
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, mailboxAddress?: string }, string>(
|
|
1846
|
+
{
|
|
1847
|
+
connectorOperation: {
|
|
1848
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1849
|
+
operationName: 'ExportEmail_V2',
|
|
1850
|
+
parameters: params
|
|
1851
|
+
},
|
|
1852
|
+
});
|
|
1853
|
+
return result;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Flag email (V2)
|
|
1858
|
+
* This operation updates an email flag.
|
|
1859
|
+
*/
|
|
1860
|
+
public static async Flag_V2(messageId: string, mailboxAddress?: string, body?: UpdateEmailFlag): Promise<IOperationResult<void>> {
|
|
1861
|
+
const params: { messageId: string, mailboxAddress?: string, body?: UpdateEmailFlag } = { messageId, mailboxAddress, body };
|
|
1862
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, mailboxAddress?: string, body?: UpdateEmailFlag }, void>(
|
|
1863
|
+
{
|
|
1864
|
+
connectorOperation: {
|
|
1865
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1866
|
+
operationName: 'Flag_V2',
|
|
1867
|
+
parameters: params
|
|
1868
|
+
},
|
|
1869
|
+
});
|
|
1870
|
+
return result;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Mark as read or unread (V2)
|
|
1875
|
+
* This operation marks an email as read/unread.
|
|
1876
|
+
*/
|
|
1877
|
+
public static async MarkAsRead_V2(messageId: string, mailboxAddress?: string, body?: Record<string, unknown>): Promise<IOperationResult<void>> {
|
|
1878
|
+
const params: { messageId: string, mailboxAddress?: string, body?: Record<string, unknown> } = { messageId, mailboxAddress, body };
|
|
1879
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, mailboxAddress?: string, body?: Record<string, unknown> }, void>(
|
|
1880
|
+
{
|
|
1881
|
+
connectorOperation: {
|
|
1882
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1883
|
+
operationName: 'MarkAsRead_V2',
|
|
1884
|
+
parameters: params
|
|
1885
|
+
},
|
|
1886
|
+
});
|
|
1887
|
+
return result;
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* Mark as read or unread (V3)
|
|
1892
|
+
* This operation marks an email as read/unread.
|
|
1893
|
+
*/
|
|
1894
|
+
public static async MarkAsRead_V3(messageId: string, mailboxAddress?: string, body?: Record<string, unknown>): Promise<IOperationResult<void>> {
|
|
1895
|
+
const params: { messageId: string, mailboxAddress?: string, body?: Record<string, unknown> } = { messageId, mailboxAddress, body };
|
|
1896
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, mailboxAddress?: string, body?: Record<string, unknown> }, void>(
|
|
1897
|
+
{
|
|
1898
|
+
connectorOperation: {
|
|
1899
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1900
|
+
operationName: 'MarkAsRead_V3',
|
|
1901
|
+
parameters: params
|
|
1902
|
+
},
|
|
1903
|
+
});
|
|
1904
|
+
return result;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Delete email (V2)
|
|
1909
|
+
* This operation deletes an email by id.
|
|
1910
|
+
*/
|
|
1911
|
+
public static async DeleteEmail_V2(messageId: string, mailboxAddress?: string): Promise<IOperationResult<void>> {
|
|
1912
|
+
const params: { messageId: string, mailboxAddress?: string } = { messageId, mailboxAddress };
|
|
1913
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, mailboxAddress?: string }, void>(
|
|
1914
|
+
{
|
|
1915
|
+
connectorOperation: {
|
|
1916
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1917
|
+
operationName: 'DeleteEmail_V2',
|
|
1918
|
+
parameters: params
|
|
1919
|
+
},
|
|
1920
|
+
});
|
|
1921
|
+
return result;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* Get Attachment (V2)
|
|
1926
|
+
* This operation gets an email attachment by id.
|
|
1927
|
+
*/
|
|
1928
|
+
public static async GetAttachment_V2(messageId: string, attachmentId: string, mailboxAddress?: string, extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean): Promise<IOperationResult<Record<string, unknown>>> {
|
|
1929
|
+
const params: { messageId: string, attachmentId: string, mailboxAddress?: string, extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean } = { messageId, attachmentId, mailboxAddress, extractSensitivityLabel, fetchSensitivityLabelMetadata };
|
|
1930
|
+
const result = await Office365OutlookService.client.executeAsync<{ messageId: string, attachmentId: string, mailboxAddress?: string, extractSensitivityLabel?: boolean, fetchSensitivityLabelMetadata?: boolean }, Record<string, unknown>>(
|
|
1931
|
+
{
|
|
1932
|
+
connectorOperation: {
|
|
1933
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1934
|
+
operationName: 'GetAttachment_V2',
|
|
1935
|
+
parameters: params
|
|
1936
|
+
},
|
|
1937
|
+
});
|
|
1938
|
+
return result;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* Respond to an event invite
|
|
1943
|
+
* Respond to an event invite.
|
|
1944
|
+
*/
|
|
1945
|
+
public static async RespondToEvent(event_id: string, response: string, body?: ResponseToEventInvite): Promise<IOperationResult<void>> {
|
|
1946
|
+
const params: { event_id: string, response: string, body?: ResponseToEventInvite } = { event_id, response, body };
|
|
1947
|
+
const result = await Office365OutlookService.client.executeAsync<{ event_id: string, response: string, body?: ResponseToEventInvite }, void>(
|
|
1948
|
+
{
|
|
1949
|
+
connectorOperation: {
|
|
1950
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1951
|
+
operationName: 'RespondToEvent',
|
|
1952
|
+
parameters: params
|
|
1953
|
+
},
|
|
1954
|
+
});
|
|
1955
|
+
return result;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* Respond to an event invite (V2)
|
|
1960
|
+
* Respond to an event invite.
|
|
1961
|
+
*/
|
|
1962
|
+
public static async RespondToEvent_V2(event_id: string, response: string, body?: ResponseToEventInvite): Promise<IOperationResult<void>> {
|
|
1963
|
+
const params: { event_id: string, response: string, body?: ResponseToEventInvite } = { event_id, response, body };
|
|
1964
|
+
const result = await Office365OutlookService.client.executeAsync<{ event_id: string, response: string, body?: ResponseToEventInvite }, void>(
|
|
1965
|
+
{
|
|
1966
|
+
connectorOperation: {
|
|
1967
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1968
|
+
operationName: 'RespondToEvent_V2',
|
|
1969
|
+
parameters: params
|
|
1970
|
+
},
|
|
1971
|
+
});
|
|
1972
|
+
return result;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* Forward an email
|
|
1977
|
+
* Forward an email.
|
|
1978
|
+
*/
|
|
1979
|
+
public static async ForwardEmail(message_id: string, body: DirectForwardMessage): Promise<IOperationResult<void>> {
|
|
1980
|
+
const params: { message_id: string, body: DirectForwardMessage } = { message_id, body };
|
|
1981
|
+
const result = await Office365OutlookService.client.executeAsync<{ message_id: string, body: DirectForwardMessage }, void>(
|
|
1982
|
+
{
|
|
1983
|
+
connectorOperation: {
|
|
1984
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
1985
|
+
operationName: 'ForwardEmail',
|
|
1986
|
+
parameters: params
|
|
1987
|
+
},
|
|
1988
|
+
});
|
|
1989
|
+
return result;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* Forward an email (V2)
|
|
1994
|
+
* Forward an email.
|
|
1995
|
+
*/
|
|
1996
|
+
public static async ForwardEmail_V2(message_id: string, body: DirectForwardMessage, mailboxAddress?: string): Promise<IOperationResult<void>> {
|
|
1997
|
+
const params: { message_id: string, body: DirectForwardMessage, mailboxAddress?: string } = { message_id, body, mailboxAddress };
|
|
1998
|
+
const result = await Office365OutlookService.client.executeAsync<{ message_id: string, body: DirectForwardMessage, mailboxAddress?: string }, void>(
|
|
1999
|
+
{
|
|
2000
|
+
connectorOperation: {
|
|
2001
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2002
|
+
operationName: 'ForwardEmail_V2',
|
|
2003
|
+
parameters: params
|
|
2004
|
+
},
|
|
2005
|
+
});
|
|
2006
|
+
return result;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Get room lists
|
|
2011
|
+
* Get all the room lists defined in the user's tenant
|
|
2012
|
+
*/
|
|
2013
|
+
public static async GetRoomLists(): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2014
|
+
const result = await Office365OutlookService.client.executeAsync<void, Record<string, unknown>>(
|
|
2015
|
+
{
|
|
2016
|
+
connectorOperation: {
|
|
2017
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2018
|
+
operationName: 'GetRoomLists',
|
|
2019
|
+
},
|
|
2020
|
+
});
|
|
2021
|
+
return result;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* Get room lists (V2)
|
|
2026
|
+
* Get all the room lists defined in the user's tenant
|
|
2027
|
+
*/
|
|
2028
|
+
public static async GetRoomLists_V2(): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2029
|
+
const result = await Office365OutlookService.client.executeAsync<void, Record<string, unknown>>(
|
|
2030
|
+
{
|
|
2031
|
+
connectorOperation: {
|
|
2032
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2033
|
+
operationName: 'GetRoomLists_V2',
|
|
2034
|
+
},
|
|
2035
|
+
});
|
|
2036
|
+
return result;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
/**
|
|
2040
|
+
* Get rooms
|
|
2041
|
+
* Get all the meeting rooms defined in the user's tenant
|
|
2042
|
+
*/
|
|
2043
|
+
public static async GetRooms(): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2044
|
+
const result = await Office365OutlookService.client.executeAsync<void, Record<string, unknown>>(
|
|
2045
|
+
{
|
|
2046
|
+
connectorOperation: {
|
|
2047
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2048
|
+
operationName: 'GetRooms',
|
|
2049
|
+
},
|
|
2050
|
+
});
|
|
2051
|
+
return result;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
/**
|
|
2055
|
+
* Get rooms (V2)
|
|
2056
|
+
* Get all the meeting rooms defined in the user's tenant
|
|
2057
|
+
*/
|
|
2058
|
+
public static async GetRooms_V2(): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2059
|
+
const result = await Office365OutlookService.client.executeAsync<void, Record<string, unknown>>(
|
|
2060
|
+
{
|
|
2061
|
+
connectorOperation: {
|
|
2062
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2063
|
+
operationName: 'GetRooms_V2',
|
|
2064
|
+
},
|
|
2065
|
+
});
|
|
2066
|
+
return result;
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
* Get rooms in room list
|
|
2071
|
+
* Get the meeting rooms in a specific room list
|
|
2072
|
+
*/
|
|
2073
|
+
public static async GetRoomsInRoomList(room_list: string): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2074
|
+
const params: { room_list: string } = { room_list };
|
|
2075
|
+
const result = await Office365OutlookService.client.executeAsync<{ room_list: string }, Record<string, unknown>>(
|
|
2076
|
+
{
|
|
2077
|
+
connectorOperation: {
|
|
2078
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2079
|
+
operationName: 'GetRoomsInRoomList',
|
|
2080
|
+
parameters: params
|
|
2081
|
+
},
|
|
2082
|
+
});
|
|
2083
|
+
return result;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Get rooms in room list (V2)
|
|
2088
|
+
* Get the meeting rooms in a specific room list
|
|
2089
|
+
*/
|
|
2090
|
+
public static async GetRoomsInRoomList_V2(room_list: string): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2091
|
+
const params: { room_list: string } = { room_list };
|
|
2092
|
+
const result = await Office365OutlookService.client.executeAsync<{ room_list: string }, Record<string, unknown>>(
|
|
2093
|
+
{
|
|
2094
|
+
connectorOperation: {
|
|
2095
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2096
|
+
operationName: 'GetRoomsInRoomList_V2',
|
|
2097
|
+
parameters: params
|
|
2098
|
+
},
|
|
2099
|
+
});
|
|
2100
|
+
return result;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Find meeting times
|
|
2105
|
+
* Find meeting time suggestions based on organizer, attendee availability, and time or location constraints
|
|
2106
|
+
*/
|
|
2107
|
+
public static async FindMeetingTimes(body: Record<string, unknown>): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2108
|
+
const params: { body: Record<string, unknown> } = { body };
|
|
2109
|
+
const result = await Office365OutlookService.client.executeAsync<{ body: Record<string, unknown> }, Record<string, unknown>>(
|
|
2110
|
+
{
|
|
2111
|
+
connectorOperation: {
|
|
2112
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2113
|
+
operationName: 'FindMeetingTimes',
|
|
2114
|
+
parameters: params
|
|
2115
|
+
},
|
|
2116
|
+
});
|
|
2117
|
+
return result;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* Find meeting times (V2)
|
|
2122
|
+
* Find meeting time suggestions based on organizer, attendee availability, and time or location constraints
|
|
2123
|
+
*/
|
|
2124
|
+
public static async FindMeetingTimes_V2(body: Record<string, unknown>): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2125
|
+
const params: { body: Record<string, unknown> } = { body };
|
|
2126
|
+
const result = await Office365OutlookService.client.executeAsync<{ body: Record<string, unknown> }, Record<string, unknown>>(
|
|
2127
|
+
{
|
|
2128
|
+
connectorOperation: {
|
|
2129
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2130
|
+
operationName: 'FindMeetingTimes_V2',
|
|
2131
|
+
parameters: params
|
|
2132
|
+
},
|
|
2133
|
+
});
|
|
2134
|
+
return result;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* Set up automatic replies (V2)
|
|
2139
|
+
* Set the automatic replies setting for your mailbox.
|
|
2140
|
+
*/
|
|
2141
|
+
public static async SetAutomaticRepliesSetting_V2(body: Record<string, unknown>): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2142
|
+
const params: { body: Record<string, unknown> } = { body };
|
|
2143
|
+
const result = await Office365OutlookService.client.executeAsync<{ body: Record<string, unknown> }, Record<string, unknown>>(
|
|
2144
|
+
{
|
|
2145
|
+
connectorOperation: {
|
|
2146
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2147
|
+
operationName: 'SetAutomaticRepliesSetting_V2',
|
|
2148
|
+
parameters: params
|
|
2149
|
+
},
|
|
2150
|
+
});
|
|
2151
|
+
return result;
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* Get mail tips for a mailbox (V2)
|
|
2156
|
+
* Get mail tips for a mailbox such as automatic replies / OOF message or if the mailbox is full. This is not available in GccHigh and Mooncake.
|
|
2157
|
+
*/
|
|
2158
|
+
public static async GetMailTips_V2(body: Record<string, unknown>): Promise<IOperationResult<{ value: MailTipsClientReceive_V2[] }>> {
|
|
2159
|
+
const params: { body: Record<string, unknown> } = { body };
|
|
2160
|
+
const result = await Office365OutlookService.client.executeAsync<{ body: Record<string, unknown> }, { value: MailTipsClientReceive_V2[] }>(
|
|
2161
|
+
{
|
|
2162
|
+
connectorOperation: {
|
|
2163
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2164
|
+
operationName: 'GetMailTips_V2',
|
|
2165
|
+
parameters: params
|
|
2166
|
+
},
|
|
2167
|
+
});
|
|
2168
|
+
return result;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Get calendars (V2)
|
|
2173
|
+
* This operation lists available calendars.
|
|
2174
|
+
*/
|
|
2175
|
+
public static async CalendarGetTables_V2(skip?: number, top?: number, orderBy?: string): Promise<IOperationResult<Record<string, unknown>>> {
|
|
2176
|
+
const params: { skip?: number, top?: number, orderBy?: string } = { skip, top, orderBy };
|
|
2177
|
+
const result = await Office365OutlookService.client.executeAsync<{ skip?: number, top?: number, orderBy?: string }, Record<string, unknown>>(
|
|
2178
|
+
{
|
|
2179
|
+
connectorOperation: {
|
|
2180
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2181
|
+
operationName: 'CalendarGetTables_V2',
|
|
2182
|
+
parameters: params
|
|
2183
|
+
},
|
|
2184
|
+
});
|
|
2185
|
+
return result;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* Delete event (V2)
|
|
2190
|
+
* This operation deletes an event in a calendar.
|
|
2191
|
+
*/
|
|
2192
|
+
public static async CalendarDeleteItem_V2(calendar: string, event: string): Promise<IOperationResult<void>> {
|
|
2193
|
+
const params: { calendar: string, event: string } = { calendar, event };
|
|
2194
|
+
const result = await Office365OutlookService.client.executeAsync<{ calendar: string, event: string }, void>(
|
|
2195
|
+
{
|
|
2196
|
+
connectorOperation: {
|
|
2197
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2198
|
+
operationName: 'CalendarDeleteItem_V2',
|
|
2199
|
+
parameters: params
|
|
2200
|
+
},
|
|
2201
|
+
});
|
|
2202
|
+
return result;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
/**
|
|
2206
|
+
* Get contact (V2)
|
|
2207
|
+
* This operation gets a specific contact from a contacts folder.
|
|
2208
|
+
*/
|
|
2209
|
+
public static async ContactGetItem_V2(folder: string, id: string): Promise<IOperationResult<ContactResponse_V2>> {
|
|
2210
|
+
const params: { folder: string, id: string } = { folder, id };
|
|
2211
|
+
const result = await Office365OutlookService.client.executeAsync<{ folder: string, id: string }, ContactResponse_V2>(
|
|
2212
|
+
{
|
|
2213
|
+
connectorOperation: {
|
|
2214
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2215
|
+
operationName: 'ContactGetItem_V2',
|
|
2216
|
+
parameters: params
|
|
2217
|
+
},
|
|
2218
|
+
});
|
|
2219
|
+
return result;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
/**
|
|
2223
|
+
* Delete contact (V2)
|
|
2224
|
+
* This operation deletes a contact from a contacts folder.
|
|
2225
|
+
*/
|
|
2226
|
+
public static async ContactDeleteItem_V2(folder: string, id: string): Promise<IOperationResult<void>> {
|
|
2227
|
+
const params: { folder: string, id: string } = { folder, id };
|
|
2228
|
+
const result = await Office365OutlookService.client.executeAsync<{ folder: string, id: string }, void>(
|
|
2229
|
+
{
|
|
2230
|
+
connectorOperation: {
|
|
2231
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2232
|
+
operationName: 'ContactDeleteItem_V2',
|
|
2233
|
+
parameters: params
|
|
2234
|
+
},
|
|
2235
|
+
});
|
|
2236
|
+
return result;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* Update contact (V2)
|
|
2241
|
+
* This operation updates a contact in a contacts folder.
|
|
2242
|
+
*/
|
|
2243
|
+
public static async ContactPatchItem_V2(folder: string, id: string, item: Contact_V2): Promise<IOperationResult<ContactResponse_V2>> {
|
|
2244
|
+
const params: { folder: string, id: string, item: Contact_V2 } = { folder, id, item };
|
|
2245
|
+
const result = await Office365OutlookService.client.executeAsync<{ folder: string, id: string, item: Contact_V2 }, ContactResponse_V2>(
|
|
2246
|
+
{
|
|
2247
|
+
connectorOperation: {
|
|
2248
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2249
|
+
operationName: 'ContactPatchItem_V2',
|
|
2250
|
+
parameters: params
|
|
2251
|
+
},
|
|
2252
|
+
});
|
|
2253
|
+
return result;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
/**
|
|
2257
|
+
* Get contacts (V2)
|
|
2258
|
+
* This operation gets contacts from a contacts folder.
|
|
2259
|
+
*/
|
|
2260
|
+
public static async ContactGetItems_V2(folder: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number): Promise<IOperationResult<EntityListResponse_ContactResponse_V2>> {
|
|
2261
|
+
const params: { folder: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number } = { folder, $filter, $orderby, $top, $skip };
|
|
2262
|
+
const result = await Office365OutlookService.client.executeAsync<{ folder: string, $filter?: string, $orderby?: string, $top?: number, $skip?: number }, EntityListResponse_ContactResponse_V2>(
|
|
2263
|
+
{
|
|
2264
|
+
connectorOperation: {
|
|
2265
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2266
|
+
operationName: 'ContactGetItems_V2',
|
|
2267
|
+
parameters: params
|
|
2268
|
+
},
|
|
2269
|
+
});
|
|
2270
|
+
return result;
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* Create contact (V2)
|
|
2275
|
+
* This operation creates a new contact in a contacts folder.
|
|
2276
|
+
*/
|
|
2277
|
+
public static async ContactPostItem_V2(folder: string, item: Contact_V2): Promise<IOperationResult<void>> {
|
|
2278
|
+
const params: { folder: string, item: Contact_V2 } = { folder, item };
|
|
2279
|
+
const result = await Office365OutlookService.client.executeAsync<{ folder: string, item: Contact_V2 }, void>(
|
|
2280
|
+
{
|
|
2281
|
+
connectorOperation: {
|
|
2282
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2283
|
+
operationName: 'ContactPostItem_V2',
|
|
2284
|
+
parameters: params
|
|
2285
|
+
},
|
|
2286
|
+
});
|
|
2287
|
+
return result;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* Update my contact's photo
|
|
2292
|
+
* Updates the photo of the specified contact of the current user. The size of the photo must be less than 4 MB.
|
|
2293
|
+
*/
|
|
2294
|
+
public static async UpdateMyContactPhoto(folder: string, id: string, body: string, Content_Type?: string): Promise<IOperationResult<void>> {
|
|
2295
|
+
const params: { folder: string, id: string, body: string, Content_Type?: string } = { folder, id, body, Content_Type };
|
|
2296
|
+
const result = await Office365OutlookService.client.executeAsync<{ folder: string, id: string, body: string, Content_Type?: string }, void>(
|
|
2297
|
+
{
|
|
2298
|
+
connectorOperation: {
|
|
2299
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2300
|
+
operationName: 'UpdateMyContactPhoto',
|
|
2301
|
+
parameters: params
|
|
2302
|
+
},
|
|
2303
|
+
});
|
|
2304
|
+
return result;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Send an HTTP request
|
|
2309
|
+
* Construct a Microsoft Graph REST API request to invoke. These segments are supported: 1st segement: /me, /users/<userId> 2nd segment: messages, mailFolders, events, calendar, calendars, outlook, inferenceClassification. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api.
|
|
2310
|
+
*/
|
|
2311
|
+
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>> {
|
|
2312
|
+
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 };
|
|
2313
|
+
const result = await Office365OutlookService.client.executeAsync<{ Uri: string, Method: string, Body?: string, ContentType?: string, CustomHeader1?: string, CustomHeader2?: string, CustomHeader3?: string, CustomHeader4?: string, CustomHeader5?: string }, ObjectWithoutType>(
|
|
2314
|
+
{
|
|
2315
|
+
connectorOperation: {
|
|
2316
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2317
|
+
operationName: 'HttpRequest',
|
|
2318
|
+
parameters: params
|
|
2319
|
+
},
|
|
2320
|
+
});
|
|
2321
|
+
return result;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Email Management MCP Server
|
|
2326
|
+
* This MCP server manages email messages from your Office 365 account
|
|
2327
|
+
*/
|
|
2328
|
+
public static async mcp_EmailsManagement(queryRequest?: MCPQueryRequest, sessionId?: string): Promise<IOperationResult<MCPQueryResponse>> {
|
|
2329
|
+
const params: { queryRequest?: MCPQueryRequest, sessionId?: string } = { queryRequest, sessionId };
|
|
2330
|
+
const result = await Office365OutlookService.client.executeAsync<{ queryRequest?: MCPQueryRequest, sessionId?: string }, MCPQueryResponse>(
|
|
2331
|
+
{
|
|
2332
|
+
connectorOperation: {
|
|
2333
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2334
|
+
operationName: 'mcp_EmailsManagement',
|
|
2335
|
+
parameters: params
|
|
2336
|
+
},
|
|
2337
|
+
});
|
|
2338
|
+
return result;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
/**
|
|
2342
|
+
* Meeting Management MCP Server
|
|
2343
|
+
* This MCP server manages events, calendars and meetings
|
|
2344
|
+
*/
|
|
2345
|
+
public static async mcp_MeetingManagement(queryRequest?: MCPQueryRequest, sessionId?: string): Promise<IOperationResult<MCPQueryResponse>> {
|
|
2346
|
+
const params: { queryRequest?: MCPQueryRequest, sessionId?: string } = { queryRequest, sessionId };
|
|
2347
|
+
const result = await Office365OutlookService.client.executeAsync<{ queryRequest?: MCPQueryRequest, sessionId?: string }, MCPQueryResponse>(
|
|
2348
|
+
{
|
|
2349
|
+
connectorOperation: {
|
|
2350
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2351
|
+
operationName: 'mcp_MeetingManagement',
|
|
2352
|
+
parameters: params
|
|
2353
|
+
},
|
|
2354
|
+
});
|
|
2355
|
+
return result;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* Contact Management MCP Server
|
|
2360
|
+
* This MCP server manages contacts
|
|
2361
|
+
*/
|
|
2362
|
+
public static async mcp_ContactsManagement(queryRequest?: MCPQueryRequest, sessionId?: string): Promise<IOperationResult<MCPQueryResponse>> {
|
|
2363
|
+
const params: { queryRequest?: MCPQueryRequest, sessionId?: string } = { queryRequest, sessionId };
|
|
2364
|
+
const result = await Office365OutlookService.client.executeAsync<{ queryRequest?: MCPQueryRequest, sessionId?: string }, MCPQueryResponse>(
|
|
2365
|
+
{
|
|
2366
|
+
connectorOperation: {
|
|
2367
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2368
|
+
operationName: 'mcp_ContactsManagement',
|
|
2369
|
+
parameters: params
|
|
2370
|
+
},
|
|
2371
|
+
});
|
|
2372
|
+
return result;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* Receives response from user
|
|
2377
|
+
* This operation gets a response from the user.
|
|
2378
|
+
*/
|
|
2379
|
+
public static async ReceiveResponseGet(state: string, sig?: string, showConfirm?: boolean): Promise<IOperationResult<string>> {
|
|
2380
|
+
const params: { state: string, sig?: string, showConfirm?: boolean } = { state, sig, showConfirm };
|
|
2381
|
+
const result = await Office365OutlookService.client.executeAsync<{ state: string, sig?: string, showConfirm?: boolean }, string>(
|
|
2382
|
+
{
|
|
2383
|
+
connectorOperation: {
|
|
2384
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2385
|
+
operationName: 'ReceiveResponseGet',
|
|
2386
|
+
parameters: params
|
|
2387
|
+
},
|
|
2388
|
+
});
|
|
2389
|
+
return result;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* Receives response from user
|
|
2394
|
+
* This operation gets a response from the user.
|
|
2395
|
+
*/
|
|
2396
|
+
public static async ReceiveResponsePost(state: string, sig?: string, fromConfirm?: boolean): Promise<IOperationResult<string>> {
|
|
2397
|
+
const params: { state: string, sig?: string, fromConfirm?: boolean } = { state, sig, fromConfirm };
|
|
2398
|
+
const result = await Office365OutlookService.client.executeAsync<{ state: string, sig?: string, fromConfirm?: boolean }, string>(
|
|
2399
|
+
{
|
|
2400
|
+
connectorOperation: {
|
|
2401
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2402
|
+
operationName: 'ReceiveResponsePost',
|
|
2403
|
+
parameters: params
|
|
2404
|
+
},
|
|
2405
|
+
});
|
|
2406
|
+
return result;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* Receive mail
|
|
2411
|
+
* This operation validates the subscription request.
|
|
2412
|
+
*/
|
|
2413
|
+
public static async ReceiveMailFromSubscription(state: string, subscriptionPayload: SubscriptionPayload_OutlookReceiveMessage, validationtoken?: string): Promise<IOperationResult<void>> {
|
|
2414
|
+
const params: { state: string, subscriptionPayload: SubscriptionPayload_OutlookReceiveMessage, validationtoken?: string } = { state, subscriptionPayload, validationtoken };
|
|
2415
|
+
const result = await Office365OutlookService.client.executeAsync<{ state: string, subscriptionPayload: SubscriptionPayload_OutlookReceiveMessage, validationtoken?: string }, void>(
|
|
2416
|
+
{
|
|
2417
|
+
connectorOperation: {
|
|
2418
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2419
|
+
operationName: 'ReceiveMailFromSubscription',
|
|
2420
|
+
parameters: params
|
|
2421
|
+
},
|
|
2422
|
+
});
|
|
2423
|
+
return result;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* Receive mail (V2)
|
|
2428
|
+
* This operation validates the subscription request.
|
|
2429
|
+
*/
|
|
2430
|
+
public static async ReceiveMailFromSubscriptionV2(state: string, subscriptionPayload: SubscriptionPayload_OutlookReceiveMessage, subscribedConnectionId: string, validationtoken?: string): Promise<IOperationResult<void>> {
|
|
2431
|
+
const params: { state: string, subscriptionPayload: SubscriptionPayload_OutlookReceiveMessage, subscribedConnectionId: string, validationtoken?: string } = { state, subscriptionPayload, subscribedConnectionId, validationtoken };
|
|
2432
|
+
const result = await Office365OutlookService.client.executeAsync<{ state: string, subscriptionPayload: SubscriptionPayload_OutlookReceiveMessage, subscribedConnectionId: string, validationtoken?: string }, void>(
|
|
2433
|
+
{
|
|
2434
|
+
connectorOperation: {
|
|
2435
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2436
|
+
operationName: 'ReceiveMailFromSubscriptionV2',
|
|
2437
|
+
parameters: params
|
|
2438
|
+
},
|
|
2439
|
+
});
|
|
2440
|
+
return result;
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Receive event
|
|
2445
|
+
* This operation validates the subscription request.
|
|
2446
|
+
*/
|
|
2447
|
+
public static async ReceiveEventFromSubscription(state: string, subscriptionPayload: SubscriptionPayload_SubscriptionEvent, validationtoken?: string): Promise<IOperationResult<void>> {
|
|
2448
|
+
const params: { state: string, subscriptionPayload: SubscriptionPayload_SubscriptionEvent, validationtoken?: string } = { state, subscriptionPayload, validationtoken };
|
|
2449
|
+
const result = await Office365OutlookService.client.executeAsync<{ state: string, subscriptionPayload: SubscriptionPayload_SubscriptionEvent, validationtoken?: string }, void>(
|
|
2450
|
+
{
|
|
2451
|
+
connectorOperation: {
|
|
2452
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2453
|
+
operationName: 'ReceiveEventFromSubscription',
|
|
2454
|
+
parameters: params
|
|
2455
|
+
},
|
|
2456
|
+
});
|
|
2457
|
+
return result;
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* Receive event (V2)
|
|
2462
|
+
* This operation validates the subscription request.
|
|
2463
|
+
*/
|
|
2464
|
+
public static async ReceiveEventFromSubscriptionV2(state: string, subscriptionPayload: SubscriptionPayload_SubscriptionEvent, subscribedConnectionId: string, validationtoken?: string): Promise<IOperationResult<void>> {
|
|
2465
|
+
const params: { state: string, subscriptionPayload: SubscriptionPayload_SubscriptionEvent, subscribedConnectionId: string, validationtoken?: string } = { state, subscriptionPayload, subscribedConnectionId, validationtoken };
|
|
2466
|
+
const result = await Office365OutlookService.client.executeAsync<{ state: string, subscriptionPayload: SubscriptionPayload_SubscriptionEvent, subscribedConnectionId: string, validationtoken?: string }, void>(
|
|
2467
|
+
{
|
|
2468
|
+
connectorOperation: {
|
|
2469
|
+
tableName: Office365OutlookService.dataSourceName,
|
|
2470
|
+
operationName: 'ReceiveEventFromSubscriptionV2',
|
|
2471
|
+
parameters: params
|
|
2472
|
+
},
|
|
2473
|
+
});
|
|
2474
|
+
return result;
|
|
2475
|
+
}
|
|
2476
|
+
}
|