Typing of ScheduleItem incomplete

Ouverte
#428 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
55/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
typescript
Domaine
api

Piste de recherche

Start by locating the ScheduleItem interface in the TypeScript definitions and compare its fields with the four properties shown in the issue’s Graph Explorer response: isMeeting, isRecurring, isException, and isReminderSet. Add the missing typings and verify that the generated or maintained definitions accept those properties. Done when all four response fields are represented in ScheduleItem.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

ToTriage

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

Langage dominant
PowerShell
Étoiles
129
Forks
35
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de microsoftgraph/msgraph-typescript-typings

Toutes les issues de microsoftgraph/msgraph-typescript-typings

Issues similaires

Plus d'issues Backend & API Design

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.