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: issue with schedule endpoint url change #18

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion frontend/src/data/getSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function getScheduleGrid(
conferenceId: string,
): Promise<string[][]> {
const { data, error } = await umbracoClient.GET(
'/api/conference/{conferenceId}/schedule',
'/api/v1/conference/{conferenceId}/schedule',
{ params: { path: { conferenceId } } },
);

Expand Down
59 changes: 58 additions & 1 deletion frontend/src/data/umbraco/defaultApiSchema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


export interface paths {
"/api/conference/{conferenceId}/schedule": {
"/api/v1/conference/{conferenceId}/schedule": {
get: {
parameters: {
path: {
Expand All @@ -24,6 +24,36 @@ export interface paths {
};
};
};
"/api/v1/session/{sessionId}/feedback": {
post: {
parameters: {
path: {
sessionId: string;
};
};
requestBody?: {
content: {
"application/json": components["schemas"]["CreateSessionFeedbackRequestDto"];
"text/json": components["schemas"]["CreateSessionFeedbackRequestDto"];
"application/*+json": components["schemas"]["CreateSessionFeedbackRequestDto"];
};
};
responses: {
/** @description OK */
200: {
headers: {
/** @description The list of notifications produced during the request. */
"Umb-Notifications"?: components["schemas"]["NotificationHeaderModel"][] | null;
};
content: {
"application/json": components["schemas"]["SessionFeedbackResponseDto"];
"text/json": components["schemas"]["SessionFeedbackResponseDto"];
"text/plain": components["schemas"]["SessionFeedbackResponseDto"];
};
};
};
};
};
}

export type webhooks = Record<string, never>;
Expand All @@ -33,6 +63,33 @@ export interface components {
ConferenceScheduleResponseDto: {
scheduleGrid: string[][];
};
CreateSessionFeedbackRequestDto: {
/** Format: int32 */
speakerRating: number;
/** Format: int32 */
contentRating: number;
/** Format: int32 */
venueRating: number;
comments: string;
};
/** @enum {string} */
EventMessageTypeModel: "Default" | "Info" | "Error" | "Success" | "Warning";
NotificationHeaderModel: {
message: string;
category: string;
type: components["schemas"]["EventMessageTypeModel"];
};
SessionFeedbackResponseDto: {
/** Format: uuid */
id: string;
/** Format: int32 */
speakerRating: number;
/** Format: int32 */
contentRating: number;
/** Format: int32 */
venueRating: number;
comments: string;
};
};
responses: never;
parameters: never;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/data/umbraco/deliveryApiSchema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export interface components {
start?: string | null;
/** Format: date-time */
end?: string | null;
isEligibleForFeedback?: boolean | null;
speakers?: components["schemas"]["IApiContentModel"][] | null;
description?: components["schemas"]["RichTextModel"];
};
Expand Down