Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing of ScheduleItem incomplete #428

Open
daniel-stoll opened this issue Jul 4, 2023 · 0 comments
Open

Typing of ScheduleItem incomplete #428

daniel-stoll opened this issue Jul 4, 2023 · 0 comments
Labels

Comments

@daniel-stoll
Copy link

When requesting schedule items via
https://graph.microsoft.com/v1.0/me/calendar/getSchedule

The response is missing some attributes in the ScheduleItem

Existing typing:

export interface ScheduleItem {
    // The date, time, and time zone that the corresponding event ends.
    end?: NullableOption<DateTimeTimeZone>;
    // The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional.
    isPrivate?: NullableOption<boolean>;
    // The location where the corresponding event is held or attended from. Optional.
    location?: NullableOption<string>;
    // The date, time, and time zone that the corresponding event starts.
    start?: NullableOption<DateTimeTimeZone>;
    /**
     * The availability status of the user or resource during the corresponding event. The possible values are: free,
     * tentative, busy, oof, workingElsewhere, unknown.
     */
    status?: NullableOption<FreeBusyStatus>;
    // The corresponding event's subject line. Optional.
    subject?: NullableOption<string>;
}

Return type from graph explorer

                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "Microsoft Graph community call",
                    "location": "Microsoft Teams meeting",
                    "isMeeting": false,             <-- new
                    "isRecurring": true,            <-- new
                    "isException": false,            <-- new
                    "isReminderSet": true,            <-- new
                    "start": {
                        "dateTime": "2023-07-04T15:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-07-04T16:00:00.0000000",
                        "timeZone": "UTC"
                    }
                }

These values are missing in the typing

  • "isMeeting": false
  • "isRecurring": true
  • "isException": false
  • "isReminderSet": true

The official docs also do net mention them:
https://learn.microsoft.com/en-us/graph/api/resources/scheduleitem?view=graph-rest-1.0

I'll open a ticket there as well.

Best

@ghost ghost added the ToTriage label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant