Typing of ScheduleItem incomplete

Đang mở
#428 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PowerShell
Star
129
Fork
35
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-typescript-typings

Tất cả issue của microsoftgraph/msgraph-typescript-typings

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.