Skip to content

Commit

Permalink
feat(hub-common): update events types
Browse files Browse the repository at this point in the history
affects: @esri/hub-common
  • Loading branch information
ethanspiro committed Mar 6, 2024
1 parent ce2c585 commit cda7869
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 32 deletions.
48 changes: 18 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/common/src/events/api/orval/api/orval-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export type GetEventsParams = {
*/
startDateTimeAfter?: string;
/**
* attendance types to filter query results by
* Comma separated sting list of AttendanceTypes
*/
attendanceTypes?: string[];
attendanceTypes?: string;
/**
* the max amount of events to return
*/
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/events/api/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export {
EventAccess,
EventAttendanceType,
EventStatus,
GetEventsParams,
Expand Down
4 changes: 4 additions & 0 deletions packages/common/test/events/api/events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
EventAttendanceType,
EventStatus,
} from "../../../src/events/api";
import { EventAccess } from "../../../src/events/api/types";
import * as authenticateRequestModule from "../../../src/events/api/utils/authenticate-request";
import * as orvalModule from "../../../src/events/api/orval/api/orval-events";

Expand All @@ -36,6 +37,7 @@ describe("Events", () => {

const options: ICreateEventParams = {
data: {
access: EventAccess.ORG,
addresses: [
{
address: "111 Crunchy Street Bend, OR 97703",
Expand All @@ -51,6 +53,7 @@ describe("Events", () => {
EventAttendanceType.VIRTUAL,
],
description: "a description",
editGroups: ["111"],
endDateTime: "2023-12-19T19:52:13.584Z",
geometry: {
type: "Feature",
Expand All @@ -65,6 +68,7 @@ describe("Events", () => {
details: "Tacos online are here",
},
],
readGroups: ["111"],
startDateTime: "2023-12-01T19:52:13.584Z",
summary: "a summary",
timeZone: "America/Los_Angeles",
Expand Down

0 comments on commit cda7869

Please sign in to comment.