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

fix(hub-common): add status to IUpdateEvent #1469

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions packages/common/src/events/api/orval/api/orval-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,30 @@
*/
import { Awaited } from "../awaited-type";
import { customClient } from "../custom-client";
export type GetEventsParams = {
export type GetRegistrationsParams = {
/**
* Event id being registered for
*/
eventId?: string;
/**
* ArcGIS Online id for a user. Will always be extracted from the token unless service token is used.
*/
userAgoId?: string;
/**
* the max amount of registrations to return
*/
num?: string;
/**
* Include registrations with each event
* the index to start at
*/
includeRegistrations?: string;
start?: string;
};

export type GetEventsParams = {
/**
* Include creator with each event
* which relation fields to include in response
*/
includeCreator?: string;
include?: string;
/**
* latest ISO8601 start date-time for the events
*/
Expand Down Expand Up @@ -124,6 +139,8 @@ export interface IUpdateEvent {
readGroups?: string[];
/** ISO8601 start date-time for the event */
startDateTime?: string;
/** Status of the event */
status?: EventStatus;
/** Summary of the event */
summary?: string;
/** Tags for the event */
Expand Down Expand Up @@ -172,7 +189,7 @@ export interface IEvent {
catalog: IEventCatalogItem[] | null;
categories: string[];
createdAt: string;
createdById: string;
createdById: string | null;
creator?: IUser;
description: string | null;
editGroups: string[] | null;
Expand Down Expand Up @@ -432,10 +449,11 @@ export const createRegistration = (
};

export const getRegistrations = (
params?: GetRegistrationsParams,
options?: SecondParameter<typeof customClient>
) => {
return customClient<IRegistration[]>(
{ url: `/api/events/v1/registrations`, method: "GET" },
{ url: `/api/events/v1/registrations`, method: "GET", params },
options
);
};
Expand Down
Loading