diff --git a/Makefile b/Makefile index cde079bc7..cfbd428bc 100644 --- a/Makefile +++ b/Makefile @@ -73,9 +73,16 @@ ent-db: run-eslint: docker compose exec view npm run lint -generate-openapi: +gen: + make gen-api + make gen-front-api + +gen-api: docker compose run --rm api oapi-codegen -config /openapi/config.yaml /openapi/openapi.yaml +gen-front-api: + docker compose run --rm view npx orval + run-swagger: docker compose -f compose.swagger.yml up -d diff --git a/api/generated/openapi_gen.go b/api/generated/openapi_gen.go index 52e60dcfe..a17e60a22 100644 --- a/api/generated/openapi_gen.go +++ b/api/generated/openapi_gen.go @@ -11,6 +11,20 @@ import ( "github.com/oapi-codegen/runtime" ) +// Defines values for GetActivitiesFilteredDetailsParamsIsDone. +const ( + GetActivitiesFilteredDetailsParamsIsDoneAll GetActivitiesFilteredDetailsParamsIsDone = "all" + GetActivitiesFilteredDetailsParamsIsDoneFalse GetActivitiesFilteredDetailsParamsIsDone = "false" + GetActivitiesFilteredDetailsParamsIsDoneTrue GetActivitiesFilteredDetailsParamsIsDone = "true" +) + +// Defines values for GetActivitiesFilteredDetailsYearParamsIsDone. +const ( + GetActivitiesFilteredDetailsYearParamsIsDoneAll GetActivitiesFilteredDetailsYearParamsIsDone = "all" + GetActivitiesFilteredDetailsYearParamsIsDoneFalse GetActivitiesFilteredDetailsYearParamsIsDone = "false" + GetActivitiesFilteredDetailsYearParamsIsDoneTrue GetActivitiesFilteredDetailsYearParamsIsDone = "true" +) + // Activity defines model for activity. type Activity struct { Design *int `json:"design,omitempty"` @@ -49,6 +63,76 @@ type DestroyUserIDs struct { DeleteIDs []float32 `json:"deleteIDs"` } +// Division defines model for division. +type Division struct { + FinancialRecordID int `json:"financialRecordID"` + Name string `json:"name"` +} + +// DivisionDetails defines model for divisionDetails. +type DivisionDetails struct { + Divisions *[]DivisionWithBalance `json:"divisions,omitempty"` + Total *Total `json:"total,omitempty"` +} + +// DivisionWithBalance defines model for divisionWithBalance. +type DivisionWithBalance struct { + Balance *int `json:"balance,omitempty"` + Budget *int `json:"budget,omitempty"` + Expense *int `json:"expense,omitempty"` + FinancialRecord *string `json:"financialRecord,omitempty"` + Id *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// FestivalItem defines model for festivalItem. +type FestivalItem struct { + Amount int `json:"amount"` + DivisionId int `json:"divisionId"` + Memo *string `json:"memo,omitempty"` + Name string `json:"name"` +} + +// FestivalItemDetails defines model for festivalItemDetails. +type FestivalItemDetails struct { + FestivalItems *[]FestivalItemWithBalance `json:"festivalItems,omitempty"` + Total *Total `json:"total,omitempty"` +} + +// FestivalItemWithBalance defines model for festivalItemWithBalance. +type FestivalItemWithBalance struct { + Balance *int `json:"balance,omitempty"` + Budget *int `json:"budget,omitempty"` + Division *string `json:"division,omitempty"` + Expense *int `json:"expense,omitempty"` + FinancialRecord *string `json:"financialRecord,omitempty"` + Id *int `json:"id,omitempty"` + Memo *string `json:"memo,omitempty"` + Name *string `json:"name,omitempty"` +} + +// FinancialRecord defines model for financialRecord. +type FinancialRecord struct { + Name string `json:"name"` + YearId int `json:"year_id"` +} + +// FinancialRecordDetails defines model for financialRecordDetails. +type FinancialRecordDetails struct { + FinancialRecords *[]FinancialRecordWithBalance `json:"financialRecords,omitempty"` + Total *Total `json:"total,omitempty"` +} + +// FinancialRecordWithBalance defines model for financialRecordWithBalance. +type FinancialRecordWithBalance struct { + Balance *int `json:"balance,omitempty"` + Budget *int `json:"budget,omitempty"` + Expense *int `json:"expense,omitempty"` + Id *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Year *int `json:"year,omitempty"` +} + // PasswordResetData defines model for passwordResetData. type PasswordResetData struct { ConfirmPassword *string `json:"confirmPassword,omitempty"` @@ -56,28 +140,6 @@ type PasswordResetData struct { Token *string `json:"token,omitempty"` } -// PurchaseItem defines model for purchaseItem. -type PurchaseItem struct { - Detail *string `json:"detail,omitempty"` - FinanceCheck bool `json:"financeCheck"` - Item string `json:"item"` - Price int `json:"price"` - PurchaseOrderID int `json:"purchaseOrderID"` - Quantity int `json:"quantity"` - Url *string `json:"url,omitempty"` -} - -// PurchaseReport defines model for purchaseReport. -type PurchaseReport struct { - Addition int `json:"addition"` - Buyer *string `json:"buyer,omitempty"` - Discount int `json:"discount"` - FinanceCheck bool `json:"financeCheck"` - PurchaseOrderID int `json:"purchaseOrderID"` - Remark *string `json:"remark,omitempty"` - UserID int `json:"userID"` -} - // Receipt defines model for receipt. type Receipt struct { BucketName *string `json:"bucketName,omitempty"` @@ -91,6 +153,7 @@ type Receipt struct { type Sponsor struct { Address string `json:"address"` Email string `json:"email"` + Id *int `json:"id,omitempty"` Name string `json:"name"` Representative string `json:"representative"` Tel string `json:"tel"` @@ -103,6 +166,13 @@ type SponsorStyle struct { Style string `json:"style"` } +// Total defines model for total. +type Total struct { + Balance *int `json:"balance,omitempty"` + Budget *int `json:"budget,omitempty"` + Expense *int `json:"expense,omitempty"` +} + // YearPeriods defines model for year_periods. type YearPeriods struct { EndedAt string `json:"endedAt"` @@ -110,6 +180,36 @@ type YearPeriods struct { Year int `json:"year"` } +// GetActivitiesFilteredDetailsParams defines parameters for GetActivitiesFilteredDetails. +type GetActivitiesFilteredDetailsParams struct { + // IsDone 完了状態を表すフラグ + IsDone *GetActivitiesFilteredDetailsParamsIsDone `form:"is_done,omitempty" json:"is_done,omitempty"` + + // SponsorStyleId スポンサースタイルIDの配列 + SponsorStyleId *[]int `form:"sponsor_style_id,omitempty" json:"sponsor_style_id,omitempty"` + + // Keyword キーワード検索用の文字列 + Keyword *string `form:"keyword,omitempty" json:"keyword,omitempty"` +} + +// GetActivitiesFilteredDetailsParamsIsDone defines parameters for GetActivitiesFilteredDetails. +type GetActivitiesFilteredDetailsParamsIsDone string + +// GetActivitiesFilteredDetailsYearParams defines parameters for GetActivitiesFilteredDetailsYear. +type GetActivitiesFilteredDetailsYearParams struct { + // IsDone 完了状態を表すフラグ + IsDone *GetActivitiesFilteredDetailsYearParamsIsDone `form:"is_done,omitempty" json:"is_done,omitempty"` + + // SponsorStyleId スポンサースタイルIDの配列 + SponsorStyleId *[]int `form:"sponsor_style_id,omitempty" json:"sponsor_style_id,omitempty"` + + // Keyword キーワード検索用の文字列 + Keyword *string `form:"keyword,omitempty" json:"keyword,omitempty"` +} + +// GetActivitiesFilteredDetailsYearParamsIsDone defines parameters for GetActivitiesFilteredDetailsYear. +type GetActivitiesFilteredDetailsYearParamsIsDone string + // PostBudgetsParams defines parameters for PostBudgets. type PostBudgetsParams struct { // Price price @@ -236,84 +336,6 @@ type PostPasswordResetIdValidParams struct { Token *string `form:"token,omitempty" json:"token,omitempty"` } -// PostPurchaseitemsParams defines parameters for PostPurchaseitems. -type PostPurchaseitemsParams struct { - // Item item - Item *string `form:"item,omitempty" json:"item,omitempty"` - - // Price price - Price *int `form:"price,omitempty" json:"price,omitempty"` - - // Quantity quantity - Quantity *int `form:"quantity,omitempty" json:"quantity,omitempty"` - - // Detail detail - Detail *string `form:"detail,omitempty" json:"detail,omitempty"` - - // Url url - Url *string `form:"url,omitempty" json:"url,omitempty"` - - // PurchaseOrderId purchase_order_id - PurchaseOrderId *int `form:"purchase_order_id,omitempty" json:"purchase_order_id,omitempty"` - - // FinanceCheck finance_check - FinanceCheck *bool `form:"finance_check,omitempty" json:"finance_check,omitempty"` -} - -// PutPurchaseitemsIdParams defines parameters for PutPurchaseitemsId. -type PutPurchaseitemsIdParams struct { - // Item item - Item *string `form:"item,omitempty" json:"item,omitempty"` - - // Price price - Price *int `form:"price,omitempty" json:"price,omitempty"` - - // Quantity quantity - Quantity *int `form:"quantity,omitempty" json:"quantity,omitempty"` - - // Detail detail - Detail *string `form:"detail,omitempty" json:"detail,omitempty"` - - // Url url - Url *string `form:"url,omitempty" json:"url,omitempty"` - - // PurchaseOrderId purchase_order_id - PurchaseOrderId *int `form:"purchase_order_id,omitempty" json:"purchase_order_id,omitempty"` - - // FinanceCheck finance_check - FinanceCheck *bool `form:"finance_check,omitempty" json:"finance_check,omitempty"` -} - -// PostPurchaseordersParams defines parameters for PostPurchaseorders. -type PostPurchaseordersParams struct { - // Deadline deadline - Deadline *string `form:"deadline,omitempty" json:"deadline,omitempty"` - - // UserId user_id - UserId *int `form:"user_id,omitempty" json:"user_id,omitempty"` - - // ExpenseId expense_id - ExpenseId *int `form:"expense_id,omitempty" json:"expense_id,omitempty"` - - // FinanceCheck finance_check - FinanceCheck *bool `form:"finance_check,omitempty" json:"finance_check,omitempty"` -} - -// PutPurchaseordersIdParams defines parameters for PutPurchaseordersId. -type PutPurchaseordersIdParams struct { - // Deadline deadline - Deadline *string `form:"deadline,omitempty" json:"deadline,omitempty"` - - // UserId user_id - UserId *int `form:"user_id,omitempty" json:"user_id,omitempty"` - - // ExpenseId expense_id - ExpenseId *int `form:"expense_id,omitempty" json:"expense_id,omitempty"` - - // FinanceCheck finance_check - FinanceCheck *bool `form:"finance_check,omitempty" json:"finance_check,omitempty"` -} - // PostSourcesParams defines parameters for PostSources. type PostSourcesParams struct { // Name name @@ -404,6 +426,72 @@ type PutYearsIdParams struct { Year int `form:"year" json:"year"` } +// PostActivitiesJSONRequestBody defines body for PostActivities for application/json ContentType. +type PostActivitiesJSONRequestBody = Activity + +// PutActivitiesIdJSONRequestBody defines body for PutActivitiesId for application/json ContentType. +type PutActivitiesIdJSONRequestBody = Activity + +// PostActivityInformationsJSONRequestBody defines body for PostActivityInformations for application/json ContentType. +type PostActivityInformationsJSONRequestBody = ActivityInformation + +// PutActivityInformationsIdJSONRequestBody defines body for PutActivityInformationsId for application/json ContentType. +type PutActivityInformationsIdJSONRequestBody = ActivityInformation + +// PostActivityStylesJSONRequestBody defines body for PostActivityStyles for application/json ContentType. +type PostActivityStylesJSONRequestBody = ActivityStyle + +// PutActivityStylesIdJSONRequestBody defines body for PutActivityStylesId for application/json ContentType. +type PutActivityStylesIdJSONRequestBody = ActivityStyle + +// PostDivisionsJSONRequestBody defines body for PostDivisions for application/json ContentType. +type PostDivisionsJSONRequestBody = Division + +// PutDivisionsIdJSONRequestBody defines body for PutDivisionsId for application/json ContentType. +type PutDivisionsIdJSONRequestBody = Division + +// PostFestivalItemsJSONRequestBody defines body for PostFestivalItems for application/json ContentType. +type PostFestivalItemsJSONRequestBody = FestivalItem + +// PutFestivalItemsIdJSONRequestBody defines body for PutFestivalItemsId for application/json ContentType. +type PutFestivalItemsIdJSONRequestBody = FestivalItem + +// PostFinancailRecordsJSONRequestBody defines body for PostFinancailRecords for application/json ContentType. +type PostFinancailRecordsJSONRequestBody = FinancialRecord + +// PutFinancailRecordsIdJSONRequestBody defines body for PutFinancailRecordsId for application/json ContentType. +type PutFinancailRecordsIdJSONRequestBody = FinancialRecord + +// PostPasswordResetIdJSONRequestBody defines body for PostPasswordResetId for application/json ContentType. +type PostPasswordResetIdJSONRequestBody = PasswordResetData + +// PostReceiptsJSONRequestBody defines body for PostReceipts for application/json ContentType. +type PostReceiptsJSONRequestBody = Receipt + +// PutReceiptsIdJSONRequestBody defines body for PutReceiptsId for application/json ContentType. +type PutReceiptsIdJSONRequestBody = Receipt + +// PostSponsorsJSONRequestBody defines body for PostSponsors for application/json ContentType. +type PostSponsorsJSONRequestBody = Sponsor + +// PutSponsorsIdJSONRequestBody defines body for PutSponsorsId for application/json ContentType. +type PutSponsorsIdJSONRequestBody = Sponsor + +// PostSponsorstylesJSONRequestBody defines body for PostSponsorstyles for application/json ContentType. +type PostSponsorstylesJSONRequestBody = SponsorStyle + +// PutSponsorstylesIdJSONRequestBody defines body for PutSponsorstylesId for application/json ContentType. +type PutSponsorstylesIdJSONRequestBody = SponsorStyle + +// DeleteUsersDeleteJSONRequestBody defines body for DeleteUsersDelete for application/json ContentType. +type DeleteUsersDeleteJSONRequestBody = DestroyUserIDs + +// PostYearsPeriodsJSONRequestBody defines body for PostYearsPeriods for application/json ContentType. +type PostYearsPeriodsJSONRequestBody = YearPeriods + +// PutYearsPeriodsIdJSONRequestBody defines body for PutYearsPeriodsId for application/json ContentType. +type PutYearsPeriodsIdJSONRequestBody = YearPeriods + // ServerInterface represents all server handlers. type ServerInterface interface { @@ -420,10 +508,10 @@ type ServerInterface interface { GetActivitiesDetailsYear(ctx echo.Context, year int) error // (GET /activities/filtered_details) - GetActivitiesFilteredDetails(ctx echo.Context) error + GetActivitiesFilteredDetails(ctx echo.Context, params GetActivitiesFilteredDetailsParams) error // (GET /activities/filtered_details/{year}) - GetActivitiesFilteredDetailsYear(ctx echo.Context, year string) error + GetActivitiesFilteredDetailsYear(ctx echo.Context, year string, params GetActivitiesFilteredDetailsYearParams) error // (DELETE /activities/{id}) DeleteActivitiesId(ctx echo.Context, id int) error @@ -518,6 +606,18 @@ type ServerInterface interface { // (PUT /departments/{id}) PutDepartmentsId(ctx echo.Context, id int, params PutDepartmentsIdParams) error + // (GET /divisions) + GetDivisions(ctx echo.Context) error + + // (POST /divisions) + PostDivisions(ctx echo.Context) error + + // (DELETE /divisions/{id}) + DeleteDivisionsId(ctx echo.Context, id int) error + + // (PUT /divisions/{id}) + PutDivisionsId(ctx echo.Context, id int) error + // (GET /expenses) GetExpenses(ctx echo.Context) error @@ -545,6 +645,30 @@ type ServerInterface interface { // (GET /expenses/{id}/details) GetExpensesIdDetails(ctx echo.Context, id int) error + // (GET /festival_items) + GetFestivalItems(ctx echo.Context) error + + // (POST /festival_items) + PostFestivalItems(ctx echo.Context) error + + // (DELETE /festival_items/{id}) + DeleteFestivalItemsId(ctx echo.Context, id int) error + + // (PUT /festival_items/{id}) + PutFestivalItemsId(ctx echo.Context, id int) error + + // (GET /financail_records) + GetFinancailRecords(ctx echo.Context) error + + // (POST /financail_records) + PostFinancailRecords(ctx echo.Context) error + + // (DELETE /financail_records/{id}) + DeleteFinancailRecordsId(ctx echo.Context, id int) error + + // (PUT /financail_records/{id}) + PutFinancailRecordsId(ctx echo.Context, id int) error + // (GET /fund_informations) GetFundInformations(ctx echo.Context) error @@ -578,81 +702,6 @@ type ServerInterface interface { // (POST /password_reset/{id}/valid) PostPasswordResetIdValid(ctx echo.Context, id int, params PostPasswordResetIdValidParams) error - // (GET /purchaseitems) - GetPurchaseitems(ctx echo.Context) error - - // (POST /purchaseitems) - PostPurchaseitems(ctx echo.Context, params PostPurchaseitemsParams) error - - // (GET /purchaseitems/details) - GetPurchaseitemsDetails(ctx echo.Context) error - - // (DELETE /purchaseitems/{id}) - DeletePurchaseitemsId(ctx echo.Context, id int) error - - // (GET /purchaseitems/{id}) - GetPurchaseitemsId(ctx echo.Context, id int) error - - // (PUT /purchaseitems/{id}) - PutPurchaseitemsId(ctx echo.Context, id int, params PutPurchaseitemsIdParams) error - - // (GET /purchaseitems/{id}/details) - GetPurchaseitemsIdDetails(ctx echo.Context, id int) error - - // (GET /purchaseorders) - GetPurchaseorders(ctx echo.Context) error - - // (POST /purchaseorders) - PostPurchaseorders(ctx echo.Context, params PostPurchaseordersParams) error - - // (GET /purchaseorders/details) - GetPurchaseordersDetails(ctx echo.Context) error - - // (GET /purchaseorders/details/unregistered/{year}) - GetPurchaseordersDetailsUnregisteredYear(ctx echo.Context, year int) error - - // (GET /purchaseorders/details/{year}) - GetPurchaseordersDetailsYear(ctx echo.Context, year int) error - - // (POST /purchaseorders/send/{id}) - PostPurchaseordersSendId(ctx echo.Context, id int) error - - // (DELETE /purchaseorders/{id}) - DeletePurchaseordersId(ctx echo.Context, id int) error - - // (GET /purchaseorders/{id}) - GetPurchaseordersId(ctx echo.Context, id int) error - - // (PUT /purchaseorders/{id}) - PutPurchaseordersId(ctx echo.Context, id int, params PutPurchaseordersIdParams) error - - // (GET /purchaseorders/{id}/details) - GetPurchaseordersIdDetails(ctx echo.Context, id int) error - - // (GET /purchasereports) - GetPurchasereports(ctx echo.Context) error - - // (POST /purchasereports) - PostPurchasereports(ctx echo.Context) error - - // (GET /purchasereports/details) - GetPurchasereportsDetails(ctx echo.Context) error - - // (GET /purchasereports/details/{year}) - GetPurchasereportsDetailsYear(ctx echo.Context, year int) error - - // (DELETE /purchasereports/{id}) - DeletePurchasereportsId(ctx echo.Context, id int) error - - // (GET /purchasereports/{id}) - GetPurchasereportsId(ctx echo.Context, id int) error - - // (PUT /purchasereports/{id}) - PutPurchasereportsId(ctx echo.Context, id int) error - - // (GET /purchasereports/{id}/details) - GetPurchasereportsIdDetails(ctx echo.Context, id int) error - // (GET /receipts) GetReceipts(ctx echo.Context) error @@ -838,8 +887,31 @@ func (w *ServerInterfaceWrapper) GetActivitiesDetailsYear(ctx echo.Context) erro func (w *ServerInterfaceWrapper) GetActivitiesFilteredDetails(ctx echo.Context) error { var err error + // Parameter object where we will unmarshal all parameters from the context + var params GetActivitiesFilteredDetailsParams + // ------------- Optional query parameter "is_done" ------------- + + err = runtime.BindQueryParameter("form", true, false, "is_done", ctx.QueryParams(), ¶ms.IsDone) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter is_done: %s", err)) + } + + // ------------- Optional query parameter "sponsor_style_id" ------------- + + err = runtime.BindQueryParameter("form", true, false, "sponsor_style_id", ctx.QueryParams(), ¶ms.SponsorStyleId) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter sponsor_style_id: %s", err)) + } + + // ------------- Optional query parameter "keyword" ------------- + + err = runtime.BindQueryParameter("form", true, false, "keyword", ctx.QueryParams(), ¶ms.Keyword) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter keyword: %s", err)) + } + // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetActivitiesFilteredDetails(ctx) + err = w.Handler.GetActivitiesFilteredDetails(ctx, params) return err } @@ -854,8 +926,31 @@ func (w *ServerInterfaceWrapper) GetActivitiesFilteredDetailsYear(ctx echo.Conte return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter year: %s", err)) } + // Parameter object where we will unmarshal all parameters from the context + var params GetActivitiesFilteredDetailsYearParams + // ------------- Optional query parameter "is_done" ------------- + + err = runtime.BindQueryParameter("form", true, false, "is_done", ctx.QueryParams(), ¶ms.IsDone) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter is_done: %s", err)) + } + + // ------------- Optional query parameter "sponsor_style_id" ------------- + + err = runtime.BindQueryParameter("form", true, false, "sponsor_style_id", ctx.QueryParams(), ¶ms.SponsorStyleId) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter sponsor_style_id: %s", err)) + } + + // ------------- Optional query parameter "keyword" ------------- + + err = runtime.BindQueryParameter("form", true, false, "keyword", ctx.QueryParams(), ¶ms.Keyword) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter keyword: %s", err)) + } + // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetActivitiesFilteredDetailsYear(ctx, year) + err = w.Handler.GetActivitiesFilteredDetailsYear(ctx, year, params) return err } @@ -1360,6 +1455,56 @@ func (w *ServerInterfaceWrapper) PutDepartmentsId(ctx echo.Context) error { return err } +// GetDivisions converts echo context to params. +func (w *ServerInterfaceWrapper) GetDivisions(ctx echo.Context) error { + var err error + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.GetDivisions(ctx) + return err +} + +// PostDivisions converts echo context to params. +func (w *ServerInterfaceWrapper) PostDivisions(ctx echo.Context) error { + var err error + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.PostDivisions(ctx) + return err +} + +// DeleteDivisionsId converts echo context to params. +func (w *ServerInterfaceWrapper) DeleteDivisionsId(ctx echo.Context) error { + var err error + // ------------- Path parameter "id" ------------- + var id int + + err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) + } + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.DeleteDivisionsId(ctx, id) + return err +} + +// PutDivisionsId converts echo context to params. +func (w *ServerInterfaceWrapper) PutDivisionsId(ctx echo.Context) error { + var err error + // ------------- Path parameter "id" ------------- + var id int + + err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) + } + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.PutDivisionsId(ctx, id) + return err +} + // GetExpenses converts echo context to params. func (w *ServerInterfaceWrapper) GetExpenses(ctx echo.Context) error { var err error @@ -1515,102 +1660,92 @@ func (w *ServerInterfaceWrapper) GetExpensesIdDetails(ctx echo.Context) error { return err } -// GetFundInformations converts echo context to params. -func (w *ServerInterfaceWrapper) GetFundInformations(ctx echo.Context) error { +// GetFestivalItems converts echo context to params. +func (w *ServerInterfaceWrapper) GetFestivalItems(ctx echo.Context) error { var err error // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetFundInformations(ctx) + err = w.Handler.GetFestivalItems(ctx) return err } -// PostFundInformations converts echo context to params. -func (w *ServerInterfaceWrapper) PostFundInformations(ctx echo.Context) error { +// PostFestivalItems converts echo context to params. +func (w *ServerInterfaceWrapper) PostFestivalItems(ctx echo.Context) error { var err error - // Parameter object where we will unmarshal all parameters from the context - var params PostFundInformationsParams - // ------------- Required query parameter "user_id" ------------- + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.PostFestivalItems(ctx) + return err +} - err = runtime.BindQueryParameter("form", true, true, "user_id", ctx.QueryParams(), ¶ms.UserId) +// DeleteFestivalItemsId converts echo context to params. +func (w *ServerInterfaceWrapper) DeleteFestivalItemsId(ctx echo.Context) error { + var err error + // ------------- Path parameter "id" ------------- + var id int + + err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter user_id: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) } - // ------------- Required query parameter "teacher_id" ------------- + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.DeleteFestivalItemsId(ctx, id) + return err +} - err = runtime.BindQueryParameter("form", true, true, "teacher_id", ctx.QueryParams(), ¶ms.TeacherId) +// PutFestivalItemsId converts echo context to params. +func (w *ServerInterfaceWrapper) PutFestivalItemsId(ctx echo.Context) error { + var err error + // ------------- Path parameter "id" ------------- + var id int + + err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter teacher_id: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) } - // ------------- Required query parameter "price" ------------- + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.PutFestivalItemsId(ctx, id) + return err +} - err = runtime.BindQueryParameter("form", true, true, "price", ctx.QueryParams(), ¶ms.Price) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter price: %s", err)) - } +// GetFinancailRecords converts echo context to params. +func (w *ServerInterfaceWrapper) GetFinancailRecords(ctx echo.Context) error { + var err error - // ------------- Optional query parameter "remark" ------------- + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.GetFinancailRecords(ctx) + return err +} - err = runtime.BindQueryParameter("form", true, false, "remark", ctx.QueryParams(), ¶ms.Remark) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter remark: %s", err)) - } +// PostFinancailRecords converts echo context to params. +func (w *ServerInterfaceWrapper) PostFinancailRecords(ctx echo.Context) error { + var err error - // ------------- Optional query parameter "is_first_check" ------------- + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.PostFinancailRecords(ctx) + return err +} - err = runtime.BindQueryParameter("form", true, false, "is_first_check", ctx.QueryParams(), ¶ms.IsFirstCheck) +// DeleteFinancailRecordsId converts echo context to params. +func (w *ServerInterfaceWrapper) DeleteFinancailRecordsId(ctx echo.Context) error { + var err error + // ------------- Path parameter "id" ------------- + var id int + + err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter is_first_check: %s", err)) - } - - // ------------- Optional query parameter "is_last_check" ------------- - - err = runtime.BindQueryParameter("form", true, false, "is_last_check", ctx.QueryParams(), ¶ms.IsLastCheck) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter is_last_check: %s", err)) - } - - // ------------- Optional query parameter "received_at" ------------- - - err = runtime.BindQueryParameter("form", true, false, "received_at", ctx.QueryParams(), ¶ms.ReceivedAt) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter received_at: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostFundInformations(ctx, params) - return err -} - -// GetFundInformationsDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetFundInformationsDetails(ctx echo.Context) error { - var err error - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetFundInformationsDetails(ctx) - return err -} - -// GetFundInformationsDetailsYear converts echo context to params. -func (w *ServerInterfaceWrapper) GetFundInformationsDetailsYear(ctx echo.Context) error { - var err error - // ------------- Path parameter "year" ------------- - var year int - - err = runtime.BindStyledParameterWithOptions("simple", "year", ctx.Param("year"), &year, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter year: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetFundInformationsDetailsYear(ctx, year) + err = w.Handler.DeleteFinancailRecordsId(ctx, id) return err } -// DeleteFundInformationsId converts echo context to params. -func (w *ServerInterfaceWrapper) DeleteFundInformationsId(ctx echo.Context) error { +// PutFinancailRecordsId converts echo context to params. +func (w *ServerInterfaceWrapper) PutFinancailRecordsId(ctx echo.Context) error { var err error // ------------- Path parameter "id" ------------- var id int @@ -1621,39 +1756,25 @@ func (w *ServerInterfaceWrapper) DeleteFundInformationsId(ctx echo.Context) erro } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.DeleteFundInformationsId(ctx, id) + err = w.Handler.PutFinancailRecordsId(ctx, id) return err } -// GetFundInformationsId converts echo context to params. -func (w *ServerInterfaceWrapper) GetFundInformationsId(ctx echo.Context) error { +// GetFundInformations converts echo context to params. +func (w *ServerInterfaceWrapper) GetFundInformations(ctx echo.Context) error { var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetFundInformationsId(ctx, id) + err = w.Handler.GetFundInformations(ctx) return err } -// PutFundInformationsId converts echo context to params. -func (w *ServerInterfaceWrapper) PutFundInformationsId(ctx echo.Context) error { +// PostFundInformations converts echo context to params. +func (w *ServerInterfaceWrapper) PostFundInformations(ctx echo.Context) error { var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } // Parameter object where we will unmarshal all parameters from the context - var params PutFundInformationsIdParams + var params PostFundInformationsParams // ------------- Required query parameter "user_id" ------------- err = runtime.BindQueryParameter("form", true, true, "user_id", ctx.QueryParams(), ¶ms.UserId) @@ -1704,165 +1825,37 @@ func (w *ServerInterfaceWrapper) PutFundInformationsId(ctx echo.Context) error { } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PutFundInformationsId(ctx, id, params) - return err -} - -// GetFundInformationsIdDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetFundInformationsIdDetails(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetFundInformationsIdDetails(ctx, id) - return err -} - -// PostPasswordResetRequest converts echo context to params. -func (w *ServerInterfaceWrapper) PostPasswordResetRequest(ctx echo.Context) error { - var err error - - // Parameter object where we will unmarshal all parameters from the context - var params PostPasswordResetRequestParams - // ------------- Optional query parameter "email" ------------- - - err = runtime.BindQueryParameter("form", true, false, "email", ctx.QueryParams(), ¶ms.Email) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostPasswordResetRequest(ctx, params) - return err -} - -// PostPasswordResetId converts echo context to params. -func (w *ServerInterfaceWrapper) PostPasswordResetId(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostPasswordResetId(ctx, id) - return err -} - -// PostPasswordResetIdValid converts echo context to params. -func (w *ServerInterfaceWrapper) PostPasswordResetIdValid(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } - - // Parameter object where we will unmarshal all parameters from the context - var params PostPasswordResetIdValidParams - // ------------- Optional query parameter "token" ------------- - - err = runtime.BindQueryParameter("form", true, false, "token", ctx.QueryParams(), ¶ms.Token) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter token: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostPasswordResetIdValid(ctx, id, params) + err = w.Handler.PostFundInformations(ctx, params) return err } -// GetPurchaseitems converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseitems(ctx echo.Context) error { +// GetFundInformationsDetails converts echo context to params. +func (w *ServerInterfaceWrapper) GetFundInformationsDetails(ctx echo.Context) error { var err error // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseitems(ctx) + err = w.Handler.GetFundInformationsDetails(ctx) return err } -// PostPurchaseitems converts echo context to params. -func (w *ServerInterfaceWrapper) PostPurchaseitems(ctx echo.Context) error { +// GetFundInformationsDetailsYear converts echo context to params. +func (w *ServerInterfaceWrapper) GetFundInformationsDetailsYear(ctx echo.Context) error { var err error + // ------------- Path parameter "year" ------------- + var year int - // Parameter object where we will unmarshal all parameters from the context - var params PostPurchaseitemsParams - // ------------- Optional query parameter "item" ------------- - - err = runtime.BindQueryParameter("form", true, false, "item", ctx.QueryParams(), ¶ms.Item) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item: %s", err)) - } - - // ------------- Optional query parameter "price" ------------- - - err = runtime.BindQueryParameter("form", true, false, "price", ctx.QueryParams(), ¶ms.Price) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter price: %s", err)) - } - - // ------------- Optional query parameter "quantity" ------------- - - err = runtime.BindQueryParameter("form", true, false, "quantity", ctx.QueryParams(), ¶ms.Quantity) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter quantity: %s", err)) - } - - // ------------- Optional query parameter "detail" ------------- - - err = runtime.BindQueryParameter("form", true, false, "detail", ctx.QueryParams(), ¶ms.Detail) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter detail: %s", err)) - } - - // ------------- Optional query parameter "url" ------------- - - err = runtime.BindQueryParameter("form", true, false, "url", ctx.QueryParams(), ¶ms.Url) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter url: %s", err)) - } - - // ------------- Optional query parameter "purchase_order_id" ------------- - - err = runtime.BindQueryParameter("form", true, false, "purchase_order_id", ctx.QueryParams(), ¶ms.PurchaseOrderId) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter purchase_order_id: %s", err)) - } - - // ------------- Optional query parameter "finance_check" ------------- - - err = runtime.BindQueryParameter("form", true, false, "finance_check", ctx.QueryParams(), ¶ms.FinanceCheck) + err = runtime.BindStyledParameterWithOptions("simple", "year", ctx.Param("year"), &year, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter finance_check: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter year: %s", err)) } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostPurchaseitems(ctx, params) - return err -} - -// GetPurchaseitemsDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseitemsDetails(ctx echo.Context) error { - var err error - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseitemsDetails(ctx) + err = w.Handler.GetFundInformationsDetailsYear(ctx, year) return err } -// DeletePurchaseitemsId converts echo context to params. -func (w *ServerInterfaceWrapper) DeletePurchaseitemsId(ctx echo.Context) error { +// DeleteFundInformationsId converts echo context to params. +func (w *ServerInterfaceWrapper) DeleteFundInformationsId(ctx echo.Context) error { var err error // ------------- Path parameter "id" ------------- var id int @@ -1873,12 +1866,12 @@ func (w *ServerInterfaceWrapper) DeletePurchaseitemsId(ctx echo.Context) error { } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.DeletePurchaseitemsId(ctx, id) + err = w.Handler.DeleteFundInformationsId(ctx, id) return err } -// GetPurchaseitemsId converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseitemsId(ctx echo.Context) error { +// GetFundInformationsId converts echo context to params. +func (w *ServerInterfaceWrapper) GetFundInformationsId(ctx echo.Context) error { var err error // ------------- Path parameter "id" ------------- var id int @@ -1889,79 +1882,12 @@ func (w *ServerInterfaceWrapper) GetPurchaseitemsId(ctx echo.Context) error { } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseitemsId(ctx, id) - return err -} - -// PutPurchaseitemsId converts echo context to params. -func (w *ServerInterfaceWrapper) PutPurchaseitemsId(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } - - // Parameter object where we will unmarshal all parameters from the context - var params PutPurchaseitemsIdParams - // ------------- Optional query parameter "item" ------------- - - err = runtime.BindQueryParameter("form", true, false, "item", ctx.QueryParams(), ¶ms.Item) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item: %s", err)) - } - - // ------------- Optional query parameter "price" ------------- - - err = runtime.BindQueryParameter("form", true, false, "price", ctx.QueryParams(), ¶ms.Price) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter price: %s", err)) - } - - // ------------- Optional query parameter "quantity" ------------- - - err = runtime.BindQueryParameter("form", true, false, "quantity", ctx.QueryParams(), ¶ms.Quantity) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter quantity: %s", err)) - } - - // ------------- Optional query parameter "detail" ------------- - - err = runtime.BindQueryParameter("form", true, false, "detail", ctx.QueryParams(), ¶ms.Detail) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter detail: %s", err)) - } - - // ------------- Optional query parameter "url" ------------- - - err = runtime.BindQueryParameter("form", true, false, "url", ctx.QueryParams(), ¶ms.Url) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter url: %s", err)) - } - - // ------------- Optional query parameter "purchase_order_id" ------------- - - err = runtime.BindQueryParameter("form", true, false, "purchase_order_id", ctx.QueryParams(), ¶ms.PurchaseOrderId) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter purchase_order_id: %s", err)) - } - - // ------------- Optional query parameter "finance_check" ------------- - - err = runtime.BindQueryParameter("form", true, false, "finance_check", ctx.QueryParams(), ¶ms.FinanceCheck) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter finance_check: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PutPurchaseitemsId(ctx, id, params) + err = w.Handler.GetFundInformationsId(ctx, id) return err } -// GetPurchaseitemsIdDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseitemsIdDetails(ctx echo.Context) error { +// PutFundInformationsId converts echo context to params. +func (w *ServerInterfaceWrapper) PutFundInformationsId(ctx echo.Context) error { var err error // ------------- Path parameter "id" ------------- var id int @@ -1971,134 +1897,64 @@ func (w *ServerInterfaceWrapper) GetPurchaseitemsIdDetails(ctx echo.Context) err return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) } - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseitemsIdDetails(ctx, id) - return err -} - -// GetPurchaseorders converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseorders(ctx echo.Context) error { - var err error - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseorders(ctx) - return err -} - -// PostPurchaseorders converts echo context to params. -func (w *ServerInterfaceWrapper) PostPurchaseorders(ctx echo.Context) error { - var err error - // Parameter object where we will unmarshal all parameters from the context - var params PostPurchaseordersParams - // ------------- Optional query parameter "deadline" ------------- - - err = runtime.BindQueryParameter("form", true, false, "deadline", ctx.QueryParams(), ¶ms.Deadline) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter deadline: %s", err)) - } - - // ------------- Optional query parameter "user_id" ------------- + var params PutFundInformationsIdParams + // ------------- Required query parameter "user_id" ------------- - err = runtime.BindQueryParameter("form", true, false, "user_id", ctx.QueryParams(), ¶ms.UserId) + err = runtime.BindQueryParameter("form", true, true, "user_id", ctx.QueryParams(), ¶ms.UserId) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter user_id: %s", err)) } - // ------------- Optional query parameter "expense_id" ------------- + // ------------- Required query parameter "teacher_id" ------------- - err = runtime.BindQueryParameter("form", true, false, "expense_id", ctx.QueryParams(), ¶ms.ExpenseId) + err = runtime.BindQueryParameter("form", true, true, "teacher_id", ctx.QueryParams(), ¶ms.TeacherId) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter expense_id: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter teacher_id: %s", err)) } - // ------------- Optional query parameter "finance_check" ------------- + // ------------- Required query parameter "price" ------------- - err = runtime.BindQueryParameter("form", true, false, "finance_check", ctx.QueryParams(), ¶ms.FinanceCheck) + err = runtime.BindQueryParameter("form", true, true, "price", ctx.QueryParams(), ¶ms.Price) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter finance_check: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter price: %s", err)) } - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostPurchaseorders(ctx, params) - return err -} - -// GetPurchaseordersDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseordersDetails(ctx echo.Context) error { - var err error - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseordersDetails(ctx) - return err -} - -// GetPurchaseordersDetailsUnregisteredYear converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseordersDetailsUnregisteredYear(ctx echo.Context) error { - var err error - // ------------- Path parameter "year" ------------- - var year int + // ------------- Optional query parameter "remark" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "year", ctx.Param("year"), &year, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "remark", ctx.QueryParams(), ¶ms.Remark) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter year: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter remark: %s", err)) } - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseordersDetailsUnregisteredYear(ctx, year) - return err -} - -// GetPurchaseordersDetailsYear converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseordersDetailsYear(ctx echo.Context) error { - var err error - // ------------- Path parameter "year" ------------- - var year int + // ------------- Optional query parameter "is_first_check" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "year", ctx.Param("year"), &year, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "is_first_check", ctx.QueryParams(), ¶ms.IsFirstCheck) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter year: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter is_first_check: %s", err)) } - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseordersDetailsYear(ctx, year) - return err -} - -// PostPurchaseordersSendId converts echo context to params. -func (w *ServerInterfaceWrapper) PostPurchaseordersSendId(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int + // ------------- Optional query parameter "is_last_check" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "is_last_check", ctx.QueryParams(), ¶ms.IsLastCheck) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter is_last_check: %s", err)) } - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostPurchaseordersSendId(ctx, id) - return err -} - -// DeletePurchaseordersId converts echo context to params. -func (w *ServerInterfaceWrapper) DeletePurchaseordersId(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int + // ------------- Optional query parameter "received_at" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "received_at", ctx.QueryParams(), ¶ms.ReceivedAt) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter received_at: %s", err)) } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.DeletePurchaseordersId(ctx, id) + err = w.Handler.PutFundInformationsId(ctx, id, params) return err } -// GetPurchaseordersId converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseordersId(ctx echo.Context) error { +// GetFundInformationsIdDetails converts echo context to params. +func (w *ServerInterfaceWrapper) GetFundInformationsIdDetails(ctx echo.Context) error { var err error // ------------- Path parameter "id" ------------- var id int @@ -2109,133 +1965,30 @@ func (w *ServerInterfaceWrapper) GetPurchaseordersId(ctx echo.Context) error { } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseordersId(ctx, id) + err = w.Handler.GetFundInformationsIdDetails(ctx, id) return err } -// PutPurchaseordersId converts echo context to params. -func (w *ServerInterfaceWrapper) PutPurchaseordersId(ctx echo.Context) error { +// PostPasswordResetRequest converts echo context to params. +func (w *ServerInterfaceWrapper) PostPasswordResetRequest(ctx echo.Context) error { var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } // Parameter object where we will unmarshal all parameters from the context - var params PutPurchaseordersIdParams - // ------------- Optional query parameter "deadline" ------------- - - err = runtime.BindQueryParameter("form", true, false, "deadline", ctx.QueryParams(), ¶ms.Deadline) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter deadline: %s", err)) - } - - // ------------- Optional query parameter "user_id" ------------- - - err = runtime.BindQueryParameter("form", true, false, "user_id", ctx.QueryParams(), ¶ms.UserId) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter user_id: %s", err)) - } - - // ------------- Optional query parameter "expense_id" ------------- - - err = runtime.BindQueryParameter("form", true, false, "expense_id", ctx.QueryParams(), ¶ms.ExpenseId) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter expense_id: %s", err)) - } - - // ------------- Optional query parameter "finance_check" ------------- - - err = runtime.BindQueryParameter("form", true, false, "finance_check", ctx.QueryParams(), ¶ms.FinanceCheck) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter finance_check: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PutPurchaseordersId(ctx, id, params) - return err -} - -// GetPurchaseordersIdDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchaseordersIdDetails(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int - - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchaseordersIdDetails(ctx, id) - return err -} - -// GetPurchasereports converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchasereports(ctx echo.Context) error { - var err error - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchasereports(ctx) - return err -} - -// PostPurchasereports converts echo context to params. -func (w *ServerInterfaceWrapper) PostPurchasereports(ctx echo.Context) error { - var err error - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PostPurchasereports(ctx) - return err -} - -// GetPurchasereportsDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchasereportsDetails(ctx echo.Context) error { - var err error - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchasereportsDetails(ctx) - return err -} - -// GetPurchasereportsDetailsYear converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchasereportsDetailsYear(ctx echo.Context) error { - var err error - // ------------- Path parameter "year" ------------- - var year int - - err = runtime.BindStyledParameterWithOptions("simple", "year", ctx.Param("year"), &year, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter year: %s", err)) - } - - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchasereportsDetailsYear(ctx, year) - return err -} - -// DeletePurchasereportsId converts echo context to params. -func (w *ServerInterfaceWrapper) DeletePurchasereportsId(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int + var params PostPasswordResetRequestParams + // ------------- Optional query parameter "email" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "email", ctx.QueryParams(), ¶ms.Email) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err)) } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.DeletePurchasereportsId(ctx, id) + err = w.Handler.PostPasswordResetRequest(ctx, params) return err } -// GetPurchasereportsId converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchasereportsId(ctx echo.Context) error { +// PostPasswordResetId converts echo context to params. +func (w *ServerInterfaceWrapper) PostPasswordResetId(ctx echo.Context) error { var err error // ------------- Path parameter "id" ------------- var id int @@ -2246,12 +1999,12 @@ func (w *ServerInterfaceWrapper) GetPurchasereportsId(ctx echo.Context) error { } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchasereportsId(ctx, id) + err = w.Handler.PostPasswordResetId(ctx, id) return err } -// PutPurchasereportsId converts echo context to params. -func (w *ServerInterfaceWrapper) PutPurchasereportsId(ctx echo.Context) error { +// PostPasswordResetIdValid converts echo context to params. +func (w *ServerInterfaceWrapper) PostPasswordResetIdValid(ctx echo.Context) error { var err error // ------------- Path parameter "id" ------------- var id int @@ -2261,24 +2014,17 @@ func (w *ServerInterfaceWrapper) PutPurchasereportsId(ctx echo.Context) error { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) } - // Invoke the callback with all the unmarshaled arguments - err = w.Handler.PutPurchasereportsId(ctx, id) - return err -} - -// GetPurchasereportsIdDetails converts echo context to params. -func (w *ServerInterfaceWrapper) GetPurchasereportsIdDetails(ctx echo.Context) error { - var err error - // ------------- Path parameter "id" ------------- - var id int + // Parameter object where we will unmarshal all parameters from the context + var params PostPasswordResetIdValidParams + // ------------- Optional query parameter "token" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "token", ctx.QueryParams(), ¶ms.Token) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter token: %s", err)) } // Invoke the callback with all the unmarshaled arguments - err = w.Handler.GetPurchasereportsIdDetails(ctx, id) + err = w.Handler.PostPasswordResetIdValid(ctx, id, params) return err } @@ -3095,6 +2841,10 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.DELETE(baseURL+"/departments/:id", wrapper.DeleteDepartmentsId) router.GET(baseURL+"/departments/:id", wrapper.GetDepartmentsId) router.PUT(baseURL+"/departments/:id", wrapper.PutDepartmentsId) + router.GET(baseURL+"/divisions", wrapper.GetDivisions) + router.POST(baseURL+"/divisions", wrapper.PostDivisions) + router.DELETE(baseURL+"/divisions/:id", wrapper.DeleteDivisionsId) + router.PUT(baseURL+"/divisions/:id", wrapper.PutDivisionsId) router.GET(baseURL+"/expenses", wrapper.GetExpenses) router.POST(baseURL+"/expenses", wrapper.PostExpenses) router.GET(baseURL+"/expenses/details", wrapper.GetExpensesDetails) @@ -3104,6 +2854,14 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.GET(baseURL+"/expenses/:id", wrapper.GetExpensesId) router.PUT(baseURL+"/expenses/:id", wrapper.PutExpensesId) router.GET(baseURL+"/expenses/:id/details", wrapper.GetExpensesIdDetails) + router.GET(baseURL+"/festival_items", wrapper.GetFestivalItems) + router.POST(baseURL+"/festival_items", wrapper.PostFestivalItems) + router.DELETE(baseURL+"/festival_items/:id", wrapper.DeleteFestivalItemsId) + router.PUT(baseURL+"/festival_items/:id", wrapper.PutFestivalItemsId) + router.GET(baseURL+"/financail_records", wrapper.GetFinancailRecords) + router.POST(baseURL+"/financail_records", wrapper.PostFinancailRecords) + router.DELETE(baseURL+"/financail_records/:id", wrapper.DeleteFinancailRecordsId) + router.PUT(baseURL+"/financail_records/:id", wrapper.PutFinancailRecordsId) router.GET(baseURL+"/fund_informations", wrapper.GetFundInformations) router.POST(baseURL+"/fund_informations", wrapper.PostFundInformations) router.GET(baseURL+"/fund_informations/details", wrapper.GetFundInformationsDetails) @@ -3115,31 +2873,6 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.POST(baseURL+"/password_reset/request", wrapper.PostPasswordResetRequest) router.POST(baseURL+"/password_reset/:id", wrapper.PostPasswordResetId) router.POST(baseURL+"/password_reset/:id/valid", wrapper.PostPasswordResetIdValid) - router.GET(baseURL+"/purchaseitems", wrapper.GetPurchaseitems) - router.POST(baseURL+"/purchaseitems", wrapper.PostPurchaseitems) - router.GET(baseURL+"/purchaseitems/details", wrapper.GetPurchaseitemsDetails) - router.DELETE(baseURL+"/purchaseitems/:id", wrapper.DeletePurchaseitemsId) - router.GET(baseURL+"/purchaseitems/:id", wrapper.GetPurchaseitemsId) - router.PUT(baseURL+"/purchaseitems/:id", wrapper.PutPurchaseitemsId) - router.GET(baseURL+"/purchaseitems/:id/details", wrapper.GetPurchaseitemsIdDetails) - router.GET(baseURL+"/purchaseorders", wrapper.GetPurchaseorders) - router.POST(baseURL+"/purchaseorders", wrapper.PostPurchaseorders) - router.GET(baseURL+"/purchaseorders/details", wrapper.GetPurchaseordersDetails) - router.GET(baseURL+"/purchaseorders/details/unregistered/:year", wrapper.GetPurchaseordersDetailsUnregisteredYear) - router.GET(baseURL+"/purchaseorders/details/:year", wrapper.GetPurchaseordersDetailsYear) - router.POST(baseURL+"/purchaseorders/send/:id", wrapper.PostPurchaseordersSendId) - router.DELETE(baseURL+"/purchaseorders/:id", wrapper.DeletePurchaseordersId) - router.GET(baseURL+"/purchaseorders/:id", wrapper.GetPurchaseordersId) - router.PUT(baseURL+"/purchaseorders/:id", wrapper.PutPurchaseordersId) - router.GET(baseURL+"/purchaseorders/:id/details", wrapper.GetPurchaseordersIdDetails) - router.GET(baseURL+"/purchasereports", wrapper.GetPurchasereports) - router.POST(baseURL+"/purchasereports", wrapper.PostPurchasereports) - router.GET(baseURL+"/purchasereports/details", wrapper.GetPurchasereportsDetails) - router.GET(baseURL+"/purchasereports/details/:year", wrapper.GetPurchasereportsDetailsYear) - router.DELETE(baseURL+"/purchasereports/:id", wrapper.DeletePurchasereportsId) - router.GET(baseURL+"/purchasereports/:id", wrapper.GetPurchasereportsId) - router.PUT(baseURL+"/purchasereports/:id", wrapper.PutPurchasereportsId) - router.GET(baseURL+"/purchasereports/:id/details", wrapper.GetPurchasereportsIdDetails) router.GET(baseURL+"/receipts", wrapper.GetReceipts) router.POST(baseURL+"/receipts", wrapper.PostReceipts) router.GET(baseURL+"/receipts/reports/:id", wrapper.GetReceiptsReportsId) diff --git a/compose.yml b/compose.yml index 978a78cd7..0f0fd70f0 100644 --- a/compose.yml +++ b/compose.yml @@ -4,6 +4,7 @@ services: container_name: "nutfes-finansu-view" volumes: - ./view:/app + - ./openapi:/openapi command: sh -c "npm install && npm run dev" ports: - "3000:3000" diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index bf50e8add..78f6a9523 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -1647,7 +1647,8 @@ paths: content: application/json: schema: - type: object + type: array + $ref: "#/components/schemas/sponsor" post: tags: - sponsor @@ -1685,7 +1686,8 @@ paths: content: application/json: schema: - type: object + type: array + $ref: "#/components/schemas/sponsor" put: tags: - sponsor @@ -1748,8 +1750,9 @@ paths: content: application/json: schema: - type: object - + type: array + items: + $ref: "#/components/schemas/sponsor" /sponsorstyles: get: tags: @@ -1852,10 +1855,11 @@ paths: responses: "200": description: teacherの一覧を取得 - content: - "*/*": - schema: - type: array + # NOTE 型が定義されておらず、generateできないためコメントアウト + # content: + # "*/*": + # schema: + # type: array post: tags: - teacher @@ -2037,10 +2041,10 @@ paths: responses: "200": description: userの一覧を取得 - content: - "*/*": - schema: - type: array + # content: + # "*/*": + # schema: + # type: array post: tags: - user @@ -2177,7 +2181,9 @@ paths: content: application/json: schema: - type: object + type: array + items: + $ref: "#/components/schemas/year_periods" post: tags: - year @@ -2215,7 +2221,7 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/year_periods" put: tags: - year @@ -2270,7 +2276,9 @@ paths: content: application/json: schema: - type: object + type: array + items: + $ref: "#/components/schemas/year_periods" post: tags: - year_periods @@ -2568,6 +2576,9 @@ components: - tel type: object properties: + id: + type: integer + example: 0 name: type: string example: 企業1 diff --git a/view/next-project/.eslintrc.json b/view/next-project/.eslintrc.json index 8cdd21d28..88901807a 100644 --- a/view/next-project/.eslintrc.json +++ b/view/next-project/.eslintrc.json @@ -40,5 +40,6 @@ } } ] - } + }, + "ignorePatterns": ["src/generated"] } diff --git a/view/next-project/orval.config.js b/view/next-project/orval.config.js new file mode 100644 index 000000000..4508c261d --- /dev/null +++ b/view/next-project/orval.config.js @@ -0,0 +1,17 @@ +module.exports = { + file: { + input: '../../openapi/openapi.yaml', + output: { + target: './src/generated/hooks.ts', + schemas: './src/generated/model', + client: 'swr', + httpClient: 'fetch', + override: { + mutator: { + path: './src/mutator/custom-instance.ts', + name: 'customFetch', + }, + }, + }, + }, +}; diff --git a/view/next-project/package-lock.json b/view/next-project/package-lock.json index 956fbe722..37f3e3017 100644 --- a/view/next-project/package-lock.json +++ b/view/next-project/package-lock.json @@ -36,6 +36,7 @@ "react-select": "^5.7.3", "recoil": "^0.7.6", "recoil-persist": "^4.2.0", + "swr": "^2.3.0", "tailwindcss": "^3.1.6" }, "devDependencies": { @@ -59,6 +60,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-storybook": "^0.8.0", "eslint-plugin-unused-imports": "^2.0.0", + "orval": "^7.3.0", "postcss": "^8.4.14", "prettier": "^2.7.1", "prettier-plugin-tailwindcss": "^0.1.13", @@ -96,6 +98,117 @@ "node": ">=6.0.0" } }, + "node_modules/@apidevtools/json-schema-ref-parser": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", + "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", + "dev": true, + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "call-me-maybe": "^1.0.1", + "js-yaml": "^3.13.1" + } + }, + "node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@apidevtools/openapi-schemas": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", + "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/@apidevtools/swagger-methods": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", + "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", + "dev": true + }, + "node_modules/@apidevtools/swagger-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz", + "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==", + "dev": true, + "dependencies": { + "@apidevtools/json-schema-ref-parser": "9.0.6", + "@apidevtools/openapi-schemas": "^2.1.0", + "@apidevtools/swagger-methods": "^3.0.2", + "@jsdevtools/ono": "^7.1.3", + "ajv": "^8.6.3", + "ajv-draft-04": "^1.0.0", + "call-me-maybe": "^1.0.1" + }, + "peerDependencies": { + "openapi-types": ">=7" + } + }, + "node_modules/@apidevtools/swagger-parser/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@apidevtools/swagger-parser/node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "dev": true, + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/@apidevtools/swagger-parser/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/@asyncapi/specs": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.8.0.tgz", + "integrity": "sha512-1i6xs8+IOh6U5T7yH+bCMGQBF+m7kP/NpwyAlt++XaDQutoGCgACf24mQBgcDVqDWWoY81evQv+9ABvw0BviVg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.11" + } + }, "node_modules/@aw-web-design/x-default-browser": { "version": "1.4.126", "resolved": "https://registry.npmjs.org/@aw-web-design/x-default-browser/-/x-default-browser-1.4.126.tgz", @@ -3955,6 +4068,22 @@ "node": ">=12" } }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz", + "integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@esbuild/netbsd-x64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", @@ -3971,6 +4100,22 @@ "node": ">=12" } }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz", + "integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@esbuild/openbsd-x64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", @@ -4107,6 +4252,12 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@exodus/schemasafe": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz", + "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==", + "dev": true + }, "node_modules/@fal-works/esbuild-plugin-global-externals": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@fal-works/esbuild-plugin-global-externals/-/esbuild-plugin-global-externals-2.1.2.tgz", @@ -4164,6 +4315,60 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "node_modules/@ibm-cloud/openapi-ruleset": { + "version": "1.26.0", + "resolved": "https://registry.npmjs.org/@ibm-cloud/openapi-ruleset/-/openapi-ruleset-1.26.0.tgz", + "integrity": "sha512-io1C2gdFytYljIdh9w+CefYbXB7SD0JgWkPlaMPqja2+67xuZIezpKLaPWYYIiTzCW+LPuwx1tx30jPpstvV7Q==", + "dev": true, + "dependencies": { + "@ibm-cloud/openapi-ruleset-utilities": "1.6.0", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-functions": "^1.9.1", + "@stoplight/spectral-rulesets": "^1.21.1", + "chalk": "^4.1.2", + "lodash": "^4.17.21", + "loglevel": "^1.9.2", + "loglevel-plugin-prefix": "0.8.4", + "minimatch": "^6.2.0", + "validator": "^13.11.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ibm-cloud/openapi-ruleset-utilities": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@ibm-cloud/openapi-ruleset-utilities/-/openapi-ruleset-utilities-1.6.0.tgz", + "integrity": "sha512-8S2SMgqQS5IQ/OiHL7l1vaRyc+fY9oSoDJxm3N+VeGPf7UT6SoCgQ5zpCcHQtUN1j5LHAFhjPkryRt5KZshdOA==", + "dev": true, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ibm-cloud/openapi-ruleset/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@ibm-cloud/openapi-ruleset/node_modules/minimatch": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", + "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@img/sharp-darwin-arm64": { "version": "0.33.4", "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.4.tgz", @@ -4740,6 +4945,48 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@jsdevtools/ono": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true + }, + "node_modules/@jsep-plugin/assignment": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", + "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", + "dev": true, + "engines": { + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" + } + }, + "node_modules/@jsep-plugin/regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", + "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", + "dev": true, + "engines": { + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" + } + }, + "node_modules/@jsep-plugin/ternary": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.4.tgz", + "integrity": "sha512-ck5wiqIbqdMX6WRQztBL7ASDty9YLgJ3sSAK5ZpBzXeySvFGCzIvM6UiAI4hTZ22fEcYQVV/zhUbNscggW+Ukg==", + "dev": true, + "engines": { + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" + } + }, "node_modules/@mapbox/node-pre-gyp": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", @@ -5053,6 +5300,566 @@ "node": ">= 8" } }, + "node_modules/@orval/angular": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/angular/-/angular-7.3.0.tgz", + "integrity": "sha512-SL13jfqhuHbC9XKLGVup3XXoEKvdzGjWOA+NuiRSx79CAo7XiYGsXs9KZpAQVPw2uMrOEwHeBicMW/4yJfQfdw==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0" + } + }, + "node_modules/@orval/axios": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/axios/-/axios-7.3.0.tgz", + "integrity": "sha512-k+mxADO/uzIk4yFZkSXJghUWhGi0hLrqz/GZhx62MTlWEyrKsq/c+ZyoU5t+y4RHIn/jqCdQf4hpWWIxH+eVWQ==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0" + } + }, + "node_modules/@orval/core": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/core/-/core-7.3.0.tgz", + "integrity": "sha512-WoFrkEkaS9pMEDd9oujP/9kvUFb++LJ7fhJ01/gJNFJuaHWTVSi9SkKpitGKzEd8aRlNMQ0LvseGMlu4tEcXpQ==", + "dev": true, + "dependencies": { + "@apidevtools/swagger-parser": "^10.1.0", + "@ibm-cloud/openapi-ruleset": "^1.25.1", + "acorn": "^8.14.0", + "ajv": "^8.17.1", + "chalk": "^4.1.2", + "compare-versions": "^6.1.1", + "debug": "^4.3.7", + "esbuild": "^0.24.0", + "esutils": "2.0.3", + "fs-extra": "^11.2.0", + "globby": "11.1.0", + "lodash.get": "^4.4.2", + "lodash.isempty": "^4.4.0", + "lodash.omit": "^4.5.0", + "lodash.uniq": "^4.5.0", + "lodash.uniqby": "^4.7.0", + "lodash.uniqwith": "^4.5.0", + "micromatch": "^4.0.8", + "openapi3-ts": "4.4.0", + "swagger2openapi": "^7.0.8" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/aix-ppc64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz", + "integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/android-arm": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz", + "integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/android-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz", + "integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/android-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz", + "integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/darwin-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz", + "integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/darwin-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz", + "integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/freebsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz", + "integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/freebsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz", + "integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-arm": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz", + "integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz", + "integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-ia32": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz", + "integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-loong64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz", + "integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-mips64el": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz", + "integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-ppc64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz", + "integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-riscv64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz", + "integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-s390x": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz", + "integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/linux-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz", + "integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/netbsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz", + "integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/openbsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz", + "integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/sunos-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz", + "integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/win32-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz", + "integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/win32-ia32": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz", + "integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/@esbuild/win32-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz", + "integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@orval/core/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@orval/core/node_modules/esbuild": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz", + "integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.24.2", + "@esbuild/android-arm": "0.24.2", + "@esbuild/android-arm64": "0.24.2", + "@esbuild/android-x64": "0.24.2", + "@esbuild/darwin-arm64": "0.24.2", + "@esbuild/darwin-x64": "0.24.2", + "@esbuild/freebsd-arm64": "0.24.2", + "@esbuild/freebsd-x64": "0.24.2", + "@esbuild/linux-arm": "0.24.2", + "@esbuild/linux-arm64": "0.24.2", + "@esbuild/linux-ia32": "0.24.2", + "@esbuild/linux-loong64": "0.24.2", + "@esbuild/linux-mips64el": "0.24.2", + "@esbuild/linux-ppc64": "0.24.2", + "@esbuild/linux-riscv64": "0.24.2", + "@esbuild/linux-s390x": "0.24.2", + "@esbuild/linux-x64": "0.24.2", + "@esbuild/netbsd-arm64": "0.24.2", + "@esbuild/netbsd-x64": "0.24.2", + "@esbuild/openbsd-arm64": "0.24.2", + "@esbuild/openbsd-x64": "0.24.2", + "@esbuild/sunos-x64": "0.24.2", + "@esbuild/win32-arm64": "0.24.2", + "@esbuild/win32-ia32": "0.24.2", + "@esbuild/win32-x64": "0.24.2" + } + }, + "node_modules/@orval/core/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/@orval/core/node_modules/openapi3-ts": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-4.4.0.tgz", + "integrity": "sha512-9asTNB9IkKEzWMcHmVZE7Ts3kC9G7AFHfs8i7caD8HbI76gEjdkId4z/AkP83xdZsH7PLAnnbl47qZkXuxpArw==", + "dev": true, + "dependencies": { + "yaml": "^2.5.0" + } + }, + "node_modules/@orval/core/node_modules/yaml": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", + "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@orval/fetch": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/fetch/-/fetch-7.3.0.tgz", + "integrity": "sha512-g1nN3FSz9H+b4O9g9S6spM9D6Zp3z4CGEv9+FHvoMxmuWt08WYIvNVR72tJPPNDNEsuaZrpXg+OVaOdQhPgh3Q==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0" + } + }, + "node_modules/@orval/hono": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/hono/-/hono-7.3.0.tgz", + "integrity": "sha512-52zIIhEHDF90RnvV3azsISO5oigxRc0yti04T/0u+mE34gUkmmxHHfIaMDzAKcHhagqDM+a0vwPhbyESxsGPhg==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0", + "@orval/zod": "7.3.0", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/@orval/mock": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/mock/-/mock-7.3.0.tgz", + "integrity": "sha512-v0EfTCr7fhbb4hUch/EbfXjY+thsxwIir8sbekWaE3SzYhsIYtyy2wdb4ZR+jMkTHVOdtk80n1mw6XlH64oLkg==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0", + "lodash.get": "^4.4.2", + "lodash.omit": "^4.5.0", + "openapi3-ts": "^4.2.2" + } + }, + "node_modules/@orval/query": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/query/-/query-7.3.0.tgz", + "integrity": "sha512-9zELueslEoSuolxJlTzXz1rLaAsI5JRbeutPH3scJvtzePo4r6paYbhe/14E5u1+gzEEBYZCi+Rnh7zyCEgTKg==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0", + "@orval/fetch": "7.3.0", + "lodash.omitby": "^4.6.0" + } + }, + "node_modules/@orval/swr": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/swr/-/swr-7.3.0.tgz", + "integrity": "sha512-genJTqn+7ssamC4KPBdshAgxjrt9gsxwrylPTBoEz/gPVeLO2i4USgQOLZq/r6H+ArCejbaVK/9sfRZEDmp2sA==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0", + "@orval/fetch": "7.3.0" + } + }, + "node_modules/@orval/zod": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/zod/-/zod-7.3.0.tgz", + "integrity": "sha512-Aegt8RaA+vzu9XefTYKTRUt5Vm7woh1wrJFHRpMxTGx2giu3DLVkJ/dGp4O9eIVtLK4wAXlgW4QNQsmBJQT3eg==", + "dev": true, + "dependencies": { + "@orval/core": "7.3.0", + "lodash.uniq": "^4.5.0" + } + }, "node_modules/@pdf-lib/fontkit": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@pdf-lib/fontkit/-/fontkit-1.1.1.tgz", @@ -5756,6 +6563,484 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@stoplight/json": { + "version": "3.21.7", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.7.tgz", + "integrity": "sha512-xcJXgKFqv/uCEgtGlPxy3tPA+4I+ZI4vAuMJ885+ThkTHFVkC+0Fm58lA9NlsyjnkpxFh4YiQWpH+KefHdbA0A==", + "dev": true, + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + }, + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/@stoplight/json-ref-readers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", + "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "dev": true, + "dependencies": { + "node-fetch": "^2.6.0", + "tslib": "^1.14.1" + }, + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/@stoplight/json-ref-readers/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/@stoplight/json-ref-readers/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@stoplight/json-ref-resolver": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.6.tgz", + "integrity": "sha512-YNcWv3R3n3U6iQYBsFOiWSuRGE5su1tJSiX6pAPRVk7dP0L7lqCteXGzuVRQ0gMZqUl8v1P0+fAKxF6PLo9B5A==", + "dev": true, + "dependencies": { + "@stoplight/json": "^3.21.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0 || ^13.0.0", + "@types/urijs": "^1.19.19", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash": "^4.17.21", + "tslib": "^2.6.0", + "urijs": "^1.19.11" + }, + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/@stoplight/ordered-object-literal": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.5.tgz", + "integrity": "sha512-COTiuCU5bgMUtbIFBuyyh2/yVVzlr5Om0v5utQDgBCuQUOPgU1DwoffkTfg4UBQOvByi5foF4w4T+H9CoRe5wg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@stoplight/path": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@stoplight/spectral-core": { + "version": "1.19.4", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.19.4.tgz", + "integrity": "sha512-8hnZXfssTlV99SKo8J8BwMt5LsiBFHkCh0V3P7j8IPcCNl//bpG92U4TpYy7AwmUms/zCLX7sxNQC6AZ+bkfzg==", + "dev": true, + "dependencies": { + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.21.0", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.4", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", + "ajv": "^8.17.1", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "es-aggregate-error": "^1.0.7", + "jsonpath-plus": "10.2.0", + "lodash": "~4.17.21", + "lodash.topath": "^4.5.2", + "minimatch": "3.1.2", + "nimma": "0.2.3", + "pony-cause": "^1.1.1", + "simple-eval": "1.0.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dev": true, + "dependencies": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "dev": true, + "peerDependencies": { + "ajv": "^8.0.1" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/@stoplight/spectral-formats": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.8.2.tgz", + "integrity": "sha512-c06HB+rOKfe7tuxg0IdKDEA5XnjL2vrn/m/OVIIxtINtBzphZrOgtRn7epQ5bQF5SWp84Ue7UJWaGgDwVngMFw==", + "dev": true, + "dependencies": { + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.19.2", + "@types/json-schema": "^7.0.7", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-functions": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.9.3.tgz", + "integrity": "sha512-jy4mguk0Ddz0Vr76PHervOZeyXTUW650zVfNT2Vt9Ji3SqtTVziHjq913CBVEGFS+IQw1McUXuHVLM6YKVZ6fQ==", + "dev": true, + "dependencies": { + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.1", + "@stoplight/spectral-core": "^1.19.4", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-runtime": "^1.1.2", + "ajv": "^8.17.1", + "ajv-draft-04": "~1.0.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "lodash": "~4.17.21", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-functions/node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dev": true, + "dependencies": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/@stoplight/spectral-functions/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@stoplight/spectral-functions/node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "dev": true, + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/@stoplight/spectral-functions/node_modules/ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "dev": true, + "peerDependencies": { + "ajv": "^8.0.1" + } + }, + "node_modules/@stoplight/spectral-functions/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/@stoplight/spectral-parsers": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.5.tgz", + "integrity": "sha512-ANDTp2IHWGvsQDAY85/jQi9ZrF4mRrA5bciNHX+PUxPr4DwS6iv4h+FVWJMVwcEYdpyoIdyL+SRmHdJfQEPmwQ==", + "dev": true, + "dependencies": { + "@stoplight/json": "~3.21.0", + "@stoplight/types": "^14.1.1", + "@stoplight/yaml": "~4.3.0", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/types": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", + "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, + "node_modules/@stoplight/spectral-ref-resolver": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.5.tgz", + "integrity": "sha512-gj3TieX5a9zMW29z3mBlAtDOCgN3GEc1VgZnCVlr5irmR4Qi5LuECuFItAq4pTn5Zu+sW5bqutsCH7D4PkpyAA==", + "dev": true, + "dependencies": { + "@stoplight/json-ref-readers": "1.2.2", + "@stoplight/json-ref-resolver": "~3.1.6", + "@stoplight/spectral-runtime": "^1.1.2", + "dependency-graph": "0.11.0", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-rulesets": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.21.3.tgz", + "integrity": "sha512-SQp/NNDykfCvgmo9DW1pBAbmyKRHhEHmsc28kuRHC6nJblGFsLyNVGkEDjSIJuviR7ooC2Y00vmf0R3OGcyhyw==", + "dev": true, + "dependencies": { + "@asyncapi/specs": "^6.8.0", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.19.4", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-functions": "^1.9.1", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "^13.6.0", + "@types/json-schema": "^7.0.7", + "ajv": "^8.17.1", + "ajv-formats": "~2.1.0", + "json-schema-traverse": "^1.0.0", + "leven": "3.1.0", + "lodash": "~4.17.21", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dev": true, + "dependencies": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/@stoplight/spectral-rulesets/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@stoplight/spectral-rulesets/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/@stoplight/spectral-runtime": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.3.tgz", + "integrity": "sha512-uoKSVX/OYXOEBRQN7EtAaVefl8MlyhBkDcU2aDYEGALwYXHAH+vmF3ljhZrueMA3fSWLHTL3RxWqsjeeCor6lw==", + "dev": true, + "dependencies": { + "@stoplight/json": "^3.20.1", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "abort-controller": "^3.0.0", + "lodash": "^4.17.21", + "node-fetch": "^2.6.7", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-runtime/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/@stoplight/types": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.20.0.tgz", + "integrity": "sha512-2FNTv05If7ib79VPDA/r9eUet76jewXFH2y2K5vuge6SXbRHtWBhcaRmu+6QpF4/WRNoJj5XYRSwLGXDxysBGA==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, + "node_modules/@stoplight/yaml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.3.0.tgz", + "integrity": "sha512-JZlVFE6/dYpP9tQmV0/ADfn32L9uFarHWxfcRhReKUnljz1ZiUM5zpX+PH8h5CJs6lao3TuFqnPm9IJJCEkE2w==", + "dev": true, + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.5", + "@stoplight/types": "^14.1.1", + "@stoplight/yaml-ast-parser": "0.0.50", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=10.8" + } + }, + "node_modules/@stoplight/yaml-ast-parser": { + "version": "0.0.50", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.50.tgz", + "integrity": "sha512-Pb6M8TDO9DtSVla9yXSTAxmo9GVEouq5P40DWXdOie69bXogZTkgvopCq+yEvTMA0F6PEvdJmbtTV3ccIp11VQ==", + "dev": true + }, + "node_modules/@stoplight/yaml/node_modules/@stoplight/types": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", + "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, "node_modules/@storybook/addon-actions": { "version": "8.1.3", "resolved": "https://registry.npmjs.org/@storybook/addon-actions/-/addon-actions-8.1.3.tgz", @@ -7723,6 +9008,15 @@ "integrity": "sha512-AQImDBgudQfMqUBfrjZYilRxoHDzTBp+ejh+g1fY67eSMalwIKtBXofjpyI0JBgNpHGzxeGAR2QDya0wxW9zbA==", "dev": true }, + "node_modules/@types/es-aggregate-error": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.6.tgz", + "integrity": "sha512-qJ7LIFp06h1QE1aVxbVd+zJP2wdaugYXYfd6JxsyRMrYHaxb6itXPogW2tz+ylUJ1n1b+JF1PHyYCfYHm0dvUg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/escodegen": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/@types/escodegen/-/escodegen-0.0.6.tgz", @@ -7961,6 +9255,12 @@ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==", "dev": true }, + "node_modules/@types/urijs": { + "version": "1.19.25", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.25.tgz", + "integrity": "sha512-XOfUup9r3Y06nFAZh3WvO0rBU4OtlfPB/vgxpjg+NRdGU6CN6djdc6OEiH+PcqHCY6eFLo9Ista73uarf4gnBg==", + "dev": true + }, "node_modules/@types/uuid": { "version": "9.0.8", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", @@ -8557,9 +9857,9 @@ } }, "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -8732,6 +10032,15 @@ "ajv": "^6.9.1" } }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/ansi-html-community": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", @@ -9080,6 +10389,15 @@ "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, + "node_modules/astring": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.9.0.tgz", + "integrity": "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==", + "dev": true, + "bin": { + "astring": "bin/astring" + } + }, "node_modules/async": { "version": "3.2.5", "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", @@ -9654,11 +10972,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -9924,6 +11242,15 @@ "node": ">= 0.8" } }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/call-bind": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", @@ -9942,6 +11269,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/call-me-maybe": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", + "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", + "dev": true + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -10231,6 +11564,37 @@ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/clone": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", @@ -10353,6 +11717,12 @@ "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", "dev": true }, + "node_modules/compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "dev": true + }, "node_modules/compressible": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", @@ -10871,12 +12241,12 @@ "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==" }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "devOptional": true, "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -11112,6 +12482,15 @@ "node": ">= 0.8" } }, + "node_modules/dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -11645,6 +13024,19 @@ "node": ">=10.13.0" } }, + "node_modules/enquirer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", @@ -11752,6 +13144,28 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-aggregate-error": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.13.tgz", + "integrity": "sha512-KkzhUUuD2CUMqEc8JEqsXEMDHzDPE8RCjZeUBitsnB1eNcAJWQPiciKsMXe3Yytj4Flw1XLl46Qcf9OxvZha7A==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.2", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/es-define-property": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", @@ -11874,6 +13288,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", + "dev": true + }, "node_modules/esbuild": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", @@ -12841,6 +14261,24 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "node_modules/fast-memoize": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", + "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==", + "dev": true + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, + "node_modules/fast-uri": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", + "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==", + "dev": true + }, "node_modules/fast-xml-parser": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.6.tgz", @@ -12990,9 +14428,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -13544,6 +14982,15 @@ "node": ">=6.9.0" } }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, "node_modules/get-func-name": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", @@ -14214,6 +15661,12 @@ "node": ">= 0.8" } }, + "node_modules/http2-client": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/http2-client/-/http2-client-1.3.5.tgz", + "integrity": "sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA==", + "dev": true + }, "node_modules/https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -14315,6 +15768,16 @@ "node": ">=16.x" } }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", @@ -15105,6 +16568,15 @@ } } }, + "node_modules/jsep": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", + "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", + "dev": true, + "engines": { + "node": ">= 10.16.0" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -15151,6 +16623,12 @@ "json5": "lib/cli.js" } }, + "node_modules/jsonc-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", + "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==", + "dev": true + }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -15163,6 +16641,33 @@ "graceful-fs": "^4.1.6" } }, + "node_modules/jsonpath-plus": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.2.0.tgz", + "integrity": "sha512-T9V+8iNYKFL2n2rF+w02LBOT2JjDnTjioaNFrxRy0Bv1y/hNsqR/EBK7Ojy2ythRHwmz2cRIls+9JitQGZC/sw==", + "dev": true, + "dependencies": { + "@jsep-plugin/assignment": "^1.3.0", + "@jsep-plugin/regex": "^1.0.4", + "jsep": "^1.4.0" + }, + "bin": { + "jsonpath": "bin/jsonpath-cli.js", + "jsonpath-plus": "bin/jsonpath-cli.js" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/jsx-ast-utils": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", @@ -15320,6 +16825,18 @@ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dev": true }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "dev": true + }, + "node_modules/lodash.isempty": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.isempty/-/lodash.isempty-4.4.0.tgz", + "integrity": "sha512-oKMuF3xEeqDltrGMfDxAPGIVMSSRv8tbRSODbrs4KGsRRLEhrW8N8Rd4DRgB2+621hY8A8XwwrTVhXWpxFvMzg==", + "dev": true + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -15331,6 +16848,42 @@ "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==" }, + "node_modules/lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", + "dev": true + }, + "node_modules/lodash.omitby": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.omitby/-/lodash.omitby-4.6.0.tgz", + "integrity": "sha512-5OrRcIVR75M288p4nbI2WLAf3ndw2GD9fyNv3Bc15+WCxJDdZ4lYndSxGd7hnG6PVjiJTeJE2dHEGhIuKGicIQ==", + "dev": true + }, + "node_modules/lodash.topath": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", + "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==", + "dev": true + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, + "node_modules/lodash.uniqby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", + "integrity": "sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==", + "dev": true + }, + "node_modules/lodash.uniqwith": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz", + "integrity": "sha512-7lYL8bLopMoy4CTICbxygAUq6CdRJ36vFc80DucPueUee+d5NBRxz3FdT9Pes/HEx5mPoT9jwnsEJWz1N7uq7Q==", + "dev": true + }, "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -15347,6 +16900,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/loglevel": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.2.tgz", + "integrity": "sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + }, + "funding": { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/loglevel" + } + }, + "node_modules/loglevel-plugin-prefix": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz", + "integrity": "sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g==", + "dev": true + }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -15573,11 +17145,11 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -15776,9 +17348,9 @@ "dev": true }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "devOptional": true }, "node_modules/mz": { @@ -15890,6 +17462,25 @@ } } }, + "node_modules/nimma": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.3.tgz", + "integrity": "sha512-1ZOI8J+1PKKGceo/5CT5GfQOG6H8I2BencSK06YarZ2wXwH37BSSUWldqJmMJYA5JfqDqffxDXynt6f11AyKcA==", + "dev": true, + "dependencies": { + "@jsep-plugin/regex": "^1.0.1", + "@jsep-plugin/ternary": "^1.0.2", + "astring": "^1.8.1", + "jsep": "^1.2.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + }, + "optionalDependencies": { + "jsonpath-plus": "^6.0.1 || ^10.1.0", + "lodash.topath": "^4.5.2" + } + }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", @@ -15953,6 +17544,18 @@ "url": "https://opencollective.com/node-fetch" } }, + "node_modules/node-fetch-h2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz", + "integrity": "sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg==", + "dev": true, + "dependencies": { + "http2-client": "^1.2.5" + }, + "engines": { + "node": "4.x || >=6.0.0" + } + }, "node_modules/node-fetch-native": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.4.tgz", @@ -16035,6 +17638,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/node-readfiles": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.2.0.tgz", + "integrity": "sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA==", + "dev": true, + "dependencies": { + "es6-promise": "^3.2.1" + } + }, "node_modules/node-releases": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", @@ -16228,6 +17840,76 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/oas-kit-common": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/oas-kit-common/-/oas-kit-common-1.0.8.tgz", + "integrity": "sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ==", + "dev": true, + "dependencies": { + "fast-safe-stringify": "^2.0.7" + } + }, + "node_modules/oas-linter": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/oas-linter/-/oas-linter-3.2.2.tgz", + "integrity": "sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ==", + "dev": true, + "dependencies": { + "@exodus/schemasafe": "^1.0.0-rc.2", + "should": "^13.2.1", + "yaml": "^1.10.0" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/oas-resolver": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/oas-resolver/-/oas-resolver-2.5.6.tgz", + "integrity": "sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ==", + "dev": true, + "dependencies": { + "node-fetch-h2": "^2.3.0", + "oas-kit-common": "^1.0.8", + "reftools": "^1.1.9", + "yaml": "^1.10.0", + "yargs": "^17.0.1" + }, + "bin": { + "resolve": "resolve.js" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/oas-schema-walker": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz", + "integrity": "sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ==", + "dev": true, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/oas-validator": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/oas-validator/-/oas-validator-5.0.8.tgz", + "integrity": "sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw==", + "dev": true, + "dependencies": { + "call-me-maybe": "^1.0.1", + "oas-kit-common": "^1.0.8", + "oas-linter": "^3.2.2", + "oas-resolver": "^2.5.6", + "oas-schema-walker": "^1.1.5", + "reftools": "^1.1.9", + "should": "^13.2.1", + "yaml": "^1.10.0" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -16450,6 +18132,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/openapi-types": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", + "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==", + "dev": true, + "peer": true + }, + "node_modules/openapi3-ts": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-4.2.2.tgz", + "integrity": "sha512-+9g4actZKeb3czfi9gVQ4Br2Ju3KwhCAQJBNaKgye5KggqcBLIhFHH+nIkcm0BUX00TrAJl6dH4JWgM4G4JWrw==", + "dev": true, + "dependencies": { + "yaml": "^2.3.4" + } + }, + "node_modules/openapi3-ts/node_modules/yaml": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", + "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -16490,6 +18200,178 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/orval": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/orval/-/orval-7.3.0.tgz", + "integrity": "sha512-NzLCItKhblP9Ks3RyLQmvLna0kWBLedzew+arHyWnHTi35L4LLkXo8gZxJbucxlQWpdXxjwFQemLuBSEmt6M3Q==", + "dev": true, + "dependencies": { + "@apidevtools/swagger-parser": "^10.1.0", + "@orval/angular": "7.3.0", + "@orval/axios": "7.3.0", + "@orval/core": "7.3.0", + "@orval/fetch": "7.3.0", + "@orval/hono": "7.3.0", + "@orval/mock": "7.3.0", + "@orval/query": "7.3.0", + "@orval/swr": "7.3.0", + "@orval/zod": "7.3.0", + "ajv": "^8.12.0", + "cac": "^6.7.14", + "chalk": "^4.1.2", + "chokidar": "^4.0.1", + "enquirer": "^2.4.1", + "execa": "^5.1.1", + "find-up": "5.0.0", + "fs-extra": "^11.2.0", + "lodash.uniq": "^4.5.0", + "openapi3-ts": "4.2.2", + "string-argv": "^0.3.2", + "tsconfck": "^2.0.1" + }, + "bin": { + "orval": "dist/bin/orval.js" + } + }, + "node_modules/orval/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/orval/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/orval/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/orval/node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/orval/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/orval/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/orval/node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/orval/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/orval/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/orval/node_modules/readdirp": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", + "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", + "dev": true, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/orval/node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/os-browserify": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", @@ -16894,6 +18776,15 @@ "node": ">=10" } }, + "node_modules/pony-cause": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", + "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==", + "dev": true, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/popmotion": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/popmotion/-/popmotion-11.0.3.tgz", @@ -18095,6 +19986,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/reftools": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/reftools/-/reftools-1.1.9.tgz", + "integrity": "sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w==", + "dev": true, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -18246,6 +20146,15 @@ "strip-ansi": "^6.0.1" } }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", @@ -18594,6 +20503,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", + "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==", + "dev": true + }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -18720,12 +20635,6 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, "node_modules/serialize-javascript": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", @@ -18886,6 +20795,60 @@ "node": ">=8" } }, + "node_modules/should": { + "version": "13.2.3", + "resolved": "https://registry.npmjs.org/should/-/should-13.2.3.tgz", + "integrity": "sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==", + "dev": true, + "dependencies": { + "should-equal": "^2.0.0", + "should-format": "^3.0.3", + "should-type": "^1.4.0", + "should-type-adaptors": "^1.0.1", + "should-util": "^1.0.0" + } + }, + "node_modules/should-equal": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/should-equal/-/should-equal-2.0.0.tgz", + "integrity": "sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==", + "dev": true, + "dependencies": { + "should-type": "^1.4.0" + } + }, + "node_modules/should-format": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/should-format/-/should-format-3.0.3.tgz", + "integrity": "sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q==", + "dev": true, + "dependencies": { + "should-type": "^1.3.0", + "should-type-adaptors": "^1.0.1" + } + }, + "node_modules/should-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/should-type/-/should-type-1.4.0.tgz", + "integrity": "sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ==", + "dev": true + }, + "node_modules/should-type-adaptors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz", + "integrity": "sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA==", + "dev": true, + "dependencies": { + "should-type": "^1.3.0", + "should-util": "^1.0.0" + } + }, + "node_modules/should-util": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/should-util/-/should-util-1.0.1.tgz", + "integrity": "sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g==", + "dev": true + }, "node_modules/side-channel": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", @@ -18930,6 +20893,18 @@ ], "optional": true }, + "node_modules/simple-eval": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.1.tgz", + "integrity": "sha512-LH7FpTAkeD+y5xQC4fzS+tFtaNlvt3Ib1zKzvhjv/Y+cioV4zIuw4IZr2yhRLu67CWL7FR9/6KXKnjRoZTvGGQ==", + "dev": true, + "dependencies": { + "jsep": "^1.3.6" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/simple-get": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", @@ -19054,6 +21029,12 @@ "node": ">=6" } }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, "node_modules/stackframe": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", @@ -19156,6 +21137,15 @@ "safe-buffer": "~5.2.0" } }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true, + "engines": { + "node": ">=0.6.19" + } + }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -19478,6 +21468,65 @@ "resolved": "https://registry.npmjs.org/svg-arc-to-cubic-bezier/-/svg-arc-to-cubic-bezier-3.2.0.tgz", "integrity": "sha512-djbJ/vZKZO+gPoSDThGNpKDO+o+bAeA4XQKovvkNCqnIS2t+S4qnLAGQhyyrulhCFRl1WWzAp0wUDV8PpTVU3g==" }, + "node_modules/swagger2openapi": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/swagger2openapi/-/swagger2openapi-7.0.8.tgz", + "integrity": "sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g==", + "dev": true, + "dependencies": { + "call-me-maybe": "^1.0.1", + "node-fetch": "^2.6.1", + "node-fetch-h2": "^2.3.0", + "node-readfiles": "^0.2.0", + "oas-kit-common": "^1.0.8", + "oas-resolver": "^2.5.6", + "oas-schema-walker": "^1.1.5", + "oas-validator": "^5.0.8", + "reftools": "^1.1.9", + "yaml": "^1.10.0", + "yargs": "^17.0.1" + }, + "bin": { + "boast": "boast.js", + "oas-validate": "oas-validate.js", + "swagger2openapi": "swagger2openapi.js" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/swagger2openapi/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/swr": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.3.0.tgz", + "integrity": "sha512-NyZ76wA4yElZWBHzSgEJc28a0u6QZvhb6w0azeL2k7+Q1gAzVK+IqQYXhVOC/mzi+HZIozrZvBVeSeOZNR2bqA==", + "dependencies": { + "dequal": "^2.0.3", + "use-sync-external-store": "^1.4.0" + }, + "peerDependencies": { + "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/synckit": { "version": "0.8.5", "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", @@ -19917,6 +21966,26 @@ } } }, + "node_modules/tsconfck": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.2.tgz", + "integrity": "sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==", + "dev": true, + "bin": { + "tsconfck": "bin/tsconfck.js" + }, + "engines": { + "node": "^14.13.1 || ^16 || >=18" + }, + "peerDependencies": { + "typescript": "^4.3.5 || ^5.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", @@ -19970,9 +22039,9 @@ } }, "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, "node_modules/tsutils": { "version": "3.21.0", @@ -20395,6 +22464,12 @@ "punycode": "^2.1.0" } }, + "node_modules/urijs": { + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==", + "dev": true + }, "node_modules/url": { "version": "0.11.3", "resolved": "https://registry.npmjs.org/url/-/url-0.11.3.tgz", @@ -20465,6 +22540,14 @@ } } }, + "node_modules/use-sync-external-store": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", + "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/util": { "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", @@ -20488,6 +22571,15 @@ "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==", "dev": true }, + "node_modules/utility-types": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz", + "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -20520,6 +22612,15 @@ "spdx-expression-parse": "^3.0.0" } }, + "node_modules/validator": { + "version": "13.12.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", + "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -21060,6 +23161,15 @@ "node": ">=0.4" } }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -21074,6 +23184,33 @@ "node": ">= 6" } }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -21114,6 +23251,101 @@ "@jridgewell/trace-mapping": "^0.3.24" } }, + "@apidevtools/json-schema-ref-parser": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", + "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", + "dev": true, + "requires": { + "@jsdevtools/ono": "^7.1.3", + "call-me-maybe": "^1.0.1", + "js-yaml": "^3.13.1" + }, + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } + } + }, + "@apidevtools/openapi-schemas": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", + "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", + "dev": true + }, + "@apidevtools/swagger-methods": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", + "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", + "dev": true + }, + "@apidevtools/swagger-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz", + "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==", + "dev": true, + "requires": { + "@apidevtools/json-schema-ref-parser": "9.0.6", + "@apidevtools/openapi-schemas": "^2.1.0", + "@apidevtools/swagger-methods": "^3.0.2", + "@jsdevtools/ono": "^7.1.3", + "ajv": "^8.6.3", + "ajv-draft-04": "^1.0.0", + "call-me-maybe": "^1.0.1" + }, + "dependencies": { + "ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "dev": true, + "requires": {} + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + } + } + }, + "@asyncapi/specs": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.8.0.tgz", + "integrity": "sha512-1i6xs8+IOh6U5T7yH+bCMGQBF+m7kP/NpwyAlt++XaDQutoGCgACf24mQBgcDVqDWWoY81evQv+9ABvw0BviVg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.11" + } + }, "@aw-web-design/x-default-browser": { "version": "1.4.126", "resolved": "https://registry.npmjs.org/@aw-web-design/x-default-browser/-/x-default-browser-1.4.126.tgz", @@ -23838,6 +26070,13 @@ "dev": true, "optional": true }, + "@esbuild/netbsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz", + "integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==", + "dev": true, + "optional": true + }, "@esbuild/netbsd-x64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", @@ -23845,6 +26084,13 @@ "dev": true, "optional": true }, + "@esbuild/openbsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz", + "integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==", + "dev": true, + "optional": true + }, "@esbuild/openbsd-x64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", @@ -23918,6 +26164,12 @@ "integrity": "sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==", "dev": true }, + "@exodus/schemasafe": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz", + "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==", + "dev": true + }, "@fal-works/esbuild-plugin-global-externals": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@fal-works/esbuild-plugin-global-externals/-/esbuild-plugin-global-externals-2.1.2.tgz", @@ -23965,6 +26217,50 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "@ibm-cloud/openapi-ruleset": { + "version": "1.26.0", + "resolved": "https://registry.npmjs.org/@ibm-cloud/openapi-ruleset/-/openapi-ruleset-1.26.0.tgz", + "integrity": "sha512-io1C2gdFytYljIdh9w+CefYbXB7SD0JgWkPlaMPqja2+67xuZIezpKLaPWYYIiTzCW+LPuwx1tx30jPpstvV7Q==", + "dev": true, + "requires": { + "@ibm-cloud/openapi-ruleset-utilities": "1.6.0", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-functions": "^1.9.1", + "@stoplight/spectral-rulesets": "^1.21.1", + "chalk": "^4.1.2", + "lodash": "^4.17.21", + "loglevel": "^1.9.2", + "loglevel-plugin-prefix": "0.8.4", + "minimatch": "^6.2.0", + "validator": "^13.11.0" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", + "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "@ibm-cloud/openapi-ruleset-utilities": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@ibm-cloud/openapi-ruleset-utilities/-/openapi-ruleset-utilities-1.6.0.tgz", + "integrity": "sha512-8S2SMgqQS5IQ/OiHL7l1vaRyc+fY9oSoDJxm3N+VeGPf7UT6SoCgQ5zpCcHQtUN1j5LHAFhjPkryRt5KZshdOA==", + "dev": true + }, "@img/sharp-darwin-arm64": { "version": "0.33.4", "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.4.tgz", @@ -24220,6 +26516,33 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "@jsdevtools/ono": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true + }, + "@jsep-plugin/assignment": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", + "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", + "dev": true, + "requires": {} + }, + "@jsep-plugin/regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", + "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", + "dev": true, + "requires": {} + }, + "@jsep-plugin/ternary": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.4.tgz", + "integrity": "sha512-ck5wiqIbqdMX6WRQztBL7ASDty9YLgJ3sSAK5ZpBzXeySvFGCzIvM6UiAI4hTZ22fEcYQVV/zhUbNscggW+Ukg==", + "dev": true, + "requires": {} + }, "@mapbox/node-pre-gyp": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", @@ -24402,6 +26725,344 @@ "fastq": "^1.6.0" } }, + "@orval/angular": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/angular/-/angular-7.3.0.tgz", + "integrity": "sha512-SL13jfqhuHbC9XKLGVup3XXoEKvdzGjWOA+NuiRSx79CAo7XiYGsXs9KZpAQVPw2uMrOEwHeBicMW/4yJfQfdw==", + "dev": true, + "requires": { + "@orval/core": "7.3.0" + } + }, + "@orval/axios": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/axios/-/axios-7.3.0.tgz", + "integrity": "sha512-k+mxADO/uzIk4yFZkSXJghUWhGi0hLrqz/GZhx62MTlWEyrKsq/c+ZyoU5t+y4RHIn/jqCdQf4hpWWIxH+eVWQ==", + "dev": true, + "requires": { + "@orval/core": "7.3.0" + } + }, + "@orval/core": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/core/-/core-7.3.0.tgz", + "integrity": "sha512-WoFrkEkaS9pMEDd9oujP/9kvUFb++LJ7fhJ01/gJNFJuaHWTVSi9SkKpitGKzEd8aRlNMQ0LvseGMlu4tEcXpQ==", + "dev": true, + "requires": { + "@apidevtools/swagger-parser": "^10.1.0", + "@ibm-cloud/openapi-ruleset": "^1.25.1", + "acorn": "^8.14.0", + "ajv": "^8.17.1", + "chalk": "^4.1.2", + "compare-versions": "^6.1.1", + "debug": "^4.3.7", + "esbuild": "^0.24.0", + "esutils": "2.0.3", + "fs-extra": "^11.2.0", + "globby": "11.1.0", + "lodash.get": "^4.4.2", + "lodash.isempty": "^4.4.0", + "lodash.omit": "^4.5.0", + "lodash.uniq": "^4.5.0", + "lodash.uniqby": "^4.7.0", + "lodash.uniqwith": "^4.5.0", + "micromatch": "^4.0.8", + "openapi3-ts": "4.4.0", + "swagger2openapi": "^7.0.8" + }, + "dependencies": { + "@esbuild/aix-ppc64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz", + "integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==", + "dev": true, + "optional": true + }, + "@esbuild/android-arm": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz", + "integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==", + "dev": true, + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz", + "integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==", + "dev": true, + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz", + "integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz", + "integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz", + "integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz", + "integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz", + "integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz", + "integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz", + "integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz", + "integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==", + "dev": true, + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz", + "integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz", + "integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz", + "integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==", + "dev": true, + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz", + "integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==", + "dev": true, + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz", + "integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==", + "dev": true, + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz", + "integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==", + "dev": true, + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz", + "integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==", + "dev": true, + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz", + "integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==", + "dev": true, + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz", + "integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==", + "dev": true, + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz", + "integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==", + "dev": true, + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz", + "integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==", + "dev": true, + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz", + "integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==", + "dev": true, + "optional": true + }, + "ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "esbuild": { + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz", + "integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==", + "dev": true, + "requires": { + "@esbuild/aix-ppc64": "0.24.2", + "@esbuild/android-arm": "0.24.2", + "@esbuild/android-arm64": "0.24.2", + "@esbuild/android-x64": "0.24.2", + "@esbuild/darwin-arm64": "0.24.2", + "@esbuild/darwin-x64": "0.24.2", + "@esbuild/freebsd-arm64": "0.24.2", + "@esbuild/freebsd-x64": "0.24.2", + "@esbuild/linux-arm": "0.24.2", + "@esbuild/linux-arm64": "0.24.2", + "@esbuild/linux-ia32": "0.24.2", + "@esbuild/linux-loong64": "0.24.2", + "@esbuild/linux-mips64el": "0.24.2", + "@esbuild/linux-ppc64": "0.24.2", + "@esbuild/linux-riscv64": "0.24.2", + "@esbuild/linux-s390x": "0.24.2", + "@esbuild/linux-x64": "0.24.2", + "@esbuild/netbsd-arm64": "0.24.2", + "@esbuild/netbsd-x64": "0.24.2", + "@esbuild/openbsd-arm64": "0.24.2", + "@esbuild/openbsd-x64": "0.24.2", + "@esbuild/sunos-x64": "0.24.2", + "@esbuild/win32-arm64": "0.24.2", + "@esbuild/win32-ia32": "0.24.2", + "@esbuild/win32-x64": "0.24.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "openapi3-ts": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-4.4.0.tgz", + "integrity": "sha512-9asTNB9IkKEzWMcHmVZE7Ts3kC9G7AFHfs8i7caD8HbI76gEjdkId4z/AkP83xdZsH7PLAnnbl47qZkXuxpArw==", + "dev": true, + "requires": { + "yaml": "^2.5.0" + } + }, + "yaml": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", + "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "dev": true + } + } + }, + "@orval/fetch": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/fetch/-/fetch-7.3.0.tgz", + "integrity": "sha512-g1nN3FSz9H+b4O9g9S6spM9D6Zp3z4CGEv9+FHvoMxmuWt08WYIvNVR72tJPPNDNEsuaZrpXg+OVaOdQhPgh3Q==", + "dev": true, + "requires": { + "@orval/core": "7.3.0" + } + }, + "@orval/hono": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/hono/-/hono-7.3.0.tgz", + "integrity": "sha512-52zIIhEHDF90RnvV3azsISO5oigxRc0yti04T/0u+mE34gUkmmxHHfIaMDzAKcHhagqDM+a0vwPhbyESxsGPhg==", + "dev": true, + "requires": { + "@orval/core": "7.3.0", + "@orval/zod": "7.3.0", + "lodash.uniq": "^4.5.0" + } + }, + "@orval/mock": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/mock/-/mock-7.3.0.tgz", + "integrity": "sha512-v0EfTCr7fhbb4hUch/EbfXjY+thsxwIir8sbekWaE3SzYhsIYtyy2wdb4ZR+jMkTHVOdtk80n1mw6XlH64oLkg==", + "dev": true, + "requires": { + "@orval/core": "7.3.0", + "lodash.get": "^4.4.2", + "lodash.omit": "^4.5.0", + "openapi3-ts": "^4.2.2" + } + }, + "@orval/query": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/query/-/query-7.3.0.tgz", + "integrity": "sha512-9zELueslEoSuolxJlTzXz1rLaAsI5JRbeutPH3scJvtzePo4r6paYbhe/14E5u1+gzEEBYZCi+Rnh7zyCEgTKg==", + "dev": true, + "requires": { + "@orval/core": "7.3.0", + "@orval/fetch": "7.3.0", + "lodash.omitby": "^4.6.0" + } + }, + "@orval/swr": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/swr/-/swr-7.3.0.tgz", + "integrity": "sha512-genJTqn+7ssamC4KPBdshAgxjrt9gsxwrylPTBoEz/gPVeLO2i4USgQOLZq/r6H+ArCejbaVK/9sfRZEDmp2sA==", + "dev": true, + "requires": { + "@orval/core": "7.3.0", + "@orval/fetch": "7.3.0" + } + }, + "@orval/zod": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@orval/zod/-/zod-7.3.0.tgz", + "integrity": "sha512-Aegt8RaA+vzu9XefTYKTRUt5Vm7woh1wrJFHRpMxTGx2giu3DLVkJ/dGp4O9eIVtLK4wAXlgW4QNQsmBJQT3eg==", + "dev": true, + "requires": { + "@orval/core": "7.3.0", + "lodash.uniq": "^4.5.0" + } + }, "@pdf-lib/fontkit": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@pdf-lib/fontkit/-/fontkit-1.1.1.tgz", @@ -24866,6 +27527,384 @@ "integrity": "sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==", "dev": true }, + "@stoplight/json": { + "version": "3.21.7", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.7.tgz", + "integrity": "sha512-xcJXgKFqv/uCEgtGlPxy3tPA+4I+ZI4vAuMJ885+ThkTHFVkC+0Fm58lA9NlsyjnkpxFh4YiQWpH+KefHdbA0A==", + "dev": true, + "requires": { + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + } + }, + "@stoplight/json-ref-readers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", + "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "dev": true, + "requires": { + "node-fetch": "^2.6.0", + "tslib": "^1.14.1" + }, + "dependencies": { + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, + "@stoplight/json-ref-resolver": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.6.tgz", + "integrity": "sha512-YNcWv3R3n3U6iQYBsFOiWSuRGE5su1tJSiX6pAPRVk7dP0L7lqCteXGzuVRQ0gMZqUl8v1P0+fAKxF6PLo9B5A==", + "dev": true, + "requires": { + "@stoplight/json": "^3.21.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0 || ^13.0.0", + "@types/urijs": "^1.19.19", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash": "^4.17.21", + "tslib": "^2.6.0", + "urijs": "^1.19.11" + } + }, + "@stoplight/ordered-object-literal": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.5.tgz", + "integrity": "sha512-COTiuCU5bgMUtbIFBuyyh2/yVVzlr5Om0v5utQDgBCuQUOPgU1DwoffkTfg4UBQOvByi5foF4w4T+H9CoRe5wg==", + "dev": true + }, + "@stoplight/path": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", + "dev": true + }, + "@stoplight/spectral-core": { + "version": "1.19.4", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.19.4.tgz", + "integrity": "sha512-8hnZXfssTlV99SKo8J8BwMt5LsiBFHkCh0V3P7j8IPcCNl//bpG92U4TpYy7AwmUms/zCLX7sxNQC6AZ+bkfzg==", + "dev": true, + "requires": { + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.21.0", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.4", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", + "ajv": "^8.17.1", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "es-aggregate-error": "^1.0.7", + "jsonpath-plus": "10.2.0", + "lodash": "~4.17.21", + "lodash.topath": "^4.5.2", + "minimatch": "3.1.2", + "nimma": "0.2.3", + "pony-cause": "^1.1.1", + "simple-eval": "1.0.1", + "tslib": "^2.8.1" + }, + "dependencies": { + "@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dev": true, + "requires": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + }, + "ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "dev": true, + "requires": {} + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + } + } + }, + "@stoplight/spectral-formats": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.8.2.tgz", + "integrity": "sha512-c06HB+rOKfe7tuxg0IdKDEA5XnjL2vrn/m/OVIIxtINtBzphZrOgtRn7epQ5bQF5SWp84Ue7UJWaGgDwVngMFw==", + "dev": true, + "requires": { + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.19.2", + "@types/json-schema": "^7.0.7", + "tslib": "^2.8.1" + } + }, + "@stoplight/spectral-functions": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.9.3.tgz", + "integrity": "sha512-jy4mguk0Ddz0Vr76PHervOZeyXTUW650zVfNT2Vt9Ji3SqtTVziHjq913CBVEGFS+IQw1McUXuHVLM6YKVZ6fQ==", + "dev": true, + "requires": { + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.1", + "@stoplight/spectral-core": "^1.19.4", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-runtime": "^1.1.2", + "ajv": "^8.17.1", + "ajv-draft-04": "~1.0.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "lodash": "~4.17.21", + "tslib": "^2.8.1" + }, + "dependencies": { + "@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dev": true, + "requires": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "dev": true, + "requires": {} + }, + "ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "dev": true, + "requires": {} + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + } + } + }, + "@stoplight/spectral-parsers": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.5.tgz", + "integrity": "sha512-ANDTp2IHWGvsQDAY85/jQi9ZrF4mRrA5bciNHX+PUxPr4DwS6iv4h+FVWJMVwcEYdpyoIdyL+SRmHdJfQEPmwQ==", + "dev": true, + "requires": { + "@stoplight/json": "~3.21.0", + "@stoplight/types": "^14.1.1", + "@stoplight/yaml": "~4.3.0", + "tslib": "^2.8.1" + }, + "dependencies": { + "@stoplight/types": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", + "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + } + } + }, + "@stoplight/spectral-ref-resolver": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.5.tgz", + "integrity": "sha512-gj3TieX5a9zMW29z3mBlAtDOCgN3GEc1VgZnCVlr5irmR4Qi5LuECuFItAq4pTn5Zu+sW5bqutsCH7D4PkpyAA==", + "dev": true, + "requires": { + "@stoplight/json-ref-readers": "1.2.2", + "@stoplight/json-ref-resolver": "~3.1.6", + "@stoplight/spectral-runtime": "^1.1.2", + "dependency-graph": "0.11.0", + "tslib": "^2.8.1" + } + }, + "@stoplight/spectral-rulesets": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.21.3.tgz", + "integrity": "sha512-SQp/NNDykfCvgmo9DW1pBAbmyKRHhEHmsc28kuRHC6nJblGFsLyNVGkEDjSIJuviR7ooC2Y00vmf0R3OGcyhyw==", + "dev": true, + "requires": { + "@asyncapi/specs": "^6.8.0", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.19.4", + "@stoplight/spectral-formats": "^1.8.1", + "@stoplight/spectral-functions": "^1.9.1", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "^13.6.0", + "@types/json-schema": "^7.0.7", + "ajv": "^8.17.1", + "ajv-formats": "~2.1.0", + "json-schema-traverse": "^1.0.0", + "leven": "3.1.0", + "lodash": "~4.17.21", + "tslib": "^2.8.1" + }, + "dependencies": { + "@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dev": true, + "requires": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + } + } + }, + "@stoplight/spectral-runtime": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.3.tgz", + "integrity": "sha512-uoKSVX/OYXOEBRQN7EtAaVefl8MlyhBkDcU2aDYEGALwYXHAH+vmF3ljhZrueMA3fSWLHTL3RxWqsjeeCor6lw==", + "dev": true, + "requires": { + "@stoplight/json": "^3.20.1", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "abort-controller": "^3.0.0", + "lodash": "^4.17.21", + "node-fetch": "^2.6.7", + "tslib": "^2.8.1" + }, + "dependencies": { + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + } + } + } + }, + "@stoplight/types": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.20.0.tgz", + "integrity": "sha512-2FNTv05If7ib79VPDA/r9eUet76jewXFH2y2K5vuge6SXbRHtWBhcaRmu+6QpF4/WRNoJj5XYRSwLGXDxysBGA==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + }, + "@stoplight/yaml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.3.0.tgz", + "integrity": "sha512-JZlVFE6/dYpP9tQmV0/ADfn32L9uFarHWxfcRhReKUnljz1ZiUM5zpX+PH8h5CJs6lao3TuFqnPm9IJJCEkE2w==", + "dev": true, + "requires": { + "@stoplight/ordered-object-literal": "^1.0.5", + "@stoplight/types": "^14.1.1", + "@stoplight/yaml-ast-parser": "0.0.50", + "tslib": "^2.2.0" + }, + "dependencies": { + "@stoplight/types": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-14.1.1.tgz", + "integrity": "sha512-/kjtr+0t0tjKr+heVfviO9FrU/uGLc+QNX3fHJc19xsCNYqU7lVhaXxDmEID9BZTjG+/r9pK9xP/xU02XGg65g==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + } + } + }, + "@stoplight/yaml-ast-parser": { + "version": "0.0.50", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.50.tgz", + "integrity": "sha512-Pb6M8TDO9DtSVla9yXSTAxmo9GVEouq5P40DWXdOie69bXogZTkgvopCq+yEvTMA0F6PEvdJmbtTV3ccIp11VQ==", + "dev": true + }, "@storybook/addon-actions": { "version": "8.1.3", "resolved": "https://registry.npmjs.org/@storybook/addon-actions/-/addon-actions-8.1.3.tgz", @@ -26294,6 +29333,15 @@ "integrity": "sha512-AQImDBgudQfMqUBfrjZYilRxoHDzTBp+ejh+g1fY67eSMalwIKtBXofjpyI0JBgNpHGzxeGAR2QDya0wxW9zbA==", "dev": true }, + "@types/es-aggregate-error": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.6.tgz", + "integrity": "sha512-qJ7LIFp06h1QE1aVxbVd+zJP2wdaugYXYfd6JxsyRMrYHaxb6itXPogW2tz+ylUJ1n1b+JF1PHyYCfYHm0dvUg==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, "@types/escodegen": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/@types/escodegen/-/escodegen-0.0.6.tgz", @@ -26531,6 +29579,12 @@ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==", "dev": true }, + "@types/urijs": { + "version": "1.19.25", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.25.tgz", + "integrity": "sha512-XOfUup9r3Y06nFAZh3WvO0rBU4OtlfPB/vgxpjg+NRdGU6CN6djdc6OEiH+PcqHCY6eFLo9Ista73uarf4gnBg==", + "dev": true + }, "@types/uuid": { "version": "9.0.8", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", @@ -26995,9 +30049,9 @@ } }, "acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true }, "acorn-import-assertions": { @@ -27122,6 +30176,12 @@ "dev": true, "requires": {} }, + "ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true + }, "ansi-html-community": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", @@ -27394,6 +30454,12 @@ "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, + "astring": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.9.0.tgz", + "integrity": "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==", + "dev": true + }, "async": { "version": "3.2.5", "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", @@ -27792,11 +30858,11 @@ } }, "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "requires": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" } }, "brorand": { @@ -28013,6 +31079,12 @@ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true }, + "cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true + }, "call-bind": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", @@ -28025,6 +31097,12 @@ "set-function-length": "^1.2.1" } }, + "call-me-maybe": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", + "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", + "dev": true + }, "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -28223,6 +31301,30 @@ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" }, + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + } + } + }, "clone": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", @@ -28323,6 +31425,12 @@ "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", "dev": true }, + "compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "dev": true + }, "compressible": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", @@ -28717,12 +31825,12 @@ "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==" }, "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "devOptional": true, "requires": { - "ms": "2.1.2" + "ms": "^2.1.3" } }, "decode-uri-component": { @@ -28892,6 +32000,12 @@ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "dev": true }, + "dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "dev": true + }, "dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -29320,6 +32434,16 @@ "tapable": "^2.2.0" } }, + "enquirer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + } + }, "entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", @@ -29409,6 +32533,22 @@ "which-typed-array": "^1.1.15" } }, + "es-aggregate-error": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.13.tgz", + "integrity": "sha512-KkzhUUuD2CUMqEc8JEqsXEMDHzDPE8RCjZeUBitsnB1eNcAJWQPiciKsMXe3Yytj4Flw1XLl46Qcf9OxvZha7A==", + "dev": true, + "requires": { + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.2", + "set-function-name": "^2.0.2" + } + }, "es-define-property": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", @@ -29507,6 +32647,12 @@ "is-symbol": "^1.0.2" } }, + "es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", + "dev": true + }, "esbuild": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", @@ -30235,6 +33381,24 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "fast-memoize": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", + "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==", + "dev": true + }, + "fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, + "fast-uri": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", + "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==", + "dev": true + }, "fast-xml-parser": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.6.tgz", @@ -30347,9 +33511,9 @@ "dev": true }, "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "requires": { "to-regex-range": "^5.0.1" } @@ -30777,6 +33941,12 @@ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, "get-func-name": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", @@ -31268,6 +34438,12 @@ "toidentifier": "1.0.1" } }, + "http2-client": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/http2-client/-/http2-client-1.3.5.tgz", + "integrity": "sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA==", + "dev": true + }, "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -31332,6 +34508,12 @@ "queue": "6.0.2" } }, + "immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "dev": true + }, "import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", @@ -31863,6 +35045,12 @@ "write-file-atomic": "^2.3.0" } }, + "jsep": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", + "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", + "dev": true + }, "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -31900,6 +35088,12 @@ "minimist": "^1.2.0" } }, + "jsonc-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", + "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==", + "dev": true + }, "jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -31910,6 +35104,23 @@ "universalify": "^2.0.0" } }, + "jsonpath-plus": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.2.0.tgz", + "integrity": "sha512-T9V+8iNYKFL2n2rF+w02LBOT2JjDnTjioaNFrxRy0Bv1y/hNsqR/EBK7Ojy2ythRHwmz2cRIls+9JitQGZC/sw==", + "dev": true, + "requires": { + "@jsep-plugin/assignment": "^1.3.0", + "@jsep-plugin/regex": "^1.0.4", + "jsep": "^1.4.0" + } + }, + "jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "dev": true + }, "jsx-ast-utils": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", @@ -32030,6 +35241,18 @@ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dev": true }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "dev": true + }, + "lodash.isempty": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.isempty/-/lodash.isempty-4.4.0.tgz", + "integrity": "sha512-oKMuF3xEeqDltrGMfDxAPGIVMSSRv8tbRSODbrs4KGsRRLEhrW8N8Rd4DRgB2+621hY8A8XwwrTVhXWpxFvMzg==", + "dev": true + }, "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -32041,6 +35264,42 @@ "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==" }, + "lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", + "dev": true + }, + "lodash.omitby": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.omitby/-/lodash.omitby-4.6.0.tgz", + "integrity": "sha512-5OrRcIVR75M288p4nbI2WLAf3ndw2GD9fyNv3Bc15+WCxJDdZ4lYndSxGd7hnG6PVjiJTeJE2dHEGhIuKGicIQ==", + "dev": true + }, + "lodash.topath": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", + "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==", + "dev": true + }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, + "lodash.uniqby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", + "integrity": "sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==", + "dev": true + }, + "lodash.uniqwith": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz", + "integrity": "sha512-7lYL8bLopMoy4CTICbxygAUq6CdRJ36vFc80DucPueUee+d5NBRxz3FdT9Pes/HEx5mPoT9jwnsEJWz1N7uq7Q==", + "dev": true + }, "log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -32051,6 +35310,18 @@ "is-unicode-supported": "^0.1.0" } }, + "loglevel": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.2.tgz", + "integrity": "sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==", + "dev": true + }, + "loglevel-plugin-prefix": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz", + "integrity": "sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g==", + "dev": true + }, "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -32221,11 +35492,11 @@ "dev": true }, "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "requires": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" } }, @@ -32371,9 +35642,9 @@ "dev": true }, "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "devOptional": true }, "mz": { @@ -32444,6 +35715,20 @@ "styled-jsx": "5.1.1" } }, + "nimma": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.3.tgz", + "integrity": "sha512-1ZOI8J+1PKKGceo/5CT5GfQOG6H8I2BencSK06YarZ2wXwH37BSSUWldqJmMJYA5JfqDqffxDXynt6f11AyKcA==", + "dev": true, + "requires": { + "@jsep-plugin/regex": "^1.0.1", + "@jsep-plugin/ternary": "^1.0.2", + "astring": "^1.8.1", + "jsep": "^1.2.0", + "jsonpath-plus": "^6.0.1 || ^10.1.0", + "lodash.topath": "^4.5.2" + } + }, "no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", @@ -32484,6 +35769,15 @@ "formdata-polyfill": "^4.0.10" } }, + "node-fetch-h2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz", + "integrity": "sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg==", + "dev": true, + "requires": { + "http2-client": "^1.2.5" + } + }, "node-fetch-native": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.4.tgz", @@ -32550,6 +35844,15 @@ } } }, + "node-readfiles": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.2.0.tgz", + "integrity": "sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA==", + "dev": true, + "requires": { + "es6-promise": "^3.2.1" + } + }, "node-releases": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", @@ -32692,6 +35995,61 @@ } } }, + "oas-kit-common": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/oas-kit-common/-/oas-kit-common-1.0.8.tgz", + "integrity": "sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ==", + "dev": true, + "requires": { + "fast-safe-stringify": "^2.0.7" + } + }, + "oas-linter": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/oas-linter/-/oas-linter-3.2.2.tgz", + "integrity": "sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ==", + "dev": true, + "requires": { + "@exodus/schemasafe": "^1.0.0-rc.2", + "should": "^13.2.1", + "yaml": "^1.10.0" + } + }, + "oas-resolver": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/oas-resolver/-/oas-resolver-2.5.6.tgz", + "integrity": "sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ==", + "dev": true, + "requires": { + "node-fetch-h2": "^2.3.0", + "oas-kit-common": "^1.0.8", + "reftools": "^1.1.9", + "yaml": "^1.10.0", + "yargs": "^17.0.1" + } + }, + "oas-schema-walker": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz", + "integrity": "sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ==", + "dev": true + }, + "oas-validator": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/oas-validator/-/oas-validator-5.0.8.tgz", + "integrity": "sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw==", + "dev": true, + "requires": { + "call-me-maybe": "^1.0.1", + "oas-kit-common": "^1.0.8", + "oas-linter": "^3.2.2", + "oas-resolver": "^2.5.6", + "oas-schema-walker": "^1.1.5", + "reftools": "^1.1.9", + "should": "^13.2.1", + "yaml": "^1.10.0" + } + }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -32848,6 +36206,30 @@ "is-wsl": "^2.2.0" } }, + "openapi-types": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", + "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==", + "dev": true, + "peer": true + }, + "openapi3-ts": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-4.2.2.tgz", + "integrity": "sha512-+9g4actZKeb3czfi9gVQ4Br2Ju3KwhCAQJBNaKgye5KggqcBLIhFHH+nIkcm0BUX00TrAJl6dH4JWgM4G4JWrw==", + "dev": true, + "requires": { + "yaml": "^2.3.4" + }, + "dependencies": { + "yaml": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", + "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "dev": true + } + } + }, "optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -32879,6 +36261,130 @@ "wcwidth": "^1.0.1" } }, + "orval": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/orval/-/orval-7.3.0.tgz", + "integrity": "sha512-NzLCItKhblP9Ks3RyLQmvLna0kWBLedzew+arHyWnHTi35L4LLkXo8gZxJbucxlQWpdXxjwFQemLuBSEmt6M3Q==", + "dev": true, + "requires": { + "@apidevtools/swagger-parser": "^10.1.0", + "@orval/angular": "7.3.0", + "@orval/axios": "7.3.0", + "@orval/core": "7.3.0", + "@orval/fetch": "7.3.0", + "@orval/hono": "7.3.0", + "@orval/mock": "7.3.0", + "@orval/query": "7.3.0", + "@orval/swr": "7.3.0", + "@orval/zod": "7.3.0", + "ajv": "^8.12.0", + "cac": "^6.7.14", + "chalk": "^4.1.2", + "chokidar": "^4.0.1", + "enquirer": "^2.4.1", + "execa": "^5.1.1", + "find-up": "5.0.0", + "fs-extra": "^11.2.0", + "lodash.uniq": "^4.5.0", + "openapi3-ts": "4.2.2", + "string-argv": "^0.3.2", + "tsconfck": "^2.0.1" + }, + "dependencies": { + "ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "requires": { + "readdirp": "^4.0.1" + } + }, + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "readdirp": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", + "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + } + } + }, "os-browserify": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", @@ -33200,6 +36706,12 @@ "@babel/runtime": "^7.17.8" } }, + "pony-cause": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", + "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==", + "dev": true + }, "popmotion": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/popmotion/-/popmotion-11.0.3.tgz", @@ -34024,6 +37536,12 @@ "which-builtin-type": "^1.1.3" } }, + "reftools": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/reftools/-/reftools-1.1.9.tgz", + "integrity": "sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w==", + "dev": true + }, "regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -34148,6 +37666,12 @@ "strip-ansi": "^6.0.1" } }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, "require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", @@ -34374,6 +37898,12 @@ "is-regex": "^1.1.4" } }, + "safe-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", + "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==", + "dev": true + }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -34457,12 +37987,6 @@ "dev": true } } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true } } }, @@ -34595,6 +38119,60 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, + "should": { + "version": "13.2.3", + "resolved": "https://registry.npmjs.org/should/-/should-13.2.3.tgz", + "integrity": "sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==", + "dev": true, + "requires": { + "should-equal": "^2.0.0", + "should-format": "^3.0.3", + "should-type": "^1.4.0", + "should-type-adaptors": "^1.0.1", + "should-util": "^1.0.0" + } + }, + "should-equal": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/should-equal/-/should-equal-2.0.0.tgz", + "integrity": "sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==", + "dev": true, + "requires": { + "should-type": "^1.4.0" + } + }, + "should-format": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/should-format/-/should-format-3.0.3.tgz", + "integrity": "sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q==", + "dev": true, + "requires": { + "should-type": "^1.3.0", + "should-type-adaptors": "^1.0.1" + } + }, + "should-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/should-type/-/should-type-1.4.0.tgz", + "integrity": "sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ==", + "dev": true + }, + "should-type-adaptors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz", + "integrity": "sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA==", + "dev": true, + "requires": { + "should-type": "^1.3.0", + "should-util": "^1.0.0" + } + }, + "should-util": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/should-util/-/should-util-1.0.1.tgz", + "integrity": "sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g==", + "dev": true + }, "side-channel": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", @@ -34619,6 +38197,15 @@ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", "optional": true }, + "simple-eval": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.1.tgz", + "integrity": "sha512-LH7FpTAkeD+y5xQC4fzS+tFtaNlvt3Ib1zKzvhjv/Y+cioV4zIuw4IZr2yhRLu67CWL7FR9/6KXKnjRoZTvGGQ==", + "dev": true, + "requires": { + "jsep": "^1.3.6" + } + }, "simple-get": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", @@ -34728,6 +38315,12 @@ "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==" }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, "stackframe": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", @@ -34810,6 +38403,12 @@ "safe-buffer": "~5.2.0" } }, + "string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true + }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -35034,6 +38633,45 @@ "resolved": "https://registry.npmjs.org/svg-arc-to-cubic-bezier/-/svg-arc-to-cubic-bezier-3.2.0.tgz", "integrity": "sha512-djbJ/vZKZO+gPoSDThGNpKDO+o+bAeA4XQKovvkNCqnIS2t+S4qnLAGQhyyrulhCFRl1WWzAp0wUDV8PpTVU3g==" }, + "swagger2openapi": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/swagger2openapi/-/swagger2openapi-7.0.8.tgz", + "integrity": "sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g==", + "dev": true, + "requires": { + "call-me-maybe": "^1.0.1", + "node-fetch": "^2.6.1", + "node-fetch-h2": "^2.3.0", + "node-readfiles": "^0.2.0", + "oas-kit-common": "^1.0.8", + "oas-resolver": "^2.5.6", + "oas-schema-walker": "^1.1.5", + "oas-validator": "^5.0.8", + "reftools": "^1.1.9", + "yaml": "^1.10.0", + "yargs": "^17.0.1" + }, + "dependencies": { + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + } + } + } + }, + "swr": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.3.0.tgz", + "integrity": "sha512-NyZ76wA4yElZWBHzSgEJc28a0u6QZvhb6w0azeL2k7+Q1gAzVK+IqQYXhVOC/mzi+HZIozrZvBVeSeOZNR2bqA==", + "requires": { + "dequal": "^2.0.3", + "use-sync-external-store": "^1.4.0" + } + }, "synckit": { "version": "0.8.5", "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", @@ -35350,6 +38988,13 @@ "integrity": "sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==", "dev": true }, + "tsconfck": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.2.tgz", + "integrity": "sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==", + "dev": true, + "requires": {} + }, "tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", @@ -35393,9 +39038,9 @@ } }, "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, "tsutils": { "version": "3.21.0", @@ -35701,6 +39346,12 @@ "punycode": "^2.1.0" } }, + "urijs": { + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==", + "dev": true + }, "url": { "version": "0.11.3", "resolved": "https://registry.npmjs.org/url/-/url-0.11.3.tgz", @@ -35742,6 +39393,12 @@ "tslib": "^2.0.0" } }, + "use-sync-external-store": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", + "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", + "requires": {} + }, "util": { "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", @@ -35765,6 +39422,12 @@ "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==", "dev": true }, + "utility-types": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz", + "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==", + "dev": true + }, "utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -35787,6 +39450,12 @@ "spdx-expression-parse": "^3.0.0" } }, + "validator": { + "version": "13.12.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", + "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", + "dev": true + }, "vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -36182,6 +39851,12 @@ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, + "y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true + }, "yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -36193,6 +39868,27 @@ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" }, + "yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + }, "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/view/next-project/package.json b/view/next-project/package.json index ac34ff87c..9c9633146 100644 --- a/view/next-project/package.json +++ b/view/next-project/package.json @@ -44,6 +44,7 @@ "react-select": "^5.7.3", "recoil": "^0.7.6", "recoil-persist": "^4.2.0", + "swr": "^2.3.0", "tailwindcss": "^3.1.6" }, "devDependencies": { @@ -67,6 +68,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-storybook": "^0.8.0", "eslint-plugin-unused-imports": "^2.0.0", + "orval": "^7.3.0", "postcss": "^8.4.14", "prettier": "^2.7.1", "prettier-plugin-tailwindcss": "^0.1.13", diff --git a/view/next-project/src/generated/hooks.ts b/view/next-project/src/generated/hooks.ts new file mode 100644 index 000000000..1836738c0 --- /dev/null +++ b/view/next-project/src/generated/hooks.ts @@ -0,0 +1,7008 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ +import useSwr from 'swr'; +import type { Arguments, Key, SWRConfiguration } from 'swr'; +import useSWRMutation from 'swr/mutation'; +import type { SWRMutationConfiguration } from 'swr/mutation'; +import type { + Activity, + ActivityInformation, + ActivityStyle, + DeleteActivitiesId200, + DeleteActivityInformationsId200, + DeleteActivityStylesId200, + DeleteBudgetsId200, + DeleteBureausId200, + DeleteDepartmentsId200, + DeleteDivisionsId200, + DeleteExpensesId200, + DeleteFestivalItemsId200, + DeleteFinancailRecordsId200, + DeleteFundInformationsId200, + DeleteReceiptsId200, + DeleteSourcesId200, + DeleteSponsorsId200, + DeleteSponsorstylesId200, + DeleteTeachersDelete200, + DeleteTeachersId200, + DeleteUsersDelete200, + DeleteUsersId200, + DeleteYearsId200, + DeleteYearsPeriodsId200, + DestroyTeacherIDs, + DestroyUserIDs, + Division, + DivisionDetails, + DivisionWithBalance, + FestivalItem, + FestivalItemDetails, + FestivalItemWithBalance, + FinancialRecord, + FinancialRecordDetails, + FinancialRecordWithBalance, + GetActivities200, + GetActivitiesDetails200, + GetActivitiesDetailsYear200, + GetActivitiesFilteredDetails200, + GetActivitiesFilteredDetailsParams, + GetActivitiesFilteredDetailsYear200, + GetActivitiesFilteredDetailsYearParams, + GetActivitiesId200, + GetActivityInformations200, + GetActivityInformationsId200, + GetActivityStyles200, + GetActivityStylesId200, + GetBudgets200, + GetBudgetsDetails200, + GetBudgetsDetailsYear200, + GetBudgetsId200, + GetBudgetsIdDetails200, + GetBureaus200, + GetBureausId200, + GetDepartments200, + GetDepartmentsId200, + GetExpenses200, + GetExpensesDetails200, + GetExpensesDetailsYear200, + GetExpensesFiscalyearYear200, + GetExpensesId200, + GetExpensesIdDetails200, + GetFundInformations200, + GetFundInformationsDetails200, + GetFundInformationsDetailsYear200, + GetFundInformationsId200, + GetFundInformationsIdDetails200, + GetReceipts200, + GetReceiptsId200, + GetReceiptsReportsId200, + GetSources200, + GetSourcesId200, + GetSponsorstyles200, + GetSponsorstylesId200, + GetTeachersFundRegisteredYear200, + GetTeachersId200, + GetUsersId200, + PasswordResetData, + PostActivities200, + PostActivityInformations200, + PostActivityStyles200, + PostBudgets200, + PostBudgetsParams, + PostBureaus200, + PostBureausParams, + PostDepartments200, + PostDepartmentsParams, + PostExpenses200, + PostExpensesParams, + PostFundInformations200, + PostFundInformationsParams, + PostPasswordResetId200, + PostPasswordResetIdValid200, + PostPasswordResetIdValidParams, + PostPasswordResetRequest200, + PostPasswordResetRequestParams, + PostReceipts200, + PostSources200, + PostSourcesParams, + PostSponsors200, + PostSponsorstyles200, + PostTeachers200, + PostTeachersParams, + PostUsers200, + PostUsersParams, + PostYears200, + PostYearsParams, + PostYearsPeriods200, + PutActivitiesId200, + PutActivityInformationsId200, + PutActivityStylesId200, + PutBudgetsId200, + PutBudgetsIdParams, + PutBureausId200, + PutBureausIdParams, + PutDepartmentsId200, + PutDepartmentsIdParams, + PutExpensesId200, + PutExpensesIdParams, + PutFundInformationsId200, + PutFundInformationsIdParams, + PutReceiptsId200, + PutSourcesId200, + PutSourcesIdParams, + PutSponsorsId200, + PutSponsorstylesId200, + PutTeachersId200, + PutTeachersIdParams, + PutUsersId200, + PutUsersIdParams, + PutYearsId200, + PutYearsIdParams, + PutYearsPeriodsId200, + Receipt, + Sponsor, + SponsorStyle, + YearPeriods, +} from './model'; +import { customFetch } from '../mutator/custom-instance'; + +type AwaitedInput = PromiseLike | T; + +type Awaited = O extends AwaitedInput ? T : never; + +type SecondParameter any> = Parameters[1]; + +/** + * activitiesの一覧を取得 + */ +export type getActivitiesResponse = { + data: GetActivities200; + status: number; + headers: Headers; +}; + +export const getGetActivitiesUrl = () => { + return `/activities`; +}; + +export const getActivities = async (options?: RequestInit): Promise => { + return customFetch>(getGetActivitiesUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetActivitiesKey = () => [`/activities`] as const; + +export type GetActivitiesQueryResult = NonNullable>>; +export type GetActivitiesQueryError = unknown; + +export const useGetActivities = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivitiesKey() : null)); + const swrFn = () => getActivities(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activitiesの作成 + */ +export type postActivitiesResponse = { + data: PostActivities200; + status: number; + headers: Headers; +}; + +export const getPostActivitiesUrl = () => { + return `/activities`; +}; + +export const postActivities = async ( + activity: Activity, + options?: RequestInit, +): Promise => { + return customFetch>(getPostActivitiesUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(activity), + }); +}; + +export const getPostActivitiesMutationFetcher = (options?: SecondParameter) => { + return (_: Key, { arg }: { arg: Activity }): Promise => { + return postActivities(arg, options); + }; +}; +export const getPostActivitiesMutationKey = () => [`/activities`] as const; + +export type PostActivitiesMutationResult = NonNullable>>; +export type PostActivitiesMutationError = unknown; + +export const usePostActivities = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Activity, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostActivitiesMutationKey(); + const swrFn = getPostActivitiesMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activitiesとsponsor,sponsorStyle,userの一覧を取得 + */ +export type getActivitiesDetailsResponse = { + data: GetActivitiesDetails200; + status: number; + headers: Headers; +}; + +export const getGetActivitiesDetailsUrl = () => { + return `/activities/details`; +}; + +export const getActivitiesDetails = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetActivitiesDetailsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetActivitiesDetailsKey = () => [`/activities/details`] as const; + +export type GetActivitiesDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetActivitiesDetailsQueryError = unknown; + +export const useGetActivitiesDetails = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivitiesDetailsKey() : null)); + const swrFn = () => getActivitiesDetails(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 年度で指定されたactivitiesとsponsor,sponsorStyle,userの一覧を取得 + */ +export type getActivitiesDetailsYearResponse = { + data: GetActivitiesDetailsYear200; + status: number; + headers: Headers; +}; + +export const getGetActivitiesDetailsYearUrl = (year: number) => { + return `/activities/details/${year}`; +}; + +export const getActivitiesDetailsYear = async ( + year: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetActivitiesDetailsYearUrl(year), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetActivitiesDetailsYearKey = (year: number) => + [`/activities/details/${year}`] as const; + +export type GetActivitiesDetailsYearQueryResult = NonNullable< + Awaited> +>; +export type GetActivitiesDetailsYearQueryError = unknown; + +export const useGetActivitiesDetailsYear = ( + year: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivitiesDetailsYearKey(year) : null)); + const swrFn = () => getActivitiesDetailsYear(year, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activitiesとsponsor,sponsorStyle,userの一覧を取得 + */ +export type getActivitiesFilteredDetailsResponse = { + data: GetActivitiesFilteredDetails200; + status: number; + headers: Headers; +}; + +export const getGetActivitiesFilteredDetailsUrl = (params?: GetActivitiesFilteredDetailsParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/activities/filtered_details?${normalizedParams.toString()}` + : `/activities/filtered_details`; +}; + +export const getActivitiesFilteredDetails = async ( + params?: GetActivitiesFilteredDetailsParams, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetActivitiesFilteredDetailsUrl(params), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetActivitiesFilteredDetailsKey = (params?: GetActivitiesFilteredDetailsParams) => + [`/activities/filtered_details`, ...(params ? [params] : [])] as const; + +export type GetActivitiesFilteredDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetActivitiesFilteredDetailsQueryError = unknown; + +export const useGetActivitiesFilteredDetails = ( + params?: GetActivitiesFilteredDetailsParams, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivitiesFilteredDetailsKey(params) : null)); + const swrFn = () => getActivitiesFilteredDetails(params, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activitiesとsponsor,sponsorStyle,userの一覧を取得 + */ +export type getActivitiesFilteredDetailsYearResponse = { + data: GetActivitiesFilteredDetailsYear200; + status: number; + headers: Headers; +}; + +export const getGetActivitiesFilteredDetailsYearUrl = ( + year: string, + params?: GetActivitiesFilteredDetailsYearParams, +) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/activities/filtered_details/${year}?${normalizedParams.toString()}` + : `/activities/filtered_details/${year}`; +}; + +export const getActivitiesFilteredDetailsYear = async ( + year: string, + params?: GetActivitiesFilteredDetailsYearParams, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetActivitiesFilteredDetailsYearUrl(year, params), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetActivitiesFilteredDetailsYearKey = ( + year: string, + params?: GetActivitiesFilteredDetailsYearParams, +) => [`/activities/filtered_details/${year}`, ...(params ? [params] : [])] as const; + +export type GetActivitiesFilteredDetailsYearQueryResult = NonNullable< + Awaited> +>; +export type GetActivitiesFilteredDetailsYearQueryError = unknown; + +export const useGetActivitiesFilteredDetailsYear = ( + year: string, + params?: GetActivitiesFilteredDetailsYearParams, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? + (() => (isEnabled ? getGetActivitiesFilteredDetailsYearKey(year, params) : null)); + const swrFn = () => getActivitiesFilteredDetailsYear(year, params, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたactivitiesの取得 + */ +export type getActivitiesIdResponse = { + data: GetActivitiesId200; + status: number; + headers: Headers; +}; + +export const getGetActivitiesIdUrl = (id: number) => { + return `/activities/${id}`; +}; + +export const getActivitiesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetActivitiesIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetActivitiesIdKey = (id: number) => [`/activities/${id}`] as const; + +export type GetActivitiesIdQueryResult = NonNullable>>; +export type GetActivitiesIdQueryError = unknown; + +export const useGetActivitiesId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivitiesIdKey(id) : null)); + const swrFn = () => getActivitiesId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activitiesの更新 + */ +export type putActivitiesIdResponse = { + data: PutActivitiesId200; + status: number; + headers: Headers; +}; + +export const getPutActivitiesIdUrl = (id: number) => { + return `/activities/${id}`; +}; + +export const putActivitiesId = async ( + id: number, + activity?: Activity, + options?: RequestInit, +): Promise => { + return customFetch>(getPutActivitiesIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(activity), + }); +}; + +export const getPutActivitiesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: Activity }): Promise => { + return putActivitiesId(id, arg, options); + }; +}; +export const getPutActivitiesIdMutationKey = (id: number) => [`/activities/${id}`] as const; + +export type PutActivitiesIdMutationResult = NonNullable< + Awaited> +>; +export type PutActivitiesIdMutationError = unknown; + +export const usePutActivitiesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Activity, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutActivitiesIdMutationKey(id); + const swrFn = getPutActivitiesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してactivitiesの削除 + */ +export type deleteActivitiesIdResponse = { + data: DeleteActivitiesId200; + status: number; + headers: Headers; +}; + +export const getDeleteActivitiesIdUrl = (id: number) => { + return `/activities/${id}`; +}; + +export const deleteActivitiesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteActivitiesIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteActivitiesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteActivitiesId(id, options); + }; +}; +export const getDeleteActivitiesIdMutationKey = (id: number) => [`/activities/${id}`] as const; + +export type DeleteActivitiesIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteActivitiesIdMutationError = unknown; + +export const useDeleteActivitiesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteActivitiesIdMutationKey(id); + const swrFn = getDeleteActivitiesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activity_informationの一覧を取得 + */ +export type getActivityInformationsResponse = { + data: GetActivityInformations200; + status: number; + headers: Headers; +}; + +export const getGetActivityInformationsUrl = () => { + return `/activity_informations`; +}; + +export const getActivityInformations = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetActivityInformationsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetActivityInformationsKey = () => [`/activity_informations`] as const; + +export type GetActivityInformationsQueryResult = NonNullable< + Awaited> +>; +export type GetActivityInformationsQueryError = unknown; + +export const useGetActivityInformations = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivityInformationsKey() : null)); + const swrFn = () => getActivityInformations(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activity_informationの作成 + */ +export type postActivityInformationsResponse = { + data: PostActivityInformations200; + status: number; + headers: Headers; +}; + +export const getPostActivityInformationsUrl = () => { + return `/activity_informations`; +}; + +export const postActivityInformations = async ( + activityInformation?: ActivityInformation, + options?: RequestInit, +): Promise => { + return customFetch>(getPostActivityInformationsUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(activityInformation), + }); +}; + +export const getPostActivityInformationsMutationFetcher = ( + options?: SecondParameter, +) => { + return ( + _: Key, + { arg }: { arg: ActivityInformation }, + ): Promise => { + return postActivityInformations(arg, options); + }; +}; +export const getPostActivityInformationsMutationKey = () => [`/activity_informations`] as const; + +export type PostActivityInformationsMutationResult = NonNullable< + Awaited> +>; +export type PostActivityInformationsMutationError = unknown; + +export const usePostActivityInformations = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + ActivityInformation, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostActivityInformationsMutationKey(); + const swrFn = getPostActivityInformationsMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたactivity_informationsの取得 + */ +export type getActivityInformationsIdResponse = { + data: GetActivityInformationsId200; + status: number; + headers: Headers; +}; + +export const getGetActivityInformationsIdUrl = (id: number) => { + return `/activity_informations/${id}`; +}; + +export const getActivityInformationsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetActivityInformationsIdUrl(id), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetActivityInformationsIdKey = (id: number) => + [`/activity_informations/${id}`] as const; + +export type GetActivityInformationsIdQueryResult = NonNullable< + Awaited> +>; +export type GetActivityInformationsIdQueryError = unknown; + +export const useGetActivityInformationsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivityInformationsIdKey(id) : null)); + const swrFn = () => getActivityInformationsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activity_informationの更新 + */ +export type putActivityInformationsIdResponse = { + data: PutActivityInformationsId200; + status: number; + headers: Headers; +}; + +export const getPutActivityInformationsIdUrl = (id: number) => { + return `/activity_informations/${id}`; +}; + +export const putActivityInformationsId = async ( + id: number, + activityInformation?: ActivityInformation, + options?: RequestInit, +): Promise => { + return customFetch>( + getPutActivityInformationsIdUrl(id), + { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(activityInformation), + }, + ); +}; + +export const getPutActivityInformationsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return ( + _: Key, + { arg }: { arg: ActivityInformation }, + ): Promise => { + return putActivityInformationsId(id, arg, options); + }; +}; +export const getPutActivityInformationsIdMutationKey = (id: number) => + [`/activity_informations/${id}`] as const; + +export type PutActivityInformationsIdMutationResult = NonNullable< + Awaited> +>; +export type PutActivityInformationsIdMutationError = unknown; + +export const usePutActivityInformationsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + ActivityInformation, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutActivityInformationsIdMutationKey(id); + const swrFn = getPutActivityInformationsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してactivity_informationの削除 + */ +export type deleteActivityInformationsIdResponse = { + data: DeleteActivityInformationsId200; + status: number; + headers: Headers; +}; + +export const getDeleteActivityInformationsIdUrl = (id: number) => { + return `/activity_informations/${id}`; +}; + +export const deleteActivityInformationsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getDeleteActivityInformationsIdUrl(id), + { + ...options, + method: 'DELETE', + }, + ); +}; + +export const getDeleteActivityInformationsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteActivityInformationsId(id, options); + }; +}; +export const getDeleteActivityInformationsIdMutationKey = (id: number) => + [`/activity_informations/${id}`] as const; + +export type DeleteActivityInformationsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteActivityInformationsIdMutationError = unknown; + +export const useDeleteActivityInformationsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteActivityInformationsIdMutationKey(id); + const swrFn = getDeleteActivityInformationsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activity_styleの一覧を取得 + */ +export type getActivityStylesResponse = { + data: GetActivityStyles200; + status: number; + headers: Headers; +}; + +export const getGetActivityStylesUrl = () => { + return `/activity_styles`; +}; + +export const getActivityStyles = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetActivityStylesUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetActivityStylesKey = () => [`/activity_styles`] as const; + +export type GetActivityStylesQueryResult = NonNullable< + Awaited> +>; +export type GetActivityStylesQueryError = unknown; + +export const useGetActivityStyles = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivityStylesKey() : null)); + const swrFn = () => getActivityStyles(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activity_styleの作成 + */ +export type postActivityStylesResponse = { + data: PostActivityStyles200; + status: number; + headers: Headers; +}; + +export const getPostActivityStylesUrl = () => { + return `/activity_styles`; +}; + +export const postActivityStyles = async ( + activityStyle?: ActivityStyle, + options?: RequestInit, +): Promise => { + return customFetch>(getPostActivityStylesUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(activityStyle), + }); +}; + +export const getPostActivityStylesMutationFetcher = ( + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: ActivityStyle }): Promise => { + return postActivityStyles(arg, options); + }; +}; +export const getPostActivityStylesMutationKey = () => [`/activity_styles`] as const; + +export type PostActivityStylesMutationResult = NonNullable< + Awaited> +>; +export type PostActivityStylesMutationError = unknown; + +export const usePostActivityStyles = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + ActivityStyle, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostActivityStylesMutationKey(); + const swrFn = getPostActivityStylesMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたactivity_styleの取得 + */ +export type getActivityStylesIdResponse = { + data: GetActivityStylesId200; + status: number; + headers: Headers; +}; + +export const getGetActivityStylesIdUrl = (id: number) => { + return `/activity_styles/${id}`; +}; + +export const getActivityStylesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetActivityStylesIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetActivityStylesIdKey = (id: number) => [`/activity_styles/${id}`] as const; + +export type GetActivityStylesIdQueryResult = NonNullable< + Awaited> +>; +export type GetActivityStylesIdQueryError = unknown; + +export const useGetActivityStylesId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetActivityStylesIdKey(id) : null)); + const swrFn = () => getActivityStylesId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * activity_styleの更新 + */ +export type putActivityStylesIdResponse = { + data: PutActivityStylesId200; + status: number; + headers: Headers; +}; + +export const getPutActivityStylesIdUrl = (id: number) => { + return `/activity_styles/${id}`; +}; + +export const putActivityStylesId = async ( + id: number, + activityStyle?: ActivityStyle, + options?: RequestInit, +): Promise => { + return customFetch>(getPutActivityStylesIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(activityStyle), + }); +}; + +export const getPutActivityStylesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: ActivityStyle }): Promise => { + return putActivityStylesId(id, arg, options); + }; +}; +export const getPutActivityStylesIdMutationKey = (id: number) => + [`/activity_styles/${id}`] as const; + +export type PutActivityStylesIdMutationResult = NonNullable< + Awaited> +>; +export type PutActivityStylesIdMutationError = unknown; + +export const usePutActivityStylesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + ActivityStyle, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutActivityStylesIdMutationKey(id); + const swrFn = getPutActivityStylesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してactivity_styleの削除 + */ +export type deleteActivityStylesIdResponse = { + data: DeleteActivityStylesId200; + status: number; + headers: Headers; +}; + +export const getDeleteActivityStylesIdUrl = (id: number) => { + return `/activity_styles/${id}`; +}; + +export const deleteActivityStylesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteActivityStylesIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteActivityStylesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteActivityStylesId(id, options); + }; +}; +export const getDeleteActivityStylesIdMutationKey = (id: number) => + [`/activity_styles/${id}`] as const; + +export type DeleteActivityStylesIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteActivityStylesIdMutationError = unknown; + +export const useDeleteActivityStylesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteActivityStylesIdMutationKey(id); + const swrFn = getDeleteActivityStylesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * budgetの一覧を取得 + */ +export type getBudgetsResponse = { + data: GetBudgets200; + status: number; + headers: Headers; +}; + +export const getGetBudgetsUrl = () => { + return `/budgets`; +}; + +export const getBudgets = async (options?: RequestInit): Promise => { + return customFetch>(getGetBudgetsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetBudgetsKey = () => [`/budgets`] as const; + +export type GetBudgetsQueryResult = NonNullable>>; +export type GetBudgetsQueryError = unknown; + +export const useGetBudgets = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetBudgetsKey() : null)); + const swrFn = () => getBudgets(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * budgetの作成 + */ +export type postBudgetsResponse = { + data: PostBudgets200; + status: number; + headers: Headers; +}; + +export const getPostBudgetsUrl = (params: PostBudgetsParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/budgets?${normalizedParams.toString()}` : `/budgets`; +}; + +export const postBudgets = async ( + params: PostBudgetsParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostBudgetsUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostBudgetsMutationFetcher = ( + params: PostBudgetsParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postBudgets(params, options); + }; +}; +export const getPostBudgetsMutationKey = (params: PostBudgetsParams) => + [`/budgets`, ...(params ? [params] : [])] as const; + +export type PostBudgetsMutationResult = NonNullable>>; +export type PostBudgetsMutationError = unknown; + +export const usePostBudgets = ( + params: PostBudgetsParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostBudgetsMutationKey(params); + const swrFn = getPostBudgetsMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * budgetに紐づくyearとsourceの一覧を取得 + */ +export type getBudgetsDetailsResponse = { + data: GetBudgetsDetails200; + status: number; + headers: Headers; +}; + +export const getGetBudgetsDetailsUrl = () => { + return `/budgets/details`; +}; + +export const getBudgetsDetails = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetBudgetsDetailsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetBudgetsDetailsKey = () => [`/budgets/details`] as const; + +export type GetBudgetsDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetBudgetsDetailsQueryError = unknown; + +export const useGetBudgetsDetails = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetBudgetsDetailsKey() : null)); + const swrFn = () => getBudgetsDetails(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 年度で指定されたbudgetsに紐づく年度とソースを取得 + */ +export type getBudgetsDetailsYearResponse = { + data: GetBudgetsDetailsYear200; + status: number; + headers: Headers; +}; + +export const getGetBudgetsDetailsYearUrl = (year: number) => { + return `/budgets/details/${year}`; +}; + +export const getBudgetsDetailsYear = async ( + year: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetBudgetsDetailsYearUrl(year), { + ...options, + method: 'GET', + }); +}; + +export const getGetBudgetsDetailsYearKey = (year: number) => [`/budgets/details/${year}`] as const; + +export type GetBudgetsDetailsYearQueryResult = NonNullable< + Awaited> +>; +export type GetBudgetsDetailsYearQueryError = unknown; + +export const useGetBudgetsDetailsYear = ( + year: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetBudgetsDetailsYearKey(year) : null)); + const swrFn = () => getBudgetsDetailsYear(year, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたbudgetの取得 + */ +export type getBudgetsIdResponse = { + data: GetBudgetsId200; + status: number; + headers: Headers; +}; + +export const getGetBudgetsIdUrl = (id: number) => { + return `/budgets/${id}`; +}; + +export const getBudgetsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetBudgetsIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetBudgetsIdKey = (id: number) => [`/budgets/${id}`] as const; + +export type GetBudgetsIdQueryResult = NonNullable>>; +export type GetBudgetsIdQueryError = unknown; + +export const useGetBudgetsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetBudgetsIdKey(id) : null)); + const swrFn = () => getBudgetsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * budgetの更新 + */ +export type putBudgetsIdResponse = { + data: PutBudgetsId200; + status: number; + headers: Headers; +}; + +export const getPutBudgetsIdUrl = (id: number, params?: PutBudgetsIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/budgets/${id}?${normalizedParams.toString()}` : `/budgets/${id}`; +}; + +export const putBudgetsId = async ( + id: number, + params?: PutBudgetsIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutBudgetsIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutBudgetsIdMutationFetcher = ( + id: number, + params?: PutBudgetsIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putBudgetsId(id, params, options); + }; +}; +export const getPutBudgetsIdMutationKey = (id: number, params?: PutBudgetsIdParams) => + [`/budgets/${id}`, ...(params ? [params] : [])] as const; + +export type PutBudgetsIdMutationResult = NonNullable>>; +export type PutBudgetsIdMutationError = unknown; + +export const usePutBudgetsId = ( + id: number, + params?: PutBudgetsIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutBudgetsIdMutationKey(id, params); + const swrFn = getPutBudgetsIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してbudgetの削除 + */ +export type deleteBudgetsIdResponse = { + data: DeleteBudgetsId200; + status: number; + headers: Headers; +}; + +export const getDeleteBudgetsIdUrl = (id: number) => { + return `/budgets/${id}`; +}; + +export const deleteBudgetsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteBudgetsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteBudgetsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteBudgetsId(id, options); + }; +}; +export const getDeleteBudgetsIdMutationKey = (id: number) => [`/budgets/${id}`] as const; + +export type DeleteBudgetsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteBudgetsIdMutationError = unknown; + +export const useDeleteBudgetsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteBudgetsIdMutationKey(id); + const swrFn = getDeleteBudgetsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたbudgetに紐づくyearとsourceを取得 + */ +export type getBudgetsIdDetailsResponse = { + data: GetBudgetsIdDetails200; + status: number; + headers: Headers; +}; + +export const getGetBudgetsIdDetailsUrl = (id: number) => { + return `/budgets/${id}/details`; +}; + +export const getBudgetsIdDetails = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetBudgetsIdDetailsUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetBudgetsIdDetailsKey = (id: number) => [`/budgets/${id}/details`] as const; + +export type GetBudgetsIdDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetBudgetsIdDetailsQueryError = unknown; + +export const useGetBudgetsIdDetails = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetBudgetsIdDetailsKey(id) : null)); + const swrFn = () => getBudgetsIdDetails(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * bureauの一覧を取得 + */ +export type getBureausResponse = { + data: GetBureaus200; + status: number; + headers: Headers; +}; + +export const getGetBureausUrl = () => { + return `/bureaus`; +}; + +export const getBureaus = async (options?: RequestInit): Promise => { + return customFetch>(getGetBureausUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetBureausKey = () => [`/bureaus`] as const; + +export type GetBureausQueryResult = NonNullable>>; +export type GetBureausQueryError = unknown; + +export const useGetBureaus = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetBureausKey() : null)); + const swrFn = () => getBureaus(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * bureauの作成 + */ +export type postBureausResponse = { + data: PostBureaus200; + status: number; + headers: Headers; +}; + +export const getPostBureausUrl = (params: PostBureausParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/bureaus?${normalizedParams.toString()}` : `/bureaus`; +}; + +export const postBureaus = async ( + params: PostBureausParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostBureausUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostBureausMutationFetcher = ( + params: PostBureausParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postBureaus(params, options); + }; +}; +export const getPostBureausMutationKey = (params: PostBureausParams) => + [`/bureaus`, ...(params ? [params] : [])] as const; + +export type PostBureausMutationResult = NonNullable>>; +export type PostBureausMutationError = unknown; + +export const usePostBureaus = ( + params: PostBureausParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostBureausMutationKey(params); + const swrFn = getPostBureausMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたbureauの取得 + */ +export type getBureausIdResponse = { + data: GetBureausId200; + status: number; + headers: Headers; +}; + +export const getGetBureausIdUrl = (id: number) => { + return `/bureaus/${id}`; +}; + +export const getBureausId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetBureausIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetBureausIdKey = (id: number) => [`/bureaus/${id}`] as const; + +export type GetBureausIdQueryResult = NonNullable>>; +export type GetBureausIdQueryError = unknown; + +export const useGetBureausId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetBureausIdKey(id) : null)); + const swrFn = () => getBureausId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * bureauの更新 + */ +export type putBureausIdResponse = { + data: PutBureausId200; + status: number; + headers: Headers; +}; + +export const getPutBureausIdUrl = (id: number, params?: PutBureausIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/bureaus/${id}?${normalizedParams.toString()}` : `/bureaus/${id}`; +}; + +export const putBureausId = async ( + id: number, + params?: PutBureausIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutBureausIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutBureausIdMutationFetcher = ( + id: number, + params?: PutBureausIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putBureausId(id, params, options); + }; +}; +export const getPutBureausIdMutationKey = (id: number, params?: PutBureausIdParams) => + [`/bureaus/${id}`, ...(params ? [params] : [])] as const; + +export type PutBureausIdMutationResult = NonNullable>>; +export type PutBureausIdMutationError = unknown; + +export const usePutBureausId = ( + id: number, + params?: PutBureausIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutBureausIdMutationKey(id, params); + const swrFn = getPutBureausIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してbureauの削除 + */ +export type deleteBureausIdResponse = { + data: DeleteBureausId200; + status: number; + headers: Headers; +}; + +export const getDeleteBureausIdUrl = (id: number) => { + return `/bureaus/${id}`; +}; + +export const deleteBureausId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteBureausIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteBureausIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteBureausId(id, options); + }; +}; +export const getDeleteBureausIdMutationKey = (id: number) => [`/bureaus/${id}`] as const; + +export type DeleteBureausIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteBureausIdMutationError = unknown; + +export const useDeleteBureausId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteBureausIdMutationKey(id); + const swrFn = getDeleteBureausIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * departmentの一覧の取得 + */ +export type getDepartmentsResponse = { + data: GetDepartments200; + status: number; + headers: Headers; +}; + +export const getGetDepartmentsUrl = () => { + return `/departments`; +}; + +export const getDepartments = async (options?: RequestInit): Promise => { + return customFetch>(getGetDepartmentsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetDepartmentsKey = () => [`/departments`] as const; + +export type GetDepartmentsQueryResult = NonNullable>>; +export type GetDepartmentsQueryError = unknown; + +export const useGetDepartments = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetDepartmentsKey() : null)); + const swrFn = () => getDepartments(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * departmentの作成 + */ +export type postDepartmentsResponse = { + data: PostDepartments200; + status: number; + headers: Headers; +}; + +export const getPostDepartmentsUrl = (params?: PostDepartmentsParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/departments?${normalizedParams.toString()}` : `/departments`; +}; + +export const postDepartments = async ( + params?: PostDepartmentsParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostDepartmentsUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostDepartmentsMutationFetcher = ( + params?: PostDepartmentsParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postDepartments(params, options); + }; +}; +export const getPostDepartmentsMutationKey = (params?: PostDepartmentsParams) => + [`/departments`, ...(params ? [params] : [])] as const; + +export type PostDepartmentsMutationResult = NonNullable< + Awaited> +>; +export type PostDepartmentsMutationError = unknown; + +export const usePostDepartments = ( + params?: PostDepartmentsParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostDepartmentsMutationKey(params); + const swrFn = getPostDepartmentsMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたdepartmentの取得 + */ +export type getDepartmentsIdResponse = { + data: GetDepartmentsId200; + status: number; + headers: Headers; +}; + +export const getGetDepartmentsIdUrl = (id: number) => { + return `/departments/${id}`; +}; + +export const getDepartmentsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetDepartmentsIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetDepartmentsIdKey = (id: number) => [`/departments/${id}`] as const; + +export type GetDepartmentsIdQueryResult = NonNullable>>; +export type GetDepartmentsIdQueryError = unknown; + +export const useGetDepartmentsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetDepartmentsIdKey(id) : null)); + const swrFn = () => getDepartmentsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * departmentの更新 + */ +export type putDepartmentsIdResponse = { + data: PutDepartmentsId200; + status: number; + headers: Headers; +}; + +export const getPutDepartmentsIdUrl = (id: number, params?: PutDepartmentsIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/departments/${id}?${normalizedParams.toString()}` + : `/departments/${id}`; +}; + +export const putDepartmentsId = async ( + id: number, + params?: PutDepartmentsIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutDepartmentsIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutDepartmentsIdMutationFetcher = ( + id: number, + params?: PutDepartmentsIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putDepartmentsId(id, params, options); + }; +}; +export const getPutDepartmentsIdMutationKey = (id: number, params?: PutDepartmentsIdParams) => + [`/departments/${id}`, ...(params ? [params] : [])] as const; + +export type PutDepartmentsIdMutationResult = NonNullable< + Awaited> +>; +export type PutDepartmentsIdMutationError = unknown; + +export const usePutDepartmentsId = ( + id: number, + params?: PutDepartmentsIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutDepartmentsIdMutationKey(id, params); + const swrFn = getPutDepartmentsIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してdepartmentの削除 + */ +export type deleteDepartmentsIdResponse = { + data: DeleteDepartmentsId200; + status: number; + headers: Headers; +}; + +export const getDeleteDepartmentsIdUrl = (id: number) => { + return `/departments/${id}`; +}; + +export const deleteDepartmentsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteDepartmentsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteDepartmentsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteDepartmentsId(id, options); + }; +}; +export const getDeleteDepartmentsIdMutationKey = (id: number) => [`/departments/${id}`] as const; + +export type DeleteDepartmentsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteDepartmentsIdMutationError = unknown; + +export const useDeleteDepartmentsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteDepartmentsIdMutationKey(id); + const swrFn = getDeleteDepartmentsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * divisionの一覧の取得 + */ +export type getDivisionsResponse = { + data: DivisionDetails; + status: number; + headers: Headers; +}; + +export const getGetDivisionsUrl = () => { + return `/divisions`; +}; + +export const getDivisions = async (options?: RequestInit): Promise => { + return customFetch>(getGetDivisionsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetDivisionsKey = () => [`/divisions`] as const; + +export type GetDivisionsQueryResult = NonNullable>>; +export type GetDivisionsQueryError = unknown; + +export const useGetDivisions = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetDivisionsKey() : null)); + const swrFn = () => getDivisions(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * divisionの作成 + */ +export type postDivisionsResponse = { + data: DivisionWithBalance; + status: number; + headers: Headers; +}; + +export const getPostDivisionsUrl = () => { + return `/divisions`; +}; + +export const postDivisions = async ( + division: Division, + options?: RequestInit, +): Promise => { + return customFetch>(getPostDivisionsUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(division), + }); +}; + +export const getPostDivisionsMutationFetcher = (options?: SecondParameter) => { + return (_: Key, { arg }: { arg: Division }): Promise => { + return postDivisions(arg, options); + }; +}; +export const getPostDivisionsMutationKey = () => [`/divisions`] as const; + +export type PostDivisionsMutationResult = NonNullable>>; +export type PostDivisionsMutationError = unknown; + +export const usePostDivisions = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Division, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostDivisionsMutationKey(); + const swrFn = getPostDivisionsMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * divisionの更新 + */ +export type putDivisionsIdResponse = { + data: DivisionWithBalance; + status: number; + headers: Headers; +}; + +export const getPutDivisionsIdUrl = (id: number) => { + return `/divisions/${id}`; +}; + +export const putDivisionsId = async ( + id: number, + division: Division, + options?: RequestInit, +): Promise => { + return customFetch>(getPutDivisionsIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(division), + }); +}; + +export const getPutDivisionsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: Division }): Promise => { + return putDivisionsId(id, arg, options); + }; +}; +export const getPutDivisionsIdMutationKey = (id: number) => [`/divisions/${id}`] as const; + +export type PutDivisionsIdMutationResult = NonNullable>>; +export type PutDivisionsIdMutationError = unknown; + +export const usePutDivisionsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Division, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutDivisionsIdMutationKey(id); + const swrFn = getPutDivisionsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してdivisionの削除 + */ +export type deleteDivisionsIdResponse = { + data: DeleteDivisionsId200; + status: number; + headers: Headers; +}; + +export const getDeleteDivisionsIdUrl = (id: number) => { + return `/divisions/${id}`; +}; + +export const deleteDivisionsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteDivisionsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteDivisionsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteDivisionsId(id, options); + }; +}; +export const getDeleteDivisionsIdMutationKey = (id: number) => [`/divisions/${id}`] as const; + +export type DeleteDivisionsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteDivisionsIdMutationError = unknown; + +export const useDeleteDivisionsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteDivisionsIdMutationKey(id); + const swrFn = getDeleteDivisionsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * expenseの一覧の取得 + */ +export type getExpensesResponse = { + data: GetExpenses200; + status: number; + headers: Headers; +}; + +export const getGetExpensesUrl = () => { + return `/expenses`; +}; + +export const getExpenses = async (options?: RequestInit): Promise => { + return customFetch>(getGetExpensesUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetExpensesKey = () => [`/expenses`] as const; + +export type GetExpensesQueryResult = NonNullable>>; +export type GetExpensesQueryError = unknown; + +export const useGetExpenses = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetExpensesKey() : null)); + const swrFn = () => getExpenses(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * expenseの作成 + */ +export type postExpensesResponse = { + data: PostExpenses200; + status: number; + headers: Headers; +}; + +export const getPostExpensesUrl = (params?: PostExpensesParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/expenses?${normalizedParams.toString()}` : `/expenses`; +}; + +export const postExpenses = async ( + params?: PostExpensesParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostExpensesUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostExpensesMutationFetcher = ( + params?: PostExpensesParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postExpenses(params, options); + }; +}; +export const getPostExpensesMutationKey = (params?: PostExpensesParams) => + [`/expenses`, ...(params ? [params] : [])] as const; + +export type PostExpensesMutationResult = NonNullable>>; +export type PostExpensesMutationError = unknown; + +export const usePostExpenses = ( + params?: PostExpensesParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostExpensesMutationKey(params); + const swrFn = getPostExpensesMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * expenseに紐づくpurchase_itemの一覧を取得 + */ +export type getExpensesDetailsResponse = { + data: GetExpensesDetails200; + status: number; + headers: Headers; +}; + +export const getGetExpensesDetailsUrl = () => { + return `/expenses/details`; +}; + +export const getExpensesDetails = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetExpensesDetailsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetExpensesDetailsKey = () => [`/expenses/details`] as const; + +export type GetExpensesDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetExpensesDetailsQueryError = unknown; + +export const useGetExpensesDetails = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetExpensesDetailsKey() : null)); + const swrFn = () => getExpensesDetails(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたexpenseの取得 + */ +export type getExpensesIdResponse = { + data: GetExpensesId200; + status: number; + headers: Headers; +}; + +export const getGetExpensesIdUrl = (id: number) => { + return `/expenses/${id}`; +}; + +export const getExpensesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetExpensesIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetExpensesIdKey = (id: number) => [`/expenses/${id}`] as const; + +export type GetExpensesIdQueryResult = NonNullable>>; +export type GetExpensesIdQueryError = unknown; + +export const useGetExpensesId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetExpensesIdKey(id) : null)); + const swrFn = () => getExpensesId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * expenseの更新 + */ +export type putExpensesIdResponse = { + data: PutExpensesId200; + status: number; + headers: Headers; +}; + +export const getPutExpensesIdUrl = (id: number, params?: PutExpensesIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/expenses/${id}?${normalizedParams.toString()}` + : `/expenses/${id}`; +}; + +export const putExpensesId = async ( + id: number, + params?: PutExpensesIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutExpensesIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutExpensesIdMutationFetcher = ( + id: number, + params?: PutExpensesIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putExpensesId(id, params, options); + }; +}; +export const getPutExpensesIdMutationKey = (id: number, params?: PutExpensesIdParams) => + [`/expenses/${id}`, ...(params ? [params] : [])] as const; + +export type PutExpensesIdMutationResult = NonNullable>>; +export type PutExpensesIdMutationError = unknown; + +export const usePutExpensesId = ( + id: number, + params?: PutExpensesIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutExpensesIdMutationKey(id, params); + const swrFn = getPutExpensesIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してexpenseの削除 + */ +export type deleteExpensesIdResponse = { + data: DeleteExpensesId200; + status: number; + headers: Headers; +}; + +export const getDeleteExpensesIdUrl = (id: number) => { + return `/expenses/${id}`; +}; + +export const deleteExpensesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteExpensesIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteExpensesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteExpensesId(id, options); + }; +}; +export const getDeleteExpensesIdMutationKey = (id: number) => [`/expenses/${id}`] as const; + +export type DeleteExpensesIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteExpensesIdMutationError = unknown; + +export const useDeleteExpensesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteExpensesIdMutationKey(id); + const swrFn = getDeleteExpensesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたexpenseに紐づくpurchase_itemsを取得 + */ +export type getExpensesIdDetailsResponse = { + data: GetExpensesIdDetails200; + status: number; + headers: Headers; +}; + +export const getGetExpensesIdDetailsUrl = (id: number) => { + return `/expenses/${id}/details`; +}; + +export const getExpensesIdDetails = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetExpensesIdDetailsUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetExpensesIdDetailsKey = (id: number) => [`/expenses/${id}/details`] as const; + +export type GetExpensesIdDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetExpensesIdDetailsQueryError = unknown; + +export const useGetExpensesIdDetails = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetExpensesIdDetailsKey(id) : null)); + const swrFn = () => getExpensesIdDetails(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 年度で指定されたexpenseに紐づく購入申請と購入報告を取得 + */ +export type getExpensesDetailsYearResponse = { + data: GetExpensesDetailsYear200; + status: number; + headers: Headers; +}; + +export const getGetExpensesDetailsYearUrl = (year: number) => { + return `/expenses/details/${year}`; +}; + +export const getExpensesDetailsYear = async ( + year: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetExpensesDetailsYearUrl(year), { + ...options, + method: 'GET', + }); +}; + +export const getGetExpensesDetailsYearKey = (year: number) => + [`/expenses/details/${year}`] as const; + +export type GetExpensesDetailsYearQueryResult = NonNullable< + Awaited> +>; +export type GetExpensesDetailsYearQueryError = unknown; + +export const useGetExpensesDetailsYear = ( + year: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetExpensesDetailsYearKey(year) : null)); + const swrFn = () => getExpensesDetailsYear(year, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 年度で指定されたexpensesを取得 + */ +export type getExpensesFiscalyearYearResponse = { + data: GetExpensesFiscalyearYear200; + status: number; + headers: Headers; +}; + +export const getGetExpensesFiscalyearYearUrl = (year: number) => { + return `/expenses/fiscalyear/${year}`; +}; + +export const getExpensesFiscalyearYear = async ( + year: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetExpensesFiscalyearYearUrl(year), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetExpensesFiscalyearYearKey = (year: number) => + [`/expenses/fiscalyear/${year}`] as const; + +export type GetExpensesFiscalyearYearQueryResult = NonNullable< + Awaited> +>; +export type GetExpensesFiscalyearYearQueryError = unknown; + +export const useGetExpensesFiscalyearYear = ( + year: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetExpensesFiscalyearYearKey(year) : null)); + const swrFn = () => getExpensesFiscalyearYear(year, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * festival_itemの一覧の取得 + */ +export type getFestivalItemsResponse = { + data: FestivalItemDetails; + status: number; + headers: Headers; +}; + +export const getGetFestivalItemsUrl = () => { + return `/festival_items`; +}; + +export const getFestivalItems = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetFestivalItemsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetFestivalItemsKey = () => [`/festival_items`] as const; + +export type GetFestivalItemsQueryResult = NonNullable>>; +export type GetFestivalItemsQueryError = unknown; + +export const useGetFestivalItems = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetFestivalItemsKey() : null)); + const swrFn = () => getFestivalItems(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * festival_itemの作成 + */ +export type postFestivalItemsResponse = { + data: FestivalItemWithBalance; + status: number; + headers: Headers; +}; + +export const getPostFestivalItemsUrl = () => { + return `/festival_items`; +}; + +export const postFestivalItems = async ( + festivalItem: FestivalItem, + options?: RequestInit, +): Promise => { + return customFetch>(getPostFestivalItemsUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(festivalItem), + }); +}; + +export const getPostFestivalItemsMutationFetcher = ( + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: FestivalItem }): Promise => { + return postFestivalItems(arg, options); + }; +}; +export const getPostFestivalItemsMutationKey = () => [`/festival_items`] as const; + +export type PostFestivalItemsMutationResult = NonNullable< + Awaited> +>; +export type PostFestivalItemsMutationError = unknown; + +export const usePostFestivalItems = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + FestivalItem, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostFestivalItemsMutationKey(); + const swrFn = getPostFestivalItemsMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * festival_itemの更新 + */ +export type putFestivalItemsIdResponse = { + data: FestivalItemWithBalance; + status: number; + headers: Headers; +}; + +export const getPutFestivalItemsIdUrl = (id: number) => { + return `/festival_items/${id}`; +}; + +export const putFestivalItemsId = async ( + id: number, + festivalItem: FestivalItem, + options?: RequestInit, +): Promise => { + return customFetch>(getPutFestivalItemsIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(festivalItem), + }); +}; + +export const getPutFestivalItemsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: FestivalItem }): Promise => { + return putFestivalItemsId(id, arg, options); + }; +}; +export const getPutFestivalItemsIdMutationKey = (id: number) => [`/festival_items/${id}`] as const; + +export type PutFestivalItemsIdMutationResult = NonNullable< + Awaited> +>; +export type PutFestivalItemsIdMutationError = unknown; + +export const usePutFestivalItemsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + FestivalItem, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutFestivalItemsIdMutationKey(id); + const swrFn = getPutFestivalItemsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してfestival_itemの削除 + */ +export type deleteFestivalItemsIdResponse = { + data: DeleteFestivalItemsId200; + status: number; + headers: Headers; +}; + +export const getDeleteFestivalItemsIdUrl = (id: number) => { + return `/festival_items/${id}`; +}; + +export const deleteFestivalItemsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteFestivalItemsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteFestivalItemsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteFestivalItemsId(id, options); + }; +}; +export const getDeleteFestivalItemsIdMutationKey = (id: number) => + [`/festival_items/${id}`] as const; + +export type DeleteFestivalItemsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteFestivalItemsIdMutationError = unknown; + +export const useDeleteFestivalItemsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteFestivalItemsIdMutationKey(id); + const swrFn = getDeleteFestivalItemsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * financial_recordの一覧を取得 + */ +export type getFinancailRecordsResponse = { + data: FinancialRecordDetails; + status: number; + headers: Headers; +}; + +export const getGetFinancailRecordsUrl = () => { + return `/financail_records`; +}; + +export const getFinancailRecords = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetFinancailRecordsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetFinancailRecordsKey = () => [`/financail_records`] as const; + +export type GetFinancailRecordsQueryResult = NonNullable< + Awaited> +>; +export type GetFinancailRecordsQueryError = unknown; + +export const useGetFinancailRecords = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetFinancailRecordsKey() : null)); + const swrFn = () => getFinancailRecords(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * financial_recordの作成 + */ +export type postFinancailRecordsResponse = { + data: FinancialRecordWithBalance; + status: number; + headers: Headers; +}; + +export const getPostFinancailRecordsUrl = () => { + return `/financail_records`; +}; + +export const postFinancailRecords = async ( + financialRecord: FinancialRecord, + options?: RequestInit, +): Promise => { + return customFetch>(getPostFinancailRecordsUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(financialRecord), + }); +}; + +export const getPostFinancailRecordsMutationFetcher = ( + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: FinancialRecord }): Promise => { + return postFinancailRecords(arg, options); + }; +}; +export const getPostFinancailRecordsMutationKey = () => [`/financail_records`] as const; + +export type PostFinancailRecordsMutationResult = NonNullable< + Awaited> +>; +export type PostFinancailRecordsMutationError = unknown; + +export const usePostFinancailRecords = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + FinancialRecord, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostFinancailRecordsMutationKey(); + const swrFn = getPostFinancailRecordsMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * financial_recordの更新 + */ +export type putFinancailRecordsIdResponse = { + data: FinancialRecordWithBalance; + status: number; + headers: Headers; +}; + +export const getPutFinancailRecordsIdUrl = (id: number) => { + return `/financail_records/${id}`; +}; + +export const putFinancailRecordsId = async ( + id: number, + financialRecord: FinancialRecord, + options?: RequestInit, +): Promise => { + return customFetch>(getPutFinancailRecordsIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(financialRecord), + }); +}; + +export const getPutFinancailRecordsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: FinancialRecord }): Promise => { + return putFinancailRecordsId(id, arg, options); + }; +}; +export const getPutFinancailRecordsIdMutationKey = (id: number) => + [`/financail_records/${id}`] as const; + +export type PutFinancailRecordsIdMutationResult = NonNullable< + Awaited> +>; +export type PutFinancailRecordsIdMutationError = unknown; + +export const usePutFinancailRecordsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + FinancialRecord, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutFinancailRecordsIdMutationKey(id); + const swrFn = getPutFinancailRecordsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してfinancial_recordの削除 + */ +export type deleteFinancailRecordsIdResponse = { + data: DeleteFinancailRecordsId200; + status: number; + headers: Headers; +}; + +export const getDeleteFinancailRecordsIdUrl = (id: number) => { + return `/financail_records/${id}`; +}; + +export const deleteFinancailRecordsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getDeleteFinancailRecordsIdUrl(id), + { + ...options, + method: 'DELETE', + }, + ); +}; + +export const getDeleteFinancailRecordsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteFinancailRecordsId(id, options); + }; +}; +export const getDeleteFinancailRecordsIdMutationKey = (id: number) => + [`/financail_records/${id}`] as const; + +export type DeleteFinancailRecordsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteFinancailRecordsIdMutationError = unknown; + +export const useDeleteFinancailRecordsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteFinancailRecordsIdMutationKey(id); + const swrFn = getDeleteFinancailRecordsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * fund_informationの一覧を取得 + */ +export type getFundInformationsResponse = { + data: GetFundInformations200; + status: number; + headers: Headers; +}; + +export const getGetFundInformationsUrl = () => { + return `/fund_informations`; +}; + +export const getFundInformations = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetFundInformationsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetFundInformationsKey = () => [`/fund_informations`] as const; + +export type GetFundInformationsQueryResult = NonNullable< + Awaited> +>; +export type GetFundInformationsQueryError = unknown; + +export const useGetFundInformations = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetFundInformationsKey() : null)); + const swrFn = () => getFundInformations(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * fund_informationの作成 + */ +export type postFundInformationsResponse = { + data: PostFundInformations200; + status: number; + headers: Headers; +}; + +export const getPostFundInformationsUrl = (params: PostFundInformationsParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/fund_informations?${normalizedParams.toString()}` + : `/fund_informations`; +}; + +export const postFundInformations = async ( + params: PostFundInformationsParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostFundInformationsUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostFundInformationsMutationFetcher = ( + params: PostFundInformationsParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postFundInformations(params, options); + }; +}; +export const getPostFundInformationsMutationKey = (params: PostFundInformationsParams) => + [`/fund_informations`, ...(params ? [params] : [])] as const; + +export type PostFundInformationsMutationResult = NonNullable< + Awaited> +>; +export type PostFundInformationsMutationError = unknown; + +export const usePostFundInformations = ( + params: PostFundInformationsParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostFundInformationsMutationKey(params); + const swrFn = getPostFundInformationsMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * fund_informationに紐づくteacherとuserの一覧を取得 + */ +export type getFundInformationsDetailsResponse = { + data: GetFundInformationsDetails200; + status: number; + headers: Headers; +}; + +export const getGetFundInformationsDetailsUrl = () => { + return `/fund_informations/details`; +}; + +export const getFundInformationsDetails = async ( + options?: RequestInit, +): Promise => { + return customFetch>( + getGetFundInformationsDetailsUrl(), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetFundInformationsDetailsKey = () => [`/fund_informations/details`] as const; + +export type GetFundInformationsDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetFundInformationsDetailsQueryError = unknown; + +export const useGetFundInformationsDetails = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetFundInformationsDetailsKey() : null)); + const swrFn = () => getFundInformationsDetails(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたfund_informationの取得 + */ +export type getFundInformationsIdResponse = { + data: GetFundInformationsId200; + status: number; + headers: Headers; +}; + +export const getGetFundInformationsIdUrl = (id: number) => { + return `/fund_informations/${id}`; +}; + +export const getFundInformationsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetFundInformationsIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetFundInformationsIdKey = (id: number) => [`/fund_informations/${id}`] as const; + +export type GetFundInformationsIdQueryResult = NonNullable< + Awaited> +>; +export type GetFundInformationsIdQueryError = unknown; + +export const useGetFundInformationsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetFundInformationsIdKey(id) : null)); + const swrFn = () => getFundInformationsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * fund_informationの更新 + */ +export type putFundInformationsIdResponse = { + data: PutFundInformationsId200; + status: number; + headers: Headers; +}; + +export const getPutFundInformationsIdUrl = (id: number, params: PutFundInformationsIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/fund_informations/${id}?${normalizedParams.toString()}` + : `/fund_informations/${id}`; +}; + +export const putFundInformationsId = async ( + id: number, + params: PutFundInformationsIdParams, + options?: RequestInit, +): Promise => { + return customFetch>( + getPutFundInformationsIdUrl(id, params), + { + ...options, + method: 'PUT', + }, + ); +}; + +export const getPutFundInformationsIdMutationFetcher = ( + id: number, + params: PutFundInformationsIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putFundInformationsId(id, params, options); + }; +}; +export const getPutFundInformationsIdMutationKey = ( + id: number, + params: PutFundInformationsIdParams, +) => [`/fund_informations/${id}`, ...(params ? [params] : [])] as const; + +export type PutFundInformationsIdMutationResult = NonNullable< + Awaited> +>; +export type PutFundInformationsIdMutationError = unknown; + +export const usePutFundInformationsId = ( + id: number, + params: PutFundInformationsIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutFundInformationsIdMutationKey(id, params); + const swrFn = getPutFundInformationsIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してfund_informationの削除 + */ +export type deleteFundInformationsIdResponse = { + data: DeleteFundInformationsId200; + status: number; + headers: Headers; +}; + +export const getDeleteFundInformationsIdUrl = (id: number) => { + return `/fund_informations/${id}`; +}; + +export const deleteFundInformationsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getDeleteFundInformationsIdUrl(id), + { + ...options, + method: 'DELETE', + }, + ); +}; + +export const getDeleteFundInformationsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteFundInformationsId(id, options); + }; +}; +export const getDeleteFundInformationsIdMutationKey = (id: number) => + [`/fund_informations/${id}`] as const; + +export type DeleteFundInformationsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteFundInformationsIdMutationError = unknown; + +export const useDeleteFundInformationsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteFundInformationsIdMutationKey(id); + const swrFn = getDeleteFundInformationsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたfund_informatinに紐づくteacherとuserを取得 + */ +export type getFundInformationsIdDetailsResponse = { + data: GetFundInformationsIdDetails200; + status: number; + headers: Headers; +}; + +export const getGetFundInformationsIdDetailsUrl = (id: number) => { + return `/fund_informations/${id}/details`; +}; + +export const getFundInformationsIdDetails = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetFundInformationsIdDetailsUrl(id), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetFundInformationsIdDetailsKey = (id: number) => + [`/fund_informations/${id}/details`] as const; + +export type GetFundInformationsIdDetailsQueryResult = NonNullable< + Awaited> +>; +export type GetFundInformationsIdDetailsQueryError = unknown; + +export const useGetFundInformationsIdDetails = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetFundInformationsIdDetailsKey(id) : null)); + const swrFn = () => getFundInformationsIdDetails(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 年度で指定されたfund_informationsに紐づくデータを取得 + */ +export type getFundInformationsDetailsYearResponse = { + data: GetFundInformationsDetailsYear200; + status: number; + headers: Headers; +}; + +export const getGetFundInformationsDetailsYearUrl = (year: number) => { + return `/fund_informations/details/${year}`; +}; + +export const getFundInformationsDetailsYear = async ( + year: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetFundInformationsDetailsYearUrl(year), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetFundInformationsDetailsYearKey = (year: number) => + [`/fund_informations/details/${year}`] as const; + +export type GetFundInformationsDetailsYearQueryResult = NonNullable< + Awaited> +>; +export type GetFundInformationsDetailsYearQueryError = unknown; + +export const useGetFundInformationsDetailsYear = ( + year: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetFundInformationsDetailsYearKey(year) : null)); + const swrFn = () => getFundInformationsDetailsYear(year, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * password_変更 + */ +export type postPasswordResetIdResponse = { + data: PostPasswordResetId200; + status: number; + headers: Headers; +}; + +export const getPostPasswordResetIdUrl = (id: number) => { + return `/password_reset/${id}`; +}; + +export const postPasswordResetId = async ( + id: number, + passwordResetData?: PasswordResetData, + options?: RequestInit, +): Promise => { + return customFetch>(getPostPasswordResetIdUrl(id), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(passwordResetData), + }); +}; + +export const getPostPasswordResetIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: PasswordResetData }): Promise => { + return postPasswordResetId(id, arg, options); + }; +}; +export const getPostPasswordResetIdMutationKey = (id: number) => [`/password_reset/${id}`] as const; + +export type PostPasswordResetIdMutationResult = NonNullable< + Awaited> +>; +export type PostPasswordResetIdMutationError = unknown; + +export const usePostPasswordResetId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + PasswordResetData, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostPasswordResetIdMutationKey(id); + const swrFn = getPostPasswordResetIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * password_reset_token発行リクエスト + */ +export type postPasswordResetRequestResponse = { + data: PostPasswordResetRequest200; + status: number; + headers: Headers; +}; + +export const getPostPasswordResetRequestUrl = (params?: PostPasswordResetRequestParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/password_reset/request?${normalizedParams.toString()}` + : `/password_reset/request`; +}; + +export const postPasswordResetRequest = async ( + params?: PostPasswordResetRequestParams, + options?: RequestInit, +): Promise => { + return customFetch>( + getPostPasswordResetRequestUrl(params), + { + ...options, + method: 'POST', + }, + ); +}; + +export const getPostPasswordResetRequestMutationFetcher = ( + params?: PostPasswordResetRequestParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postPasswordResetRequest(params, options); + }; +}; +export const getPostPasswordResetRequestMutationKey = (params?: PostPasswordResetRequestParams) => + [`/password_reset/request`, ...(params ? [params] : [])] as const; + +export type PostPasswordResetRequestMutationResult = NonNullable< + Awaited> +>; +export type PostPasswordResetRequestMutationError = unknown; + +export const usePostPasswordResetRequest = ( + params?: PostPasswordResetRequestParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostPasswordResetRequestMutationKey(params); + const swrFn = getPostPasswordResetRequestMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * トークンの称号 + */ +export type postPasswordResetIdValidResponse = { + data: PostPasswordResetIdValid200; + status: number; + headers: Headers; +}; + +export const getPostPasswordResetIdValidUrl = ( + id: number, + params?: PostPasswordResetIdValidParams, +) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/password_reset/${id}/valid?${normalizedParams.toString()}` + : `/password_reset/${id}/valid`; +}; + +export const postPasswordResetIdValid = async ( + id: number, + params?: PostPasswordResetIdValidParams, + options?: RequestInit, +): Promise => { + return customFetch>( + getPostPasswordResetIdValidUrl(id, params), + { + ...options, + method: 'POST', + }, + ); +}; + +export const getPostPasswordResetIdValidMutationFetcher = ( + id: number, + params?: PostPasswordResetIdValidParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postPasswordResetIdValid(id, params, options); + }; +}; +export const getPostPasswordResetIdValidMutationKey = ( + id: number, + params?: PostPasswordResetIdValidParams, +) => [`/password_reset/${id}/valid`, ...(params ? [params] : [])] as const; + +export type PostPasswordResetIdValidMutationResult = NonNullable< + Awaited> +>; +export type PostPasswordResetIdValidMutationError = unknown; + +export const usePostPasswordResetIdValid = ( + id: number, + params?: PostPasswordResetIdValidParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostPasswordResetIdValidMutationKey(id, params); + const swrFn = getPostPasswordResetIdValidMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * receiptの一覧を取得 + */ +export type getReceiptsResponse = { + data: GetReceipts200; + status: number; + headers: Headers; +}; + +export const getGetReceiptsUrl = () => { + return `/receipts`; +}; + +export const getReceipts = async (options?: RequestInit): Promise => { + return customFetch>(getGetReceiptsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetReceiptsKey = () => [`/receipts`] as const; + +export type GetReceiptsQueryResult = NonNullable>>; +export type GetReceiptsQueryError = unknown; + +export const useGetReceipts = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetReceiptsKey() : null)); + const swrFn = () => getReceipts(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * receiptの作成 + */ +export type postReceiptsResponse = { + data: PostReceipts200; + status: number; + headers: Headers; +}; + +export const getPostReceiptsUrl = () => { + return `/receipts`; +}; + +export const postReceipts = async ( + receipt?: Receipt, + options?: RequestInit, +): Promise => { + return customFetch>(getPostReceiptsUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(receipt), + }); +}; + +export const getPostReceiptsMutationFetcher = (options?: SecondParameter) => { + return (_: Key, { arg }: { arg: Receipt }): Promise => { + return postReceipts(arg, options); + }; +}; +export const getPostReceiptsMutationKey = () => [`/receipts`] as const; + +export type PostReceiptsMutationResult = NonNullable>>; +export type PostReceiptsMutationError = unknown; + +export const usePostReceipts = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Receipt, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostReceiptsMutationKey(); + const swrFn = getPostReceiptsMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたreceiptの取得 + */ +export type getReceiptsIdResponse = { + data: GetReceiptsId200; + status: number; + headers: Headers; +}; + +export const getGetReceiptsIdUrl = (id: number) => { + return `/receipts/${id}`; +}; + +export const getReceiptsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetReceiptsIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetReceiptsIdKey = (id: number) => [`/receipts/${id}`] as const; + +export type GetReceiptsIdQueryResult = NonNullable>>; +export type GetReceiptsIdQueryError = unknown; + +export const useGetReceiptsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetReceiptsIdKey(id) : null)); + const swrFn = () => getReceiptsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * receiptの更新 + */ +export type putReceiptsIdResponse = { + data: PutReceiptsId200; + status: number; + headers: Headers; +}; + +export const getPutReceiptsIdUrl = (id: number) => { + return `/receipts/${id}`; +}; + +export const putReceiptsId = async ( + id: number, + receipt?: Receipt, + options?: RequestInit, +): Promise => { + return customFetch>(getPutReceiptsIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(receipt), + }); +}; + +export const getPutReceiptsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: Receipt }): Promise => { + return putReceiptsId(id, arg, options); + }; +}; +export const getPutReceiptsIdMutationKey = (id: number) => [`/receipts/${id}`] as const; + +export type PutReceiptsIdMutationResult = NonNullable>>; +export type PutReceiptsIdMutationError = unknown; + +export const usePutReceiptsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Receipt, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutReceiptsIdMutationKey(id); + const swrFn = getPutReceiptsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してreceiptの削除 + */ +export type deleteReceiptsIdResponse = { + data: DeleteReceiptsId200; + status: number; + headers: Headers; +}; + +export const getDeleteReceiptsIdUrl = (id: number) => { + return `/receipts/${id}`; +}; + +export const deleteReceiptsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteReceiptsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteReceiptsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteReceiptsId(id, options); + }; +}; +export const getDeleteReceiptsIdMutationKey = (id: number) => [`/receipts/${id}`] as const; + +export type DeleteReceiptsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteReceiptsIdMutationError = unknown; + +export const useDeleteReceiptsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteReceiptsIdMutationKey(id); + const swrFn = getDeleteReceiptsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 購入報告に紐づいたreceiptの取得 + */ +export type getReceiptsReportsIdResponse = { + data: GetReceiptsReportsId200; + status: number; + headers: Headers; +}; + +export const getGetReceiptsReportsIdUrl = (id: number) => { + return `/receipts/reports/${id}`; +}; + +export const getReceiptsReportsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetReceiptsReportsIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetReceiptsReportsIdKey = (id: number) => [`/receipts/reports/${id}`] as const; + +export type GetReceiptsReportsIdQueryResult = NonNullable< + Awaited> +>; +export type GetReceiptsReportsIdQueryError = unknown; + +export const useGetReceiptsReportsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetReceiptsReportsIdKey(id) : null)); + const swrFn = () => getReceiptsReportsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sourceの一覧の取得 + */ +export type getSourcesResponse = { + data: GetSources200; + status: number; + headers: Headers; +}; + +export const getGetSourcesUrl = () => { + return `/sources`; +}; + +export const getSources = async (options?: RequestInit): Promise => { + return customFetch>(getGetSourcesUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetSourcesKey = () => [`/sources`] as const; + +export type GetSourcesQueryResult = NonNullable>>; +export type GetSourcesQueryError = unknown; + +export const useGetSources = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetSourcesKey() : null)); + const swrFn = () => getSources(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sourceの作成 + */ +export type postSourcesResponse = { + data: PostSources200; + status: number; + headers: Headers; +}; + +export const getPostSourcesUrl = (params: PostSourcesParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/sources?${normalizedParams.toString()}` : `/sources`; +}; + +export const postSources = async ( + params: PostSourcesParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostSourcesUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostSourcesMutationFetcher = ( + params: PostSourcesParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postSources(params, options); + }; +}; +export const getPostSourcesMutationKey = (params: PostSourcesParams) => + [`/sources`, ...(params ? [params] : [])] as const; + +export type PostSourcesMutationResult = NonNullable>>; +export type PostSourcesMutationError = unknown; + +export const usePostSources = ( + params: PostSourcesParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostSourcesMutationKey(params); + const swrFn = getPostSourcesMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたsourceの取得 + */ +export type getSourcesIdResponse = { + data: GetSourcesId200; + status: number; + headers: Headers; +}; + +export const getGetSourcesIdUrl = (id: number) => { + return `/sources/${id}`; +}; + +export const getSourcesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetSourcesIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetSourcesIdKey = (id: number) => [`/sources/${id}`] as const; + +export type GetSourcesIdQueryResult = NonNullable>>; +export type GetSourcesIdQueryError = unknown; + +export const useGetSourcesId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetSourcesIdKey(id) : null)); + const swrFn = () => getSourcesId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sourceの更新 + */ +export type putSourcesIdResponse = { + data: PutSourcesId200; + status: number; + headers: Headers; +}; + +export const getPutSourcesIdUrl = (id: number, params: PutSourcesIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/sources/${id}?${normalizedParams.toString()}` : `/sources/${id}`; +}; + +export const putSourcesId = async ( + id: number, + params: PutSourcesIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutSourcesIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutSourcesIdMutationFetcher = ( + id: number, + params: PutSourcesIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putSourcesId(id, params, options); + }; +}; +export const getPutSourcesIdMutationKey = (id: number, params: PutSourcesIdParams) => + [`/sources/${id}`, ...(params ? [params] : [])] as const; + +export type PutSourcesIdMutationResult = NonNullable>>; +export type PutSourcesIdMutationError = unknown; + +export const usePutSourcesId = ( + id: number, + params: PutSourcesIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutSourcesIdMutationKey(id, params); + const swrFn = getPutSourcesIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してsourceの削除 + */ +export type deleteSourcesIdResponse = { + data: DeleteSourcesId200; + status: number; + headers: Headers; +}; + +export const getDeleteSourcesIdUrl = (id: number) => { + return `/sources/${id}`; +}; + +export const deleteSourcesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteSourcesIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteSourcesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteSourcesId(id, options); + }; +}; +export const getDeleteSourcesIdMutationKey = (id: number) => [`/sources/${id}`] as const; + +export type DeleteSourcesIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteSourcesIdMutationError = unknown; + +export const useDeleteSourcesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteSourcesIdMutationKey(id); + const swrFn = getDeleteSourcesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sponsorの一覧の取得 + */ +export type getSponsorsResponse = { + data: Sponsor; + status: number; + headers: Headers; +}; + +export const getGetSponsorsUrl = () => { + return `/sponsors`; +}; + +export const getSponsors = async (options?: RequestInit): Promise => { + return customFetch>(getGetSponsorsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetSponsorsKey = () => [`/sponsors`] as const; + +export type GetSponsorsQueryResult = NonNullable>>; +export type GetSponsorsQueryError = unknown; + +export const useGetSponsors = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetSponsorsKey() : null)); + const swrFn = () => getSponsors(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sponsorの作成 + */ +export type postSponsorsResponse = { + data: PostSponsors200; + status: number; + headers: Headers; +}; + +export const getPostSponsorsUrl = () => { + return `/sponsors`; +}; + +export const postSponsors = async ( + sponsor?: Sponsor, + options?: RequestInit, +): Promise => { + return customFetch>(getPostSponsorsUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(sponsor), + }); +}; + +export const getPostSponsorsMutationFetcher = (options?: SecondParameter) => { + return (_: Key, { arg }: { arg: Sponsor }): Promise => { + return postSponsors(arg, options); + }; +}; +export const getPostSponsorsMutationKey = () => [`/sponsors`] as const; + +export type PostSponsorsMutationResult = NonNullable>>; +export type PostSponsorsMutationError = unknown; + +export const usePostSponsors = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Sponsor, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostSponsorsMutationKey(); + const swrFn = getPostSponsorsMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたsponsorの取得 + */ +export type getSponsorsIdResponse = { + data: Sponsor; + status: number; + headers: Headers; +}; + +export const getGetSponsorsIdUrl = (id: number) => { + return `/sponsors/${id}`; +}; + +export const getSponsorsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetSponsorsIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetSponsorsIdKey = (id: number) => [`/sponsors/${id}`] as const; + +export type GetSponsorsIdQueryResult = NonNullable>>; +export type GetSponsorsIdQueryError = unknown; + +export const useGetSponsorsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetSponsorsIdKey(id) : null)); + const swrFn = () => getSponsorsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sponsorの更新 + */ +export type putSponsorsIdResponse = { + data: PutSponsorsId200; + status: number; + headers: Headers; +}; + +export const getPutSponsorsIdUrl = (id: number) => { + return `/sponsors/${id}`; +}; + +export const putSponsorsId = async ( + id: number, + sponsor?: Sponsor, + options?: RequestInit, +): Promise => { + return customFetch>(getPutSponsorsIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(sponsor), + }); +}; + +export const getPutSponsorsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: Sponsor }): Promise => { + return putSponsorsId(id, arg, options); + }; +}; +export const getPutSponsorsIdMutationKey = (id: number) => [`/sponsors/${id}`] as const; + +export type PutSponsorsIdMutationResult = NonNullable>>; +export type PutSponsorsIdMutationError = unknown; + +export const usePutSponsorsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Sponsor, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutSponsorsIdMutationKey(id); + const swrFn = getPutSponsorsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してsponsorの削除 + */ +export type deleteSponsorsIdResponse = { + data: DeleteSponsorsId200; + status: number; + headers: Headers; +}; + +export const getDeleteSponsorsIdUrl = (id: number) => { + return `/sponsors/${id}`; +}; + +export const deleteSponsorsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteSponsorsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteSponsorsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteSponsorsId(id, options); + }; +}; +export const getDeleteSponsorsIdMutationKey = (id: number) => [`/sponsors/${id}`] as const; + +export type DeleteSponsorsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteSponsorsIdMutationError = unknown; + +export const useDeleteSponsorsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteSponsorsIdMutationKey(id); + const swrFn = getDeleteSponsorsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 年度で指定されたsponsorを取得 + */ +export type getSponsorsPeriodsYearResponse = { + data: Sponsor[]; + status: number; + headers: Headers; +}; + +export const getGetSponsorsPeriodsYearUrl = (year: number) => { + return `/sponsors/periods/${year}`; +}; + +export const getSponsorsPeriodsYear = async ( + year: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetSponsorsPeriodsYearUrl(year), { + ...options, + method: 'GET', + }); +}; + +export const getGetSponsorsPeriodsYearKey = (year: number) => + [`/sponsors/periods/${year}`] as const; + +export type GetSponsorsPeriodsYearQueryResult = NonNullable< + Awaited> +>; +export type GetSponsorsPeriodsYearQueryError = unknown; + +export const useGetSponsorsPeriodsYear = ( + year: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetSponsorsPeriodsYearKey(year) : null)); + const swrFn = () => getSponsorsPeriodsYear(year, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sponsorstyleの一覧の取得 + */ +export type getSponsorstylesResponse = { + data: GetSponsorstyles200; + status: number; + headers: Headers; +}; + +export const getGetSponsorstylesUrl = () => { + return `/sponsorstyles`; +}; + +export const getSponsorstyles = async ( + options?: RequestInit, +): Promise => { + return customFetch>(getGetSponsorstylesUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetSponsorstylesKey = () => [`/sponsorstyles`] as const; + +export type GetSponsorstylesQueryResult = NonNullable>>; +export type GetSponsorstylesQueryError = unknown; + +export const useGetSponsorstyles = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetSponsorstylesKey() : null)); + const swrFn = () => getSponsorstyles(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sponsorstyleの作成 + */ +export type postSponsorstylesResponse = { + data: PostSponsorstyles200; + status: number; + headers: Headers; +}; + +export const getPostSponsorstylesUrl = () => { + return `/sponsorstyles`; +}; + +export const postSponsorstyles = async ( + sponsorStyle?: SponsorStyle, + options?: RequestInit, +): Promise => { + return customFetch>(getPostSponsorstylesUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(sponsorStyle), + }); +}; + +export const getPostSponsorstylesMutationFetcher = ( + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: SponsorStyle }): Promise => { + return postSponsorstyles(arg, options); + }; +}; +export const getPostSponsorstylesMutationKey = () => [`/sponsorstyles`] as const; + +export type PostSponsorstylesMutationResult = NonNullable< + Awaited> +>; +export type PostSponsorstylesMutationError = unknown; + +export const usePostSponsorstyles = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + SponsorStyle, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostSponsorstylesMutationKey(); + const swrFn = getPostSponsorstylesMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたsponsorstyleの取得 + */ +export type getSponsorstylesIdResponse = { + data: GetSponsorstylesId200; + status: number; + headers: Headers; +}; + +export const getGetSponsorstylesIdUrl = (id: number) => { + return `/sponsorstyles/${id}`; +}; + +export const getSponsorstylesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetSponsorstylesIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetSponsorstylesIdKey = (id: number) => [`/sponsorstyles/${id}`] as const; + +export type GetSponsorstylesIdQueryResult = NonNullable< + Awaited> +>; +export type GetSponsorstylesIdQueryError = unknown; + +export const useGetSponsorstylesId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetSponsorstylesIdKey(id) : null)); + const swrFn = () => getSponsorstylesId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * sponsorstyleの更新 + */ +export type putSponsorstylesIdResponse = { + data: PutSponsorstylesId200; + status: number; + headers: Headers; +}; + +export const getPutSponsorstylesIdUrl = (id: number) => { + return `/sponsorstyles/${id}`; +}; + +export const putSponsorstylesId = async ( + id: number, + sponsorStyle?: SponsorStyle, + options?: RequestInit, +): Promise => { + return customFetch>(getPutSponsorstylesIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(sponsorStyle), + }); +}; + +export const getPutSponsorstylesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: SponsorStyle }): Promise => { + return putSponsorstylesId(id, arg, options); + }; +}; +export const getPutSponsorstylesIdMutationKey = (id: number) => [`/sponsorstyles/${id}`] as const; + +export type PutSponsorstylesIdMutationResult = NonNullable< + Awaited> +>; +export type PutSponsorstylesIdMutationError = unknown; + +export const usePutSponsorstylesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + SponsorStyle, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutSponsorstylesIdMutationKey(id); + const swrFn = getPutSponsorstylesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してsponsorstyleの論理削除 + */ +export type deleteSponsorstylesIdResponse = { + data: DeleteSponsorstylesId200; + status: number; + headers: Headers; +}; + +export const getDeleteSponsorstylesIdUrl = (id: number) => { + return `/sponsorstyles/${id}`; +}; + +export const deleteSponsorstylesId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteSponsorstylesIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteSponsorstylesIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteSponsorstylesId(id, options); + }; +}; +export const getDeleteSponsorstylesIdMutationKey = (id: number) => + [`/sponsorstyles/${id}`] as const; + +export type DeleteSponsorstylesIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteSponsorstylesIdMutationError = unknown; + +export const useDeleteSponsorstylesId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteSponsorstylesIdMutationKey(id); + const swrFn = getDeleteSponsorstylesIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * teacherの一覧を取得 + */ +export type getTeachersResponse = { + data: void; + status: number; + headers: Headers; +}; + +export const getGetTeachersUrl = () => { + return `/teachers`; +}; + +export const getTeachers = async (options?: RequestInit): Promise => { + return customFetch>(getGetTeachersUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetTeachersKey = () => [`/teachers`] as const; + +export type GetTeachersQueryResult = NonNullable>>; +export type GetTeachersQueryError = unknown; + +export const useGetTeachers = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetTeachersKey() : null)); + const swrFn = () => getTeachers(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * teacherの作成 + */ +export type postTeachersResponse = { + data: PostTeachers200; + status: number; + headers: Headers; +}; + +export const getPostTeachersUrl = (params: PostTeachersParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/teachers?${normalizedParams.toString()}` : `/teachers`; +}; + +export const postTeachers = async ( + params: PostTeachersParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostTeachersUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostTeachersMutationFetcher = ( + params: PostTeachersParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postTeachers(params, options); + }; +}; +export const getPostTeachersMutationKey = (params: PostTeachersParams) => + [`/teachers`, ...(params ? [params] : [])] as const; + +export type PostTeachersMutationResult = NonNullable>>; +export type PostTeachersMutationError = unknown; + +export const usePostTeachers = ( + params: PostTeachersParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostTeachersMutationKey(params); + const swrFn = getPostTeachersMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * teacherの複数削除 + */ +export type deleteTeachersDeleteResponse = { + data: DeleteTeachersDelete200; + status: number; + headers: Headers; +}; + +export const getDeleteTeachersDeleteUrl = () => { + return `/teachers/delete`; +}; + +export const deleteTeachersDelete = async ( + destroyTeacherIDs?: DestroyTeacherIDs, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteTeachersDeleteUrl(), { + ...options, + method: 'DELETE', + headers: { 'Content-Type': '*/*', ...options?.headers }, + body: JSON.stringify(destroyTeacherIDs), + }); +}; + +export const getDeleteTeachersDeleteMutationFetcher = ( + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: DestroyTeacherIDs }): Promise => { + return deleteTeachersDelete(arg, options); + }; +}; +export const getDeleteTeachersDeleteMutationKey = () => [`/teachers/delete`] as const; + +export type DeleteTeachersDeleteMutationResult = NonNullable< + Awaited> +>; +export type DeleteTeachersDeleteMutationError = unknown; + +export const useDeleteTeachersDelete = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + DestroyTeacherIDs, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteTeachersDeleteMutationKey(); + const swrFn = getDeleteTeachersDeleteMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたteacherの取得 + */ +export type getTeachersIdResponse = { + data: GetTeachersId200; + status: number; + headers: Headers; +}; + +export const getGetTeachersIdUrl = (id: number) => { + return `/teachers/${id}`; +}; + +export const getTeachersId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetTeachersIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetTeachersIdKey = (id: number) => [`/teachers/${id}`] as const; + +export type GetTeachersIdQueryResult = NonNullable>>; +export type GetTeachersIdQueryError = unknown; + +export const useGetTeachersId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetTeachersIdKey(id) : null)); + const swrFn = () => getTeachersId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * teacherの更新 + */ +export type putTeachersIdResponse = { + data: PutTeachersId200; + status: number; + headers: Headers; +}; + +export const getPutTeachersIdUrl = (id: number, params: PutTeachersIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size + ? `/teachers/${id}?${normalizedParams.toString()}` + : `/teachers/${id}`; +}; + +export const putTeachersId = async ( + id: number, + params: PutTeachersIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutTeachersIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutTeachersIdMutationFetcher = ( + id: number, + params: PutTeachersIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putTeachersId(id, params, options); + }; +}; +export const getPutTeachersIdMutationKey = (id: number, params: PutTeachersIdParams) => + [`/teachers/${id}`, ...(params ? [params] : [])] as const; + +export type PutTeachersIdMutationResult = NonNullable>>; +export type PutTeachersIdMutationError = unknown; + +export const usePutTeachersId = ( + id: number, + params: PutTeachersIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutTeachersIdMutationKey(id, params); + const swrFn = getPutTeachersIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してteacherの削除 + */ +export type deleteTeachersIdResponse = { + data: DeleteTeachersId200; + status: number; + headers: Headers; +}; + +export const getDeleteTeachersIdUrl = (id: number) => { + return `/teachers/${id}`; +}; + +export const deleteTeachersId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteTeachersIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteTeachersIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteTeachersId(id, options); + }; +}; +export const getDeleteTeachersIdMutationKey = (id: number) => [`/teachers/${id}`] as const; + +export type DeleteTeachersIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteTeachersIdMutationError = unknown; + +export const useDeleteTeachersId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteTeachersIdMutationKey(id); + const swrFn = getDeleteTeachersIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 募金登録済みのteacherのidを取得 + */ +export type getTeachersFundRegisteredYearResponse = { + data: GetTeachersFundRegisteredYear200; + status: number; + headers: Headers; +}; + +export const getGetTeachersFundRegisteredYearUrl = (year: number) => { + return `/teachers/fundRegistered/${year}`; +}; + +export const getTeachersFundRegisteredYear = async ( + year: number, + options?: RequestInit, +): Promise => { + return customFetch>( + getGetTeachersFundRegisteredYearUrl(year), + { + ...options, + method: 'GET', + }, + ); +}; + +export const getGetTeachersFundRegisteredYearKey = (year: number) => + [`/teachers/fundRegistered/${year}`] as const; + +export type GetTeachersFundRegisteredYearQueryResult = NonNullable< + Awaited> +>; +export type GetTeachersFundRegisteredYearQueryError = unknown; + +export const useGetTeachersFundRegisteredYear = ( + year: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!year; + const swrKey = + swrOptions?.swrKey ?? (() => (isEnabled ? getGetTeachersFundRegisteredYearKey(year) : null)); + const swrFn = () => getTeachersFundRegisteredYear(year, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * userの一覧を取得 + */ +export type getUsersResponse = { + data: void; + status: number; + headers: Headers; +}; + +export const getGetUsersUrl = () => { + return `/users`; +}; + +export const getUsers = async (options?: RequestInit): Promise => { + return customFetch>(getGetUsersUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetUsersKey = () => [`/users`] as const; + +export type GetUsersQueryResult = NonNullable>>; +export type GetUsersQueryError = unknown; + +export const useGetUsers = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetUsersKey() : null)); + const swrFn = () => getUsers(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * userの作成 + */ +export type postUsersResponse = { + data: PostUsers200; + status: number; + headers: Headers; +}; + +export const getPostUsersUrl = (params: PostUsersParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/users?${normalizedParams.toString()}` : `/users`; +}; + +export const postUsers = async ( + params: PostUsersParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostUsersUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostUsersMutationFetcher = ( + params: PostUsersParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postUsers(params, options); + }; +}; +export const getPostUsersMutationKey = (params: PostUsersParams) => + [`/users`, ...(params ? [params] : [])] as const; + +export type PostUsersMutationResult = NonNullable>>; +export type PostUsersMutationError = unknown; + +export const usePostUsers = ( + params: PostUsersParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostUsersMutationKey(params); + const swrFn = getPostUsersMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * userの複数作成 + */ +export type deleteUsersDeleteResponse = { + data: DeleteUsersDelete200; + status: number; + headers: Headers; +}; + +export const getDeleteUsersDeleteUrl = () => { + return `/users/delete`; +}; + +export const deleteUsersDelete = async ( + destroyUserIDs?: DestroyUserIDs, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteUsersDeleteUrl(), { + ...options, + method: 'DELETE', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(destroyUserIDs), + }); +}; + +export const getDeleteUsersDeleteMutationFetcher = ( + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: DestroyUserIDs }): Promise => { + return deleteUsersDelete(arg, options); + }; +}; +export const getDeleteUsersDeleteMutationKey = () => [`/users/delete`] as const; + +export type DeleteUsersDeleteMutationResult = NonNullable< + Awaited> +>; +export type DeleteUsersDeleteMutationError = unknown; + +export const useDeleteUsersDelete = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + DestroyUserIDs, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteUsersDeleteMutationKey(); + const swrFn = getDeleteUsersDeleteMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたuserの取得 + */ +export type getUsersIdResponse = { + data: GetUsersId200; + status: number; + headers: Headers; +}; + +export const getGetUsersIdUrl = (id: number) => { + return `/users/${id}`; +}; + +export const getUsersId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetUsersIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetUsersIdKey = (id: number) => [`/users/${id}`] as const; + +export type GetUsersIdQueryResult = NonNullable>>; +export type GetUsersIdQueryError = unknown; + +export const useGetUsersId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetUsersIdKey(id) : null)); + const swrFn = () => getUsersId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * userの更新 + */ +export type putUsersIdResponse = { + data: PutUsersId200; + status: number; + headers: Headers; +}; + +export const getPutUsersIdUrl = (id: number, params: PutUsersIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/users/${id}?${normalizedParams.toString()}` : `/users/${id}`; +}; + +export const putUsersId = async ( + id: number, + params: PutUsersIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutUsersIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutUsersIdMutationFetcher = ( + id: number, + params: PutUsersIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putUsersId(id, params, options); + }; +}; +export const getPutUsersIdMutationKey = (id: number, params: PutUsersIdParams) => + [`/users/${id}`, ...(params ? [params] : [])] as const; + +export type PutUsersIdMutationResult = NonNullable>>; +export type PutUsersIdMutationError = unknown; + +export const usePutUsersId = ( + id: number, + params: PutUsersIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutUsersIdMutationKey(id, params); + const swrFn = getPutUsersIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してuserの削除 + */ +export type deleteUsersIdResponse = { + data: DeleteUsersId200; + status: number; + headers: Headers; +}; + +export const getDeleteUsersIdUrl = (id: number) => { + return `/users/${id}`; +}; + +export const deleteUsersId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteUsersIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteUsersIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteUsersId(id, options); + }; +}; +export const getDeleteUsersIdMutationKey = (id: number) => [`/users/${id}`] as const; + +export type DeleteUsersIdMutationResult = NonNullable>>; +export type DeleteUsersIdMutationError = unknown; + +export const useDeleteUsersId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteUsersIdMutationKey(id); + const swrFn = getDeleteUsersIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * yearの一覧の取得 + */ +export type getYearsResponse = { + data: YearPeriods[]; + status: number; + headers: Headers; +}; + +export const getGetYearsUrl = () => { + return `/years`; +}; + +export const getYears = async (options?: RequestInit): Promise => { + return customFetch>(getGetYearsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetYearsKey = () => [`/years`] as const; + +export type GetYearsQueryResult = NonNullable>>; +export type GetYearsQueryError = unknown; + +export const useGetYears = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetYearsKey() : null)); + const swrFn = () => getYears(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * yearの作成 + */ +export type postYearsResponse = { + data: PostYears200; + status: number; + headers: Headers; +}; + +export const getPostYearsUrl = (params: PostYearsParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/years?${normalizedParams.toString()}` : `/years`; +}; + +export const postYears = async ( + params: PostYearsParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPostYearsUrl(params), { + ...options, + method: 'POST', + }); +}; + +export const getPostYearsMutationFetcher = ( + params: PostYearsParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return postYears(params, options); + }; +}; +export const getPostYearsMutationKey = (params: PostYearsParams) => + [`/years`, ...(params ? [params] : [])] as const; + +export type PostYearsMutationResult = NonNullable>>; +export type PostYearsMutationError = unknown; + +export const usePostYears = ( + params: PostYearsParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostYearsMutationKey(params); + const swrFn = getPostYearsMutationFetcher(params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDで指定されたyearの取得 + */ +export type getYearsIdResponse = { + data: YearPeriods; + status: number; + headers: Headers; +}; + +export const getGetYearsIdUrl = (id: number) => { + return `/years/${id}`; +}; + +export const getYearsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getGetYearsIdUrl(id), { + ...options, + method: 'GET', + }); +}; + +export const getGetYearsIdKey = (id: number) => [`/years/${id}`] as const; + +export type GetYearsIdQueryResult = NonNullable>>; +export type GetYearsIdQueryError = unknown; + +export const useGetYearsId = ( + id: number, + options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false && !!id; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetYearsIdKey(id) : null)); + const swrFn = () => getYearsId(id, requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * yearの更新 + */ +export type putYearsIdResponse = { + data: PutYearsId200; + status: number; + headers: Headers; +}; + +export const getPutYearsIdUrl = (id: number, params: PutYearsIdParams) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()); + } + }); + + return normalizedParams.size ? `/years/${id}?${normalizedParams.toString()}` : `/years/${id}`; +}; + +export const putYearsId = async ( + id: number, + params: PutYearsIdParams, + options?: RequestInit, +): Promise => { + return customFetch>(getPutYearsIdUrl(id, params), { + ...options, + method: 'PUT', + }); +}; + +export const getPutYearsIdMutationFetcher = ( + id: number, + params: PutYearsIdParams, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return putYearsId(id, params, options); + }; +}; +export const getPutYearsIdMutationKey = (id: number, params: PutYearsIdParams) => + [`/years/${id}`, ...(params ? [params] : [])] as const; + +export type PutYearsIdMutationResult = NonNullable>>; +export type PutYearsIdMutationError = unknown; + +export const usePutYearsId = ( + id: number, + params: PutYearsIdParams, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutYearsIdMutationKey(id, params); + const swrFn = getPutYearsIdMutationFetcher(id, params, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してyearの削除 + */ +export type deleteYearsIdResponse = { + data: DeleteYearsId200; + status: number; + headers: Headers; +}; + +export const getDeleteYearsIdUrl = (id: number) => { + return `/years/${id}`; +}; + +export const deleteYearsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteYearsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteYearsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteYearsId(id, options); + }; +}; +export const getDeleteYearsIdMutationKey = (id: number) => [`/years/${id}`] as const; + +export type DeleteYearsIdMutationResult = NonNullable>>; +export type DeleteYearsIdMutationError = unknown; + +export const useDeleteYearsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteYearsIdMutationKey(id); + const swrFn = getDeleteYearsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * 年度一覧の取得 + */ +export type getYearsPeriodsResponse = { + data: YearPeriods[]; + status: number; + headers: Headers; +}; + +export const getGetYearsPeriodsUrl = () => { + return `/years/periods`; +}; + +export const getYearsPeriods = async (options?: RequestInit): Promise => { + return customFetch>(getGetYearsPeriodsUrl(), { + ...options, + method: 'GET', + }); +}; + +export const getGetYearsPeriodsKey = () => [`/years/periods`] as const; + +export type GetYearsPeriodsQueryResult = NonNullable>>; +export type GetYearsPeriodsQueryError = unknown; + +export const useGetYearsPeriods = (options?: { + swr?: SWRConfiguration>, TError> & { + swrKey?: Key; + enabled?: boolean; + }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const isEnabled = swrOptions?.enabled !== false; + const swrKey = swrOptions?.swrKey ?? (() => (isEnabled ? getGetYearsPeriodsKey() : null)); + const swrFn = () => getYearsPeriods(requestOptions); + + const query = useSwr>, TError>(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * year_periodsの作成 + */ +export type postYearsPeriodsResponse = { + data: PostYearsPeriods200; + status: number; + headers: Headers; +}; + +export const getPostYearsPeriodsUrl = () => { + return `/years/periods`; +}; + +export const postYearsPeriods = async ( + yearPeriods?: YearPeriods, + options?: RequestInit, +): Promise => { + return customFetch>(getPostYearsPeriodsUrl(), { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(yearPeriods), + }); +}; + +export const getPostYearsPeriodsMutationFetcher = ( + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: YearPeriods }): Promise => { + return postYearsPeriods(arg, options); + }; +}; +export const getPostYearsPeriodsMutationKey = () => [`/years/periods`] as const; + +export type PostYearsPeriodsMutationResult = NonNullable< + Awaited> +>; +export type PostYearsPeriodsMutationError = unknown; + +export const usePostYearsPeriods = (options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + YearPeriods, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; +}) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPostYearsPeriodsMutationKey(); + const swrFn = getPostYearsPeriodsMutationFetcher(requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * year_periodsの更新 + */ +export type putYearsPeriodsIdResponse = { + data: PutYearsPeriodsId200; + status: number; + headers: Headers; +}; + +export const getPutYearsPeriodsIdUrl = (id: number) => { + return `/years/periods/${id}`; +}; + +export const putYearsPeriodsId = async ( + id: number, + yearPeriods?: YearPeriods, + options?: RequestInit, +): Promise => { + return customFetch>(getPutYearsPeriodsIdUrl(id), { + ...options, + method: 'PUT', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify(yearPeriods), + }); +}; + +export const getPutYearsPeriodsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, { arg }: { arg: YearPeriods }): Promise => { + return putYearsPeriodsId(id, arg, options); + }; +}; +export const getPutYearsPeriodsIdMutationKey = (id: number) => [`/years/periods/${id}`] as const; + +export type PutYearsPeriodsIdMutationResult = NonNullable< + Awaited> +>; +export type PutYearsPeriodsIdMutationError = unknown; + +export const usePutYearsPeriodsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + YearPeriods, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getPutYearsPeriodsIdMutationKey(id); + const swrFn = getPutYearsPeriodsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; + +/** + * IDを指定してyear_periodsの削除 + */ +export type deleteYearsPeriodsIdResponse = { + data: DeleteYearsPeriodsId200; + status: number; + headers: Headers; +}; + +export const getDeleteYearsPeriodsIdUrl = (id: number) => { + return `/years/periods/${id}`; +}; + +export const deleteYearsPeriodsId = async ( + id: number, + options?: RequestInit, +): Promise => { + return customFetch>(getDeleteYearsPeriodsIdUrl(id), { + ...options, + method: 'DELETE', + }); +}; + +export const getDeleteYearsPeriodsIdMutationFetcher = ( + id: number, + options?: SecondParameter, +) => { + return (_: Key, __: { arg: Arguments }): Promise => { + return deleteYearsPeriodsId(id, options); + }; +}; +export const getDeleteYearsPeriodsIdMutationKey = (id: number) => [`/years/periods/${id}`] as const; + +export type DeleteYearsPeriodsIdMutationResult = NonNullable< + Awaited> +>; +export type DeleteYearsPeriodsIdMutationError = unknown; + +export const useDeleteYearsPeriodsId = ( + id: number, + options?: { + swr?: SWRMutationConfiguration< + Awaited>, + TError, + Key, + Arguments, + Awaited> + > & { swrKey?: string }; + request?: SecondParameter; + }, +) => { + const { swr: swrOptions, request: requestOptions } = options ?? {}; + + const swrKey = swrOptions?.swrKey ?? getDeleteYearsPeriodsIdMutationKey(id); + const swrFn = getDeleteYearsPeriodsIdMutationFetcher(id, requestOptions); + + const query = useSWRMutation(swrKey, swrFn, swrOptions); + + return { + swrKey, + ...query, + }; +}; diff --git a/view/next-project/src/generated/model/activity.ts b/view/next-project/src/generated/model/activity.ts new file mode 100644 index 000000000..599d5b92f --- /dev/null +++ b/view/next-project/src/generated/model/activity.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface Activity { + design?: number; + expense: number; + feature: string; + isDone: boolean; + remark: string; + sponsorID: number; + url?: string; + userID: number; +} diff --git a/view/next-project/src/generated/model/activityInformation.ts b/view/next-project/src/generated/model/activityInformation.ts new file mode 100644 index 000000000..e0f80d6b9 --- /dev/null +++ b/view/next-project/src/generated/model/activityInformation.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface ActivityInformation { + activityID?: number; + bucketName?: string; + designProgress?: number; + fileInformation?: string; + fileName?: string; + fileType?: string; +} diff --git a/view/next-project/src/generated/model/activityStyle.ts b/view/next-project/src/generated/model/activityStyle.ts new file mode 100644 index 000000000..094388700 --- /dev/null +++ b/view/next-project/src/generated/model/activityStyle.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface ActivityStyle { + activityID: number; + sponsorStyleID: number; +} diff --git a/view/next-project/src/generated/model/deleteActivitiesId200.ts b/view/next-project/src/generated/model/deleteActivitiesId200.ts new file mode 100644 index 000000000..e5c3ec6c1 --- /dev/null +++ b/view/next-project/src/generated/model/deleteActivitiesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteActivitiesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteActivityInformationsId200.ts b/view/next-project/src/generated/model/deleteActivityInformationsId200.ts new file mode 100644 index 000000000..b0bb8a28b --- /dev/null +++ b/view/next-project/src/generated/model/deleteActivityInformationsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteActivityInformationsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteActivityStylesId200.ts b/view/next-project/src/generated/model/deleteActivityStylesId200.ts new file mode 100644 index 000000000..5d86e8cde --- /dev/null +++ b/view/next-project/src/generated/model/deleteActivityStylesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteActivityStylesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteBudgetsId200.ts b/view/next-project/src/generated/model/deleteBudgetsId200.ts new file mode 100644 index 000000000..7318000fd --- /dev/null +++ b/view/next-project/src/generated/model/deleteBudgetsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteBudgetsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteBureausId200.ts b/view/next-project/src/generated/model/deleteBureausId200.ts new file mode 100644 index 000000000..2050b6ae8 --- /dev/null +++ b/view/next-project/src/generated/model/deleteBureausId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteBureausId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteDepartmentsId200.ts b/view/next-project/src/generated/model/deleteDepartmentsId200.ts new file mode 100644 index 000000000..20fe2b7a2 --- /dev/null +++ b/view/next-project/src/generated/model/deleteDepartmentsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteDepartmentsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteDivisionsId200.ts b/view/next-project/src/generated/model/deleteDivisionsId200.ts new file mode 100644 index 000000000..2809825eb --- /dev/null +++ b/view/next-project/src/generated/model/deleteDivisionsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteDivisionsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteExpensesId200.ts b/view/next-project/src/generated/model/deleteExpensesId200.ts new file mode 100644 index 000000000..4e3b912eb --- /dev/null +++ b/view/next-project/src/generated/model/deleteExpensesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteExpensesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteFestivalItemsId200.ts b/view/next-project/src/generated/model/deleteFestivalItemsId200.ts new file mode 100644 index 000000000..7fc934aa6 --- /dev/null +++ b/view/next-project/src/generated/model/deleteFestivalItemsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteFestivalItemsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteFinancailRecordsId200.ts b/view/next-project/src/generated/model/deleteFinancailRecordsId200.ts new file mode 100644 index 000000000..8fa64774e --- /dev/null +++ b/view/next-project/src/generated/model/deleteFinancailRecordsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteFinancailRecordsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteFundInformationsId200.ts b/view/next-project/src/generated/model/deleteFundInformationsId200.ts new file mode 100644 index 000000000..3fb400d7f --- /dev/null +++ b/view/next-project/src/generated/model/deleteFundInformationsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteFundInformationsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteReceiptsId200.ts b/view/next-project/src/generated/model/deleteReceiptsId200.ts new file mode 100644 index 000000000..b35a6243e --- /dev/null +++ b/view/next-project/src/generated/model/deleteReceiptsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteReceiptsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteSourcesId200.ts b/view/next-project/src/generated/model/deleteSourcesId200.ts new file mode 100644 index 000000000..cf74d8036 --- /dev/null +++ b/view/next-project/src/generated/model/deleteSourcesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteSourcesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteSponsorsId200.ts b/view/next-project/src/generated/model/deleteSponsorsId200.ts new file mode 100644 index 000000000..578b81e93 --- /dev/null +++ b/view/next-project/src/generated/model/deleteSponsorsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteSponsorsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteSponsorstylesId200.ts b/view/next-project/src/generated/model/deleteSponsorstylesId200.ts new file mode 100644 index 000000000..8da57c6dd --- /dev/null +++ b/view/next-project/src/generated/model/deleteSponsorstylesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteSponsorstylesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteTeachersDelete200.ts b/view/next-project/src/generated/model/deleteTeachersDelete200.ts new file mode 100644 index 000000000..4852486ce --- /dev/null +++ b/view/next-project/src/generated/model/deleteTeachersDelete200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteTeachersDelete200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteTeachersId200.ts b/view/next-project/src/generated/model/deleteTeachersId200.ts new file mode 100644 index 000000000..992ea1c74 --- /dev/null +++ b/view/next-project/src/generated/model/deleteTeachersId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteTeachersId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteUsersDelete200.ts b/view/next-project/src/generated/model/deleteUsersDelete200.ts new file mode 100644 index 000000000..ffed7d1d4 --- /dev/null +++ b/view/next-project/src/generated/model/deleteUsersDelete200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteUsersDelete200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteUsersId200.ts b/view/next-project/src/generated/model/deleteUsersId200.ts new file mode 100644 index 000000000..a9cb8de4f --- /dev/null +++ b/view/next-project/src/generated/model/deleteUsersId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteUsersId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteYearsId200.ts b/view/next-project/src/generated/model/deleteYearsId200.ts new file mode 100644 index 000000000..df1cf1fa0 --- /dev/null +++ b/view/next-project/src/generated/model/deleteYearsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteYearsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/deleteYearsPeriodsId200.ts b/view/next-project/src/generated/model/deleteYearsPeriodsId200.ts new file mode 100644 index 000000000..7eb341215 --- /dev/null +++ b/view/next-project/src/generated/model/deleteYearsPeriodsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type DeleteYearsPeriodsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/destroyTeacherIDs.ts b/view/next-project/src/generated/model/destroyTeacherIDs.ts new file mode 100644 index 000000000..422a25902 --- /dev/null +++ b/view/next-project/src/generated/model/destroyTeacherIDs.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface DestroyTeacherIDs { + deleteIDs: number[]; +} diff --git a/view/next-project/src/generated/model/destroyUserIDs.ts b/view/next-project/src/generated/model/destroyUserIDs.ts new file mode 100644 index 000000000..cde9b41dd --- /dev/null +++ b/view/next-project/src/generated/model/destroyUserIDs.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface DestroyUserIDs { + deleteIDs: number[]; +} diff --git a/view/next-project/src/generated/model/division.ts b/view/next-project/src/generated/model/division.ts new file mode 100644 index 000000000..6bc5d4850 --- /dev/null +++ b/view/next-project/src/generated/model/division.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface Division { + financialRecordID: number; + name: string; +} diff --git a/view/next-project/src/generated/model/divisionDetails.ts b/view/next-project/src/generated/model/divisionDetails.ts new file mode 100644 index 000000000..e4045d3f2 --- /dev/null +++ b/view/next-project/src/generated/model/divisionDetails.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ +import type { DivisionWithBalance } from './divisionWithBalance'; +import type { Total } from './total'; + +export interface DivisionDetails { + divisions?: DivisionWithBalance[]; + total?: Total; +} diff --git a/view/next-project/src/generated/model/divisionWithBalance.ts b/view/next-project/src/generated/model/divisionWithBalance.ts new file mode 100644 index 000000000..16a176295 --- /dev/null +++ b/view/next-project/src/generated/model/divisionWithBalance.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface DivisionWithBalance { + balance?: number; + budget?: number; + expense?: number; + financialRecord?: string; + id?: number; + name?: string; +} diff --git a/view/next-project/src/generated/model/festivalItem.ts b/view/next-project/src/generated/model/festivalItem.ts new file mode 100644 index 000000000..b8233d8ab --- /dev/null +++ b/view/next-project/src/generated/model/festivalItem.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface FestivalItem { + amount: number; + divisionId: number; + memo?: string; + name: string; +} diff --git a/view/next-project/src/generated/model/festivalItemDetails.ts b/view/next-project/src/generated/model/festivalItemDetails.ts new file mode 100644 index 000000000..f0fc04107 --- /dev/null +++ b/view/next-project/src/generated/model/festivalItemDetails.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ +import type { FestivalItemWithBalance } from './festivalItemWithBalance'; +import type { Total } from './total'; + +export interface FestivalItemDetails { + festivalItems?: FestivalItemWithBalance[]; + total?: Total; +} diff --git a/view/next-project/src/generated/model/festivalItemWithBalance.ts b/view/next-project/src/generated/model/festivalItemWithBalance.ts new file mode 100644 index 000000000..441e36c0d --- /dev/null +++ b/view/next-project/src/generated/model/festivalItemWithBalance.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface FestivalItemWithBalance { + balance?: number; + budget?: number; + division?: string; + expense?: number; + financialRecord?: string; + id?: number; + memo?: string; + name?: string; +} diff --git a/view/next-project/src/generated/model/financialRecord.ts b/view/next-project/src/generated/model/financialRecord.ts new file mode 100644 index 000000000..293e29882 --- /dev/null +++ b/view/next-project/src/generated/model/financialRecord.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface FinancialRecord { + name: string; + year_id: number; +} diff --git a/view/next-project/src/generated/model/financialRecordDetails.ts b/view/next-project/src/generated/model/financialRecordDetails.ts new file mode 100644 index 000000000..d5a67dba9 --- /dev/null +++ b/view/next-project/src/generated/model/financialRecordDetails.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ +import type { FinancialRecordWithBalance } from './financialRecordWithBalance'; +import type { Total } from './total'; + +export interface FinancialRecordDetails { + financialRecords?: FinancialRecordWithBalance[]; + total?: Total; +} diff --git a/view/next-project/src/generated/model/financialRecordWithBalance.ts b/view/next-project/src/generated/model/financialRecordWithBalance.ts new file mode 100644 index 000000000..b22f880a7 --- /dev/null +++ b/view/next-project/src/generated/model/financialRecordWithBalance.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface FinancialRecordWithBalance { + balance?: number; + budget?: number; + expense?: number; + id?: number; + name?: string; + year?: number; +} diff --git a/view/next-project/src/generated/model/getActivities200.ts b/view/next-project/src/generated/model/getActivities200.ts new file mode 100644 index 000000000..2f3343431 --- /dev/null +++ b/view/next-project/src/generated/model/getActivities200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivities200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivitiesDetails200.ts b/view/next-project/src/generated/model/getActivitiesDetails200.ts new file mode 100644 index 000000000..5d532e20f --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivitiesDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivitiesDetailsYear200.ts b/view/next-project/src/generated/model/getActivitiesDetailsYear200.ts new file mode 100644 index 000000000..f853f91b8 --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesDetailsYear200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivitiesDetailsYear200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivitiesFilteredDetails200.ts b/view/next-project/src/generated/model/getActivitiesFilteredDetails200.ts new file mode 100644 index 000000000..e7ea2907b --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesFilteredDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivitiesFilteredDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivitiesFilteredDetailsIsDone.ts b/view/next-project/src/generated/model/getActivitiesFilteredDetailsIsDone.ts new file mode 100644 index 000000000..a3be0a712 --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesFilteredDetailsIsDone.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivitiesFilteredDetailsIsDone = + (typeof GetActivitiesFilteredDetailsIsDone)[keyof typeof GetActivitiesFilteredDetailsIsDone]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const GetActivitiesFilteredDetailsIsDone = { + all: 'all', + true: true, + false: false, +} as const; diff --git a/view/next-project/src/generated/model/getActivitiesFilteredDetailsParams.ts b/view/next-project/src/generated/model/getActivitiesFilteredDetailsParams.ts new file mode 100644 index 000000000..997f354cf --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesFilteredDetailsParams.ts @@ -0,0 +1,23 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ +import type { GetActivitiesFilteredDetailsIsDone } from './getActivitiesFilteredDetailsIsDone'; + +export type GetActivitiesFilteredDetailsParams = { + /** + * 完了状態を表すフラグ + */ + is_done?: GetActivitiesFilteredDetailsIsDone; + /** + * スポンサースタイルIDの配列 + */ + sponsor_style_id?: number[]; + /** + * キーワード検索用の文字列 + */ + keyword?: string; +}; diff --git a/view/next-project/src/generated/model/getActivitiesFilteredDetailsYear200.ts b/view/next-project/src/generated/model/getActivitiesFilteredDetailsYear200.ts new file mode 100644 index 000000000..3447a1cae --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesFilteredDetailsYear200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivitiesFilteredDetailsYear200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivitiesFilteredDetailsYearIsDone.ts b/view/next-project/src/generated/model/getActivitiesFilteredDetailsYearIsDone.ts new file mode 100644 index 000000000..fd5402e58 --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesFilteredDetailsYearIsDone.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivitiesFilteredDetailsYearIsDone = + (typeof GetActivitiesFilteredDetailsYearIsDone)[keyof typeof GetActivitiesFilteredDetailsYearIsDone]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const GetActivitiesFilteredDetailsYearIsDone = { + all: 'all', + true: true, + false: false, +} as const; diff --git a/view/next-project/src/generated/model/getActivitiesFilteredDetailsYearParams.ts b/view/next-project/src/generated/model/getActivitiesFilteredDetailsYearParams.ts new file mode 100644 index 000000000..f78d9e3ce --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesFilteredDetailsYearParams.ts @@ -0,0 +1,23 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ +import type { GetActivitiesFilteredDetailsYearIsDone } from './getActivitiesFilteredDetailsYearIsDone'; + +export type GetActivitiesFilteredDetailsYearParams = { + /** + * 完了状態を表すフラグ + */ + is_done?: GetActivitiesFilteredDetailsYearIsDone; + /** + * スポンサースタイルIDの配列 + */ + sponsor_style_id?: number[]; + /** + * キーワード検索用の文字列 + */ + keyword?: string; +}; diff --git a/view/next-project/src/generated/model/getActivitiesId200.ts b/view/next-project/src/generated/model/getActivitiesId200.ts new file mode 100644 index 000000000..155875dd6 --- /dev/null +++ b/view/next-project/src/generated/model/getActivitiesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivitiesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivityInformations200.ts b/view/next-project/src/generated/model/getActivityInformations200.ts new file mode 100644 index 000000000..054183ef9 --- /dev/null +++ b/view/next-project/src/generated/model/getActivityInformations200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivityInformations200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivityInformationsId200.ts b/view/next-project/src/generated/model/getActivityInformationsId200.ts new file mode 100644 index 000000000..e7c1468b6 --- /dev/null +++ b/view/next-project/src/generated/model/getActivityInformationsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivityInformationsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivityStyles200.ts b/view/next-project/src/generated/model/getActivityStyles200.ts new file mode 100644 index 000000000..a02d00c2a --- /dev/null +++ b/view/next-project/src/generated/model/getActivityStyles200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivityStyles200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getActivityStylesId200.ts b/view/next-project/src/generated/model/getActivityStylesId200.ts new file mode 100644 index 000000000..a402c8b54 --- /dev/null +++ b/view/next-project/src/generated/model/getActivityStylesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetActivityStylesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getBudgets200.ts b/view/next-project/src/generated/model/getBudgets200.ts new file mode 100644 index 000000000..e963284dd --- /dev/null +++ b/view/next-project/src/generated/model/getBudgets200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetBudgets200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getBudgetsDetails200.ts b/view/next-project/src/generated/model/getBudgetsDetails200.ts new file mode 100644 index 000000000..3ddfb740d --- /dev/null +++ b/view/next-project/src/generated/model/getBudgetsDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetBudgetsDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getBudgetsDetailsYear200.ts b/view/next-project/src/generated/model/getBudgetsDetailsYear200.ts new file mode 100644 index 000000000..a11110c26 --- /dev/null +++ b/view/next-project/src/generated/model/getBudgetsDetailsYear200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetBudgetsDetailsYear200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getBudgetsId200.ts b/view/next-project/src/generated/model/getBudgetsId200.ts new file mode 100644 index 000000000..0aecf1077 --- /dev/null +++ b/view/next-project/src/generated/model/getBudgetsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetBudgetsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getBudgetsIdDetails200.ts b/view/next-project/src/generated/model/getBudgetsIdDetails200.ts new file mode 100644 index 000000000..4c3b03053 --- /dev/null +++ b/view/next-project/src/generated/model/getBudgetsIdDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetBudgetsIdDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getBureaus200.ts b/view/next-project/src/generated/model/getBureaus200.ts new file mode 100644 index 000000000..73912a88a --- /dev/null +++ b/view/next-project/src/generated/model/getBureaus200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetBureaus200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getBureausId200.ts b/view/next-project/src/generated/model/getBureausId200.ts new file mode 100644 index 000000000..07fd6bb40 --- /dev/null +++ b/view/next-project/src/generated/model/getBureausId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetBureausId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getDepartments200.ts b/view/next-project/src/generated/model/getDepartments200.ts new file mode 100644 index 000000000..80eb74a4e --- /dev/null +++ b/view/next-project/src/generated/model/getDepartments200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetDepartments200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getDepartmentsId200.ts b/view/next-project/src/generated/model/getDepartmentsId200.ts new file mode 100644 index 000000000..0b800d9df --- /dev/null +++ b/view/next-project/src/generated/model/getDepartmentsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetDepartmentsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getExpenses200.ts b/view/next-project/src/generated/model/getExpenses200.ts new file mode 100644 index 000000000..9f4c76a1c --- /dev/null +++ b/view/next-project/src/generated/model/getExpenses200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetExpenses200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getExpensesDetails200.ts b/view/next-project/src/generated/model/getExpensesDetails200.ts new file mode 100644 index 000000000..d83bbd93f --- /dev/null +++ b/view/next-project/src/generated/model/getExpensesDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetExpensesDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getExpensesDetailsYear200.ts b/view/next-project/src/generated/model/getExpensesDetailsYear200.ts new file mode 100644 index 000000000..43d33640d --- /dev/null +++ b/view/next-project/src/generated/model/getExpensesDetailsYear200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetExpensesDetailsYear200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getExpensesFiscalyearYear200.ts b/view/next-project/src/generated/model/getExpensesFiscalyearYear200.ts new file mode 100644 index 000000000..824734ecc --- /dev/null +++ b/view/next-project/src/generated/model/getExpensesFiscalyearYear200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetExpensesFiscalyearYear200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getExpensesId200.ts b/view/next-project/src/generated/model/getExpensesId200.ts new file mode 100644 index 000000000..be6c0fb60 --- /dev/null +++ b/view/next-project/src/generated/model/getExpensesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetExpensesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getExpensesIdDetails200.ts b/view/next-project/src/generated/model/getExpensesIdDetails200.ts new file mode 100644 index 000000000..6902c99c6 --- /dev/null +++ b/view/next-project/src/generated/model/getExpensesIdDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetExpensesIdDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getFundInformations200.ts b/view/next-project/src/generated/model/getFundInformations200.ts new file mode 100644 index 000000000..834a2b46c --- /dev/null +++ b/view/next-project/src/generated/model/getFundInformations200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetFundInformations200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getFundInformationsDetails200.ts b/view/next-project/src/generated/model/getFundInformationsDetails200.ts new file mode 100644 index 000000000..ea4869ff8 --- /dev/null +++ b/view/next-project/src/generated/model/getFundInformationsDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetFundInformationsDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getFundInformationsDetailsYear200.ts b/view/next-project/src/generated/model/getFundInformationsDetailsYear200.ts new file mode 100644 index 000000000..abd30c9df --- /dev/null +++ b/view/next-project/src/generated/model/getFundInformationsDetailsYear200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetFundInformationsDetailsYear200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getFundInformationsId200.ts b/view/next-project/src/generated/model/getFundInformationsId200.ts new file mode 100644 index 000000000..7457daee4 --- /dev/null +++ b/view/next-project/src/generated/model/getFundInformationsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetFundInformationsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getFundInformationsIdDetails200.ts b/view/next-project/src/generated/model/getFundInformationsIdDetails200.ts new file mode 100644 index 000000000..6473968e5 --- /dev/null +++ b/view/next-project/src/generated/model/getFundInformationsIdDetails200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetFundInformationsIdDetails200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getReceipts200.ts b/view/next-project/src/generated/model/getReceipts200.ts new file mode 100644 index 000000000..8da2a7f5e --- /dev/null +++ b/view/next-project/src/generated/model/getReceipts200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetReceipts200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getReceiptsId200.ts b/view/next-project/src/generated/model/getReceiptsId200.ts new file mode 100644 index 000000000..17baf8793 --- /dev/null +++ b/view/next-project/src/generated/model/getReceiptsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetReceiptsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getReceiptsReportsId200.ts b/view/next-project/src/generated/model/getReceiptsReportsId200.ts new file mode 100644 index 000000000..1a9ccaf4f --- /dev/null +++ b/view/next-project/src/generated/model/getReceiptsReportsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetReceiptsReportsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getSources200.ts b/view/next-project/src/generated/model/getSources200.ts new file mode 100644 index 000000000..cae2b5674 --- /dev/null +++ b/view/next-project/src/generated/model/getSources200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetSources200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getSourcesId200.ts b/view/next-project/src/generated/model/getSourcesId200.ts new file mode 100644 index 000000000..e8a73a717 --- /dev/null +++ b/view/next-project/src/generated/model/getSourcesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetSourcesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getSponsorstyles200.ts b/view/next-project/src/generated/model/getSponsorstyles200.ts new file mode 100644 index 000000000..9832b5cda --- /dev/null +++ b/view/next-project/src/generated/model/getSponsorstyles200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetSponsorstyles200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getSponsorstylesId200.ts b/view/next-project/src/generated/model/getSponsorstylesId200.ts new file mode 100644 index 000000000..d8c79b1a9 --- /dev/null +++ b/view/next-project/src/generated/model/getSponsorstylesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetSponsorstylesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getTeachersFundRegisteredYear200.ts b/view/next-project/src/generated/model/getTeachersFundRegisteredYear200.ts new file mode 100644 index 000000000..f83c474a0 --- /dev/null +++ b/view/next-project/src/generated/model/getTeachersFundRegisteredYear200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetTeachersFundRegisteredYear200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getTeachersId200.ts b/view/next-project/src/generated/model/getTeachersId200.ts new file mode 100644 index 000000000..06174abea --- /dev/null +++ b/view/next-project/src/generated/model/getTeachersId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetTeachersId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/getUsersId200.ts b/view/next-project/src/generated/model/getUsersId200.ts new file mode 100644 index 000000000..598c06446 --- /dev/null +++ b/view/next-project/src/generated/model/getUsersId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type GetUsersId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/index.ts b/view/next-project/src/generated/model/index.ts new file mode 100644 index 000000000..6dc3d36c0 --- /dev/null +++ b/view/next-project/src/generated/model/index.ts @@ -0,0 +1,148 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export * from './activity'; +export * from './activityInformation'; +export * from './activityStyle'; +export * from './deleteActivitiesId200'; +export * from './deleteActivityInformationsId200'; +export * from './deleteActivityStylesId200'; +export * from './deleteBudgetsId200'; +export * from './deleteBureausId200'; +export * from './deleteDepartmentsId200'; +export * from './deleteDivisionsId200'; +export * from './deleteExpensesId200'; +export * from './deleteFestivalItemsId200'; +export * from './deleteFinancailRecordsId200'; +export * from './deleteFundInformationsId200'; +export * from './deleteReceiptsId200'; +export * from './deleteSourcesId200'; +export * from './deleteSponsorsId200'; +export * from './deleteSponsorstylesId200'; +export * from './deleteTeachersDelete200'; +export * from './deleteTeachersId200'; +export * from './deleteUsersDelete200'; +export * from './deleteUsersId200'; +export * from './deleteYearsId200'; +export * from './deleteYearsPeriodsId200'; +export * from './destroyTeacherIDs'; +export * from './destroyUserIDs'; +export * from './division'; +export * from './divisionDetails'; +export * from './divisionWithBalance'; +export * from './festivalItem'; +export * from './festivalItemDetails'; +export * from './festivalItemWithBalance'; +export * from './financialRecord'; +export * from './financialRecordDetails'; +export * from './financialRecordWithBalance'; +export * from './getActivities200'; +export * from './getActivitiesDetails200'; +export * from './getActivitiesDetailsYear200'; +export * from './getActivitiesFilteredDetails200'; +export * from './getActivitiesFilteredDetailsIsDone'; +export * from './getActivitiesFilteredDetailsParams'; +export * from './getActivitiesFilteredDetailsYear200'; +export * from './getActivitiesFilteredDetailsYearIsDone'; +export * from './getActivitiesFilteredDetailsYearParams'; +export * from './getActivitiesId200'; +export * from './getActivityInformations200'; +export * from './getActivityInformationsId200'; +export * from './getActivityStyles200'; +export * from './getActivityStylesId200'; +export * from './getBudgets200'; +export * from './getBudgetsDetails200'; +export * from './getBudgetsDetailsYear200'; +export * from './getBudgetsId200'; +export * from './getBudgetsIdDetails200'; +export * from './getBureaus200'; +export * from './getBureausId200'; +export * from './getDepartments200'; +export * from './getDepartmentsId200'; +export * from './getExpenses200'; +export * from './getExpensesDetails200'; +export * from './getExpensesDetailsYear200'; +export * from './getExpensesFiscalyearYear200'; +export * from './getExpensesId200'; +export * from './getExpensesIdDetails200'; +export * from './getFundInformations200'; +export * from './getFundInformationsDetails200'; +export * from './getFundInformationsDetailsYear200'; +export * from './getFundInformationsId200'; +export * from './getFundInformationsIdDetails200'; +export * from './getReceipts200'; +export * from './getReceiptsId200'; +export * from './getReceiptsReportsId200'; +export * from './getSources200'; +export * from './getSourcesId200'; +export * from './getSponsorstyles200'; +export * from './getSponsorstylesId200'; +export * from './getTeachersFundRegisteredYear200'; +export * from './getTeachersId200'; +export * from './getUsersId200'; +export * from './passwordResetData'; +export * from './postActivities200'; +export * from './postActivityInformations200'; +export * from './postActivityStyles200'; +export * from './postBudgets200'; +export * from './postBudgetsParams'; +export * from './postBureaus200'; +export * from './postBureausParams'; +export * from './postDepartments200'; +export * from './postDepartmentsParams'; +export * from './postExpenses200'; +export * from './postExpensesParams'; +export * from './postFundInformations200'; +export * from './postFundInformationsParams'; +export * from './postPasswordResetId200'; +export * from './postPasswordResetIdValid200'; +export * from './postPasswordResetIdValidParams'; +export * from './postPasswordResetRequest200'; +export * from './postPasswordResetRequestParams'; +export * from './postReceipts200'; +export * from './postSources200'; +export * from './postSourcesParams'; +export * from './postSponsors200'; +export * from './postSponsorstyles200'; +export * from './postTeachers200'; +export * from './postTeachersParams'; +export * from './postUsers200'; +export * from './postUsersParams'; +export * from './postYears200'; +export * from './postYearsParams'; +export * from './postYearsPeriods200'; +export * from './putActivitiesId200'; +export * from './putActivityInformationsId200'; +export * from './putActivityStylesId200'; +export * from './putBudgetsId200'; +export * from './putBudgetsIdParams'; +export * from './putBureausId200'; +export * from './putBureausIdParams'; +export * from './putDepartmentsId200'; +export * from './putDepartmentsIdParams'; +export * from './putExpensesId200'; +export * from './putExpensesIdParams'; +export * from './putFundInformationsId200'; +export * from './putFundInformationsIdParams'; +export * from './putReceiptsId200'; +export * from './putSourcesId200'; +export * from './putSourcesIdParams'; +export * from './putSponsorsId200'; +export * from './putSponsorstylesId200'; +export * from './putTeachersId200'; +export * from './putTeachersIdParams'; +export * from './putUsersId200'; +export * from './putUsersIdParams'; +export * from './putYearsId200'; +export * from './putYearsIdParams'; +export * from './putYearsPeriodsId200'; +export * from './receipt'; +export * from './sponsor'; +export * from './sponsorStyle'; +export * from './total'; +export * from './yearPeriods'; diff --git a/view/next-project/src/generated/model/passwordResetData.ts b/view/next-project/src/generated/model/passwordResetData.ts new file mode 100644 index 000000000..6cfbce76e --- /dev/null +++ b/view/next-project/src/generated/model/passwordResetData.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface PasswordResetData { + confirmPassword?: string; + password?: string; + token?: string; +} diff --git a/view/next-project/src/generated/model/postActivities200.ts b/view/next-project/src/generated/model/postActivities200.ts new file mode 100644 index 000000000..0c8d682d0 --- /dev/null +++ b/view/next-project/src/generated/model/postActivities200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostActivities200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postActivityInformations200.ts b/view/next-project/src/generated/model/postActivityInformations200.ts new file mode 100644 index 000000000..ea76694a7 --- /dev/null +++ b/view/next-project/src/generated/model/postActivityInformations200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostActivityInformations200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postActivityStyles200.ts b/view/next-project/src/generated/model/postActivityStyles200.ts new file mode 100644 index 000000000..440339eb1 --- /dev/null +++ b/view/next-project/src/generated/model/postActivityStyles200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostActivityStyles200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postBudgets200.ts b/view/next-project/src/generated/model/postBudgets200.ts new file mode 100644 index 000000000..1b95f747f --- /dev/null +++ b/view/next-project/src/generated/model/postBudgets200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostBudgets200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postBudgetsParams.ts b/view/next-project/src/generated/model/postBudgetsParams.ts new file mode 100644 index 000000000..c66943a72 --- /dev/null +++ b/view/next-project/src/generated/model/postBudgetsParams.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostBudgetsParams = { + /** + * price + */ + price: number; + /** + * year_id + */ + year_id?: number; + /** + * source_id + */ + source_id?: number; +}; diff --git a/view/next-project/src/generated/model/postBureaus200.ts b/view/next-project/src/generated/model/postBureaus200.ts new file mode 100644 index 000000000..1e311f92b --- /dev/null +++ b/view/next-project/src/generated/model/postBureaus200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostBureaus200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postBureausParams.ts b/view/next-project/src/generated/model/postBureausParams.ts new file mode 100644 index 000000000..ce412fa47 --- /dev/null +++ b/view/next-project/src/generated/model/postBureausParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostBureausParams = { + /** + * name + */ + name: string; +}; diff --git a/view/next-project/src/generated/model/postDepartments200.ts b/view/next-project/src/generated/model/postDepartments200.ts new file mode 100644 index 000000000..d6e6ef5d0 --- /dev/null +++ b/view/next-project/src/generated/model/postDepartments200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostDepartments200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postDepartmentsParams.ts b/view/next-project/src/generated/model/postDepartmentsParams.ts new file mode 100644 index 000000000..700472b4f --- /dev/null +++ b/view/next-project/src/generated/model/postDepartmentsParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostDepartmentsParams = { + /** + * name + */ + name?: string; +}; diff --git a/view/next-project/src/generated/model/postExpenses200.ts b/view/next-project/src/generated/model/postExpenses200.ts new file mode 100644 index 000000000..a106e4623 --- /dev/null +++ b/view/next-project/src/generated/model/postExpenses200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostExpenses200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postExpensesParams.ts b/view/next-project/src/generated/model/postExpensesParams.ts new file mode 100644 index 000000000..e11dba17a --- /dev/null +++ b/view/next-project/src/generated/model/postExpensesParams.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostExpensesParams = { + /** + * name + */ + name?: string; + /** + * year_id + */ + year_id?: string; +}; diff --git a/view/next-project/src/generated/model/postFundInformations200.ts b/view/next-project/src/generated/model/postFundInformations200.ts new file mode 100644 index 000000000..ac31b731f --- /dev/null +++ b/view/next-project/src/generated/model/postFundInformations200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostFundInformations200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postFundInformationsParams.ts b/view/next-project/src/generated/model/postFundInformationsParams.ts new file mode 100644 index 000000000..c278f5483 --- /dev/null +++ b/view/next-project/src/generated/model/postFundInformationsParams.ts @@ -0,0 +1,38 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostFundInformationsParams = { + /** + * user_id + */ + user_id: number; + /** + * teacher_id + */ + teacher_id: number; + /** + * price + */ + price: number; + /** + * remark + */ + remark?: string; + /** + * is_first_check + */ + is_first_check?: boolean; + /** + * is_last_check + */ + is_last_check?: boolean; + /** + * received_at + */ + received_at?: string; +}; diff --git a/view/next-project/src/generated/model/postPasswordResetId200.ts b/view/next-project/src/generated/model/postPasswordResetId200.ts new file mode 100644 index 000000000..b77868012 --- /dev/null +++ b/view/next-project/src/generated/model/postPasswordResetId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostPasswordResetId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postPasswordResetIdValid200.ts b/view/next-project/src/generated/model/postPasswordResetIdValid200.ts new file mode 100644 index 000000000..a02e095e6 --- /dev/null +++ b/view/next-project/src/generated/model/postPasswordResetIdValid200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostPasswordResetIdValid200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postPasswordResetIdValidParams.ts b/view/next-project/src/generated/model/postPasswordResetIdValidParams.ts new file mode 100644 index 000000000..ea064afb1 --- /dev/null +++ b/view/next-project/src/generated/model/postPasswordResetIdValidParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostPasswordResetIdValidParams = { + /** + * token + */ + token?: string; +}; diff --git a/view/next-project/src/generated/model/postPasswordResetRequest200.ts b/view/next-project/src/generated/model/postPasswordResetRequest200.ts new file mode 100644 index 000000000..d248db37c --- /dev/null +++ b/view/next-project/src/generated/model/postPasswordResetRequest200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostPasswordResetRequest200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postPasswordResetRequestParams.ts b/view/next-project/src/generated/model/postPasswordResetRequestParams.ts new file mode 100644 index 000000000..0027a38ff --- /dev/null +++ b/view/next-project/src/generated/model/postPasswordResetRequestParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostPasswordResetRequestParams = { + /** + * email + */ + email?: string; +}; diff --git a/view/next-project/src/generated/model/postReceipts200.ts b/view/next-project/src/generated/model/postReceipts200.ts new file mode 100644 index 000000000..157584403 --- /dev/null +++ b/view/next-project/src/generated/model/postReceipts200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostReceipts200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postSources200.ts b/view/next-project/src/generated/model/postSources200.ts new file mode 100644 index 000000000..0ff8f8fa2 --- /dev/null +++ b/view/next-project/src/generated/model/postSources200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostSources200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postSourcesParams.ts b/view/next-project/src/generated/model/postSourcesParams.ts new file mode 100644 index 000000000..7593cd5ff --- /dev/null +++ b/view/next-project/src/generated/model/postSourcesParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostSourcesParams = { + /** + * name + */ + name: string; +}; diff --git a/view/next-project/src/generated/model/postSponsors200.ts b/view/next-project/src/generated/model/postSponsors200.ts new file mode 100644 index 000000000..f5b445419 --- /dev/null +++ b/view/next-project/src/generated/model/postSponsors200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostSponsors200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postSponsorstyles200.ts b/view/next-project/src/generated/model/postSponsorstyles200.ts new file mode 100644 index 000000000..73d8e23ac --- /dev/null +++ b/view/next-project/src/generated/model/postSponsorstyles200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostSponsorstyles200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postTeachers200.ts b/view/next-project/src/generated/model/postTeachers200.ts new file mode 100644 index 000000000..6aae00087 --- /dev/null +++ b/view/next-project/src/generated/model/postTeachers200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostTeachers200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postTeachersParams.ts b/view/next-project/src/generated/model/postTeachersParams.ts new file mode 100644 index 000000000..04d8881a3 --- /dev/null +++ b/view/next-project/src/generated/model/postTeachersParams.ts @@ -0,0 +1,34 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostTeachersParams = { + /** + * 名前 + */ + name: string; + /** + * 役職 + */ + position: string; + /** + * 学科ID + */ + department_id?: number; + /** + * 部屋番号 + */ + room?: string; + /** + * ブラックリストの真偽 + */ + is_black?: boolean; + /** + * 備考 + */ + remark?: string; +}; diff --git a/view/next-project/src/generated/model/postUsers200.ts b/view/next-project/src/generated/model/postUsers200.ts new file mode 100644 index 000000000..4c5f3cba9 --- /dev/null +++ b/view/next-project/src/generated/model/postUsers200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostUsers200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postUsersParams.ts b/view/next-project/src/generated/model/postUsersParams.ts new file mode 100644 index 000000000..70a11b429 --- /dev/null +++ b/view/next-project/src/generated/model/postUsersParams.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostUsersParams = { + /** + * name + */ + name: string; + /** + * bureau_d + */ + bureau_id: number; + /** + * role_id + */ + role_id: number; +}; diff --git a/view/next-project/src/generated/model/postYears200.ts b/view/next-project/src/generated/model/postYears200.ts new file mode 100644 index 000000000..f0de26fd0 --- /dev/null +++ b/view/next-project/src/generated/model/postYears200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostYears200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/postYearsParams.ts b/view/next-project/src/generated/model/postYearsParams.ts new file mode 100644 index 000000000..471989d77 --- /dev/null +++ b/view/next-project/src/generated/model/postYearsParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostYearsParams = { + /** + * year + */ + year: number; +}; diff --git a/view/next-project/src/generated/model/postYearsPeriods200.ts b/view/next-project/src/generated/model/postYearsPeriods200.ts new file mode 100644 index 000000000..be2b5ca95 --- /dev/null +++ b/view/next-project/src/generated/model/postYearsPeriods200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PostYearsPeriods200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putActivitiesId200.ts b/view/next-project/src/generated/model/putActivitiesId200.ts new file mode 100644 index 000000000..d6694ad43 --- /dev/null +++ b/view/next-project/src/generated/model/putActivitiesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutActivitiesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putActivityInformationsId200.ts b/view/next-project/src/generated/model/putActivityInformationsId200.ts new file mode 100644 index 000000000..54688ea84 --- /dev/null +++ b/view/next-project/src/generated/model/putActivityInformationsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutActivityInformationsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putActivityStylesId200.ts b/view/next-project/src/generated/model/putActivityStylesId200.ts new file mode 100644 index 000000000..90a86edfd --- /dev/null +++ b/view/next-project/src/generated/model/putActivityStylesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutActivityStylesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putBudgetsId200.ts b/view/next-project/src/generated/model/putBudgetsId200.ts new file mode 100644 index 000000000..de74da0a1 --- /dev/null +++ b/view/next-project/src/generated/model/putBudgetsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutBudgetsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putBudgetsIdParams.ts b/view/next-project/src/generated/model/putBudgetsIdParams.ts new file mode 100644 index 000000000..52c3b78b8 --- /dev/null +++ b/view/next-project/src/generated/model/putBudgetsIdParams.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutBudgetsIdParams = { + /** + * price + */ + price?: number; + /** + * year_id + */ + year_id?: number; + /** + * source_id + */ + source_id?: number; +}; diff --git a/view/next-project/src/generated/model/putBureausId200.ts b/view/next-project/src/generated/model/putBureausId200.ts new file mode 100644 index 000000000..d24a26322 --- /dev/null +++ b/view/next-project/src/generated/model/putBureausId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutBureausId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putBureausIdParams.ts b/view/next-project/src/generated/model/putBureausIdParams.ts new file mode 100644 index 000000000..f8adb0572 --- /dev/null +++ b/view/next-project/src/generated/model/putBureausIdParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutBureausIdParams = { + /** + * name + */ + name?: string; +}; diff --git a/view/next-project/src/generated/model/putDepartmentsId200.ts b/view/next-project/src/generated/model/putDepartmentsId200.ts new file mode 100644 index 000000000..ffad7e6c7 --- /dev/null +++ b/view/next-project/src/generated/model/putDepartmentsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutDepartmentsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putDepartmentsIdParams.ts b/view/next-project/src/generated/model/putDepartmentsIdParams.ts new file mode 100644 index 000000000..506341660 --- /dev/null +++ b/view/next-project/src/generated/model/putDepartmentsIdParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutDepartmentsIdParams = { + /** + * name + */ + name?: string; +}; diff --git a/view/next-project/src/generated/model/putExpensesId200.ts b/view/next-project/src/generated/model/putExpensesId200.ts new file mode 100644 index 000000000..1a0874949 --- /dev/null +++ b/view/next-project/src/generated/model/putExpensesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutExpensesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putExpensesIdParams.ts b/view/next-project/src/generated/model/putExpensesIdParams.ts new file mode 100644 index 000000000..d9c0c5fba --- /dev/null +++ b/view/next-project/src/generated/model/putExpensesIdParams.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutExpensesIdParams = { + /** + * name + */ + name?: string; + /** + * year_id + */ + year_id?: string; +}; diff --git a/view/next-project/src/generated/model/putFundInformationsId200.ts b/view/next-project/src/generated/model/putFundInformationsId200.ts new file mode 100644 index 000000000..9832acfaa --- /dev/null +++ b/view/next-project/src/generated/model/putFundInformationsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutFundInformationsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putFundInformationsIdParams.ts b/view/next-project/src/generated/model/putFundInformationsIdParams.ts new file mode 100644 index 000000000..a113409ab --- /dev/null +++ b/view/next-project/src/generated/model/putFundInformationsIdParams.ts @@ -0,0 +1,38 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutFundInformationsIdParams = { + /** + * user_id + */ + user_id: number; + /** + * teacher_id + */ + teacher_id: number; + /** + * price + */ + price: number; + /** + * remark + */ + remark?: string; + /** + * is_first_check + */ + is_first_check?: boolean; + /** + * is_last_check + */ + is_last_check?: boolean; + /** + * received_at + */ + received_at?: string; +}; diff --git a/view/next-project/src/generated/model/putReceiptsId200.ts b/view/next-project/src/generated/model/putReceiptsId200.ts new file mode 100644 index 000000000..95ba042ac --- /dev/null +++ b/view/next-project/src/generated/model/putReceiptsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutReceiptsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putSourcesId200.ts b/view/next-project/src/generated/model/putSourcesId200.ts new file mode 100644 index 000000000..ff336a828 --- /dev/null +++ b/view/next-project/src/generated/model/putSourcesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutSourcesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putSourcesIdParams.ts b/view/next-project/src/generated/model/putSourcesIdParams.ts new file mode 100644 index 000000000..9862e8dc1 --- /dev/null +++ b/view/next-project/src/generated/model/putSourcesIdParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutSourcesIdParams = { + /** + * name + */ + name: string; +}; diff --git a/view/next-project/src/generated/model/putSponsorsId200.ts b/view/next-project/src/generated/model/putSponsorsId200.ts new file mode 100644 index 000000000..0e2a3adc8 --- /dev/null +++ b/view/next-project/src/generated/model/putSponsorsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutSponsorsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putSponsorstylesId200.ts b/view/next-project/src/generated/model/putSponsorstylesId200.ts new file mode 100644 index 000000000..cdf80c860 --- /dev/null +++ b/view/next-project/src/generated/model/putSponsorstylesId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutSponsorstylesId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putTeachersId200.ts b/view/next-project/src/generated/model/putTeachersId200.ts new file mode 100644 index 000000000..5beb3123d --- /dev/null +++ b/view/next-project/src/generated/model/putTeachersId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutTeachersId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putTeachersIdParams.ts b/view/next-project/src/generated/model/putTeachersIdParams.ts new file mode 100644 index 000000000..58f36cf6a --- /dev/null +++ b/view/next-project/src/generated/model/putTeachersIdParams.ts @@ -0,0 +1,34 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutTeachersIdParams = { + /** + * 教員の名前 + */ + name: string; + /** + * 教員の役職 + */ + position: string; + /** + * 学科ID + */ + department_id?: number; + /** + * 部屋番号 + */ + room?: string; + /** + * ブラックリストに入っているか + */ + is_black?: boolean; + /** + * 備考欄 + */ + remark?: string; +}; diff --git a/view/next-project/src/generated/model/putUsersId200.ts b/view/next-project/src/generated/model/putUsersId200.ts new file mode 100644 index 000000000..9ced3624e --- /dev/null +++ b/view/next-project/src/generated/model/putUsersId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutUsersId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putUsersIdParams.ts b/view/next-project/src/generated/model/putUsersIdParams.ts new file mode 100644 index 000000000..af6c98fad --- /dev/null +++ b/view/next-project/src/generated/model/putUsersIdParams.ts @@ -0,0 +1,22 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutUsersIdParams = { + /** + * name + */ + name: string; + /** + * bureau_d + */ + bureau_id: number; + /** + * role_id + */ + role_id: number; +}; diff --git a/view/next-project/src/generated/model/putYearsId200.ts b/view/next-project/src/generated/model/putYearsId200.ts new file mode 100644 index 000000000..bcaf26095 --- /dev/null +++ b/view/next-project/src/generated/model/putYearsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutYearsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/putYearsIdParams.ts b/view/next-project/src/generated/model/putYearsIdParams.ts new file mode 100644 index 000000000..2d0a2a95f --- /dev/null +++ b/view/next-project/src/generated/model/putYearsIdParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutYearsIdParams = { + /** + * year + */ + year: number; +}; diff --git a/view/next-project/src/generated/model/putYearsPeriodsId200.ts b/view/next-project/src/generated/model/putYearsPeriodsId200.ts new file mode 100644 index 000000000..4c94e01ec --- /dev/null +++ b/view/next-project/src/generated/model/putYearsPeriodsId200.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export type PutYearsPeriodsId200 = { [key: string]: unknown }; diff --git a/view/next-project/src/generated/model/receipt.ts b/view/next-project/src/generated/model/receipt.ts new file mode 100644 index 000000000..783c019bc --- /dev/null +++ b/view/next-project/src/generated/model/receipt.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface Receipt { + bucketName?: string; + fileName?: string; + fileType?: string; + purchaseReportID: number; + remark?: string; +} diff --git a/view/next-project/src/generated/model/sponsor.ts b/view/next-project/src/generated/model/sponsor.ts new file mode 100644 index 000000000..86fe54938 --- /dev/null +++ b/view/next-project/src/generated/model/sponsor.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface Sponsor { + address: string; + email: string; + id?: number; + name: string; + representative: string; + tel: string; +} diff --git a/view/next-project/src/generated/model/sponsorStyle.ts b/view/next-project/src/generated/model/sponsorStyle.ts new file mode 100644 index 000000000..924979ba3 --- /dev/null +++ b/view/next-project/src/generated/model/sponsorStyle.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface SponsorStyle { + feature: string; + price: number; + style: string; +} diff --git a/view/next-project/src/generated/model/total.ts b/view/next-project/src/generated/model/total.ts new file mode 100644 index 000000000..78dffc8b2 --- /dev/null +++ b/view/next-project/src/generated/model/total.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface Total { + balance?: number; + budget?: number; + expense?: number; +} diff --git a/view/next-project/src/generated/model/yearPeriods.ts b/view/next-project/src/generated/model/yearPeriods.ts new file mode 100644 index 000000000..02ef21beb --- /dev/null +++ b/view/next-project/src/generated/model/yearPeriods.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * NUTFes FinanSu API + * FinanSu APIドキュメント + * OpenAPI spec version: 2.0.0 + */ + +export interface YearPeriods { + endedAt: string; + startedAt: string; + year: number; +} diff --git a/view/next-project/src/mutator/custom-instance.ts b/view/next-project/src/mutator/custom-instance.ts new file mode 100644 index 000000000..08de6360f --- /dev/null +++ b/view/next-project/src/mutator/custom-instance.ts @@ -0,0 +1,49 @@ +// NOTE: Supports cases where `content-type` is other than `json` +const getBody = (c: Response | Request): Promise => { + const contentType = c.headers.get('content-type'); + + if (contentType && contentType.includes('application/json')) { + return c.json(); + } + + if (contentType && contentType.includes('application/pdf')) { + return c.blob() as Promise; + } + + return c.text() as Promise; +}; + +const getUrl = (contextUrl: string): string => { + const baseURL = process.env.CSR_API_URI; + const url = new URL(`${baseURL}${contextUrl}`); + + return url.toString(); +}; + +// NOTE: Add headers +const getHeaders = (headers?: HeadersInit): HeadersInit => { + return { + ...headers, + 'Content-Type': 'application/json', + }; +}; + +export const customFetch = async (url: string, options: RequestInit): Promise => { + const requestUrl = getUrl(url); + const requestHeaders = getHeaders(options.headers); + + const requestInit: RequestInit = { + ...options, + headers: requestHeaders, + }; + + const request = new Request(requestUrl, requestInit); + const response = await fetch(request); + const data = await getBody(response); + + if (!response.ok) { + throw new Error(data as unknown as string); + } + + return { status: response.status, data, headers: response.headers } as T; +}; diff --git a/view/next-project/src/pages/sponsors/index.tsx b/view/next-project/src/pages/sponsors/index.tsx index 0236f62dc..85ec7206c 100644 --- a/view/next-project/src/pages/sponsors/index.tsx +++ b/view/next-project/src/pages/sponsors/index.tsx @@ -1,56 +1,37 @@ import clsx from 'clsx'; import type { NextPage } from 'next'; import Head from 'next/head'; -import { useState, useEffect } from 'react'; +import { useState } from 'react'; import OpenDeleteModalButton from '@/components/sponsors/OpenDeleteModalButton'; import OpenEditModalButton from '@/components/sponsors/OpenEditModalButton'; -import { get } from '@/utils/api/api_methods'; -import { Card, Title } from '@components/common'; +import { useGetSponsorsPeriodsYear, useGetYearsPeriods } from '@/generated/hooks'; +import { Card, Loading, Title } from '@components/common'; import MainLayout from '@components/layout/MainLayout'; import OpenAddModalButton from '@components/sponsors/OpenAddModalButton'; -import { Sponsor, YearPeriod } from '@type/common'; - -interface Props { - sponsor: Sponsor[]; - yearPeriods: YearPeriod[]; -} const date = new Date(); -export const getServerSideProps = async () => { - const getPeriodsUrl = process.env.SSR_API_URI + '/years/periods'; - const periodsRes = await get(getPeriodsUrl); - const getSponsorViewUrl = - process.env.SSR_API_URI + - '/sponsors/periods/' + - (periodsRes ? String(periodsRes[periodsRes.length - 1].year) : String(date.getFullYear())); - - return { - props: { - sponsorView: getSponsorViewUrl, - yearPeriods: periodsRes, - }, - }; -}; - -const Sponsorship: NextPage = (props: Props) => { - const [sponsors, setSponsors] = useState(props.sponsor); +const Sponsorship: NextPage = () => { + const { + data: yearPeriodsData, + isLoading: isYearPeriodsLoading, + error: yearPeriodsError, + } = useGetYearsPeriods(); + const yearPeriods = yearPeriodsData?.data; - const yearPeriods = props.yearPeriods; const [selectedYear, setSelectedYear] = useState( yearPeriods ? String(yearPeriods[yearPeriods.length - 1].year) : String(date.getFullYear()), ); - //年度別のsponsorsを取得 - const getSponsors = async () => { - const getSponsorViewUrlByYear = process.env.CSR_API_URI + '/sponsors/periods/' + selectedYear; - const getSponsorsByYears = await get(getSponsorViewUrlByYear); - setSponsors(getSponsorsByYears); - }; + const { + data: sponsorsData, + isLoading: isSponsorsLoading, + error: sponsorsError, + } = useGetSponsorsPeriodsYear(Number(selectedYear)); + const sponsors = sponsorsData?.data; - useEffect(() => { - getSponsors(); - }, [selectedYear]); + if (isYearPeriodsLoading || isSponsorsLoading) return ; + if (yearPeriodsError || sponsorsError) return
error...
; return ( @@ -67,10 +48,10 @@ const Sponsorship: NextPage = (props: Props) => { defaultValue={selectedYear} onChange={(e) => setSelectedYear(e.target.value)} > - {props.yearPeriods && - props.yearPeriods.map((year) => { + {yearPeriods && + yearPeriods.map((year, index) => { return ( - ); diff --git a/view/next-project/tsconfig.json b/view/next-project/tsconfig.json index cd52a0bd5..c030d2a90 100644 --- a/view/next-project/tsconfig.json +++ b/view/next-project/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es6", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, diff --git a/view/next-project/tsconfig.paths.json b/view/next-project/tsconfig.paths.json index aa6861fa1..ba112f484 100644 --- a/view/next-project/tsconfig.paths.json +++ b/view/next-project/tsconfig.paths.json @@ -10,7 +10,8 @@ "@utils/*": ["src/utils/*"], "@pages/*": ["src/pages//*"], "@type/*": ["src/type/*"], - "@constants/*": ["src/constants/*"] + "@constants/*": ["src/constants/*"], + "@model/*": ["src/generated/model/*"] } } }