/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expect, test } from "vitest"; import { Incidentio } from "../index.js"; test("Schedule Entries Schedules V2 #List Schedule Entries", async () => { const incidentio = new Incidentio(); const result = await incidentio.scheduleEntries.list({ scheduleId: "01FDAG4SAP5TYPT98WGR2N7W91", entryWindowStart: new Date("2021-01-01T00:00:00Z"), entryWindowEnd: new Date("2021-01-01T00:00:00Z"), }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ paginationMeta: { after: "abc123", afterUrl: "abc123", }, scheduleEntries: { final: [ { endAt: new Date("2021-08-17T13:28:57.801578Z"), entryId: "01G0J1EXE7AXZ2C93K61WBPYEH", fingerprint: "01G0J1EXE7AXZ2C93K61WBPYEH", layerId: "01G0J1EXE7AXZ2C93K61WBPYNH", rotationId: "01G0J1EXE7AXZ2C93K61WBPYEH", startAt: new Date("2021-08-17T13:28:57.801578Z"), user: { email: "lisa@incident.io", id: "01FCNDV6P870EA6S7TK1DSYDG0", name: "Lisa Karlin Curtis", role: "viewer", slackUserId: "U02AYNF2XJM", }, }, ], overrides: [ { endAt: new Date("2021-08-17T13:28:57.801578Z"), entryId: "01G0J1EXE7AXZ2C93K61WBPYEH", fingerprint: "01G0J1EXE7AXZ2C93K61WBPYEH", layerId: "01G0J1EXE7AXZ2C93K61WBPYNH", rotationId: "01G0J1EXE7AXZ2C93K61WBPYEH", startAt: new Date("2021-08-17T13:28:57.801578Z"), user: { email: "lisa@incident.io", id: "01FCNDV6P870EA6S7TK1DSYDG0", name: "Lisa Karlin Curtis", role: "viewer", slackUserId: "U02AYNF2XJM", }, }, ], scheduled: [ { endAt: new Date("2021-08-17T13:28:57.801578Z"), entryId: "01G0J1EXE7AXZ2C93K61WBPYEH", fingerprint: "01G0J1EXE7AXZ2C93K61WBPYEH", layerId: "01G0J1EXE7AXZ2C93K61WBPYNH", rotationId: "01G0J1EXE7AXZ2C93K61WBPYEH", startAt: new Date("2021-08-17T13:28:57.801578Z"), user: { email: "lisa@incident.io", id: "01FCNDV6P870EA6S7TK1DSYDG0", name: "Lisa Karlin Curtis", role: "viewer", slackUserId: "U02AYNF2XJM", }, }, ], }, }); });