msgraph-cli 0.0.2 → 0.0.3
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/dist/commands/calendar/create.d.ts.map +1 -1
- package/dist/commands/calendar/create.js +9 -2
- package/dist/commands/calendar/create.js.map +1 -1
- package/dist/commands/calendar/find-times.d.ts.map +1 -1
- package/dist/commands/calendar/find-times.js +15 -1
- package/dist/commands/calendar/find-times.js.map +1 -1
- package/dist/commands/calendar/get-schedule.d.ts +3 -0
- package/dist/commands/calendar/get-schedule.d.ts.map +1 -0
- package/dist/commands/calendar/get-schedule.js +27 -0
- package/dist/commands/calendar/get-schedule.js.map +1 -0
- package/dist/commands/calendar/index.d.ts.map +1 -1
- package/dist/commands/calendar/index.js +2 -0
- package/dist/commands/calendar/index.js.map +1 -1
- package/dist/commands/calendar/update.d.ts.map +1 -1
- package/dist/commands/calendar/update.js +15 -1
- package/dist/commands/calendar/update.js.map +1 -1
- package/dist/commands/chat/get.d.ts.map +1 -1
- package/dist/commands/chat/get.js +9 -4
- package/dist/commands/chat/get.js.map +1 -1
- package/dist/commands/room/index.d.ts +3 -0
- package/dist/commands/room/index.d.ts.map +1 -0
- package/dist/commands/room/index.js +10 -0
- package/dist/commands/room/index.js.map +1 -0
- package/dist/commands/room/list-buildings.d.ts +3 -0
- package/dist/commands/room/list-buildings.d.ts.map +1 -0
- package/dist/commands/room/list-buildings.js +17 -0
- package/dist/commands/room/list-buildings.js.map +1 -0
- package/dist/commands/room/list-rooms.d.ts +3 -0
- package/dist/commands/room/list-rooms.d.ts.map +1 -0
- package/dist/commands/room/list-rooms.js +18 -0
- package/dist/commands/room/list-rooms.js.map +1 -0
- package/dist/commands/room/list.d.ts +3 -0
- package/dist/commands/room/list.d.ts.map +1 -0
- package/dist/commands/room/list.js +19 -0
- package/dist/commands/room/list.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAkD5C"}
|
|
@@ -9,19 +9,26 @@ export function create(parent) {
|
|
|
9
9
|
.requiredOption('--end <datetime>', 'End time (ISO 8601 UTC)')
|
|
10
10
|
.requiredOption('--body <text>', 'Event description/agenda')
|
|
11
11
|
.option('--attendees <json>', 'Attendees as JSON array: [{"email":"a@b.com","type":"required"}] or ["a@b.com"]')
|
|
12
|
+
.option('--rooms <emails...>', 'Room email addresses to book as resource attendees')
|
|
12
13
|
.option('--location <text>', 'Location')
|
|
13
14
|
.option('--online', 'Create as Teams online meeting')
|
|
14
15
|
.action(async (opts) => {
|
|
15
16
|
const client = await getClient();
|
|
16
17
|
const attendees = opts.attendees
|
|
17
18
|
? JSON.parse(opts.attendees)
|
|
18
|
-
:
|
|
19
|
+
: [];
|
|
20
|
+
// Add rooms as resource attendees
|
|
21
|
+
if (opts.rooms) {
|
|
22
|
+
for (const roomEmail of opts.rooms) {
|
|
23
|
+
attendees.push({ email: roomEmail, type: 'resource' });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
19
26
|
const result = await client.calendar.createEvent({
|
|
20
27
|
subject: opts.subject,
|
|
21
28
|
startDateTime: opts.start,
|
|
22
29
|
endDateTime: opts.end,
|
|
23
30
|
body: opts.body,
|
|
24
|
-
attendees,
|
|
31
|
+
attendees: attendees.length ? attendees : undefined,
|
|
25
32
|
location: opts.location,
|
|
26
33
|
isOnlineMeeting: opts.online,
|
|
27
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/calendar/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,yBAAyB,CAAC;SACtC,cAAc,CAAC,kBAAkB,EAAE,aAAa,CAAC;SACjD,cAAc,CAAC,oBAAoB,EAAE,2BAA2B,CAAC;SACjE,cAAc,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;SAC7D,cAAc,CAAC,eAAe,EAAE,0BAA0B,CAAC;SAC3D,MAAM,CAAC,oBAAoB,EAAE,iFAAiF,CAAC;SAC/G,MAAM,CAAC,mBAAmB,EAAE,UAAU,CAAC;SACvC,MAAM,CAAC,UAAU,EAAE,gCAAgC,CAAC;SACpD,MAAM,CACL,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/calendar/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,yBAAyB,CAAC;SACtC,cAAc,CAAC,kBAAkB,EAAE,aAAa,CAAC;SACjD,cAAc,CAAC,oBAAoB,EAAE,2BAA2B,CAAC;SACjE,cAAc,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;SAC7D,cAAc,CAAC,eAAe,EAAE,0BAA0B,CAAC;SAC3D,MAAM,CAAC,oBAAoB,EAAE,iFAAiF,CAAC;SAC/G,MAAM,CAA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AM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"find-times.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/find-times.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAiD/C"}
|
|
@@ -3,18 +3,32 @@ import { output } from '../../utils/output.js';
|
|
|
3
3
|
export function findTimes(parent) {
|
|
4
4
|
parent
|
|
5
5
|
.command('find-times')
|
|
6
|
-
.description('Find available meeting times')
|
|
6
|
+
.description('Find available meeting times (optionally with room suggestions)')
|
|
7
7
|
.requiredOption('--attendees <json>', 'Attendees JSON: [{"email":"a@b.com","type":"required"}]')
|
|
8
8
|
.requiredOption('--start <datetime>', 'Start of search window (ISO 8601 UTC)')
|
|
9
9
|
.requiredOption('--end <datetime>', 'End of search window (ISO 8601 UTC)')
|
|
10
10
|
.requiredOption('--duration <iso8601>', 'Meeting duration (e.g., PT30M, PT1H)')
|
|
11
|
+
.option('--suggest-room', 'Ask Graph API to suggest available rooms')
|
|
12
|
+
.option('--room <name>', 'Prefer a specific room by name (checks its availability)')
|
|
11
13
|
.action(async (opts) => {
|
|
12
14
|
const client = await getClient();
|
|
15
|
+
let locationConstraint;
|
|
16
|
+
if (opts.suggestRoom) {
|
|
17
|
+
locationConstraint = { isRequired: false, suggestLocation: true };
|
|
18
|
+
}
|
|
19
|
+
else if (opts.room) {
|
|
20
|
+
locationConstraint = {
|
|
21
|
+
isRequired: true,
|
|
22
|
+
suggestLocation: false,
|
|
23
|
+
locations: [{ displayName: opts.room, resolveAvailability: true }],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
13
26
|
const result = await client.calendar.findMeetingTimes({
|
|
14
27
|
attendees: JSON.parse(opts.attendees),
|
|
15
28
|
startDateTime: opts.start,
|
|
16
29
|
endDateTime: opts.end,
|
|
17
30
|
meetingDuration: opts.duration,
|
|
31
|
+
locationConstraint,
|
|
18
32
|
});
|
|
19
33
|
output(result);
|
|
20
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-times.js","sourceRoot":"","sources":["../../../src/commands/calendar/find-times.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"find-times.js","sourceRoot":"","sources":["../../../src/commands/calendar/find-times.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,iEAAiE,CAAC;SAC9E,cAAc,CAAC,oBAAoB,EAAE,yDAAyD,CAAC;SAC/F,cAAc,CAAC,oBAAoB,EAAE,uCAAuC,CAAC;SAC7E,cAAc,CAAC,kBAAkB,EAAE,qCAAqC,CAAC;SACzE,cAAc,CAAC,sBAAsB,EAAE,sCAAsC,CAAC;SAC9E,MAAM,CAAC,gBAAgB,EAAE,0CAA0C,CAAC;SACpE,MAAM,CAAC,eAAe,EAAE,0DAA0D,CAAC;SACnF,MAAM,CACL,KAAK,EAAE,IAON,EAAE,EAAE;QACH,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QAEjC,IAAI,kBAMS,CAAC;QAEd,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,kBAAkB,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;QACpE,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,kBAAkB,GAAG;gBACnB,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,KAAK;gBACtB,SAAS,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC;aACnE,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YACpD,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAuD;YAC3F,aAAa,EAAE,IAAI,CAAC,KAAK;YACzB,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,kBAAkB;SACnB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CACF,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-schedule.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/get-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAyBjD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getClient } from '../../utils/client.js';
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
|
+
export function getSchedule(parent) {
|
|
4
|
+
parent
|
|
5
|
+
.command('get-schedule')
|
|
6
|
+
.description('Check free/busy availability for people or rooms')
|
|
7
|
+
.requiredOption('--schedules <emails...>', 'Email addresses of people or rooms to check')
|
|
8
|
+
.requiredOption('--start <datetime>', 'Start of time range (ISO 8601 UTC)')
|
|
9
|
+
.requiredOption('--end <datetime>', 'End of time range (ISO 8601 UTC)')
|
|
10
|
+
.option('--interval <minutes>', 'Availability view interval in minutes', '60')
|
|
11
|
+
.action(async (opts) => {
|
|
12
|
+
const client = await getClient();
|
|
13
|
+
const result = await client.calendar.getSchedule({
|
|
14
|
+
schedules: opts.schedules,
|
|
15
|
+
startDateTime: opts.start,
|
|
16
|
+
endDateTime: opts.end,
|
|
17
|
+
intervalMinutes: parseInt(opts.interval, 10),
|
|
18
|
+
});
|
|
19
|
+
output(result.map((s) => ({
|
|
20
|
+
scheduleId: s.scheduleId,
|
|
21
|
+
availabilityView: s.availabilityView,
|
|
22
|
+
legend: '0=free, 1=tentative, 2=busy, 3=oof, 4=working-elsewhere',
|
|
23
|
+
items: s.scheduleItems,
|
|
24
|
+
})));
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=get-schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-schedule.js","sourceRoot":"","sources":["../../../src/commands/calendar/get-schedule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,kDAAkD,CAAC;SAC/D,cAAc,CAAC,yBAAyB,EAAE,6CAA6C,CAAC;SACxF,cAAc,CAAC,oBAAoB,EAAE,oCAAoC,CAAC;SAC1E,cAAc,CAAC,kBAAkB,EAAE,kCAAkC,CAAC;SACtE,MAAM,CAAC,sBAAsB,EAAE,uCAAuC,EAAE,IAAI,CAAC;SAC7E,MAAM,CAAC,KAAK,EAAE,IAA2E,EAAE,EAAE;QAC5F,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC/C,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,aAAa,EAAE,IAAI,CAAC,KAAK;YACzB,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,eAAe,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;SAC7C,CAAC,CAAC;QACH,MAAM,CACJ,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACjB,UAAU,EAAE,CAAC,CAAC,UAAU;YACxB,gBAAgB,EAAE,CAAC,CAAC,gBAAgB;YACpC,MAAM,EAAE,yDAAyD;YACjE,KAAK,EAAE,CAAC,CAAC,aAAa;SACvB,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAS/D"}
|
|
@@ -2,6 +2,7 @@ import { cancel } from './cancel.js';
|
|
|
2
2
|
import { create } from './create.js';
|
|
3
3
|
import { events } from './events.js';
|
|
4
4
|
import { findTimes } from './find-times.js';
|
|
5
|
+
import { getSchedule } from './get-schedule.js';
|
|
5
6
|
import { respond } from './respond.js';
|
|
6
7
|
import { update } from './update.js';
|
|
7
8
|
export function registerCalendarCommands(program) {
|
|
@@ -12,5 +13,6 @@ export function registerCalendarCommands(program) {
|
|
|
12
13
|
cancel(calendar);
|
|
13
14
|
respond(calendar);
|
|
14
15
|
findTimes(calendar);
|
|
16
|
+
getSchedule(calendar);
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/calendar/index.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;IAChF,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClB,SAAS,CAAC,QAAQ,CAAC,CAAC;IACpB,WAAW,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAuD5C"}
|
|
@@ -10,17 +10,31 @@ export function update(parent) {
|
|
|
10
10
|
.option('--end <datetime>', 'New end time (ISO datetime UTC)')
|
|
11
11
|
.option('--body <text>', 'New body/agenda text')
|
|
12
12
|
.option('--attendees <emails...>', 'Set attendees (replaces existing)')
|
|
13
|
+
.option('--rooms <emails...>', 'Room email addresses to book as resource attendees')
|
|
13
14
|
.option('--location <text>', 'New location')
|
|
14
15
|
.option('--online', 'Make it an online meeting')
|
|
15
16
|
.action(async (eventId, opts) => {
|
|
16
17
|
const client = await getClient();
|
|
18
|
+
// Merge attendees and rooms into a single list
|
|
19
|
+
let attendees;
|
|
20
|
+
if (opts.attendees || opts.rooms) {
|
|
21
|
+
attendees = [];
|
|
22
|
+
if (opts.attendees) {
|
|
23
|
+
attendees.push(...opts.attendees);
|
|
24
|
+
}
|
|
25
|
+
if (opts.rooms) {
|
|
26
|
+
for (const roomEmail of opts.rooms) {
|
|
27
|
+
attendees.push({ email: roomEmail, type: 'resource' });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
17
31
|
const updated = await client.calendar.updateEvent({
|
|
18
32
|
eventId,
|
|
19
33
|
subject: opts.subject,
|
|
20
34
|
startDateTime: opts.start,
|
|
21
35
|
endDateTime: opts.end,
|
|
22
36
|
body: opts.body,
|
|
23
|
-
attendees
|
|
37
|
+
attendees,
|
|
24
38
|
location: opts.location,
|
|
25
39
|
isOnlineMeeting: opts.online,
|
|
26
40
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/calendar/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CAAC,oEAAoE,CAAC;SACjF,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAAC;SACzC,MAAM,CAAC,oBAAoB,EAAE,mCAAmC,CAAC;SACjE,MAAM,CAAC,kBAAkB,EAAE,iCAAiC,CAAC;SAC7D,MAAM,CAAC,eAAe,EAAE,sBAAsB,CAAC;SAC/C,MAAM,CAAC,yBAAyB,EAAE,mCAAmC,CAAC;SACtE,MAAM,CAAC,mBAAmB,EAAE,cAAc,CAAC;SAC3C,MAAM,CAAC,UAAU,EAAE,2BAA2B,CAAC;SAC/C,MAAM,CACL,KAAK,EACH,OAAe,EACf,
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/calendar/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EA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AChD,OAAO;YACP,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,IAAI,CAAC,KAAK;YACzB,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS;YACT,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,eAAe,EAAE,IAAI,CAAC,MAAM;SAC7B,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;IACjC,CAAC,CACF,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAsBzC"}
|
|
@@ -11,10 +11,15 @@ export function get(parent) {
|
|
|
11
11
|
id: chat.id,
|
|
12
12
|
topic: chat.topic,
|
|
13
13
|
chatType: chat.chatType,
|
|
14
|
-
members: chat.members?.map((m) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
members: chat.members?.map((m) => {
|
|
15
|
+
const member = m;
|
|
16
|
+
return {
|
|
17
|
+
displayName: m.displayName,
|
|
18
|
+
userId: member.userId,
|
|
19
|
+
email: member.email,
|
|
20
|
+
id: m.id,
|
|
21
|
+
};
|
|
22
|
+
}),
|
|
18
23
|
});
|
|
19
24
|
});
|
|
20
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/comm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CAAC,QAAQ;YACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC/B,MAAM,MAAM,GAAG,CAA4B,CAAC;gBAC5C,OAAO;oBACL,WAAW,EAAE,CAAC,CAAC,WAAW;oBAC1B,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,KAAK,EAAE,MAAM,CAAC,KAAK;oBACnB,EAAE,EAAE,CAAC,CAAC,EAAE;iBACT,CAAC;YACJ,CAAC,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/room/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK3D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { listBuildings } from './list-buildings.js';
|
|
2
|
+
import { listRooms } from './list-rooms.js';
|
|
3
|
+
import { list } from './list.js';
|
|
4
|
+
export function registerRoomCommands(program) {
|
|
5
|
+
const room = program.command('room').description('Meeting room operations (requires Place.Read.All permission)');
|
|
6
|
+
list(room);
|
|
7
|
+
listBuildings(room);
|
|
8
|
+
listRooms(room);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/room/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,8DAA8D,CAAC,CAAC;IACjH,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,aAAa,CAAC,IAAI,CAAC,CAAC;IACpB,SAAS,CAAC,IAAI,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-buildings.d.ts","sourceRoot":"","sources":["../../../src/commands/room/list-buildings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAenD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getClient } from '../../utils/client.js';
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
|
+
export function listBuildings(parent) {
|
|
4
|
+
parent
|
|
5
|
+
.command('list-buildings')
|
|
6
|
+
.description('List room lists (buildings/groups of rooms)')
|
|
7
|
+
.action(async () => {
|
|
8
|
+
const client = await getClient();
|
|
9
|
+
const lists = await client.places.listRoomLists();
|
|
10
|
+
output(lists.map((l) => ({
|
|
11
|
+
id: l.id,
|
|
12
|
+
displayName: l.displayName,
|
|
13
|
+
emailAddress: l.emailAddress,
|
|
14
|
+
})));
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=list-buildings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-buildings.js","sourceRoot":"","sources":["../../../src/commands/room/list-buildings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,aAAa,CAAC,MAAe;IAC3C,MAAM;SACH,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,6CAA6C,CAAC;SAC1D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;QAClD,MAAM,CACJ,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAChB,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,YAAY,EAAE,CAAC,CAAC,YAAY;SAC7B,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-rooms.d.ts","sourceRoot":"","sources":["../../../src/commands/room/list-rooms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAgB/C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getClient } from '../../utils/client.js';
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
|
+
export function listRooms(parent) {
|
|
4
|
+
parent
|
|
5
|
+
.command('list-rooms <buildingId>')
|
|
6
|
+
.description('List rooms in a specific building (by room list ID or email)')
|
|
7
|
+
.action(async (buildingId) => {
|
|
8
|
+
const client = await getClient();
|
|
9
|
+
const rooms = await client.places.listRoomsInList({ roomListId: buildingId });
|
|
10
|
+
output(rooms.map((r) => ({
|
|
11
|
+
displayName: r.displayName,
|
|
12
|
+
emailAddress: r.emailAddress,
|
|
13
|
+
capacity: r.capacity,
|
|
14
|
+
floorNumber: r.floorNumber,
|
|
15
|
+
})));
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=list-rooms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-rooms.js","sourceRoot":"","sources":["../../../src/commands/room/list-rooms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,yBAAyB,CAAC;SAClC,WAAW,CAAC,8DAA8D,CAAC;SAC3E,MAAM,CAAC,KAAK,EAAE,UAAkB,EAAE,EAAE;QACnC,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;QAC9E,MAAM,CACJ,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAChB,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,YAAY,EAAE,CAAC,CAAC,YAAY;YAC5B,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,WAAW,EAAE,CAAC,CAAC,WAAW;SAC3B,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/room/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAiB1C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getClient } from '../../utils/client.js';
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
|
+
export function list(parent) {
|
|
4
|
+
parent
|
|
5
|
+
.command('list')
|
|
6
|
+
.description('List all meeting rooms in the organization')
|
|
7
|
+
.action(async () => {
|
|
8
|
+
const client = await getClient();
|
|
9
|
+
const rooms = await client.places.listRooms();
|
|
10
|
+
output(rooms.map((r) => ({
|
|
11
|
+
displayName: r.displayName,
|
|
12
|
+
emailAddress: r.emailAddress,
|
|
13
|
+
capacity: r.capacity,
|
|
14
|
+
building: r.building,
|
|
15
|
+
floorNumber: r.floorNumber,
|
|
16
|
+
})));
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/room/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,IAAI,CAAC,MAAe;IAClC,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,4CAA4C,CAAC;SACzD,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAC9C,MAAM,CACJ,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAChB,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,YAAY,EAAE,CAAC,CAAC,YAAY;YAC5B,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,WAAW,EAAE,CAAC,CAAC,WAAW;SAC3B,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { registerChatCommands } from './commands/chat/index.js';
|
|
|
7
7
|
import { registerFileCommands } from './commands/file/index.js';
|
|
8
8
|
import { registerMailCommands } from './commands/mail/index.js';
|
|
9
9
|
import { registerMessageCommands } from './commands/message/index.js';
|
|
10
|
+
import { registerRoomCommands } from './commands/room/index.js';
|
|
10
11
|
import { registerTranscriptCommands } from './commands/transcript/index.js';
|
|
11
12
|
import { registerUserCommands } from './commands/user/index.js';
|
|
12
13
|
import { handleError } from './utils/output.js';
|
|
@@ -51,6 +52,7 @@ registerChatCommands(program);
|
|
|
51
52
|
registerMessageCommands(program);
|
|
52
53
|
registerMailCommands(program);
|
|
53
54
|
registerCalendarCommands(program);
|
|
55
|
+
registerRoomCommands(program);
|
|
54
56
|
registerTranscriptCommands(program);
|
|
55
57
|
registerFileCommands(program);
|
|
56
58
|
try {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,GAAG,GAAG,SAAS,CAAC;AACtB,MAAM,KAAK,GAAG,SAAS,CAAC;AAExB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,OAAO;KACJ,IAAI,CAAC,SAAS,CAAC;KACf,WAAW,CAAC,qBAAqB,CAAC;KAClC,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AC,OAAO,CAAC,CAAC;AAC9B,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC9B,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC9B,uBAAuB,CAAC,OAAO,CAAC,CAAC;AACjC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC9B,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAClC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC9B,0BAA0B,CAAC,OAAO,CAAC,CAAC;AACpC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAE9B,IAAI,CAAC;IACH,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;AAC7B,CAAC;AAAC,OAAO,GAAG,EAAE,CAAC;IACb,WAAW,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "msgraph-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"publish": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"commander": "^13.1.0",
|
|
15
15
|
"open": "^10.1.2",
|
|
16
|
-
"microsoft-graph-client": "1.0.
|
|
16
|
+
"microsoft-graph-client": "1.0.23"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "24.10.4",
|