From c81fe5a955d4ad0b9feae95412cca316786ca625 Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Thu, 23 Jan 2025 01:34:24 +0100 Subject: [PATCH 1/9] feat(restock): change post resock and create patch restock --- backend/api/restock.go | 196 ++++---- backend/api/validerRestock.go | 89 ++++ backend/autogen/bar.gen.go | 521 +++++++++++++--------- backend/internal/db/database.go | 4 +- backend/internal/db/mongo/restock_misc.go | 13 +- 5 files changed, 526 insertions(+), 297 deletions(-) create mode 100644 backend/api/validerRestock.go diff --git a/backend/api/restock.go b/backend/api/restock.go index 8cdee53..5a990f0 100644 --- a/backend/api/restock.go +++ b/backend/api/restock.go @@ -23,7 +23,7 @@ func (s *Server) GetRestocks(c echo.Context, params autogen.GetRestocksParams) e return nil } - count, err := s.DBackend.CountAllRestocks(c.Request().Context()) + count, err := s.DBackend.CountAllRestocks(c.Request().Context(), params.State) if err != nil { logrus.Error(err) return Error500(c) @@ -32,7 +32,7 @@ func (s *Server) GetRestocks(c echo.Context, params autogen.GetRestocksParams) e // Make sure the last page is not empty dbpage, page, limit, maxPage := autogen.Pager(params.Page, params.Limit, &count) - data, err := s.DBackend.GetAllRestocks(c.Request().Context(), dbpage, limit) + data, err := s.DBackend.GetAllRestocks(c.Request().Context(), dbpage, limit, params.State) if err != nil { logrus.Error(err) return Error500(c) @@ -72,6 +72,7 @@ func (s *Server) CreateRestock(c echo.Context) error { TotalCostHt: body.TotalCostHt, TotalCostTtc: body.TotalCostTtc, Type: body.Type, + State: body.State, CreatedAt: uint64(time.Now().Unix()), CreatedBy: usr.Id, CreatedByName: usr.Name(), @@ -98,88 +99,32 @@ func (s *Server) CreateRestock(c echo.Context) error { logrus.Error(err) return nil, Error500(c) } - category, err := s.DBackend.GetCategory(c.Request().Context(), item.CategoryId.String()) - if err != nil { - if err == mongo.ErrNoDocuments { - // return nil, ErrorItemNotFound(c) - // Si l'item n'as pas de catégorie, on met une catégorie par défaut - category = &models.Category{ - Category: autogen.Category{ - Id: uuid.Nil, - Name: "Autres", - SpecialPrice: false, - }, - } - } else { - logrus.Error(err) - return nil, Error500(c) - } - } restockItem.ItemName = item.Name restockItem.ItemPictureUri = item.PictureUri - item.State = autogen.ItemBuyable - item.AmountLeft += restockItem.AmountOfBundle * restockItem.AmountPerBundle - item.LastTva = &restockItem.Tva - if category.SpecialPrice == false { - item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) - if item.Prices.Coutant < 30 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 - } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*13/10, 5) - } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*12/10, 5) - } else if item.Prices.Coutant >= 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*105/100, 5) - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*1125/1000, 5) + if restock.State == autogen.RestockFinished { + category, err := s.DBackend.GetCategory(c.Request().Context(), item.CategoryId.String()) + if err != nil { + if err == mongo.ErrNoDocuments { + // return nil, ErrorItemNotFound(c) + // Si l'item n'as pas de catégorie, on met une catégorie par défaut + category = &models.Category{ + Category: autogen.Category{ + Id: uuid.Nil, + Name: "Autres", + SpecialPrice: false, + }, + } + } else { + logrus.Error(err) + return nil, Error500(c) + } } - } else { - item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) - if item.Prices.Coutant < 30 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten - } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten - } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten - } else if item.Prices.Coutant >= 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten + item = UpdateItem(item, category, restockItem) + err = s.DBackend.UpdateItem(c.Request().Context(), item) + if err != nil { + logrus.Error(err) + return nil, Error500(c) } - item.Prices.Coutant = item.Prices.Ceten - } - err = s.DBackend.UpdateItem(c.Request().Context(), item) - if err != nil { - logrus.Error(err) - return nil, Error500(c) } restock.Items = append(restock.Items, restockItem) @@ -206,6 +151,69 @@ func (s *Server) CreateRestock(c echo.Context) error { return nil } +func UpdateItem(item *models.Item, category *models.Category, restockItem autogen.RestockItem) *models.Item { + item.State = autogen.ItemBuyable + item.AmountLeft += restockItem.AmountOfBundle * restockItem.AmountPerBundle + item.LastTva = &restockItem.Tva + if !category.SpecialPrice { + item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) + if item.Prices.Coutant < 30 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 + } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*13/10, 5) + } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*12/10, 5) + } else if item.Prices.Coutant >= 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*105/100, 5) + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*1125/1000, 5) + } + } else { + item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) + if item.Prices.Coutant < 30 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } else if item.Prices.Coutant >= 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } + item.Prices.Coutant = item.Prices.Ceten + } + return item +} + // (DELETE /restocks/{restock_id}) func (s *Server) DeleteRestock(c echo.Context, restockId autogen.UUID) error { account, err := MustGetAdmin(c) @@ -224,22 +232,24 @@ func (s *Server) DeleteRestock(c echo.Context, restockId autogen.UUID) error { return nil, Error500(c) } - for _, item := range restock.Items { - i, err := s.DBackend.GetItem(c.Request().Context(), item.ItemId.String()) - if err != nil { - if err == mongo.ErrNoDocuments { - return nil, ErrorItemNotFound(c) + if restock.State == autogen.RestockFinished { + for _, item := range restock.Items { + i, err := s.DBackend.GetItem(c.Request().Context(), item.ItemId.String()) + if err != nil { + if err == mongo.ErrNoDocuments { + return nil, ErrorItemNotFound(c) + } + logrus.Error(err) + return nil, Error500(c) } - logrus.Error(err) - return nil, Error500(c) - } - i.AmountLeft -= item.AmountOfBundle * item.AmountPerBundle + i.AmountLeft -= item.AmountOfBundle * item.AmountPerBundle - err = s.DBackend.UpdateItem(c.Request().Context(), i) - if err != nil { - logrus.Error(err) - return nil, Error500(c) + err = s.DBackend.UpdateItem(c.Request().Context(), i) + if err != nil { + logrus.Error(err) + return nil, Error500(c) + } } } diff --git a/backend/api/validerRestock.go b/backend/api/validerRestock.go new file mode 100644 index 0000000..255fd62 --- /dev/null +++ b/backend/api/validerRestock.go @@ -0,0 +1,89 @@ +package api + +import ( + "bar/autogen" + "time" + + "github.com/labstack/echo/v4" + "github.com/sirupsen/logrus" +) + +// PATCH /restocks/{restock_id} +func (s *Server) UpdateRestock(c echo.Context, restockId autogen.UUID) error { + usr, err := MustGetAdmin(c) + if err != nil { + return nil + } + + var body autogen.UpdateRestockJSONRequestBody + if err := c.Bind(&body); err != nil { + logrus.Error(err) + return Error400(c) + } + + restock, err := s.DBackend.GetRestock(c.Request().Context(), restockId.String()) + if err != nil { + logrus.Error(err) + return Error500(c) + } + + restock.Items = []autogen.RestockItem{} + restock.TotalCostHt = body.TotalCostHt + restock.TotalCostTtc = body.TotalCostTtc + restock.Type = body.Type + restock.CreatedAt = uint64(time.Now().Unix()) + + oldState := restock.State + if restock.State != autogen.RestockFinished { + restock.State = body.State // Cannot go from finished to anything else + } + + for _, newRestockItem := range body.Items { + restockItem := autogen.RestockItem{ + AmountOfBundle: newRestockItem.AmountOfBundle, + AmountPerBundle: newRestockItem.AmountPerBundle, + BundleCostHt: newRestockItem.BundleCostHt, + BundleCostTtc: newRestockItem.BundleCostTtc, + ItemId: newRestockItem.ItemId, + Tva: newRestockItem.Tva, + ItemName: newRestockItem.ItemName, + } + + item, err := s.DBackend.GetItem(c.Request().Context(), restockItem.ItemId.String()) + if err != nil { + logrus.Error(err) + return Error500(c) + } + restockItem.ItemPictureUri = item.PictureUri + + restock.Items = append(restock.Items, restockItem) + + if oldState != autogen.RestockFinished && body.State == autogen.RestockFinished { + + category, err := s.DBackend.GetCategory(c.Request().Context(), item.CategoryId.String()) + if err != nil { + logrus.Error(err) + return Error500(c) + } + item = UpdateItem(item, category, restockItem) + err = s.DBackend.UpdateItem(c.Request().Context(), item) + if err != nil { + logrus.Error(err) + return Error500(c) + } + logrus.WithField("restock", restock.Id.String()).WithField("by", usr.Name()).Info("Items updated") + } + } + err = s.DBackend.UpdateRestock(c.Request().Context(), restock) + if err != nil { + logrus.Error(err) + return Error500(c) + } + + if oldState == body.State { + return nil + } + + logrus.WithField("restock", restock.Id.String()).WithField("by", usr.Name()).Info("Patch restock") + return nil +} diff --git a/backend/autogen/bar.gen.go b/backend/autogen/bar.gen.go index 0ecb202..4423821 100644 --- a/backend/autogen/bar.gen.go +++ b/backend/autogen/bar.gen.go @@ -1,6 +1,6 @@ // Package autogen provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT. +// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.2.0 DO NOT EDIT. package autogen import ( @@ -128,6 +128,12 @@ const ( RefillTransfer RefillType = "tranfer" ) +// Defines values for RestockState. +const ( + RestockFinished RestockState = "finished" + RestockPending RestockState = "pending" +) + // Defines values for RestockType. const ( RestockAuchan RestockType = "auchan" @@ -412,6 +418,7 @@ type NewItem struct { type NewRestock struct { DriverId *UUID `json:"driver_id,omitempty" bson:"driver_id"` Items []NewRestockItem `json:"items" bson:"items"` + State RestockState `json:"state" bson:"state"` TotalCostHt uint64 `json:"total_cost_ht" bson:"total_cost_ht"` TotalCostTtc uint64 `json:"total_cost_ttc" bson:"total_cost_ttc"` Type RestockType `json:"type" bson:"type"` @@ -425,7 +432,10 @@ type NewRestockItem struct { BundleCostHt uint64 `json:"bundle_cost_ht" bson:"bundle_cost_ht"` BundleCostTtc uint64 `json:"bundle_cost_ttc" bson:"bundle_cost_ttc"` ItemId UUID `json:"item_id" bson:"item_id"` - Tva uint64 `json:"tva" bson:"tva"` + + // ItemName Name of the current item + ItemName string `json:"item_name" bson:"item_name"` + Tva uint64 `json:"tva" bson:"tva"` } // NewTransaction defines model for NewTransaction. @@ -483,6 +493,7 @@ type Restock struct { DriverName *string `json:"driver_name,omitempty" bson:"driver_name"` Id UUID `json:"id" bson:"id"` Items []RestockItem `json:"items" bson:"items"` + State RestockState `json:"state" bson:"state"` TotalCostHt uint64 `json:"total_cost_ht" bson:"total_cost_ht"` TotalCostTtc uint64 `json:"total_cost_ttc" bson:"total_cost_ttc"` Type RestockType `json:"type" bson:"type"` @@ -504,6 +515,9 @@ type RestockItem struct { Tva uint64 `json:"tva" bson:"tva"` } +// RestockState defines model for RestockState. +type RestockState string + // RestockType defines model for RestockType. type RestockType string @@ -936,11 +950,8 @@ type GetRestocksParams struct { // Limit Number of restocks per page Limit *uint64 `form:"limit,omitempty" json:"limit,omitempty" bson:"limit"` - // Search search string - Search *string `form:"search,omitempty" json:"search,omitempty" bson:"search"` - - // Sort sort string - Sort *string `form:"sort,omitempty" json:"sort,omitempty" bson:"sort"` + // State search state + State *RestockState `form:"state,omitempty" json:"state,omitempty" bson:"state"` } // GetTransactionsParams defines parameters for GetTransactions. @@ -1021,6 +1032,9 @@ type ImportAccountsMultipartRequestBody ImportAccountsMultipartBody // CreateRestockJSONRequestBody defines body for CreateRestock for application/json ContentType. type CreateRestockJSONRequestBody = NewRestock +// UpdateRestockJSONRequestBody defines body for UpdateRestock for application/json ContentType. +type UpdateRestockJSONRequestBody = NewRestock + // ServerInterface represents all server handlers. type ServerInterface interface { @@ -1279,6 +1293,9 @@ type ServerInterface interface { // (DELETE /restocks/{restock_id}) DeleteRestock(ctx echo.Context, restockId UUID) error + // (PATCH /restocks/{restock_id}) + UpdateRestock(ctx echo.Context, restockId UUID) error + // (GET /transactions) GetTransactions(ctx echo.Context, params GetTransactionsParams) error @@ -1471,7 +1488,7 @@ func (w *ServerInterfaceWrapper) ResetAccountPin(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1534,7 +1551,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteAccountId(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1552,7 +1569,7 @@ func (w *ServerInterfaceWrapper) GetAccountId(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1570,7 +1587,7 @@ func (w *ServerInterfaceWrapper) PatchAccountId(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1588,7 +1605,7 @@ func (w *ServerInterfaceWrapper) GetAccountRefills(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId string - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1636,7 +1653,7 @@ func (w *ServerInterfaceWrapper) PostRefill(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId string - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1670,7 +1687,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteRefill(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1678,7 +1695,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteRefill(ctx echo.Context) error { // ------------- Path parameter "refill_id" ------------- var refillId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "refill_id", runtime.ParamLocationPath, ctx.Param("refill_id"), &refillId) + err = runtime.BindStyledParameterWithOptions("simple", "refill_id", ctx.Param("refill_id"), &refillId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter refill_id: %s", err)) } @@ -1696,7 +1713,7 @@ func (w *ServerInterfaceWrapper) PatchRefillId(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1704,7 +1721,7 @@ func (w *ServerInterfaceWrapper) PatchRefillId(ctx echo.Context) error { // ------------- Path parameter "refill_id" ------------- var refillId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "refill_id", runtime.ParamLocationPath, ctx.Param("refill_id"), &refillId) + err = runtime.BindStyledParameterWithOptions("simple", "refill_id", ctx.Param("refill_id"), &refillId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter refill_id: %s", err)) } @@ -1738,7 +1755,7 @@ func (w *ServerInterfaceWrapper) AdminToggleAccountWantsToStaff(ctx echo.Context // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1756,7 +1773,7 @@ func (w *ServerInterfaceWrapper) GetAccountTransactions(ctx echo.Context) error // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1797,7 +1814,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteTransactionId(ctx echo.Context) error // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1805,7 +1822,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteTransactionId(ctx echo.Context) error // ------------- Path parameter "transaction_id" ------------- var transactionId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "transaction_id", runtime.ParamLocationPath, ctx.Param("transaction_id"), &transactionId) + err = runtime.BindStyledParameterWithOptions("simple", "transaction_id", ctx.Param("transaction_id"), &transactionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter transaction_id: %s", err)) } @@ -1823,7 +1840,7 @@ func (w *ServerInterfaceWrapper) GetTransactionId(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1831,7 +1848,7 @@ func (w *ServerInterfaceWrapper) GetTransactionId(ctx echo.Context) error { // ------------- Path parameter "transaction_id" ------------- var transactionId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "transaction_id", runtime.ParamLocationPath, ctx.Param("transaction_id"), &transactionId) + err = runtime.BindStyledParameterWithOptions("simple", "transaction_id", ctx.Param("transaction_id"), &transactionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter transaction_id: %s", err)) } @@ -1849,7 +1866,7 @@ func (w *ServerInterfaceWrapper) PatchTransactionId(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1857,7 +1874,7 @@ func (w *ServerInterfaceWrapper) PatchTransactionId(ctx echo.Context) error { // ------------- Path parameter "transaction_id" ------------- var transactionId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "transaction_id", runtime.ParamLocationPath, ctx.Param("transaction_id"), &transactionId) + err = runtime.BindStyledParameterWithOptions("simple", "transaction_id", ctx.Param("transaction_id"), &transactionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter transaction_id: %s", err)) } @@ -1884,7 +1901,7 @@ func (w *ServerInterfaceWrapper) PatchTransactionItemId(ctx echo.Context) error // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -1892,7 +1909,7 @@ func (w *ServerInterfaceWrapper) PatchTransactionItemId(ctx echo.Context) error // ------------- Path parameter "transaction_id" ------------- var transactionId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "transaction_id", runtime.ParamLocationPath, ctx.Param("transaction_id"), &transactionId) + err = runtime.BindStyledParameterWithOptions("simple", "transaction_id", ctx.Param("transaction_id"), &transactionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter transaction_id: %s", err)) } @@ -1900,7 +1917,7 @@ func (w *ServerInterfaceWrapper) PatchTransactionItemId(ctx echo.Context) error // ------------- Path parameter "item_id" ------------- var itemId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "item_id", runtime.ParamLocationPath, ctx.Param("item_id"), &itemId) + err = runtime.BindStyledParameterWithOptions("simple", "item_id", ctx.Param("item_id"), &itemId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item_id: %s", err)) } @@ -1970,7 +1987,7 @@ func (w *ServerInterfaceWrapper) ConnectAccount(ctx echo.Context) error { // ------------- Path parameter "qr_nonce" ------------- var qrNonce string - err = runtime.BindStyledParameterWithLocation("simple", false, "qr_nonce", runtime.ParamLocationPath, ctx.Param("qr_nonce"), &qrNonce) + err = runtime.BindStyledParameterWithOptions("simple", "qr_nonce", ctx.Param("qr_nonce"), &qrNonce, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter qr_nonce: %s", err)) } @@ -2062,7 +2079,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteCarouselImage(ctx echo.Context) error // ------------- Path parameter "image_id" ------------- var imageId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "image_id", runtime.ParamLocationPath, ctx.Param("image_id"), &imageId) + err = runtime.BindStyledParameterWithOptions("simple", "image_id", ctx.Param("image_id"), &imageId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter image_id: %s", err)) } @@ -2080,7 +2097,7 @@ func (w *ServerInterfaceWrapper) GetCarouselImage(ctx echo.Context) error { // ------------- Path parameter "image_id" ------------- var imageId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "image_id", runtime.ParamLocationPath, ctx.Param("image_id"), &imageId) + err = runtime.BindStyledParameterWithOptions("simple", "image_id", ctx.Param("image_id"), &imageId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter image_id: %s", err)) } @@ -2116,7 +2133,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteCarouselText(ctx echo.Context) error // ------------- Path parameter "text_id" ------------- var textId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "text_id", runtime.ParamLocationPath, ctx.Param("text_id"), &textId) + err = runtime.BindStyledParameterWithOptions("simple", "text_id", ctx.Param("text_id"), &textId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter text_id: %s", err)) } @@ -2179,7 +2196,7 @@ func (w *ServerInterfaceWrapper) DeleteCashMovement(ctx echo.Context) error { // ------------- Path parameter "cash_movement_id" ------------- var cashMovementId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "cash_movement_id", runtime.ParamLocationPath, ctx.Param("cash_movement_id"), &cashMovementId) + err = runtime.BindStyledParameterWithOptions("simple", "cash_movement_id", ctx.Param("cash_movement_id"), &cashMovementId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter cash_movement_id: %s", err)) } @@ -2228,7 +2245,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteCategory(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2246,7 +2263,7 @@ func (w *ServerInterfaceWrapper) GetCategory(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2264,7 +2281,7 @@ func (w *ServerInterfaceWrapper) PatchCategory(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2282,7 +2299,7 @@ func (w *ServerInterfaceWrapper) GetCategoryItems(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2323,7 +2340,7 @@ func (w *ServerInterfaceWrapper) PostItem(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2341,7 +2358,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteItem(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2349,7 +2366,7 @@ func (w *ServerInterfaceWrapper) MarkDeleteItem(ctx echo.Context) error { // ------------- Path parameter "item_id" ------------- var itemId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "item_id", runtime.ParamLocationPath, ctx.Param("item_id"), &itemId) + err = runtime.BindStyledParameterWithOptions("simple", "item_id", ctx.Param("item_id"), &itemId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item_id: %s", err)) } @@ -2367,7 +2384,7 @@ func (w *ServerInterfaceWrapper) PatchItem(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2375,7 +2392,7 @@ func (w *ServerInterfaceWrapper) PatchItem(ctx echo.Context) error { // ------------- Path parameter "item_id" ------------- var itemId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "item_id", runtime.ParamLocationPath, ctx.Param("item_id"), &itemId) + err = runtime.BindStyledParameterWithOptions("simple", "item_id", ctx.Param("item_id"), &itemId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item_id: %s", err)) } @@ -2393,7 +2410,7 @@ func (w *ServerInterfaceWrapper) GetItemPicture(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2401,7 +2418,7 @@ func (w *ServerInterfaceWrapper) GetItemPicture(ctx echo.Context) error { // ------------- Path parameter "item_id" ------------- var itemId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "item_id", runtime.ParamLocationPath, ctx.Param("item_id"), &itemId) + err = runtime.BindStyledParameterWithOptions("simple", "item_id", ctx.Param("item_id"), &itemId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item_id: %s", err)) } @@ -2419,7 +2436,7 @@ func (w *ServerInterfaceWrapper) GetCategoryPicture(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2491,7 +2508,7 @@ func (w *ServerInterfaceWrapper) DeleteAccount(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -2509,7 +2526,7 @@ func (w *ServerInterfaceWrapper) RestoreDeletedAccount(ctx echo.Context) error { // ------------- Path parameter "account_id" ------------- var accountId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "account_id", runtime.ParamLocationPath, ctx.Param("account_id"), &accountId) + err = runtime.BindStyledParameterWithOptions("simple", "account_id", ctx.Param("account_id"), &accountId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter account_id: %s", err)) } @@ -2554,7 +2571,7 @@ func (w *ServerInterfaceWrapper) DeleteCarouselImage(ctx echo.Context) error { // ------------- Path parameter "image_id" ------------- var imageId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "image_id", runtime.ParamLocationPath, ctx.Param("image_id"), &imageId) + err = runtime.BindStyledParameterWithOptions("simple", "image_id", ctx.Param("image_id"), &imageId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter image_id: %s", err)) } @@ -2572,7 +2589,7 @@ func (w *ServerInterfaceWrapper) RestoreDeletedCarouselImage(ctx echo.Context) e // ------------- Path parameter "image_id" ------------- var imageId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "image_id", runtime.ParamLocationPath, ctx.Param("image_id"), &imageId) + err = runtime.BindStyledParameterWithOptions("simple", "image_id", ctx.Param("image_id"), &imageId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter image_id: %s", err)) } @@ -2617,7 +2634,7 @@ func (w *ServerInterfaceWrapper) DeleteCarouselText(ctx echo.Context) error { // ------------- Path parameter "text_id" ------------- var textId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "text_id", runtime.ParamLocationPath, ctx.Param("text_id"), &textId) + err = runtime.BindStyledParameterWithOptions("simple", "text_id", ctx.Param("text_id"), &textId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter text_id: %s", err)) } @@ -2635,7 +2652,7 @@ func (w *ServerInterfaceWrapper) RestoreDeletedCarouselText(ctx echo.Context) er // ------------- Path parameter "text_id" ------------- var textId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "text_id", runtime.ParamLocationPath, ctx.Param("text_id"), &textId) + err = runtime.BindStyledParameterWithOptions("simple", "text_id", ctx.Param("text_id"), &textId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter text_id: %s", err)) } @@ -2680,7 +2697,7 @@ func (w *ServerInterfaceWrapper) DeleteCategory(ctx echo.Context) error { // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2698,7 +2715,7 @@ func (w *ServerInterfaceWrapper) RestoreDeletedCategory(ctx echo.Context) error // ------------- Path parameter "category_id" ------------- var categoryId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "category_id", runtime.ParamLocationPath, ctx.Param("category_id"), &categoryId) + err = runtime.BindStyledParameterWithOptions("simple", "category_id", ctx.Param("category_id"), &categoryId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter category_id: %s", err)) } @@ -2743,7 +2760,7 @@ func (w *ServerInterfaceWrapper) DeleteItem(ctx echo.Context) error { // ------------- Path parameter "item_id" ------------- var itemId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "item_id", runtime.ParamLocationPath, ctx.Param("item_id"), &itemId) + err = runtime.BindStyledParameterWithOptions("simple", "item_id", ctx.Param("item_id"), &itemId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item_id: %s", err)) } @@ -2761,7 +2778,7 @@ func (w *ServerInterfaceWrapper) RestoreDeletedItem(ctx echo.Context) error { // ------------- Path parameter "item_id" ------------- var itemId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "item_id", runtime.ParamLocationPath, ctx.Param("item_id"), &itemId) + err = runtime.BindStyledParameterWithOptions("simple", "item_id", ctx.Param("item_id"), &itemId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter item_id: %s", err)) } @@ -2806,7 +2823,7 @@ func (w *ServerInterfaceWrapper) DeleteRefill(ctx echo.Context) error { // ------------- Path parameter "refill_id" ------------- var refillId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "refill_id", runtime.ParamLocationPath, ctx.Param("refill_id"), &refillId) + err = runtime.BindStyledParameterWithOptions("simple", "refill_id", ctx.Param("refill_id"), &refillId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter refill_id: %s", err)) } @@ -2824,7 +2841,7 @@ func (w *ServerInterfaceWrapper) RestoreDeletedRefill(ctx echo.Context) error { // ------------- Path parameter "refill_id" ------------- var refillId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "refill_id", runtime.ParamLocationPath, ctx.Param("refill_id"), &refillId) + err = runtime.BindStyledParameterWithOptions("simple", "refill_id", ctx.Param("refill_id"), &refillId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter refill_id: %s", err)) } @@ -2869,7 +2886,7 @@ func (w *ServerInterfaceWrapper) DeleteTransaction(ctx echo.Context) error { // ------------- Path parameter "transaction_id" ------------- var transactionId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "transaction_id", runtime.ParamLocationPath, ctx.Param("transaction_id"), &transactionId) + err = runtime.BindStyledParameterWithOptions("simple", "transaction_id", ctx.Param("transaction_id"), &transactionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter transaction_id: %s", err)) } @@ -2887,7 +2904,7 @@ func (w *ServerInterfaceWrapper) RestoreDeletedTransaction(ctx echo.Context) err // ------------- Path parameter "transaction_id" ------------- var transactionId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "transaction_id", runtime.ParamLocationPath, ctx.Param("transaction_id"), &transactionId) + err = runtime.BindStyledParameterWithOptions("simple", "transaction_id", ctx.Param("transaction_id"), &transactionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter transaction_id: %s", err)) } @@ -3089,18 +3106,11 @@ func (w *ServerInterfaceWrapper) GetRestocks(ctx echo.Context) error { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter limit: %s", err)) } - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", ctx.QueryParams(), ¶ms.Search) - if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter search: %s", err)) - } - - // ------------- Optional query parameter "sort" ------------- + // ------------- Optional query parameter "state" ------------- - err = runtime.BindQueryParameter("form", true, false, "sort", ctx.QueryParams(), ¶ms.Sort) + err = runtime.BindQueryParameter("form", true, false, "state", ctx.QueryParams(), ¶ms.State) if err != nil { - return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter sort: %s", err)) + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter state: %s", err)) } // Invoke the callback with all the unmarshaled arguments @@ -3112,6 +3122,8 @@ func (w *ServerInterfaceWrapper) GetRestocks(ctx echo.Context) error { func (w *ServerInterfaceWrapper) CreateRestock(ctx echo.Context) error { var err error + ctx.Set(Admin_authScopes, []string{}) + // Invoke the callback with all the unmarshaled arguments err = w.Handler.CreateRestock(ctx) return err @@ -3123,16 +3135,36 @@ func (w *ServerInterfaceWrapper) DeleteRestock(ctx echo.Context) error { // ------------- Path parameter "restock_id" ------------- var restockId UUID - err = runtime.BindStyledParameterWithLocation("simple", false, "restock_id", runtime.ParamLocationPath, ctx.Param("restock_id"), &restockId) + err = runtime.BindStyledParameterWithOptions("simple", "restock_id", ctx.Param("restock_id"), &restockId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter restock_id: %s", err)) } + ctx.Set(Admin_authScopes, []string{}) + // Invoke the callback with all the unmarshaled arguments err = w.Handler.DeleteRestock(ctx, restockId) return err } +// UpdateRestock converts echo context to params. +func (w *ServerInterfaceWrapper) UpdateRestock(ctx echo.Context) error { + var err error + // ------------- Path parameter "restock_id" ------------- + var restockId UUID + + err = runtime.BindStyledParameterWithOptions("simple", "restock_id", ctx.Param("restock_id"), &restockId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter restock_id: %s", err)) + } + + ctx.Set(Admin_authScopes, []string{}) + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.UpdateRestock(ctx, restockId) + return err +} + // GetTransactions converts echo context to params. func (w *ServerInterfaceWrapper) GetTransactions(ctx echo.Context) error { var err error @@ -3314,6 +3346,7 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.GET(baseURL+"/restocks", wrapper.GetRestocks) router.POST(baseURL+"/restocks", wrapper.CreateRestock) router.DELETE(baseURL+"/restocks/:restock_id", wrapper.DeleteRestock) + router.PATCH(baseURL+"/restocks/:restock_id", wrapper.UpdateRestock) router.GET(baseURL+"/transactions", wrapper.GetTransactions) router.GET(baseURL+"/transactions/items", wrapper.GetTransactionsItems) @@ -7707,6 +7740,59 @@ func (response DeleteRestock500JSONResponse) VisitDeleteRestockResponse(w http.R return json.NewEncoder(w).Encode(response) } +type UpdateRestockRequestObject struct { + RestockId UUID `json:"restock_id" bson:"restock_id"` + Body *UpdateRestockJSONRequestBody `bson:"body"` +} + +type UpdateRestockResponseObject interface { + VisitUpdateRestockResponse(w http.ResponseWriter) error +} + +type UpdateRestock204Response struct { +} + +func (response UpdateRestock204Response) VisitUpdateRestockResponse(w http.ResponseWriter) error { + w.WriteHeader(204) + return nil +} + +type UpdateRestock401JSONResponse HTTPError + +func (response UpdateRestock401JSONResponse) VisitUpdateRestockResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(401) + + return json.NewEncoder(w).Encode(response) +} + +type UpdateRestock403JSONResponse HTTPError + +func (response UpdateRestock403JSONResponse) VisitUpdateRestockResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(403) + + return json.NewEncoder(w).Encode(response) +} + +type UpdateRestock404JSONResponse HTTPError + +func (response UpdateRestock404JSONResponse) VisitUpdateRestockResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(404) + + return json.NewEncoder(w).Encode(response) +} + +type UpdateRestock500JSONResponse HTTPError + +func (response UpdateRestock500JSONResponse) VisitUpdateRestockResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(500) + + return json.NewEncoder(w).Encode(response) +} + type GetTransactionsRequestObject struct { Params GetTransactionsParams `bson:"params"` } @@ -8058,6 +8144,9 @@ type StrictServerInterface interface { // (DELETE /restocks/{restock_id}) DeleteRestock(ctx context.Context, request DeleteRestockRequestObject) (DeleteRestockResponseObject, error) + // (PATCH /restocks/{restock_id}) + UpdateRestock(ctx context.Context, request UpdateRestockRequestObject) (UpdateRestockResponseObject, error) + // (GET /transactions) GetTransactions(ctx context.Context, request GetTransactionsRequestObject) (GetTransactionsResponseObject, error) @@ -10281,6 +10370,37 @@ func (sh *strictHandler) DeleteRestock(ctx echo.Context, restockId UUID) error { return nil } +// UpdateRestock operation middleware +func (sh *strictHandler) UpdateRestock(ctx echo.Context, restockId UUID) error { + var request UpdateRestockRequestObject + + request.RestockId = restockId + + var body UpdateRestockJSONRequestBody + if err := ctx.Bind(&body); err != nil { + return err + } + request.Body = &body + + handler := func(ctx echo.Context, request interface{}) (interface{}, error) { + return sh.ssi.UpdateRestock(ctx.Request().Context(), request.(UpdateRestockRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "UpdateRestock") + } + + response, err := handler(ctx, request) + + if err != nil { + return err + } else if validResponse, ok := response.(UpdateRestockResponseObject); ok { + return validResponse.VisitUpdateRestockResponse(ctx.Response()) + } else if response != nil { + return fmt.Errorf("unexpected response type: %T", response) + } + return nil +} + // GetTransactions operation middleware func (sh *strictHandler) GetTransactions(ctx echo.Context, params GetTransactionsParams) error { var request GetTransactionsRequestObject @@ -10334,136 +10454,137 @@ func (sh *strictHandler) GetTransactionsItems(ctx echo.Context, params GetTransa // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+w97XLbOJKvwtLe1iRXduRsMrMz/uc4zqxrx0nGdnbuai6lgkhI4pgCOABox+fyn3ue", - "e6p7kit8kARIkAT1ZclC/sQivhqN7kZ3o9F4GIR4nmIEEaOD44cBDWdwDsSfJ2GIM8T4nynBKSQshqJg", - "DBKAQsj/hN/APE3g4Pj10dHRwW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AiQSDGFCWzwCtGRistv0giWu2qs9X9gQPN11wn77dHbzYxcv1ohRv9pM6OfYjRJYqnn7zAv68kWU8DC", - "WZ2hpRWj0VjRpsqyn3kHuc1bVlJXad7h6H4JlkXwbtScGlKlnmmpUGFAo/aB2bsLD+bzo8qmf857ZyYo", - "INJIIAQkCtIYSZbbEPXr17K8iPMizlXEKd9im3T7jmoqiiTtYBjEHSJOaSWrkG5tvk4um5qzFCvJ11LB", - "Ivm0XKpG7y6S79RAkJd+Xvp56be90u9P0uwz+PVSZttgOF/hQgoyHPws8oE3+R1+g2OKwxsoqiYxZRAF", - "E0wCyk28/8qOjv72QxCCJBmD8CZ4wUtCjJMAoFg6I+jLFovv18ui+6rd91rSfYVf72IWzmI0DT4TzHCI", - "E5HhTTiiRCt181f5AUtpyEgGD7SFyw/qvqRTAozkT5owvYLh4W9wfCXgOzwJQ5iy9m7rfeQDOEFzVyDD", - "As/jo0x3TtnSC928HKvd55y2qYX2JIftSCSoG6ZoaoLZ6X92MMMVmr1jySqrDh6qnt6KAOMVTeElcwDS", - "Rl8Tp2+QJEFez0LCVzCZXBbFKSBgDpmQCr/XDijAFAbq5tWBdEL/mUFx2qh8yKnMDmehmpYAjNp5jBhB", - "HIOUx+40SCEJVP+2oeUp2rJjiwiBINJSzkjUNQwq4hVGkQzxsIysSmqMXB32DEXug0IU9R/y60rV0OLI", - "0inrEfg2SpUK6nTC1KOuxgCOseoCsV03m4jGEILicuoq5uIidDcu57iEwCT+793xoOeINsUaw9NpAumw", - "/sqGVcpdy+qCc8wmwSQB05rUk/XV3v0bb3CNxXMRq/Wh97a8FnhWpPN9D4sqMANoaphrNpx5C8pbUI4W", - "lL5Ld2oiRmWLOnIqD8TUwlybtfddO/kQJwySYHwfFLcO7UpJRTnoF8z+XHWFKp32DZru1BqadIXK0Dug", - "Orw9erOZocsU404SyMRjo1kvH+wIQIDgnc6mdW81plUZs6gZ7363fiA9EhUWW91aV4Z6ctKqbO2bp6yn", - "Vih2YW+vcJ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j//gDlvqeyy", - "FHLMIWs1VyrSycVoWTBdZi0Pp08xuxdXBAzyehp9pALE3lkzHSlwTaPmWbK3t2+8WPFiZWE9ozv1cU3U", - "NKZAroiZPBOyN3U2aurY00F7S8dbOlssgdyS/HbYOSLrdg8zp1/q32piYZ8DeI+UEVZLBrx5XUTAsL8W", - "jjWft93AeT6M7a0bL1C8QOmrWTilXCwFTFvaxUKyuGZffIKM50WKx+03acy1WTIX5PZmIzeIxRs2e2bY", - "9E/r12TYqGB8J5tmt5P9eXPmyW53+DSeGzBiGnJGVe2XZ8TE3nTxwsMLDxeNoTsFXS5Hcm95k5nilHfO", - "H7n4LGzeItkji6RH4qWGiy8ik4GDFdIv78t2pELylseT5D3wydXWanFYczOZ1sbOM6u3MLyQ8EKibecn", - "cBIniZttkddtti4uixrevljQvtgSy4DPqaAMJ1NHrn1nRhCikYi3MvbKylBLP3yQfyx25CHbupgaiiCd", - "9ReS17doMAXE3uB4LrqEJI8n0ibU4HtndBQ81mZ2PBPG9caHFxheYHQpBYwAREHIB3GzQowGzabItVnN", - "2yO7bo9UCcXJKNGooNMyYVWK8ebJXpkn+voPH7RfixkqWgcu1opOqc6aDzMa2cLSjVl44+W56CIatTyR", - "QqJDsHdmjMl3bbbM82Rrb9p4ceLFSbdqEc9TTJiRJ9n+6N65qFjaBROC5wEITq/+FUzipJ62Q9bX8iU3", - "vxwzzxIWp4CwIdeyDyPAQJu+L4ZzykPvoAd3TetxpabKHFKqDIo2AriQ1QRhIcxGIAxhytdMNyoqk7WY", - "Dp2TVxJzkiXJfSApQU+D7QXpM3yn7xSjSRKHbLeEVkGTSmq1Rpu+EP28DMyHj+9iNuM8zXWbAKAoSME0", - "RsCqIf0M2UmSbGck6jN6fbhlwOqlgMqY5q2A5d4EKgdtefVCFTXnsm/p1nwxo8+bGm3T0Z7r8CHETxJC", - "7F1Yrq+SyejdGIV4BomC2010F00Wl+JFF16ee3nuLM+9QPUCdXsFaoKnOLPIz1/k9wO7dC1KTTlZfH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5oL3TXhjTH9/1+j36lEDxE04h7r30ez7AwSgMWGNZSCgO42le", + "loRxtbDf+3aCQBKe+CiAUxifwG8UgxMKphyifxMU9057J72Xl34vgBGkMBgBDnoOUloPU9Zi/MRa/B8M", + "J73T3l8GBWYGEi2DL18uP7AWcA7CaASCAENCjHOZhJjQUQzm0Fg8RWgawTpEyNIk9GmKzR2IljawRqAJ", + "kDj072sLE0DII8LBcguSoFBSV3dySXDowxFGEWybriTXa9bghtV/6fcwZOD6NEQxHz+kcE4sO7pR277k", + "sAGMwRPv2x6mDBxCAbVtc8vrvvR7jyCmZETRiFAwmSgrMUYogiDmKMbwzzTEMOid/sEoQyM/lQLKlNvP", + "mVlOSMN4CYHZBBRGzRe3AufXHGNo/G/oUzaVyhKdPvcCSHwcJmyE3mmPffXQxKMz6AEpf/o9GKdzNjMf", + "pRTwL3yM0RhgAfBDGMEpk0793hzGKYMQUsjAg98oxDFk4OTE1yM0DSDvp0rUbKyTB4AZuggbVAX6PAdA", + "/XrLgHnPYVE/X2twqSVXAkatZwmv+u0ig71A3U2JoEvYU0rrsYjhHFE4ypYWMnIZR8i/h4GOJlNFe4Td", + "8NY3amNZ8j4bTJnXAtRQrKL8a/QY0tloDGM4CamghfkYsmUBwZwT63SGCG+QJhCLj0sTxm3eRv/we0hn", + "7wtYZOFVBpL8fSYhkz9/kQBmXTE4RRUFWbeZGNGxxT/XoytGdITiMQI44Isha4zQvY4D5XsXNHxC9HP8", + "Pu9dfv38Tw74OcAoJTC6nIMprCoUm9ix7ffLkAE5SnFURTGH36PIC0KSROCpgiGjLC46NAlFDTdfkgiB", + "oIqhMENcKzw59sZhDLAFhLznJsDu4DeDEuijCOEqROfsc0aElLVUaesvH/m/KlD9HaMBKuesT45hovPq", + "SyQIfLXh+RxDydvrxfZq5sd7MU+JzK7QA5xDk/0A5pldYWMvcIx0oYushT1dFC3q9eRN0GfRoh4OexpG", + "UTDqhGoMAVfbn23IWvasDZN3oS2btiJVZJvph8Ipwk/b2Spm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NINYwm0nuvMmi0vx", + "vAsnz508t5bnTqA6gbq7AjVCU5Qa5Oev4nvfLF3zUl1O5p+tfWzCYozQdAoDj7XdtMnmoziGPoW7/bRb", + "/5mb7ygeI4ADzi26VcMqigW1iXJlG2JDhOuuhraqp1ab2eduKcDU4088GwNwqhsepqOgvOu1avgXcWA/", + "CIyD9iFcoG6XQN26DacY0J2E7/2uly+lFJOEIv++WU7mlYxCMi/bLSmZAb3hB/xWZQZIvGaWwMEKsoL8", + "LCUZb2Bx50Ahy2XV6CNx2cOYst6dGLUTo5LAeBSB8YTvHEOmzIBMFFXEp6hwk5fWn+gtjoVP8DHnGVOM", + "KS/yKPJ8DkwlsKB6Xrc6qmwATKAmcPx3oKdmGeHt88G/IgJUVWrwLP9qCyIU8UIN8iG71JSVWl+OyBoY", + "b0dksG0khkjGRB0vP73bLD/t9hP9lrupOSbvSxI0b6eiwk6zyxb39zQJ7Pb3HQvwdVy8rxui9T0fEEUe", + "q/cAdd/m9wgHEJNXJr/DTl/22byHdh0nkQqKaw8k/xEGTILOEYXla1omAGZhAEeiuslvO0YogiBunmD2", + "4PruHEa6C1PuwtSh+Te0la7Kc4v8lEWkYBg3iPcsg2WrlLeKNinEBE9Pt00Z0ZX5zEEKjnH2nHF4S9aV", + "INcUR2wfpDQ5HQwi5INohgg9/Wn407DHdr2inLAK8GQM8GsKI+ijeQxi/+l1DOkAJOHg4Y2hAav9BB9R", + "NHk9waxaT4GtesspAvxuE/JSAvF3RFW4RQCYZBY+0eqmbOiguJ+QNS2i39ubl/aX6t0nu27kGZf3PYYg", + "8uYohk+vygkiTD0VL3oUgWRhzK1EMkNJJbwqhKZeuKDyUOwREMGaDoRwMEGgPqjIA/Lyd+TzsUUVIybE", + "tTWE5b01pnxmF1WLHrIbKy9fX/43AAD///utTgtTrAEA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/backend/internal/db/database.go b/backend/internal/db/database.go index 66fde35..4f1815d 100644 --- a/backend/internal/db/database.go +++ b/backend/internal/db/database.go @@ -134,8 +134,8 @@ type DBackend interface { GetRestocks(ctx context.Context, account string, page uint64, size uint64) ([]*models.Restock, error) CountRestocks(ctx context.Context, account string) (uint64, error) - GetAllRestocks(ctx context.Context, page uint64, size uint64) ([]*models.Restock, error) - CountAllRestocks(ctx context.Context) (uint64, error) + GetAllRestocks(ctx context.Context, page uint64, size uint64, state *autogen.RestockState) ([]*models.Restock, error) + CountAllRestocks(ctx context.Context, state *autogen.RestockState) (uint64, error) // CashMovement's CRUD CreateCashMovement(ctx context.Context, t *models.CashMovement) error diff --git a/backend/internal/db/mongo/restock_misc.go b/backend/internal/db/mongo/restock_misc.go index d24eed4..0ceea72 100644 --- a/backend/internal/db/mongo/restock_misc.go +++ b/backend/internal/db/mongo/restock_misc.go @@ -1,6 +1,7 @@ package mongo import ( + "bar/autogen" "bar/internal/models" "context" @@ -47,7 +48,7 @@ func (b *Backend) CountRestocks(ctx context.Context, accountID string) (uint64, return uint64(count), nil } -func (b *Backend) GetAllRestocks(ctx context.Context, page uint64, size uint64) ([]*models.Restock, error) { +func (b *Backend) GetAllRestocks(ctx context.Context, page uint64, size uint64, state *autogen.RestockState) ([]*models.Restock, error) { ctx, cancel := b.TimeoutContext(ctx) defer cancel() @@ -64,6 +65,10 @@ func (b *Backend) GetAllRestocks(ctx context.Context, page uint64, size uint64) }, } + if state != nil { + filter["state"] = *state + } + // Get "size" restocks from "page" using aggregation var restocks []*models.Restock cursor, err := b.db.Collection(RestocksCollection).Find(ctx, filter, options.Find().SetSkip(int64(page*size)).SetLimit(int64(size)).SetSort(bson.M{"created_at": -1})) @@ -79,7 +84,7 @@ func (b *Backend) GetAllRestocks(ctx context.Context, page uint64, size uint64) return restocks, nil } -func (b *Backend) CountAllRestocks(ctx context.Context) (uint64, error) { +func (b *Backend) CountAllRestocks(ctx context.Context, state *autogen.RestockState) (uint64, error) { ctx, cancel := b.TimeoutContext(ctx) defer cancel() @@ -96,6 +101,10 @@ func (b *Backend) CountAllRestocks(ctx context.Context) (uint64, error) { }, } + if state != nil { + filter["state"] = *state + } + count, err := b.db.Collection(RestocksCollection).CountDocuments(ctx, filter) if err != nil { return 0, err From ea2a7ed7ddd1c948301b63397f9a0479ed4dbcf2 Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Thu, 23 Jan 2025 01:34:54 +0100 Subject: [PATCH 2/9] feat(restock): change reappro to restock and chnage front for stated restock --- backend/go.mod | 21 +- backend/go.sum | 46 +- bar.openapi.yml | 83 +- .../src/lib/api/.openapi-generator/VERSION | 2 +- frontend/src/lib/api/api.ts | 1202 ++++++++++------- frontend/src/lib/api/base.ts | 20 +- frontend/src/lib/api/common.ts | 2 +- frontend/src/lib/api/configuration.ts | 9 + .../src/lib/components/panel/modules.svelte | 2 +- .../routes/panel/products/course/+page.svelte | 111 +- .../{reappro => restocks}/+page.svelte | 308 +++-- 11 files changed, 1207 insertions(+), 599 deletions(-) rename frontend/src/routes/panel/products/{reappro => restocks}/+page.svelte (81%) diff --git a/backend/go.mod b/backend/go.mod index 2bb7122..17d5e59 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -4,18 +4,18 @@ go 1.20 require ( github.com/caarlos0/env/v9 v9.0.0 - github.com/getkin/kin-openapi v0.120.0 + github.com/getkin/kin-openapi v0.128.0 github.com/go-sql-driver/mysql v1.7.1 - github.com/google/uuid v1.4.0 + github.com/google/uuid v1.5.0 github.com/gorilla/context v1.1.1 github.com/gorilla/sessions v1.2.1 github.com/gorilla/websocket v1.5.0 github.com/joho/godotenv v1.5.1 - github.com/labstack/echo/v4 v4.11.2 - github.com/labstack/gommon v0.4.1 + github.com/labstack/echo/v4 v4.11.4 + github.com/labstack/gommon v0.4.2 github.com/matthewhartstonge/argon2 v0.3.4 github.com/neko-neko/echo-logrus/v2 v2.0.2 - github.com/oapi-codegen/runtime v1.0.0 + github.com/oapi-codegen/runtime v1.1.1 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/sirupsen/logrus v1.9.3 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e @@ -29,8 +29,8 @@ require ( cloud.google.com/go/compute v1.23.2 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect - github.com/go-openapi/jsonpointer v0.20.0 // indirect - github.com/go-openapi/swag v0.22.4 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect + github.com/go-openapi/swag v0.23.0 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.3 // indirect @@ -39,7 +39,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect github.com/googleapis/gax-go/v2 v2.12.0 // indirect github.com/gorilla/securecookie v1.1.1 // indirect - github.com/invopop/yaml v0.2.0 // indirect + github.com/invopop/yaml v0.3.1 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/klauspost/compress v1.17.2 // indirect github.com/mailru/easyjson v0.7.7 // indirect @@ -48,7 +48,6 @@ require ( github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect github.com/montanaflynn/stats v0.7.1 // indirect github.com/perimeterx/marshmallow v1.1.5 // indirect - github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect github.com/xdg-go/pbkdf2 v1.0.0 // indirect @@ -56,11 +55,11 @@ require ( github.com/xdg-go/stringprep v1.0.4 // indirect github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.16.0 // indirect + golang.org/x/crypto v0.17.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.4.0 // indirect golang.org/x/sys v0.15.0 // indirect - golang.org/x/time v0.3.0 // indirect + golang.org/x/time v0.5.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect google.golang.org/grpc v1.59.0 // indirect diff --git a/backend/go.sum b/backend/go.sum index 6e6b9fa..499fec7 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -20,12 +20,12 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/getkin/kin-openapi v0.120.0 h1:MqJcNJFrMDFNc07iwE8iFC5eT2k/NPUFDIpNeiZv8Jg= -github.com/getkin/kin-openapi v0.120.0/go.mod h1:PCWw/lfBrJY4HcdqE3jj+QFkaFK8ABoqo7PvqVhXXqw= -github.com/go-openapi/jsonpointer v0.20.0 h1:ESKJdU9ASRfaPNOPRx12IUyA1vn3R9GiE3KYD14BXdQ= -github.com/go-openapi/jsonpointer v0.20.0/go.mod h1:6PGzBjjIIumbLYysB73Klnms1mwnU4G3YHOECG3CedA= -github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU= -github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/getkin/kin-openapi v0.128.0 h1:jqq3D9vC9pPq1dGcOCv7yOp1DaEe7c/T1vzcLbITSp4= +github.com/getkin/kin-openapi v0.128.0/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM= +github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= @@ -64,8 +64,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= -github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= @@ -78,8 +78,8 @@ github.com/gorilla/sessions v1.2.1 h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7Fsg github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/invopop/yaml v0.2.0 h1:7zky/qH+O0DwAyoobXUqvVBwgBFRxKoQ/3FjcVpjTMY= -github.com/invopop/yaml v0.2.0/go.mod h1:2XuRLgs/ouIrW3XNzuNj7J3Nvu/Dig5MXvbCEdiBN3Q= +github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= +github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= @@ -92,11 +92,11 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/labstack/echo/v4 v4.9.0/go.mod h1:xkCDAdFCIf8jsFQ5NnbK7oqaF/yU1A1X20Ltm0OvSks= -github.com/labstack/echo/v4 v4.11.2 h1:T+cTLQxWCDfqDEoydYm5kCobjmHwOwcv4OJAPHilmdE= -github.com/labstack/echo/v4 v4.11.2/go.mod h1:UcGuQ8V6ZNRmSweBIJkPvGfwCMIlFmiqrPqiEBfPYws= +github.com/labstack/echo/v4 v4.11.4 h1:vDZmA+qNeh1pd/cCkEicDMrjtrnMGQ1QFI9gWN1zGq8= +github.com/labstack/echo/v4 v4.11.4/go.mod h1:noh7EvLwqDsmh/X/HWKPUl1AjzJrhyptRyEbQJfxen8= github.com/labstack/gommon v0.3.1/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= -github.com/labstack/gommon v0.4.1 h1:gqEff0p/hTENGMABzezPoPSRtIh1Cvw0ueMOe0/dfOk= -github.com/labstack/gommon v0.4.1/go.mod h1:TyTrpPqxR5KMk8LKVtLmfMjeQ5FEkBYdxLYPw/WfrOM= +github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0= +github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/matthewhartstonge/argon2 v0.3.4 h1:4TU3B1XWTKoZtTd7z8+fklURHWw6a5du+M7mD35CsXA= @@ -115,8 +115,8 @@ github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8 github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/neko-neko/echo-logrus/v2 v2.0.2 h1:K3U1JuozTyr14i2K8WlsLVsOHVvgaMJ3Dinj2MQWhZA= github.com/neko-neko/echo-logrus/v2 v2.0.2/go.mod h1:AdodA1LU71JAxHBzs1NxoHbrys9iiX9HuEFEAUJ2ybQ= -github.com/oapi-codegen/runtime v1.0.0 h1:P4rqFX5fMFWqRzY9M/3YF9+aPSPPB06IzP2P7oOxrWo= -github.com/oapi-codegen/runtime v1.0.0/go.mod h1:LmCUMQuPB4M/nLXilQXhHw+BLZdDb18B34OO356yJ/A= +github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= +github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s= @@ -124,8 +124,7 @@ github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0V github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= -github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= @@ -142,7 +141,7 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= @@ -170,8 +169,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= +golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= @@ -228,8 +227,8 @@ golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= -golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -276,7 +275,6 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/bar.openapi.yml b/bar.openapi.yml index 0df347d..4b38836 100644 --- a/bar.openapi.yml +++ b/bar.openapi.yml @@ -3093,16 +3093,13 @@ paths: schema: type: integer format: uint64 - - name: search - in: query - description: search string - schema: - type: string - - name: sort + - name: state in: query - description: sort string + description: search state + required: + false schema: - type: string + $ref: "#/components/schemas/RestockState" responses: "200": description: "" @@ -3204,9 +3201,59 @@ paths: application/json: schema: $ref: "#/components/schemas/HTTPError" + security: + - admin_auth: [] tags: - restocks /restocks/{restock_id}: + patch: + description: "Update a restock" + operationId: updateRestock + parameters: + - name: restock_id + in: path + description: ID of the restock + required: true + schema: + $ref: "#/components/schemas/UUID" + requestBody: + description: "Restock to update" + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/NewRestock" + responses: + "204": + description: "Success" + "401": + description: "Not authenticated" + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPError" + "403": + description: "Forbidden" + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPError" + "404": + description: "Restock not found" + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPError" + "500": + description: "Internal server error" + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPError" + security: + - admin_auth: [] + tags: + - restocks delete: description: "Delete a restock" operationId: deleteRestock @@ -3244,6 +3291,8 @@ paths: application/json: schema: $ref: "#/components/schemas/HTTPError" + security: + - admin_auth: [] tags: - restocks /cash_movements: @@ -5513,6 +5562,9 @@ components: properties: item_id: $ref: "#/components/schemas/UUID" + item_name: + type: string + description: Name of the current item amount_of_bundle: type: integer format: uint64 @@ -5533,6 +5585,7 @@ components: format: uint64 required: - item_id + - item_name - amount_of_bundle - amount_per_bundle - bundle_cost_ht @@ -5555,11 +5608,14 @@ components: $ref: "#/components/schemas/UUID" type: $ref: "#/components/schemas/RestockType" + state: + $ref: "#/components/schemas/RestockState" required: - items - total_cost_ht - total_cost_ttc - type + - state RestockItem: type: object properties: @@ -5653,6 +5709,8 @@ components: format: uint64 deleted_by: $ref: "#/components/schemas/UUID" + state: + $ref: "#/components/schemas/RestockState" required: - items - total_cost_ht @@ -5662,6 +5720,15 @@ components: - created_at - created_by - created_by_name + - state + RestockState: + type: string + enum: + - finished + - pending + x-enum-varnames: + - RestockFinished + - RestockPending NewCashMovement: type: object properties: diff --git a/frontend/src/lib/api/.openapi-generator/VERSION b/frontend/src/lib/api/.openapi-generator/VERSION index cd802a1..09a6d30 100644 --- a/frontend/src/lib/api/.openapi-generator/VERSION +++ b/frontend/src/lib/api/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.8.0 diff --git a/frontend/src/lib/api/api.ts b/frontend/src/lib/api/api.ts index 389936e..2d30eea 100644 --- a/frontend/src/lib/api/api.ts +++ b/frontend/src/lib/api/api.ts @@ -14,14 +14,14 @@ import type { Configuration } from './configuration'; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base'; +import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * @@ -1480,6 +1480,12 @@ export interface NewRestock { * @memberof NewRestock */ 'type': RestockType; + /** + * + * @type {RestockState} + * @memberof NewRestock + */ + 'state': RestockState; } @@ -1495,6 +1501,12 @@ export interface NewRestockItem { * @memberof NewRestockItem */ 'item_id': string; + /** + * Name of the current item + * @type {string} + * @memberof NewRestockItem + */ + 'item_name': string; /** * * @type {number} @@ -1835,6 +1847,12 @@ export interface Restock { * @memberof Restock */ 'deleted_by'?: string; + /** + * + * @type {RestockState} + * @memberof Restock + */ + 'state': RestockState; } @@ -1893,6 +1911,20 @@ export interface RestockItem { */ 'tva': number; } +/** + * + * @export + * @enum {string} + */ + +export const RestockState = { + RestockFinished: 'finished', + RestockPending: 'pending' +} as const; + +export type RestockState = typeof RestockState[keyof typeof RestockState]; + + /** * * @export @@ -2349,7 +2381,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminToggleAccountWantsToStaff: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + adminToggleAccountWantsToStaff: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('adminToggleAccountWantsToStaff', 'accountId', accountId) const localVarPath = `/accounts/{account_id}/toggles/wants_to_staff` @@ -2384,7 +2416,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccount: async (options: AxiosRequestConfig = {}): Promise => { + getAccount: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2416,7 +2448,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountAdmin: async (options: AxiosRequestConfig = {}): Promise => { + getAccountAdmin: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/admin`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2449,7 +2481,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountId: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + getAccountId: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountId', 'accountId', accountId) const localVarPath = `/accounts/{account_id}` @@ -2487,7 +2519,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccounts: async (page?: number, limit?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + getAccounts: async (page?: number, limit?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2532,7 +2564,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - importAccounts: async (file?: File, options: AxiosRequestConfig = {}): Promise => { + importAccounts: async (file?: File, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/import/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2573,7 +2605,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteAccountId: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteAccountId: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('markDeleteAccountId', 'accountId', accountId) const localVarPath = `/accounts/{account_id}` @@ -2610,7 +2642,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountId: async (accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options: AxiosRequestConfig = {}): Promise => { + patchAccountId: async (accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchAccountId', 'accountId', accountId) const localVarPath = `/accounts/{account_id}` @@ -2648,7 +2680,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPassword: async (patchAccountPasswordRequest?: PatchAccountPasswordRequest, options: AxiosRequestConfig = {}): Promise => { + patchAccountPassword: async (patchAccountPasswordRequest?: PatchAccountPasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/password`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2683,7 +2715,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPin: async (patchAccountPinRequest?: PatchAccountPinRequest, options: AxiosRequestConfig = {}): Promise => { + patchAccountPin: async (patchAccountPinRequest?: PatchAccountPinRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/pin`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2719,7 +2751,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postAccounts: async (newAccount?: NewAccount, options: AxiosRequestConfig = {}): Promise => { + postAccounts: async (newAccount?: NewAccount, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2755,7 +2787,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - resetAccountPin: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + resetAccountPin: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('resetAccountPin', 'accountId', accountId) const localVarPath = `/account/{account_id}/reset_pin` @@ -2790,7 +2822,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - toggleAccountWantsToStaff: async (options: AxiosRequestConfig = {}): Promise => { + toggleAccountWantsToStaff: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/toggles/wants_to_staff`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2822,7 +2854,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - watchAccount: async (options: AxiosRequestConfig = {}): Promise => { + watchAccount: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/watch`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2865,9 +2897,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async adminToggleAccountWantsToStaff(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async adminToggleAccountWantsToStaff(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.adminToggleAccountWantsToStaff(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.adminToggleAccountWantsToStaff']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the basic current account\'s information @@ -2875,9 +2909,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Check if the current account can access the admin panel @@ -2885,9 +2921,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountAdmin(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountAdmin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountAdmin(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountAdmin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the account\'s information @@ -2896,9 +2934,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountId(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountId(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountId(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all accounts informations @@ -2909,9 +2949,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccounts(page, limit, search, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Import accounts from a CSV file @@ -2920,9 +2962,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async importAccounts(file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async importAccounts(file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.importAccounts(file, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.importAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete account @@ -2931,9 +2975,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteAccountId(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteAccountId(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteAccountId(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.markDeleteAccountId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update account @@ -2943,9 +2989,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAccountId(accountId, updateAccountAdmin, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchAccountId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update account\'s password @@ -2953,9 +3001,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAccountPassword(patchAccountPasswordRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchAccountPassword']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update\'s account card pin / id @@ -2963,9 +3013,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAccountPin(patchAccountPinRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchAccountPin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Add an account to the database @@ -2974,9 +3026,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postAccounts(newAccount?: NewAccount, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postAccounts(newAccount?: NewAccount, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postAccounts(newAccount, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.postAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Reset the account\'s pin @@ -2985,9 +3039,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async resetAccountPin(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async resetAccountPin(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPin(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.resetAccountPin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Toggles the wants_to_staff flag @@ -2995,9 +3051,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async toggleAccountWantsToStaff(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async toggleAccountWantsToStaff(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.toggleAccountWantsToStaff(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.toggleAccountWantsToStaff']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Listen for changes on account @@ -3005,9 +3063,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async watchAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async watchAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.watchAccount(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.watchAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -3026,7 +3086,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminToggleAccountWantsToStaff(accountId: string, options?: any): AxiosPromise { + adminToggleAccountWantsToStaff(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.adminToggleAccountWantsToStaff(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3035,7 +3095,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccount(options?: any): AxiosPromise { + getAccount(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccount(options).then((request) => request(axios, basePath)); }, /** @@ -3044,7 +3104,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountAdmin(options?: any): AxiosPromise { + getAccountAdmin(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountAdmin(options).then((request) => request(axios, basePath)); }, /** @@ -3054,7 +3114,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountId(accountId: string, options?: any): AxiosPromise { + getAccountId(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountId(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3066,7 +3126,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccounts(page?: number, limit?: number, search?: string, options?: any): AxiosPromise { + getAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccounts(page, limit, search, options).then((request) => request(axios, basePath)); }, /** @@ -3076,7 +3136,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - importAccounts(file?: File, options?: any): AxiosPromise { + importAccounts(file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.importAccounts(file, options).then((request) => request(axios, basePath)); }, /** @@ -3086,7 +3146,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteAccountId(accountId: string, options?: any): AxiosPromise { + markDeleteAccountId(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteAccountId(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3097,7 +3157,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: any): AxiosPromise { + patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAccountId(accountId, updateAccountAdmin, options).then((request) => request(axios, basePath)); }, /** @@ -3106,7 +3166,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: any): AxiosPromise { + patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAccountPassword(patchAccountPasswordRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3115,7 +3175,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: any): AxiosPromise { + patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAccountPin(patchAccountPinRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3125,7 +3185,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postAccounts(newAccount?: NewAccount, options?: any): AxiosPromise { + postAccounts(newAccount?: NewAccount, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postAccounts(newAccount, options).then((request) => request(axios, basePath)); }, /** @@ -3135,7 +3195,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - resetAccountPin(accountId: string, options?: any): AxiosPromise { + resetAccountPin(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resetAccountPin(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3144,7 +3204,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - toggleAccountWantsToStaff(options?: any): AxiosPromise { + toggleAccountWantsToStaff(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.toggleAccountWantsToStaff(options).then((request) => request(axios, basePath)); }, /** @@ -3153,7 +3213,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - watchAccount(options?: any): AxiosPromise { + watchAccount(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.watchAccount(options).then((request) => request(axios, basePath)); }, }; @@ -3174,7 +3234,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public adminToggleAccountWantsToStaff(accountId: string, options?: AxiosRequestConfig) { + public adminToggleAccountWantsToStaff(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).adminToggleAccountWantsToStaff(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3185,7 +3245,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccount(options?: AxiosRequestConfig) { + public getAccount(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccount(options).then((request) => request(this.axios, this.basePath)); } @@ -3196,7 +3256,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccountAdmin(options?: AxiosRequestConfig) { + public getAccountAdmin(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccountAdmin(options).then((request) => request(this.axios, this.basePath)); } @@ -3208,7 +3268,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccountId(accountId: string, options?: AxiosRequestConfig) { + public getAccountId(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccountId(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3222,7 +3282,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig) { + public getAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccounts(page, limit, search, options).then((request) => request(this.axios, this.basePath)); } @@ -3234,7 +3294,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public importAccounts(file?: File, options?: AxiosRequestConfig) { + public importAccounts(file?: File, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).importAccounts(file, options).then((request) => request(this.axios, this.basePath)); } @@ -3246,7 +3306,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public markDeleteAccountId(accountId: string, options?: AxiosRequestConfig) { + public markDeleteAccountId(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).markDeleteAccountId(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3259,7 +3319,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: AxiosRequestConfig) { + public patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).patchAccountId(accountId, updateAccountAdmin, options).then((request) => request(this.axios, this.basePath)); } @@ -3270,7 +3330,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: AxiosRequestConfig) { + public patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).patchAccountPassword(patchAccountPasswordRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3281,7 +3341,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: AxiosRequestConfig) { + public patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).patchAccountPin(patchAccountPinRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3293,7 +3353,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public postAccounts(newAccount?: NewAccount, options?: AxiosRequestConfig) { + public postAccounts(newAccount?: NewAccount, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).postAccounts(newAccount, options).then((request) => request(this.axios, this.basePath)); } @@ -3305,7 +3365,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public resetAccountPin(accountId: string, options?: AxiosRequestConfig) { + public resetAccountPin(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).resetAccountPin(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3316,7 +3376,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public toggleAccountWantsToStaff(options?: AxiosRequestConfig) { + public toggleAccountWantsToStaff(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).toggleAccountWantsToStaff(options).then((request) => request(this.axios, this.basePath)); } @@ -3327,12 +3387,13 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public watchAccount(options?: AxiosRequestConfig) { + public watchAccount(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).watchAccount(options).then((request) => request(this.axios, this.basePath)); } } + /** * AuthApi - axios parameter creator * @export @@ -3347,7 +3408,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - callback: async (code: string, state: string, options: AxiosRequestConfig = {}): Promise => { + callback: async (code: string, state: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'code' is not null or undefined assertParamExists('callback', 'code', code) // verify required parameter 'state' is not null or undefined @@ -3390,7 +3451,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectAccount: async (qrNonce: string, options: AxiosRequestConfig = {}): Promise => { + connectAccount: async (qrNonce: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'qrNonce' is not null or undefined assertParamExists('connectAccount', 'qrNonce', qrNonce) const localVarPath = `/auth/google/begin/{qr_nonce}` @@ -3424,7 +3485,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectCard: async (connectCardRequest?: ConnectCardRequest, options: AxiosRequestConfig = {}): Promise => { + connectCard: async (connectCardRequest?: ConnectCardRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/card`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3461,7 +3522,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectGoogle: async (r: string, options: AxiosRequestConfig = {}): Promise => { + connectGoogle: async (r: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'r' is not null or undefined assertParamExists('connectGoogle', 'r', r) const localVarPath = `/auth/google`; @@ -3498,7 +3559,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectPassword: async (connectPasswordRequest?: ConnectPasswordRequest, options: AxiosRequestConfig = {}): Promise => { + connectPassword: async (connectPasswordRequest?: ConnectPasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/password`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3535,7 +3596,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQR: async (getAccountQRRequest?: GetAccountQRRequest, options: AxiosRequestConfig = {}): Promise => { + getAccountQR: async (getAccountQRRequest?: GetAccountQRRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3572,7 +3633,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logout: async (options: AxiosRequestConfig = {}): Promise => { + logout: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/logout`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3618,9 +3679,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async callback(code: string, state: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async callback(code: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.callback(code, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.callback']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account to Google @@ -3629,9 +3692,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectAccount(qrNonce: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectAccount(qrNonce: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectAccount(qrNonce, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account to card @@ -3640,9 +3705,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectCard(connectCardRequest?: ConnectCardRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectCard(connectCardRequest?: ConnectCardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectCard(connectCardRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectCard']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account to Google @@ -3651,9 +3718,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectGoogle(r: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectGoogle(r: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectGoogle(r, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectGoogle']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account with password @@ -3662,9 +3731,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectPassword(connectPasswordRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectPassword']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the QR code to connect account to Google @@ -3673,9 +3744,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountQR(getAccountQRRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.getAccountQR']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Logout @@ -3683,9 +3756,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async logout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.logout']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -3705,7 +3780,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - callback(code: string, state: string, options?: any): AxiosPromise { + callback(code: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.callback(code, state, options).then((request) => request(axios, basePath)); }, /** @@ -3715,7 +3790,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectAccount(qrNonce: string, options?: any): AxiosPromise { + connectAccount(qrNonce: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectAccount(qrNonce, options).then((request) => request(axios, basePath)); }, /** @@ -3725,7 +3800,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectCard(connectCardRequest?: ConnectCardRequest, options?: any): AxiosPromise { + connectCard(connectCardRequest?: ConnectCardRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectCard(connectCardRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3735,7 +3810,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectGoogle(r: string, options?: any): AxiosPromise { + connectGoogle(r: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectGoogle(r, options).then((request) => request(axios, basePath)); }, /** @@ -3745,7 +3820,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: any): AxiosPromise { + connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectPassword(connectPasswordRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3755,7 +3830,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: any): AxiosPromise { + getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountQR(getAccountQRRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3764,7 +3839,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logout(options?: any): AxiosPromise { + logout(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logout(options).then((request) => request(axios, basePath)); }, }; @@ -3786,7 +3861,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public callback(code: string, state: string, options?: AxiosRequestConfig) { + public callback(code: string, state: string, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).callback(code, state, options).then((request) => request(this.axios, this.basePath)); } @@ -3798,7 +3873,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectAccount(qrNonce: string, options?: AxiosRequestConfig) { + public connectAccount(qrNonce: string, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectAccount(qrNonce, options).then((request) => request(this.axios, this.basePath)); } @@ -3810,7 +3885,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectCard(connectCardRequest?: ConnectCardRequest, options?: AxiosRequestConfig) { + public connectCard(connectCardRequest?: ConnectCardRequest, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectCard(connectCardRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3822,7 +3897,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectGoogle(r: string, options?: AxiosRequestConfig) { + public connectGoogle(r: string, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectGoogle(r, options).then((request) => request(this.axios, this.basePath)); } @@ -3834,7 +3909,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: AxiosRequestConfig) { + public connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectPassword(connectPasswordRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3846,7 +3921,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: AxiosRequestConfig) { + public getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).getAccountQR(getAccountQRRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3857,12 +3932,13 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public logout(options?: AxiosRequestConfig) { + public logout(options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath)); } } + /** * CarouselApi - axios parameter creator * @export @@ -3875,7 +3951,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselImage: async (image: File, options: AxiosRequestConfig = {}): Promise => { + addCarouselImage: async (image: File, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'image' is not null or undefined assertParamExists('addCarouselImage', 'image', image) const localVarPath = `/carousel/images`; @@ -3917,7 +3993,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselText: async (carouselTextCreate: CarouselTextCreate, options: AxiosRequestConfig = {}): Promise => { + addCarouselText: async (carouselTextCreate: CarouselTextCreate, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'carouselTextCreate' is not null or undefined assertParamExists('addCarouselText', 'carouselTextCreate', carouselTextCreate) const localVarPath = `/carousel/texts`; @@ -3954,7 +4030,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + getCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('getCarouselImage', 'imageId', imageId) const localVarPath = `/carousel/images/{image_id}` @@ -3986,7 +4062,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImages: async (options: AxiosRequestConfig = {}): Promise => { + getCarouselImages: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/carousel/images`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4015,7 +4091,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselTexts: async (options: AxiosRequestConfig = {}): Promise => { + getCarouselTexts: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/carousel/texts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4045,7 +4121,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('markDeleteCarouselImage', 'imageId', imageId) const localVarPath = `/carousel/images/{image_id}` @@ -4080,7 +4156,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselText: async (textId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteCarouselText: async (textId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'textId' is not null or undefined assertParamExists('markDeleteCarouselText', 'textId', textId) const localVarPath = `/carousel/texts/{text_id}` @@ -4125,9 +4201,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async addCarouselImage(image: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async addCarouselImage(image: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addCarouselImage(image, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.addCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Add a carousel text @@ -4135,9 +4213,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async addCarouselText(carouselTextCreate: CarouselTextCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async addCarouselText(carouselTextCreate: CarouselTextCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addCarouselText(carouselTextCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.addCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a carousel image @@ -4145,27 +4225,33 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.getCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get carousel images * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCarouselImages(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getCarouselImages(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCarouselImages(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.getCarouselImages']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get carousel texts * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCarouselTexts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getCarouselTexts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCarouselTexts(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.getCarouselTexts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a carousel image @@ -4173,9 +4259,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.markDeleteCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a carousel text @@ -4183,9 +4271,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteCarouselText(textId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteCarouselText(textId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteCarouselText(textId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.markDeleteCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -4203,7 +4293,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselImage(image: File, options?: any): AxiosPromise { + addCarouselImage(image: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addCarouselImage(image, options).then((request) => request(axios, basePath)); }, /** @@ -4212,7 +4302,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselText(carouselTextCreate: CarouselTextCreate, options?: any): AxiosPromise { + addCarouselText(carouselTextCreate: CarouselTextCreate, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addCarouselText(carouselTextCreate, options).then((request) => request(axios, basePath)); }, /** @@ -4221,7 +4311,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImage(imageId: string, options?: any): AxiosPromise { + getCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -4229,7 +4319,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImages(options?: any): AxiosPromise> { + getCarouselImages(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCarouselImages(options).then((request) => request(axios, basePath)); }, /** @@ -4237,7 +4327,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselTexts(options?: any): AxiosPromise> { + getCarouselTexts(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCarouselTexts(options).then((request) => request(axios, basePath)); }, /** @@ -4246,7 +4336,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselImage(imageId: string, options?: any): AxiosPromise { + markDeleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -4255,7 +4345,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselText(textId: string, options?: any): AxiosPromise { + markDeleteCarouselText(textId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteCarouselText(textId, options).then((request) => request(axios, basePath)); }, }; @@ -4275,7 +4365,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public addCarouselImage(image: File, options?: AxiosRequestConfig) { + public addCarouselImage(image: File, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).addCarouselImage(image, options).then((request) => request(this.axios, this.basePath)); } @@ -4286,7 +4376,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public addCarouselText(carouselTextCreate: CarouselTextCreate, options?: AxiosRequestConfig) { + public addCarouselText(carouselTextCreate: CarouselTextCreate, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).addCarouselText(carouselTextCreate, options).then((request) => request(this.axios, this.basePath)); } @@ -4297,7 +4387,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public getCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public getCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).getCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -4307,7 +4397,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public getCarouselImages(options?: AxiosRequestConfig) { + public getCarouselImages(options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).getCarouselImages(options).then((request) => request(this.axios, this.basePath)); } @@ -4317,7 +4407,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public getCarouselTexts(options?: AxiosRequestConfig) { + public getCarouselTexts(options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).getCarouselTexts(options).then((request) => request(this.axios, this.basePath)); } @@ -4328,7 +4418,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public markDeleteCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public markDeleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).markDeleteCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -4339,12 +4429,13 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public markDeleteCarouselText(textId: string, options?: AxiosRequestConfig) { + public markDeleteCarouselText(textId: string, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).markDeleteCarouselText(textId, options).then((request) => request(this.axios, this.basePath)); } } + /** * CashMovementsApi - axios parameter creator * @export @@ -4357,7 +4448,7 @@ export const CashMovementsApiAxiosParamCreator = function (configuration?: Confi * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createCashMovement: async (newCashMovement: NewCashMovement, options: AxiosRequestConfig = {}): Promise => { + createCashMovement: async (newCashMovement: NewCashMovement, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'newCashMovement' is not null or undefined assertParamExists('createCashMovement', 'newCashMovement', newCashMovement) const localVarPath = `/cash_movements`; @@ -4394,7 +4485,7 @@ export const CashMovementsApiAxiosParamCreator = function (configuration?: Confi * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCashMovement: async (cashMovementId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCashMovement: async (cashMovementId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'cashMovementId' is not null or undefined assertParamExists('deleteCashMovement', 'cashMovementId', cashMovementId) const localVarPath = `/cash_movements/{cash_movement_id}` @@ -4431,7 +4522,7 @@ export const CashMovementsApiAxiosParamCreator = function (configuration?: Confi * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCashMovements: async (page?: number, limit?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + getCashMovements: async (page?: number, limit?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/cash_movements`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4485,9 +4576,11 @@ export const CashMovementsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createCashMovement(newCashMovement: NewCashMovement, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createCashMovement(newCashMovement: NewCashMovement, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCashMovement(newCashMovement, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CashMovementsApi.createCashMovement']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a cash movement @@ -4495,9 +4588,11 @@ export const CashMovementsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCashMovement(cashMovementId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCashMovement(cashMovementId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCashMovement(cashMovementId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CashMovementsApi.deleteCashMovement']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get cash movements @@ -4507,9 +4602,11 @@ export const CashMovementsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCashMovements(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCashMovements(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCashMovements(page, limit, search, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CashMovementsApi.getCashMovements']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -4527,7 +4624,7 @@ export const CashMovementsApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createCashMovement(newCashMovement: NewCashMovement, options?: any): AxiosPromise { + createCashMovement(newCashMovement: NewCashMovement, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCashMovement(newCashMovement, options).then((request) => request(axios, basePath)); }, /** @@ -4536,7 +4633,7 @@ export const CashMovementsApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCashMovement(cashMovementId: string, options?: any): AxiosPromise { + deleteCashMovement(cashMovementId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCashMovement(cashMovementId, options).then((request) => request(axios, basePath)); }, /** @@ -4547,7 +4644,7 @@ export const CashMovementsApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCashMovements(page?: number, limit?: number, search?: string, options?: any): AxiosPromise { + getCashMovements(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCashMovements(page, limit, search, options).then((request) => request(axios, basePath)); }, }; @@ -4567,7 +4664,7 @@ export class CashMovementsApi extends BaseAPI { * @throws {RequiredError} * @memberof CashMovementsApi */ - public createCashMovement(newCashMovement: NewCashMovement, options?: AxiosRequestConfig) { + public createCashMovement(newCashMovement: NewCashMovement, options?: RawAxiosRequestConfig) { return CashMovementsApiFp(this.configuration).createCashMovement(newCashMovement, options).then((request) => request(this.axios, this.basePath)); } @@ -4578,7 +4675,7 @@ export class CashMovementsApi extends BaseAPI { * @throws {RequiredError} * @memberof CashMovementsApi */ - public deleteCashMovement(cashMovementId: string, options?: AxiosRequestConfig) { + public deleteCashMovement(cashMovementId: string, options?: RawAxiosRequestConfig) { return CashMovementsApiFp(this.configuration).deleteCashMovement(cashMovementId, options).then((request) => request(this.axios, this.basePath)); } @@ -4591,12 +4688,13 @@ export class CashMovementsApi extends BaseAPI { * @throws {RequiredError} * @memberof CashMovementsApi */ - public getCashMovements(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig) { + public getCashMovements(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig) { return CashMovementsApiFp(this.configuration).getCashMovements(page, limit, search, options).then((request) => request(this.axios, this.basePath)); } } + /** * CategoriesApi - axios parameter creator * @export @@ -4609,7 +4707,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategories: async (hidden?: boolean, options: AxiosRequestConfig = {}): Promise => { + getCategories: async (hidden?: boolean, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/categories`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4645,7 +4743,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + getCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getCategory', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}` @@ -4680,7 +4778,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryPicture: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + getCategoryPicture: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getCategoryPicture', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}/picture` @@ -4715,7 +4813,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('markDeleteCategory', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}` @@ -4751,7 +4849,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchCategory: async (categoryId: string, updateCategory: UpdateCategory, options: AxiosRequestConfig = {}): Promise => { + patchCategory: async (categoryId: string, updateCategory: UpdateCategory, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('patchCategory', 'categoryId', categoryId) // verify required parameter 'updateCategory' is not null or undefined @@ -4791,7 +4889,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCategory: async (newCategory: NewCategory, options: AxiosRequestConfig = {}): Promise => { + postCategory: async (newCategory: NewCategory, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'newCategory' is not null or undefined assertParamExists('postCategory', 'newCategory', newCategory) const localVarPath = `/categories`; @@ -4838,9 +4936,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategories(hidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getCategories(hidden?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(hidden, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.getCategories']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a category @@ -4848,9 +4948,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.getCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a category picture @@ -4858,9 +4960,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategoryPicture(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCategoryPicture(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryPicture(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.getCategoryPicture']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a category @@ -4868,9 +4972,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.markDeleteCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a category @@ -4879,9 +4985,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(categoryId, updateCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.patchCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new category @@ -4889,9 +4997,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postCategory(newCategory: NewCategory, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postCategory(newCategory: NewCategory, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postCategory(newCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.postCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -4909,7 +5019,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategories(hidden?: boolean, options?: any): AxiosPromise> { + getCategories(hidden?: boolean, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCategories(hidden, options).then((request) => request(axios, basePath)); }, /** @@ -4918,7 +5028,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategory(categoryId: string, options?: any): AxiosPromise { + getCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -4927,7 +5037,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryPicture(categoryId: string, options?: any): AxiosPromise { + getCategoryPicture(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCategoryPicture(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -4936,7 +5046,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCategory(categoryId: string, options?: any): AxiosPromise { + markDeleteCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -4946,7 +5056,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: any): AxiosPromise { + patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchCategory(categoryId, updateCategory, options).then((request) => request(axios, basePath)); }, /** @@ -4955,7 +5065,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCategory(newCategory: NewCategory, options?: any): AxiosPromise { + postCategory(newCategory: NewCategory, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postCategory(newCategory, options).then((request) => request(axios, basePath)); }, }; @@ -4975,7 +5085,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public getCategories(hidden?: boolean, options?: AxiosRequestConfig) { + public getCategories(hidden?: boolean, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).getCategories(hidden, options).then((request) => request(this.axios, this.basePath)); } @@ -4986,7 +5096,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public getCategory(categoryId: string, options?: AxiosRequestConfig) { + public getCategory(categoryId: string, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).getCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -4997,7 +5107,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public getCategoryPicture(categoryId: string, options?: AxiosRequestConfig) { + public getCategoryPicture(categoryId: string, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).getCategoryPicture(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -5008,7 +5118,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public markDeleteCategory(categoryId: string, options?: AxiosRequestConfig) { + public markDeleteCategory(categoryId: string, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).markDeleteCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -5020,7 +5130,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: AxiosRequestConfig) { + public patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).patchCategory(categoryId, updateCategory, options).then((request) => request(this.axios, this.basePath)); } @@ -5031,12 +5141,13 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public postCategory(newCategory: NewCategory, options?: AxiosRequestConfig) { + public postCategory(newCategory: NewCategory, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).postCategory(newCategory, options).then((request) => request(this.axios, this.basePath)); } } + /** * CourseApi - axios parameter creator * @export @@ -5049,7 +5160,7 @@ export const CourseApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCourse: async (fournisseur?: string, options: AxiosRequestConfig = {}): Promise => { + getCourse: async (fournisseur?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/course`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5095,9 +5206,11 @@ export const CourseApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCourse(fournisseur?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCourse(fournisseur?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCourse(fournisseur, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CourseApi.getCourse']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -5115,7 +5228,7 @@ export const CourseApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCourse(fournisseur?: string, options?: any): AxiosPromise { + getCourse(fournisseur?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCourse(fournisseur, options).then((request) => request(axios, basePath)); }, }; @@ -5135,12 +5248,13 @@ export class CourseApi extends BaseAPI { * @throws {RequiredError} * @memberof CourseApi */ - public getCourse(fournisseur?: string, options?: AxiosRequestConfig) { + public getCourse(fournisseur?: string, options?: RawAxiosRequestConfig) { return CourseApiFp(this.configuration).getCourse(fournisseur, options).then((request) => request(this.axios, this.basePath)); } } + /** * DefaultApi - axios parameter creator * @export @@ -5153,7 +5267,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQRWebsocket: async (options: AxiosRequestConfig = {}): Promise => { + getAccountQRWebsocket: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5183,7 +5297,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getBorneAuthQRWebsocket: async (options: AxiosRequestConfig = {}): Promise => { + getBorneAuthQRWebsocket: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5217,7 +5331,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postBorneAuthQR: async (postBorneAuthQRRequest?: PostBorneAuthQRRequest, options: AxiosRequestConfig = {}): Promise => { + postBorneAuthQR: async (postBorneAuthQRRequest?: PostBorneAuthQRRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5260,9 +5374,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountQRWebsocket(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountQRWebsocket(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountQRWebsocket(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getAccountQRWebsocket']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Websocket to listen for scan & callback (for cool animations) @@ -5270,9 +5386,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getBorneAuthQRWebsocket(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getBorneAuthQRWebsocket(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getBorneAuthQRWebsocket(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getBorneAuthQRWebsocket']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Validate the connection to connect @@ -5281,9 +5399,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postBorneAuthQR(postBorneAuthQRRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.postBorneAuthQR']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -5301,7 +5421,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQRWebsocket(options?: any): AxiosPromise { + getAccountQRWebsocket(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountQRWebsocket(options).then((request) => request(axios, basePath)); }, /** @@ -5310,7 +5430,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getBorneAuthQRWebsocket(options?: any): AxiosPromise { + getBorneAuthQRWebsocket(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getBorneAuthQRWebsocket(options).then((request) => request(axios, basePath)); }, /** @@ -5320,7 +5440,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: any): AxiosPromise { + postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postBorneAuthQR(postBorneAuthQRRequest, options).then((request) => request(axios, basePath)); }, }; @@ -5340,7 +5460,7 @@ export class DefaultApi extends BaseAPI { * @throws {RequiredError} * @memberof DefaultApi */ - public getAccountQRWebsocket(options?: AxiosRequestConfig) { + public getAccountQRWebsocket(options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getAccountQRWebsocket(options).then((request) => request(this.axios, this.basePath)); } @@ -5351,7 +5471,7 @@ export class DefaultApi extends BaseAPI { * @throws {RequiredError} * @memberof DefaultApi */ - public getBorneAuthQRWebsocket(options?: AxiosRequestConfig) { + public getBorneAuthQRWebsocket(options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getBorneAuthQRWebsocket(options).then((request) => request(this.axios, this.basePath)); } @@ -5363,12 +5483,13 @@ export class DefaultApi extends BaseAPI { * @throws {RequiredError} * @memberof DefaultApi */ - public postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: AxiosRequestConfig) { + public postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).postBorneAuthQR(postBorneAuthQRRequest, options).then((request) => request(this.axios, this.basePath)); } } + /** * DeletedApi - axios parameter creator * @export @@ -5381,7 +5502,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteAccount: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + deleteAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteAccount', 'accountId', accountId) const localVarPath = `/deleted/accounts/{account_id}` @@ -5416,7 +5537,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('deleteCarouselImage', 'imageId', imageId) const localVarPath = `/deleted/carousel/images/{image_id}` @@ -5451,7 +5572,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselText: async (textId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCarouselText: async (textId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'textId' is not null or undefined assertParamExists('deleteCarouselText', 'textId', textId) const localVarPath = `/deleted/carousel/texts/{text_id}` @@ -5486,7 +5607,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('deleteCategory', 'categoryId', categoryId) const localVarPath = `/deleted/categories/{category_id}` @@ -5521,7 +5642,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteItem: async (itemId: string, options: AxiosRequestConfig = {}): Promise => { + deleteItem: async (itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('deleteItem', 'itemId', itemId) const localVarPath = `/deleted/items/{item_id}` @@ -5556,7 +5677,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRefill: async (refillId: string, options: AxiosRequestConfig = {}): Promise => { + deleteRefill: async (refillId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'refillId' is not null or undefined assertParamExists('deleteRefill', 'refillId', refillId) const localVarPath = `/deleted/refills/{refill_id}` @@ -5591,7 +5712,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTransaction: async (transactionId: string, options: AxiosRequestConfig = {}): Promise => { + deleteTransaction: async (transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined assertParamExists('deleteTransaction', 'transactionId', transactionId) const localVarPath = `/deleted/transactions/{transaction_id}` @@ -5628,7 +5749,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedAccounts: async (page?: number, limit?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + getDeletedAccounts: async (page?: number, limit?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5673,7 +5794,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselImages: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedCarouselImages: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/carousel/images`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5714,7 +5835,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselTexts: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedCarouselTexts: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/carousel/texts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5755,7 +5876,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCategories: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedCategories: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/categories`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5796,7 +5917,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedItems: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedItems: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5837,7 +5958,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedRefills: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedRefills: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/refills`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5878,7 +5999,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedTransactions: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedTransactions: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5918,7 +6039,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedAccount: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('restoreDeletedAccount', 'accountId', accountId) const localVarPath = `/deleted/accounts/{account_id}` @@ -5953,7 +6074,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('restoreDeletedCarouselImage', 'imageId', imageId) const localVarPath = `/deleted/carousel/images/{image_id}` @@ -5988,7 +6109,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselText: async (textId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedCarouselText: async (textId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'textId' is not null or undefined assertParamExists('restoreDeletedCarouselText', 'textId', textId) const localVarPath = `/deleted/carousel/texts/{text_id}` @@ -6023,7 +6144,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('restoreDeletedCategory', 'categoryId', categoryId) const localVarPath = `/deleted/categories/{category_id}` @@ -6058,7 +6179,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedItem: async (itemId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedItem: async (itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('restoreDeletedItem', 'itemId', itemId) const localVarPath = `/deleted/items/{item_id}` @@ -6093,7 +6214,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedRefill: async (refillId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedRefill: async (refillId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'refillId' is not null or undefined assertParamExists('restoreDeletedRefill', 'refillId', refillId) const localVarPath = `/deleted/refills/{refill_id}` @@ -6128,7 +6249,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedTransaction: async (transactionId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedTransaction: async (transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined assertParamExists('restoreDeletedTransaction', 'transactionId', transactionId) const localVarPath = `/deleted/transactions/{transaction_id}` @@ -6173,9 +6294,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteAccount(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccount(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a carousel image (SUPERADMIN) @@ -6183,9 +6306,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a carousel text (SUPERADMIN) @@ -6193,9 +6318,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCarouselText(textId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCarouselText(textId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCarouselText(textId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a category (SUPERADMIN) @@ -6203,9 +6330,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes an item (SUPERADMIN) @@ -6213,9 +6342,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteItem(itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteItem(itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItem(itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a refill (SUPERADMIN) @@ -6223,9 +6354,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteRefill(refillId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteRefill(refillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRefill(refillId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a transaction (SUPERADMIN) @@ -6233,9 +6366,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteTransaction(transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteTransaction(transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTransaction(transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted accounts @@ -6245,9 +6380,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedAccounts(page, limit, search, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted carousel images @@ -6256,9 +6393,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedCarouselImages(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedCarouselImages(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedCarouselImages(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedCarouselImages']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted carousel texts @@ -6267,9 +6406,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedCarouselTexts(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedCarouselTexts(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedCarouselTexts(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedCarouselTexts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted categories @@ -6278,9 +6419,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedCategories(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedCategories(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedCategories(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedCategories']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted items @@ -6289,9 +6432,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedItems(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedItems(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedItems(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted refills @@ -6300,9 +6445,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedRefills(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedRefills(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedRefills(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted transactions @@ -6311,9 +6458,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedTransactions(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedTransactions(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedTransactions(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted account @@ -6321,9 +6470,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedAccount(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedAccount(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted carousel image @@ -6331,9 +6482,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted carousel text @@ -6341,9 +6494,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedCarouselText(textId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedCarouselText(textId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedCarouselText(textId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted category @@ -6351,9 +6506,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted item @@ -6361,9 +6518,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedItem(itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedItem(itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedItem(itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted refill @@ -6371,9 +6530,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedRefill(refillId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedRefill(refillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedRefill(refillId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted transaction @@ -6381,9 +6542,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedTransaction(transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedTransaction(transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedTransaction(transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -6401,7 +6564,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteAccount(accountId: string, options?: any): AxiosPromise { + deleteAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAccount(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -6410,7 +6573,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselImage(imageId: string, options?: any): AxiosPromise { + deleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -6419,7 +6582,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselText(textId: string, options?: any): AxiosPromise { + deleteCarouselText(textId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCarouselText(textId, options).then((request) => request(axios, basePath)); }, /** @@ -6428,7 +6591,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCategory(categoryId: string, options?: any): AxiosPromise { + deleteCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -6437,7 +6600,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteItem(itemId: string, options?: any): AxiosPromise { + deleteItem(itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteItem(itemId, options).then((request) => request(axios, basePath)); }, /** @@ -6446,7 +6609,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRefill(refillId: string, options?: any): AxiosPromise { + deleteRefill(refillId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRefill(refillId, options).then((request) => request(axios, basePath)); }, /** @@ -6455,7 +6618,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTransaction(transactionId: string, options?: any): AxiosPromise { + deleteTransaction(transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteTransaction(transactionId, options).then((request) => request(axios, basePath)); }, /** @@ -6466,7 +6629,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedAccounts(page?: number, limit?: number, search?: string, options?: any): AxiosPromise { + getDeletedAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedAccounts(page, limit, search, options).then((request) => request(axios, basePath)); }, /** @@ -6476,7 +6639,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselImages(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedCarouselImages(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedCarouselImages(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6486,7 +6649,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselTexts(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedCarouselTexts(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedCarouselTexts(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6496,7 +6659,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCategories(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedCategories(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedCategories(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6506,7 +6669,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedItems(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedItems(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedItems(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6516,7 +6679,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedRefills(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedRefills(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedRefills(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6526,7 +6689,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedTransactions(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedTransactions(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedTransactions(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6535,7 +6698,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedAccount(accountId: string, options?: any): AxiosPromise { + restoreDeletedAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedAccount(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -6544,7 +6707,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselImage(imageId: string, options?: any): AxiosPromise { + restoreDeletedCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -6553,7 +6716,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselText(textId: string, options?: any): AxiosPromise { + restoreDeletedCarouselText(textId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedCarouselText(textId, options).then((request) => request(axios, basePath)); }, /** @@ -6562,7 +6725,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCategory(categoryId: string, options?: any): AxiosPromise { + restoreDeletedCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -6571,7 +6734,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedItem(itemId: string, options?: any): AxiosPromise { + restoreDeletedItem(itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedItem(itemId, options).then((request) => request(axios, basePath)); }, /** @@ -6580,7 +6743,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedRefill(refillId: string, options?: any): AxiosPromise { + restoreDeletedRefill(refillId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedRefill(refillId, options).then((request) => request(axios, basePath)); }, /** @@ -6589,7 +6752,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedTransaction(transactionId: string, options?: any): AxiosPromise { + restoreDeletedTransaction(transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedTransaction(transactionId, options).then((request) => request(axios, basePath)); }, }; @@ -6609,7 +6772,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteAccount(accountId: string, options?: AxiosRequestConfig) { + public deleteAccount(accountId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -6620,7 +6783,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public deleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -6631,7 +6794,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteCarouselText(textId: string, options?: AxiosRequestConfig) { + public deleteCarouselText(textId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteCarouselText(textId, options).then((request) => request(this.axios, this.basePath)); } @@ -6642,7 +6805,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteCategory(categoryId: string, options?: AxiosRequestConfig) { + public deleteCategory(categoryId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -6653,7 +6816,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteItem(itemId: string, options?: AxiosRequestConfig) { + public deleteItem(itemId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteItem(itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -6664,7 +6827,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteRefill(refillId: string, options?: AxiosRequestConfig) { + public deleteRefill(refillId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteRefill(refillId, options).then((request) => request(this.axios, this.basePath)); } @@ -6675,7 +6838,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteTransaction(transactionId: string, options?: AxiosRequestConfig) { + public deleteTransaction(transactionId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteTransaction(transactionId, options).then((request) => request(this.axios, this.basePath)); } @@ -6688,7 +6851,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig) { + public getDeletedAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedAccounts(page, limit, search, options).then((request) => request(this.axios, this.basePath)); } @@ -6700,7 +6863,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedCarouselImages(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedCarouselImages(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedCarouselImages(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6712,7 +6875,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedCarouselTexts(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedCarouselTexts(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedCarouselTexts(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6724,7 +6887,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedCategories(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedCategories(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedCategories(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6736,7 +6899,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedItems(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedItems(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedItems(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6748,7 +6911,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedRefills(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedRefills(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedRefills(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6760,7 +6923,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedTransactions(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedTransactions(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedTransactions(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6771,7 +6934,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedAccount(accountId: string, options?: AxiosRequestConfig) { + public restoreDeletedAccount(accountId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -6782,7 +6945,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public restoreDeletedCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -6793,7 +6956,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedCarouselText(textId: string, options?: AxiosRequestConfig) { + public restoreDeletedCarouselText(textId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedCarouselText(textId, options).then((request) => request(this.axios, this.basePath)); } @@ -6804,7 +6967,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedCategory(categoryId: string, options?: AxiosRequestConfig) { + public restoreDeletedCategory(categoryId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -6815,7 +6978,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedItem(itemId: string, options?: AxiosRequestConfig) { + public restoreDeletedItem(itemId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedItem(itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -6826,7 +6989,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedRefill(refillId: string, options?: AxiosRequestConfig) { + public restoreDeletedRefill(refillId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedRefill(refillId, options).then((request) => request(this.axios, this.basePath)); } @@ -6837,12 +7000,13 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedTransaction(transactionId: string, options?: AxiosRequestConfig) { + public restoreDeletedTransaction(transactionId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedTransaction(transactionId, options).then((request) => request(this.axios, this.basePath)); } } + /** * ItemsApi - axios parameter creator * @export @@ -6859,7 +7023,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllIncoherentItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options: AxiosRequestConfig = {}): Promise => { + getAllIncoherentItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/items/incoherent`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -6916,7 +7080,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options: AxiosRequestConfig = {}): Promise => { + getAllItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -6975,7 +7139,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryItems: async (categoryId: string, page?: number, limit?: number, state?: ItemState, options: AxiosRequestConfig = {}): Promise => { + getCategoryItems: async (categoryId: string, page?: number, limit?: number, state?: ItemState, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getCategoryItems', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}/items` @@ -7023,7 +7187,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemPicture: async (categoryId: string, itemId: string, options: AxiosRequestConfig = {}): Promise => { + getItemPicture: async (categoryId: string, itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getItemPicture', 'categoryId', categoryId) // verify required parameter 'itemId' is not null or undefined @@ -7062,7 +7226,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteItem: async (categoryId: string, itemId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteItem: async (categoryId: string, itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('markDeleteItem', 'categoryId', categoryId) // verify required parameter 'itemId' is not null or undefined @@ -7102,7 +7266,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchItem: async (categoryId: string, itemId: string, updateItem: UpdateItem, options: AxiosRequestConfig = {}): Promise => { + patchItem: async (categoryId: string, itemId: string, updateItem: UpdateItem, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('patchItem', 'categoryId', categoryId) // verify required parameter 'itemId' is not null or undefined @@ -7146,7 +7310,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postItem: async (categoryId: string, newItem: NewItem, options: AxiosRequestConfig = {}): Promise => { + postItem: async (categoryId: string, newItem: NewItem, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('postItem', 'categoryId', categoryId) // verify required parameter 'newItem' is not null or undefined @@ -7200,9 +7364,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllIncoherentItems(page, limit, state, categoryId, name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getAllIncoherentItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * (admin) Get all items with filters and pagination @@ -7215,9 +7381,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItems(page, limit, state, categoryId, name, fournisseur, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getAllItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all items of a category @@ -7228,9 +7396,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryItems(categoryId, page, limit, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getCategoryItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get an item picture @@ -7239,9 +7409,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemPicture(categoryId: string, itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getItemPicture(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getItemPicture(categoryId, itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getItemPicture']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete an item @@ -7250,9 +7422,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteItem(categoryId: string, itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteItem(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteItem(categoryId, itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.markDeleteItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update an item @@ -7262,9 +7436,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchItem(categoryId, itemId, updateItem, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.patchItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new item @@ -7273,9 +7449,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postItem(categoryId: string, newItem: NewItem, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postItem(categoryId: string, newItem: NewItem, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postItem(categoryId, newItem, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.postItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -7297,7 +7475,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: any): AxiosPromise { + getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAllIncoherentItems(page, limit, state, categoryId, name, options).then((request) => request(axios, basePath)); }, /** @@ -7311,7 +7489,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: any): AxiosPromise { + getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAllItems(page, limit, state, categoryId, name, fournisseur, options).then((request) => request(axios, basePath)); }, /** @@ -7323,7 +7501,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: any): AxiosPromise { + getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCategoryItems(categoryId, page, limit, state, options).then((request) => request(axios, basePath)); }, /** @@ -7333,7 +7511,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemPicture(categoryId: string, itemId: string, options?: any): AxiosPromise { + getItemPicture(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getItemPicture(categoryId, itemId, options).then((request) => request(axios, basePath)); }, /** @@ -7343,7 +7521,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteItem(categoryId: string, itemId: string, options?: any): AxiosPromise { + markDeleteItem(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteItem(categoryId, itemId, options).then((request) => request(axios, basePath)); }, /** @@ -7354,7 +7532,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: any): AxiosPromise { + patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchItem(categoryId, itemId, updateItem, options).then((request) => request(axios, basePath)); }, /** @@ -7364,7 +7542,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postItem(categoryId: string, newItem: NewItem, options?: any): AxiosPromise { + postItem(categoryId: string, newItem: NewItem, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postItem(categoryId, newItem, options).then((request) => request(axios, basePath)); }, }; @@ -7388,7 +7566,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: AxiosRequestConfig) { + public getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getAllIncoherentItems(page, limit, state, categoryId, name, options).then((request) => request(this.axios, this.basePath)); } @@ -7404,7 +7582,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: AxiosRequestConfig) { + public getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getAllItems(page, limit, state, categoryId, name, fournisseur, options).then((request) => request(this.axios, this.basePath)); } @@ -7418,7 +7596,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: AxiosRequestConfig) { + public getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getCategoryItems(categoryId, page, limit, state, options).then((request) => request(this.axios, this.basePath)); } @@ -7430,7 +7608,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getItemPicture(categoryId: string, itemId: string, options?: AxiosRequestConfig) { + public getItemPicture(categoryId: string, itemId: string, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getItemPicture(categoryId, itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -7442,7 +7620,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public markDeleteItem(categoryId: string, itemId: string, options?: AxiosRequestConfig) { + public markDeleteItem(categoryId: string, itemId: string, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).markDeleteItem(categoryId, itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -7455,7 +7633,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: AxiosRequestConfig) { + public patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).patchItem(categoryId, itemId, updateItem, options).then((request) => request(this.axios, this.basePath)); } @@ -7467,12 +7645,13 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public postItem(categoryId: string, newItem: NewItem, options?: AxiosRequestConfig) { + public postItem(categoryId: string, newItem: NewItem, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).postItem(categoryId, newItem, options).then((request) => request(this.axios, this.basePath)); } } + /** * RefillsApi - axios parameter creator * @export @@ -7489,7 +7668,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountRefills: async (accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options: AxiosRequestConfig = {}): Promise => { + getAccountRefills: async (accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountRefills', 'accountId', accountId) const localVarPath = `/accounts/{account_id}/refills` @@ -7517,13 +7696,13 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati if (startDate !== undefined) { localVarQueryParameter['start_date'] = (startDate as any instanceof Date) ? - (startDate as any).toISOString().substr(0,10) : + (startDate as any).toISOString().substring(0,10) : startDate; } if (endDate !== undefined) { localVarQueryParameter['end_date'] = (endDate as any instanceof Date) ? - (endDate as any).toISOString().substr(0,10) : + (endDate as any).toISOString().substring(0,10) : endDate; } @@ -7547,7 +7726,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: AxiosRequestConfig = {}): Promise => { + getRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/refills`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7598,7 +7777,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSelfRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: AxiosRequestConfig = {}): Promise => { + getSelfRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/refills`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7623,13 +7802,13 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati if (startDate !== undefined) { localVarQueryParameter['start_date'] = (startDate as any instanceof Date) ? - (startDate as any).toISOString().substr(0,10) : + (startDate as any).toISOString().substring(0,10) : startDate; } if (endDate !== undefined) { localVarQueryParameter['end_date'] = (endDate as any instanceof Date) ? - (endDate as any).toISOString().substr(0,10) : + (endDate as any).toISOString().substring(0,10) : endDate; } @@ -7651,7 +7830,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteRefill: async (accountId: string, refillId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteRefill: async (accountId: string, refillId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('markDeleteRefill', 'accountId', accountId) // verify required parameter 'refillId' is not null or undefined @@ -7692,7 +7871,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchRefillId: async (accountId: string, refillId: string, state?: RefillState, type?: RefillType, options: AxiosRequestConfig = {}): Promise => { + patchRefillId: async (accountId: string, refillId: string, state?: RefillState, type?: RefillType, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchRefillId', 'accountId', accountId) // verify required parameter 'refillId' is not null or undefined @@ -7740,7 +7919,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postRefill: async (accountId: string, amount: number, type: RefillType, options: AxiosRequestConfig = {}): Promise => { + postRefill: async (accountId: string, amount: number, type: RefillType, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('postRefill', 'accountId', accountId) // verify required parameter 'amount' is not null or undefined @@ -7801,9 +7980,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountRefills(accountId, page, limit, startDate, endDate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.getAccountRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all refills @@ -7814,9 +7995,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRefills(page, limit, startDate, endDate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.getRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all refills @@ -7827,9 +8010,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSelfRefills(page, limit, startDate, endDate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.getSelfRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Cancels a refill @@ -7838,9 +8023,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteRefill(accountId: string, refillId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteRefill(accountId: string, refillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteRefill(accountId, refillId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.markDeleteRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update refill\'s state @@ -7851,9 +8038,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchRefillId(accountId, refillId, state, type, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.patchRefillId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new refill @@ -7863,9 +8052,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postRefill(accountId: string, amount: number, type: RefillType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postRefill(accountId: string, amount: number, type: RefillType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postRefill(accountId, amount, type, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.postRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -7887,7 +8078,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: any): AxiosPromise { + getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountRefills(accountId, page, limit, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** @@ -7899,7 +8090,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: any): AxiosPromise { + getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRefills(page, limit, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** @@ -7911,7 +8102,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: any): AxiosPromise { + getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSelfRefills(page, limit, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** @@ -7921,7 +8112,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteRefill(accountId: string, refillId: string, options?: any): AxiosPromise { + markDeleteRefill(accountId: string, refillId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteRefill(accountId, refillId, options).then((request) => request(axios, basePath)); }, /** @@ -7933,7 +8124,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: any): AxiosPromise { + patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchRefillId(accountId, refillId, state, type, options).then((request) => request(axios, basePath)); }, /** @@ -7944,7 +8135,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postRefill(accountId: string, amount: number, type: RefillType, options?: any): AxiosPromise { + postRefill(accountId: string, amount: number, type: RefillType, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postRefill(accountId, amount, type, options).then((request) => request(axios, basePath)); }, }; @@ -7968,7 +8159,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig) { + public getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).getAccountRefills(accountId, page, limit, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } @@ -7982,7 +8173,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig) { + public getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).getRefills(page, limit, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } @@ -7996,7 +8187,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig) { + public getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).getSelfRefills(page, limit, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } @@ -8008,7 +8199,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public markDeleteRefill(accountId: string, refillId: string, options?: AxiosRequestConfig) { + public markDeleteRefill(accountId: string, refillId: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).markDeleteRefill(accountId, refillId, options).then((request) => request(this.axios, this.basePath)); } @@ -8022,7 +8213,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: AxiosRequestConfig) { + public patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).patchRefillId(accountId, refillId, state, type, options).then((request) => request(this.axios, this.basePath)); } @@ -8035,12 +8226,13 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public postRefill(accountId: string, amount: number, type: RefillType, options?: AxiosRequestConfig) { + public postRefill(accountId: string, amount: number, type: RefillType, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).postRefill(accountId, amount, type, options).then((request) => request(this.axios, this.basePath)); } } + /** * RestocksApi - axios parameter creator * @export @@ -8053,7 +8245,7 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRestock: async (newRestock: NewRestock, options: AxiosRequestConfig = {}): Promise => { + createRestock: async (newRestock: NewRestock, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'newRestock' is not null or undefined assertParamExists('createRestock', 'newRestock', newRestock) const localVarPath = `/restocks`; @@ -8068,6 +8260,8 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication admin_auth required + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -8088,7 +8282,7 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRestock: async (restockId: string, options: AxiosRequestConfig = {}): Promise => { + deleteRestock: async (restockId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'restockId' is not null or undefined assertParamExists('deleteRestock', 'restockId', restockId) const localVarPath = `/restocks/{restock_id}` @@ -8104,6 +8298,8 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication admin_auth required + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -8119,12 +8315,11 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat * Get restocks * @param {number} [page] Page number * @param {number} [limit] Number of restocks per page - * @param {string} [search] search string - * @param {string} [sort] sort string + * @param {RestockState} [state] search state * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRestocks: async (page?: number, limit?: number, search?: string, sort?: string, options: AxiosRequestConfig = {}): Promise => { + getRestocks: async (page?: number, limit?: number, state?: RestockState, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/restocks`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8147,19 +8342,56 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat localVarQueryParameter['limit'] = limit; } - if (search !== undefined) { - localVarQueryParameter['search'] = search; + if (state !== undefined) { + localVarQueryParameter['state'] = state; } - if (sort !== undefined) { - localVarQueryParameter['sort'] = sort; + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a restock + * @param {string} restockId ID of the restock + * @param {NewRestock} newRestock Restock to update + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRestock: async (restockId: string, newRestock: NewRestock, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'restockId' is not null or undefined + assertParamExists('updateRestock', 'restockId', restockId) + // verify required parameter 'newRestock' is not null or undefined + assertParamExists('updateRestock', 'newRestock', newRestock) + const localVarPath = `/restocks/{restock_id}` + .replace(`{${"restock_id"}}`, encodeURIComponent(String(restockId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; } + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication admin_auth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(newRestock, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8182,9 +8414,11 @@ export const RestocksApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createRestock(newRestock: NewRestock, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createRestock(newRestock: NewRestock, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRestock(newRestock, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RestocksApi.createRestock']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a restock @@ -8192,22 +8426,38 @@ export const RestocksApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteRestock(restockId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteRestock(restockId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRestock(restockId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RestocksApi.deleteRestock']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get restocks * @param {number} [page] Page number * @param {number} [limit] Number of restocks per page - * @param {string} [search] search string - * @param {string} [sort] sort string + * @param {RestockState} [state] search state + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRestocks(page?: number, limit?: number, state?: RestockState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRestocks(page, limit, state, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RestocksApi.getRestocks']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update a restock + * @param {string} restockId ID of the restock + * @param {NewRestock} newRestock Restock to update * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getRestocks(page, limit, search, sort, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + async updateRestock(restockId: string, newRestock: NewRestock, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateRestock(restockId, newRestock, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RestocksApi.updateRestock']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -8225,7 +8475,7 @@ export const RestocksApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRestock(newRestock: NewRestock, options?: any): AxiosPromise { + createRestock(newRestock: NewRestock, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRestock(newRestock, options).then((request) => request(axios, basePath)); }, /** @@ -8234,20 +8484,29 @@ export const RestocksApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRestock(restockId: string, options?: any): AxiosPromise { + deleteRestock(restockId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRestock(restockId, options).then((request) => request(axios, basePath)); }, /** * Get restocks * @param {number} [page] Page number * @param {number} [limit] Number of restocks per page - * @param {string} [search] search string - * @param {string} [sort] sort string + * @param {RestockState} [state] search state * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: any): AxiosPromise { - return localVarFp.getRestocks(page, limit, search, sort, options).then((request) => request(axios, basePath)); + getRestocks(page?: number, limit?: number, state?: RestockState, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getRestocks(page, limit, state, options).then((request) => request(axios, basePath)); + }, + /** + * Update a restock + * @param {string} restockId ID of the restock + * @param {NewRestock} newRestock Restock to update + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRestock(restockId: string, newRestock: NewRestock, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateRestock(restockId, newRestock, options).then((request) => request(axios, basePath)); }, }; }; @@ -8266,7 +8525,7 @@ export class RestocksApi extends BaseAPI { * @throws {RequiredError} * @memberof RestocksApi */ - public createRestock(newRestock: NewRestock, options?: AxiosRequestConfig) { + public createRestock(newRestock: NewRestock, options?: RawAxiosRequestConfig) { return RestocksApiFp(this.configuration).createRestock(newRestock, options).then((request) => request(this.axios, this.basePath)); } @@ -8277,7 +8536,7 @@ export class RestocksApi extends BaseAPI { * @throws {RequiredError} * @memberof RestocksApi */ - public deleteRestock(restockId: string, options?: AxiosRequestConfig) { + public deleteRestock(restockId: string, options?: RawAxiosRequestConfig) { return RestocksApiFp(this.configuration).deleteRestock(restockId, options).then((request) => request(this.axios, this.basePath)); } @@ -8285,18 +8544,30 @@ export class RestocksApi extends BaseAPI { * Get restocks * @param {number} [page] Page number * @param {number} [limit] Number of restocks per page - * @param {string} [search] search string - * @param {string} [sort] sort string + * @param {RestockState} [state] search state + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RestocksApi + */ + public getRestocks(page?: number, limit?: number, state?: RestockState, options?: RawAxiosRequestConfig) { + return RestocksApiFp(this.configuration).getRestocks(page, limit, state, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Update a restock + * @param {string} restockId ID of the restock + * @param {NewRestock} newRestock Restock to update * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestocksApi */ - public getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: AxiosRequestConfig) { - return RestocksApiFp(this.configuration).getRestocks(page, limit, search, sort, options).then((request) => request(this.axios, this.basePath)); + public updateRestock(restockId: string, newRestock: NewRestock, options?: RawAxiosRequestConfig) { + return RestocksApiFp(this.configuration).updateRestock(restockId, newRestock, options).then((request) => request(this.axios, this.basePath)); } } + /** * TransactionsApi - axios parameter creator * @export @@ -8313,7 +8584,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountTransactions: async (accountId: string, page?: number, limit?: number, state?: TransactionState, options: AxiosRequestConfig = {}): Promise => { + getAccountTransactions: async (accountId: string, page?: number, limit?: number, state?: TransactionState, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountTransactions', 'accountId', accountId) const localVarPath = `/accounts/{account_id}/transactions` @@ -8363,7 +8634,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCurrentAccountTransactions: async (page?: number, limit?: number, state?: TransactionState, options: AxiosRequestConfig = {}): Promise => { + getCurrentAccountTransactions: async (page?: number, limit?: number, state?: TransactionState, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8409,7 +8680,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionId: async (accountId: string, transactionId: string, options: AxiosRequestConfig = {}): Promise => { + getTransactionId: async (accountId: string, transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getTransactionId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8452,7 +8723,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactions: async (page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options: AxiosRequestConfig = {}): Promise => { + getTransactions: async (page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8505,7 +8776,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionsItems: async (name?: string, options: AxiosRequestConfig = {}): Promise => { + getTransactionsItems: async (name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/transactions/items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8543,7 +8814,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteTransactionId: async (accountId: string, transactionId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteTransactionId: async (accountId: string, transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('markDeleteTransactionId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8583,7 +8854,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionId: async (accountId: string, transactionId: string, state: TransactionState, options: AxiosRequestConfig = {}): Promise => { + patchTransactionId: async (accountId: string, transactionId: string, state: TransactionState, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchTransactionId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8632,7 +8903,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionItemId: async (accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options: AxiosRequestConfig = {}): Promise => { + patchTransactionItemId: async (accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchTransactionItemId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8686,7 +8957,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postTransactions: async (newTransaction?: NewTransaction, options: AxiosRequestConfig = {}): Promise => { + postTransactions: async (newTransaction?: NewTransaction, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8735,9 +9006,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountTransactions(accountId, page, limit, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getAccountTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all transactions @@ -8748,9 +9021,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentAccountTransactions(page, limit, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getCurrentAccountTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get transaction @@ -8760,9 +9035,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionId(accountId, transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getTransactionId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all active transactions (orders) @@ -8775,9 +9052,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactions(page, limit, state, hideRemote, name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all items in active transactions (ordered items) @@ -8786,9 +9065,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTransactionsItems(name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getTransactionsItems(name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionsItems(name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getTransactionsItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete transaction @@ -8798,9 +9079,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteTransactionId(accountId, transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.markDeleteTransactionId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update transaction\'s state @@ -8810,9 +9093,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchTransactionId(accountId, transactionId, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.patchTransactionId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update transaction\'s item state @@ -8825,9 +9110,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchTransactionItemId(accountId, transactionId, itemId, state, amount, alreadyDone, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.patchTransactionItemId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new transaction @@ -8836,9 +9123,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postTransactions(newTransaction?: NewTransaction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postTransactions(newTransaction?: NewTransaction, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postTransactions(newTransaction, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.postTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -8860,7 +9149,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: any): AxiosPromise { + getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountTransactions(accountId, page, limit, state, options).then((request) => request(axios, basePath)); }, /** @@ -8872,7 +9161,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: any): AxiosPromise { + getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCurrentAccountTransactions(page, limit, state, options).then((request) => request(axios, basePath)); }, /** @@ -8883,7 +9172,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionId(accountId: string, transactionId: string, options?: any): AxiosPromise { + getTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTransactionId(accountId, transactionId, options).then((request) => request(axios, basePath)); }, /** @@ -8897,7 +9186,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: any): AxiosPromise { + getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTransactions(page, limit, state, hideRemote, name, options).then((request) => request(axios, basePath)); }, /** @@ -8907,7 +9196,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionsItems(name?: string, options?: any): AxiosPromise> { + getTransactionsItems(name?: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getTransactionsItems(name, options).then((request) => request(axios, basePath)); }, /** @@ -8918,7 +9207,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteTransactionId(accountId: string, transactionId: string, options?: any): AxiosPromise { + markDeleteTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteTransactionId(accountId, transactionId, options).then((request) => request(axios, basePath)); }, /** @@ -8929,7 +9218,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: any): AxiosPromise { + patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchTransactionId(accountId, transactionId, state, options).then((request) => request(axios, basePath)); }, /** @@ -8943,7 +9232,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: any): AxiosPromise { + patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchTransactionItemId(accountId, transactionId, itemId, state, amount, alreadyDone, options).then((request) => request(axios, basePath)); }, /** @@ -8953,7 +9242,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postTransactions(newTransaction?: NewTransaction, options?: any): AxiosPromise { + postTransactions(newTransaction?: NewTransaction, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postTransactions(newTransaction, options).then((request) => request(axios, basePath)); }, }; @@ -8977,7 +9266,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig) { + public getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getAccountTransactions(accountId, page, limit, state, options).then((request) => request(this.axios, this.basePath)); } @@ -8991,7 +9280,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig) { + public getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getCurrentAccountTransactions(page, limit, state, options).then((request) => request(this.axios, this.basePath)); } @@ -9004,7 +9293,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig) { + public getTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getTransactionId(accountId, transactionId, options).then((request) => request(this.axios, this.basePath)); } @@ -9020,7 +9309,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: AxiosRequestConfig) { + public getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getTransactions(page, limit, state, hideRemote, name, options).then((request) => request(this.axios, this.basePath)); } @@ -9032,7 +9321,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getTransactionsItems(name?: string, options?: AxiosRequestConfig) { + public getTransactionsItems(name?: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getTransactionsItems(name, options).then((request) => request(this.axios, this.basePath)); } @@ -9045,7 +9334,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public markDeleteTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig) { + public markDeleteTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).markDeleteTransactionId(accountId, transactionId, options).then((request) => request(this.axios, this.basePath)); } @@ -9058,7 +9347,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: AxiosRequestConfig) { + public patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).patchTransactionId(accountId, transactionId, state, options).then((request) => request(this.axios, this.basePath)); } @@ -9074,7 +9363,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: AxiosRequestConfig) { + public patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).patchTransactionItemId(accountId, transactionId, itemId, state, amount, alreadyDone, options).then((request) => request(this.axios, this.basePath)); } @@ -9086,9 +9375,10 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public postTransactions(newTransaction?: NewTransaction, options?: AxiosRequestConfig) { + public postTransactions(newTransaction?: NewTransaction, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).postTransactions(newTransaction, options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/frontend/src/lib/api/base.ts b/frontend/src/lib/api/base.ts index e169bdb..3ce1cb3 100644 --- a/frontend/src/lib/api/base.ts +++ b/frontend/src/lib/api/base.ts @@ -16,7 +16,7 @@ import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, ""); @@ -39,7 +39,7 @@ export const COLLECTION_FORMATS = { */ export interface RequestArgs { url: string; - options: AxiosRequestConfig; + options: RawAxiosRequestConfig; } /** @@ -53,7 +53,7 @@ export class BaseAPI { constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { if (configuration) { this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; + this.basePath = configuration.basePath ?? basePath; } } }; @@ -70,3 +70,17 @@ export class RequiredError extends Error { this.name = "RequiredError" } } + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/frontend/src/lib/api/common.ts b/frontend/src/lib/api/common.ts index 24153d1..9348231 100644 --- a/frontend/src/lib/api/common.ts +++ b/frontend/src/lib/api/common.ts @@ -144,7 +144,7 @@ export const toPathString = function (url: URL) { */ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; return axios.request(axiosRequestArgs); }; } diff --git a/frontend/src/lib/api/configuration.ts b/frontend/src/lib/api/configuration.ts index 7f87465..4093f9c 100644 --- a/frontend/src/lib/api/configuration.ts +++ b/frontend/src/lib/api/configuration.ts @@ -19,6 +19,7 @@ export interface ConfigurationParameters { password?: string; accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); basePath?: string; + serverIndex?: number; baseOptions?: any; formDataCtor?: new () => any; } @@ -58,6 +59,13 @@ export class Configuration { * @memberof Configuration */ basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; /** * base options for axios calls * @@ -80,6 +88,7 @@ export class Configuration { this.password = param.password; this.accessToken = param.accessToken; this.basePath = param.basePath; + this.serverIndex = param.serverIndex; this.baseOptions = param.baseOptions; this.formDataCtor = param.formDataCtor; } diff --git a/frontend/src/lib/components/panel/modules.svelte b/frontend/src/lib/components/panel/modules.svelte index 18a1e10..0fea83c 100644 --- a/frontend/src/lib/components/panel/modules.svelte +++ b/frontend/src/lib/components/panel/modules.svelte @@ -41,7 +41,7 @@ modules.push({ name: 'Réappro', color: 'bg-green-600', - link: '/panel/products/reappro' + link: '/panel/products/restocks' }); modules.push({ diff --git a/frontend/src/routes/panel/products/course/+page.svelte b/frontend/src/routes/panel/products/course/+page.svelte index 57fe67c..71b1ff1 100644 --- a/frontend/src/routes/panel/products/course/+page.svelte +++ b/frontend/src/routes/panel/products/course/+page.svelte @@ -1,9 +1,33 @@
@@ -79,19 +146,47 @@

-

{ + if (newRestock.items.some((restockItem) => restockItem.item_id === item.item.id)) { + if (item.amountToBuy !== null) { + removeNewRestockItem(item); + addNewRestockItem(item); + } + }}} > - {item.amountToBuy} -

{ + // @ts-ignore + if (event.target?.checked) { + addNewRestockItem(item); + } else { + removeNewRestockItem(item); + } + }} /> {/each} +
+

Total HT: {formatPrice(newRestock.total_cost_ht)}

+

Total TTC: {formatPrice(newRestock.total_cost_ttc)}

+ +
diff --git a/frontend/src/routes/panel/products/reappro/+page.svelte b/frontend/src/routes/panel/products/restocks/+page.svelte similarity index 81% rename from frontend/src/routes/panel/products/reappro/+page.svelte rename to frontend/src/routes/panel/products/restocks/+page.svelte index c4abd1e..7de43d4 100644 --- a/frontend/src/routes/panel/products/reappro/+page.svelte +++ b/frontend/src/routes/panel/products/restocks/+page.svelte @@ -1,5 +1,11 @@
@@ -230,53 +281,53 @@ Nom - + - Prix coûtant HT + Nombre de lots - + - Prix coûtant TTC + Nbr produits par lots - + - Nombre de lots + Prix d'un lot HT - + - Nbr produits par lots + TVA - Prix d'un lot HT + Prix d'un lot TTC - + - TVA + Prix coûtant HT - + - Prix d'un lot TTC + Prix coûtant TTC @@ -330,6 +381,7 @@ displayedValues.tva = (item.last_tva ?? 0).toString(); newItem.tva = item.last_tva ?? 0; newItem.item_id = item.id; + newItem.item_name = item.name; searchName = ''; }} > @@ -339,24 +391,6 @@ {/if}
- -
- -
- - -
- -
-
+ +
+ +
+ + +
+ +
+
-
-

{formatPrice(item.bundle_cost_ht * item.amount_of_bundle)}

-
+
-
-

- {formatPrice(item.bundle_cost_ttc * item.amount_of_bundle)} -

-
+
- +
-
-

{item.amount_of_bundle}

-
+ { + // @ts-ignore + item.bundle_cost_ht = parsePrice(e.target?.value); + item.bundle_cost_ttc = calculateTtc(item); + updateTotalHTandTTC(); + }} + />
- +
-
{ + // @ts-ignore + item.tva = parseInt(e.target?.value); + item.bundle_cost_ttc = calculateTtc(item); + updateTotalHTandTTC(); + }} > -

{item.amount_per_bundle}

-
+ + + + +
-
-

{formatPrice(item.bundle_cost_ht)}

-
+ { + // @ts-ignore + item.bundle_cost_ttc = parsePrice(e.target?.value); + item.bundle_cost_ht = calculateHt(item); + updateTotalHTandTTC(); + }} + />
- +
-

{item.tva / 100}%

+

{formatPrice(item.bundle_cost_ht * item.amount_of_bundle)}

- +
-

{formatPrice(item.bundle_cost_ttc)}

+

+ {formatPrice(item.bundle_cost_ttc * item.amount_of_bundle)} +

@@ -578,7 +659,6 @@ class="bg-red-600 hover:bg-red-700 text-white font-bold py-2 px-4 rounded" on:click={() => { newRestock.items = newRestock.items.filter((_, index) => index !== i); - nameList = nameList.filter((_, index) => index !== i); updateTotalHTandTTC(); }} > @@ -602,11 +682,34 @@ /> {#if sure} + {#if !selectedEditRestock} + + {:else} + + {/if} + {:else if !selectedEditRestock} + {:else} + {/if}
@@ -636,6 +739,13 @@ Conducteur + + + État + +

{/if} {#each restocks as restock} - +

+ +
+
+

{restock.state}

+
+
+

+ {#if restock.state == RestockState.RestockPending} + + {/if}

@@ -743,7 +879,7 @@ >

- {items.length} + {restocks.length} résultats

@@ -798,7 +934,7 @@ - {#if selectedRestock != undefined} + {#if selectedViewRestock != undefined} @@ -860,7 +996,7 @@ - {#each selectedRestock.items as item} + {#each selectedViewRestock.items as item}
From 1c9f2a5ec2d73e5de1892ff44c50227712055452 Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Thu, 23 Jan 2025 22:47:45 +0100 Subject: [PATCH 3/9] fix(restock): change default restock to empty array instead of null --- backend/api/restock.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/api/restock.go b/backend/api/restock.go index 5a990f0..aaab3db 100644 --- a/backend/api/restock.go +++ b/backend/api/restock.go @@ -76,6 +76,7 @@ func (s *Server) CreateRestock(c echo.Context) error { CreatedAt: uint64(time.Now().Unix()), CreatedBy: usr.Id, CreatedByName: usr.Name(), + Items: []autogen.RestockItem{}, }, } From 5c693c0fbfd85be7e59dbeaf5b019fcb2e42bc4b Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Thu, 23 Jan 2025 23:20:50 +0100 Subject: [PATCH 4/9] fix(webhook): add webhook when finishing restock --- backend/api/validerRestock.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/api/validerRestock.go b/backend/api/validerRestock.go index 255fd62..f428174 100644 --- a/backend/api/validerRestock.go +++ b/backend/api/validerRestock.go @@ -2,6 +2,7 @@ package api import ( "bar/autogen" + "bar/internal/webhook" "time" "github.com/labstack/echo/v4" @@ -79,6 +80,12 @@ func (s *Server) UpdateRestock(c echo.Context, restockId autogen.UUID) error { logrus.Error(err) return Error500(c) } + if oldState != autogen.RestockFinished && body.State == autogen.RestockFinished && restock.Type == autogen.RestockViennoiserie { + err := webhook.SendDiscordWebhook(*restock) + if err != nil { + logrus.Errorf("Error sending webhook: %v\n", err) + } + } if oldState == body.State { return nil From 71fddcb5501b45e3de217bfad8cae121129d3afe Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Fri, 24 Jan 2025 10:39:37 +0100 Subject: [PATCH 5/9] fix(restock): sort course item by name --- frontend/src/routes/panel/products/course/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/panel/products/course/+page.svelte b/frontend/src/routes/panel/products/course/+page.svelte index 71b1ff1..c205e6e 100644 --- a/frontend/src/routes/panel/products/course/+page.svelte +++ b/frontend/src/routes/panel/products/course/+page.svelte @@ -35,7 +35,7 @@ }) .then((res) => { if (res.data.items != null) { - items = res.data.items; + items = res.data.items.sort((a, b) => a.item.name.localeCompare(b.item.name)); } else { items = []; } From 960c661ec6fa0d525b376d75ecffc59299e05a10 Mon Sep 17 00:00:00 2001 From: Luca Mandrelli <73400538+lmandrelli@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:00:07 +0100 Subject: [PATCH 6/9] fix(restock): ensure amountToBuy is non-negative --- .../src/routes/panel/products/course/+page.svelte | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/panel/products/course/+page.svelte b/frontend/src/routes/panel/products/course/+page.svelte index c205e6e..af625d0 100644 --- a/frontend/src/routes/panel/products/course/+page.svelte +++ b/frontend/src/routes/panel/products/course/+page.svelte @@ -42,7 +42,11 @@ }); } reloadCourse(); - function addNewRestockItem(courseItem: CourseItem) { + function addNewRestockItem(courseItem: CourseItem) : CourseItem { + if (courseItem.amountToBuy <= 0) { + courseItem.amountToBuy = 0; + } + newRestockItem = { item_id: courseItem.item.id, item_name: courseItem.item.name, @@ -61,6 +65,7 @@ ); newRestock.items.push(newRestockItem); updateHTandTTC(); + return courseItem } function removeNewRestockItem(courseItem: CourseItem) { @@ -155,7 +160,7 @@ if (newRestock.items.some((restockItem) => restockItem.item_id === item.item.id)) { if (item.amountToBuy !== null) { removeNewRestockItem(item); - addNewRestockItem(item); + item = addNewRestockItem(item); } }}} > @@ -167,7 +172,7 @@ on:change={(event) => { // @ts-ignore if (event.target?.checked) { - addNewRestockItem(item); + item = addNewRestockItem(item); } else { removeNewRestockItem(item); } From 883b920c49c759a0ccedb4f734bb33291b07b9cc Mon Sep 17 00:00:00 2001 From: Luca Mandrelli <73400538+lmandrelli@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:29:02 +0100 Subject: [PATCH 7/9] fix(restock): update labels and ensure non-negative values for amount inputs --- .../panel/products/restocks/+page.svelte | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/frontend/src/routes/panel/products/restocks/+page.svelte b/frontend/src/routes/panel/products/restocks/+page.svelte index 7de43d4..fdedf54 100644 --- a/frontend/src/routes/panel/products/restocks/+page.svelte +++ b/frontend/src/routes/panel/products/restocks/+page.svelte @@ -320,14 +320,14 @@ - Prix coûtant HT + Prix total HT
- Prix coûtant TTC + Prix total TTC @@ -401,6 +401,9 @@ max="1000" bind:value={newItem.amount_of_bundle} on:change={() => { + if (newItem.amount_of_bundle < 0) { + newItem.amount_of_bundle = 0; + } updatePrices(); }} /> @@ -416,6 +419,9 @@ max="1000" bind:value={newItem.amount_per_bundle} on:change={() => { + if (newItem.amount_per_bundle < 0) { + newItem.amount_per_bundle = 0; + } updatePrices(); }} /> @@ -430,6 +436,11 @@ class="rounded-lg border-transparent flex-1 appearance-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder={displayedValues.bundle_cost_ht} on:change={(e) => { + // @ts-ignore + if (e.target?.value < 0) { + // @ts-ignore + e.target.value = 0; + } // @ts-ignore newItem.bundle_cost_ht = parsePrice(e.target?.value); let r = formatPrice(newItem.bundle_cost_ht); @@ -849,7 +860,11 @@ } }} > - Voir + {#if selectedViewRestock == restock} + Fermer + {:else} + Voir + {/if} {#if restock.state == RestockState.RestockPending} {/if} From 21dfcd631e715f3514c2d49624cbf58c9675aae6 Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Wed, 5 Feb 2025 12:46:22 +0100 Subject: [PATCH 8/9] fix(restock): move UpdateItem function to utils --- backend/api/restock.go | 64 ------------------------------------------ backend/api/utils.go | 64 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 64 deletions(-) diff --git a/backend/api/restock.go b/backend/api/restock.go index a3402ad..b014ad6 100644 --- a/backend/api/restock.go +++ b/backend/api/restock.go @@ -4,7 +4,6 @@ import ( "bar/autogen" "bar/internal/models" "bar/internal/webhook" - "math" "time" "github.com/google/uuid" @@ -159,69 +158,6 @@ func (s *Server) CreateRestock(c echo.Context) error { return nil } -func UpdateItem(item *models.Item, category *models.Category, restockItem autogen.RestockItem) *models.Item { - item.State = autogen.ItemBuyable - item.AmountLeft += restockItem.AmountOfBundle * restockItem.AmountPerBundle - item.LastTva = &restockItem.Tva - if !category.SpecialPrice { - item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) - if item.Prices.Coutant < 30 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 - } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*13/10, 5) - } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*12/10, 5) - } else if item.Prices.Coutant >= 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*105/100, 5) - item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*1125/1000, 5) - } - } else { - item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) - if item.Prices.Coutant < 30 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten - } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten - } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten - } else if item.Prices.Coutant >= 300 { - item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) - item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) - item.Prices.StaffBar = item.Prices.Ceten - item.Prices.Privilegies = item.Prices.Ceten - item.Prices.Menu = item.Prices.Ceten - } - item.Prices.Coutant = item.Prices.Ceten - } - return item -} - // (DELETE /restocks/{restock_id}) func (s *Server) DeleteRestock(c echo.Context, restockId autogen.UUID) error { account, err := MustGetAdmin(c) diff --git a/backend/api/utils.go b/backend/api/utils.go index 959ccaf..dda9dd2 100644 --- a/backend/api/utils.go +++ b/backend/api/utils.go @@ -4,6 +4,7 @@ import ( "bar/autogen" "bar/internal/models" "errors" + "math" "github.com/labstack/echo/v4" ) @@ -103,3 +104,66 @@ func MustGetAdmin(c echo.Context) (*models.Account, error) { return account, nil } + +func UpdateItem(item *models.Item, category *models.Category, restockItem autogen.RestockItem) *models.Item { + item.State = autogen.ItemBuyable + item.AmountLeft += restockItem.AmountOfBundle * restockItem.AmountPerBundle + item.LastTva = &restockItem.Tva + if !category.SpecialPrice { + item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) + if item.Prices.Coutant < 30 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant, 5) + 5 + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 + } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*13/10, 5) + } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*108/100, 5) + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*12/10, 5) + } else if item.Prices.Coutant >= 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = arrondiAuMutilple(item.Prices.Coutant*105/100, 5) + item.Prices.Privilegies = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.Menu = arrondiAuMutilple(item.Prices.Coutant*1125/1000, 5) + } + } else { + item.Prices.Coutant = uint64(math.Ceil(float64(restockItem.BundleCostTtc) / (float64(restockItem.AmountPerBundle)))) + if item.Prices.Coutant < 30 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant, 5) + 20 + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant, 5) + 10 + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } else if item.Prices.Coutant >= 30 && item.Prices.Coutant < 130 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*3/2, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*113/100, 5) + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } else if item.Prices.Coutant >= 130 && item.Prices.Coutant < 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*14/10, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } else if item.Prices.Coutant >= 300 { + item.Prices.Externe = arrondiAuMutilple(item.Prices.Coutant*125/100, 5) + item.Prices.Ceten = arrondiAuMutilple(item.Prices.Coutant*11/10, 5) + item.Prices.StaffBar = item.Prices.Ceten + item.Prices.Privilegies = item.Prices.Ceten + item.Prices.Menu = item.Prices.Ceten + } + item.Prices.Coutant = item.Prices.Ceten + } + return item +} \ No newline at end of file From 5a52917ccc7c8e5fc10b21fffb189ba151d7ce3a Mon Sep 17 00:00:00 2001 From: JULLIEN Baptiste Date: Wed, 5 Feb 2025 13:04:59 +0100 Subject: [PATCH 9/9] fix(restock): prevent updates on finished restock and add error response --- backend/api/validerRestock.go | 3 + backend/autogen/bar.gen.go | 273 ++++++++++++++++++---------------- bar.openapi.yml | 6 + 3 files changed, 150 insertions(+), 132 deletions(-) diff --git a/backend/api/validerRestock.go b/backend/api/validerRestock.go index f428174..8c4bbad 100644 --- a/backend/api/validerRestock.go +++ b/backend/api/validerRestock.go @@ -27,6 +27,9 @@ func (s *Server) UpdateRestock(c echo.Context, restockId autogen.UUID) error { logrus.Error(err) return Error500(c) } + if restock.State == autogen.RestockFinished { + return Error400(c) + } restock.Items = []autogen.RestockItem{} restock.TotalCostHt = body.TotalCostHt diff --git a/backend/autogen/bar.gen.go b/backend/autogen/bar.gen.go index 4423821..df066b3 100644 --- a/backend/autogen/bar.gen.go +++ b/backend/autogen/bar.gen.go @@ -1,6 +1,6 @@ // Package autogen provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.2.0 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. package autogen import ( @@ -7757,6 +7757,15 @@ func (response UpdateRestock204Response) VisitUpdateRestockResponse(w http.Respo return nil } +type UpdateRestock400JSONResponse HTTPError + +func (response UpdateRestock400JSONResponse) VisitUpdateRestockResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(400) + + return json.NewEncoder(w).Encode(response) +} + type UpdateRestock401JSONResponse HTTPError func (response UpdateRestock401JSONResponse) VisitUpdateRestockResponse(w http.ResponseWriter) error { @@ -10454,137 +10463,137 @@ func (sh *strictHandler) GetTransactionsItems(ctx echo.Context, params GetTransa // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+x923LcOJLorzBqzkS3T5Rc5bG7p1tvsiz3KKZlqyV5+pzodVSgSFQVRyyCDYCStQq9", - "7PfsV+2XbOBCEiBBEqz7BX6xirglEpmJzEQi8dzz0TxBMYwp6Z0+94g/g3PA/zzzfZTGlP2ZYJRATEPI", - "C8YgArEP2Z/wG5gnEeydvhkOh/3eBOE5oL3TXhjTH9/1+j36lEDxE04h7r30ez7AwSgMWGNZSCgO42le", - "loRxtbDf+3aCQBKe+CiAUxifwG8UgxMKphyifxMU9057J72Xl34vgBGkMBgBDnoOUloPU9Zi/MRa/B8M", - "J73T3l8GBWYGEi2DL18uP7AWcA7CaASCAENCjHOZhJjQUQzm0Fg8RWgawTpEyNIk9GmKzR2IljawRqAJ", - "kDj072sLE0DII8LBcguSoFBSV3dySXDowxFGEWybriTXa9bghtV/6fcwZOD6NEQxHz+kcE4sO7pR277k", - "sAGMwRPv2x6mDBxCAbVtc8vrvvR7jyCmZETRiFAwmSgrMUYogiDmKMbwzzTEMOid/sEoQyM/lQLKlNvP", - "mVlOSMN4CYHZBBRGzRe3AufXHGNo/G/oUzaVyhKdPvcCSHwcJmyE3mmPffXQxKMz6AEpf/o9GKdzNjMf", - "pRTwL3yM0RhgAfBDGMEpk0793hzGKYMQUsjAg98oxDFk4OTE1yM0DSDvp0rUbKyTB4AZuggbVAX6PAdA", - "/XrLgHnPYVE/X2twqSVXAkatZwmv+u0ig71A3U2JoEvYU0rrsYjhHFE4ypYWMnIZR8i/h4GOJlNFe4Td", - "8NY3amNZ8j4bTJnXAtRQrKL8a/QY0tloDGM4CamghfkYsmUBwZwT63SGCG+QJhCLj0sTxm3eRv/we0hn", - "7wtYZOFVBpL8fSYhkz9/kQBmXTE4RRUFWbeZGNGxxT/XoytGdITiMQI44Isha4zQvY4D5XsXNHxC9HP8", - "Pu9dfv38Tw74OcAoJTC6nIMprCoUm9ix7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o8pFDt4/Th8tDygOvusLQwjRbwk5KQ+ubZ5q41rfcgk", + "XQ3spanZFt+fFo5ehXdUuixIZBuMmI5k/KQlzIZkMIhV0I5mXz0AaV6pCImA6xEBCO5iTLVYPD0YoS8y", + "aZ9rR6cGUS5GonsYuxwsa2DfNA7vYKTpLKONDMxId3LYBkbadZbBUJv87l9YhAV0ymgZ91njSIueM3h5", + "9r20Dr/vZR2iECb9IqzKKtsNseqzR0ezXsSoCj1oySs0D4mjrsD5rFQVnNZvXsW+fOvBwcYPA5iNvZV8", + "pPRBqH2foqxZUgq3fO78y/0zOffUPU5F3Vv10cVRAUBnCrhUtMpEhF2HMxhyMMVsBomjB0v2cCFbzH+I", + "dlXfHDxk8+qt6kT++ii7EqQ26KRHFeTYV/9WFbqxTxa0LsZrUva9pu+m6cdRqe67R4a2mQa7axccqHIv", + "mlnHBtRqrYYamZswJAwR1hahSYxiOhN7BilEEf9g1xVHNPi+rK+efMqbKXutrnxrCixUvRXxhcbvPBpE", + "PawEG+a0GzGHrZaXqSHXNdmVqMN5I3F419SSOhvr0Fr/FXzXtN1dM1c7TTLH9VVrx7LGLgY9kRa83qYq", + "a/1oh2dLVrGBSact3eq9F/intr5HEUaw16qyVjN9RQvRnuxPLOuUcGD/dazGfUVKc/L3F6uTQYZitoQc", + "NqsAhZFaFwi91wYRNRWItthB61BoqzFlgKiT0+AOolEICBzhiTihXyzuzfatdSmu96m6qLy45T1eAAI/", + "TuovNd2i8uaioMb8vk1/m/W7Gr/J/j3GtwggMtxfr8fw7IfXryanL6Offjz9/u+vxqc//T2MTkPw04/g", + "h+9fvf57FBnhT1lsdfZ+TiPAoHGk2+5N3k5MRXuOjyPPsPFskWo5n80xEm0nBHc/fsLtNF/DoPjzNq1R", + "Fys9brPEURQf4eEjPFZ3PGQVpzwqeMIbgWFGYvZ4w8srHOFrpzjIKliID3SI8Z1wI0h+GLw9vx6d/3x1", + "+WF08+7mpiQepPE/oWCczupNFRMcgmTE8J3EdlF/BkEknMq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Wm8aoTcPuYugGrSn++mAZt3NfwZY3hSDmENeHNERwP", + "9Ti3jzjXqVAPn+QfXa5lmTKUBqAJFUvnsjs2btTOPmmmwEQok4BieLxn+2DEGhM15QehyLQ6xWTJb2gR", + "bW/xjUmB3UHX2LZFtm4mwwc5kK6Wao9DDMZ9VfauWU+taiVa1JnXonwc+RrQ1scC9DlPWtHe1ny6VOwX", + "tB0xPax9TX/m1Z959cFFAldWeQ52gQOw21cx/RFcfwTXH8H1sdibgOTmA4stsDx80n45RoS2nR8uHXf6", + "jUd75QwwP89ChTliuxxG18pw3ju4zl419t9Xv2Att0BzRGsLIvwCmYeC7UPBruVA8GCw52DQvlOgFW/f", + "LvDYsKrdAwtBDUbYYoSswSjzusuu+9rZwSHXgnbR8EndhPvcffGJCX68nisCMjj3KLgYJepWQAsJ5RXG", + "a0ZgnYRV+b+MC/5sFAAjOq+FhCI2bzl/n+Jx3tE3NFC3Pgfq1mdrv+bF0L169wvMIS8wJ8bygomEygNa", + "ZjI2G4ZAXi5V2/URSfUZLjINPMRsJi4KaUz3dFHPxK/Km8uKKncBVniZVtt1Mz1T9MfyBru+yfqP4uqY", + "yg7osQWx7Jq4G7fVNl8+wOV8Ku/EcJb09stSLpwv3VAli7etquM1jGKiqGGzmAYZSQIwYZDk89CccYn0", + "OkVQXblf2W5hMcmBgRzDAPMBzXcutTtZfsWSERZrqJnWZy9r25G1dlkajuE0RsOnP8kIYRTC535ishq5", + "KpNttgrWb9eBoNFugeRf4CVoDRK0+3yc32plOwih7ruaYKIYMfh4ngnesfNvS4UK/+addnCu3oi8jMgO", + "/+rVEufIjJ5cgkXWLCshJuInRFGKYyHjC4mKpZ12SdlhjtWvw3XTY7Qrcd2slmotK+yu/DLgNvvF/Q7g", + "0n5Z6Opfb8B4pWpnDZj9uvfxLSYI8pXE3/zY6+bHLv5oPMz+L5DEcndDLHn5GGksYT3brs3T6i52F7p0", + "J1jLYi74/EGU9ODswXm94CzANgQEZxQmQ3GvaHtgfF42UGVt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IYpe/Pj2Y9nA77qle8pLwBPx4C8YDCBIZ4jgMLHFwiy", + "IUjj4f1LSwVe+hE+4GTyYkJ4sYFGW/2IVQLEwSocZBSSb6iucMvoMyUs4kPri7KlgfJwRF61DL3vrl5Z", + "X+oHr9yaURtswbcEgiSYYwQfv6tmp7C1VF4nUkaxxUiYqHSG01psVwxtrQigCjAKKEhgQwMSHGwU6Lc5", + "imjA4hL7om9ZxDoS8swcJurQHFc+81OyZQv5cZnnL8//GwAA///qjF7Z0KwBAA==", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/bar.openapi.yml b/bar.openapi.yml index 4b38836..57ace6f 100644 --- a/bar.openapi.yml +++ b/bar.openapi.yml @@ -3226,6 +3226,12 @@ paths: responses: "204": description: "Success" + "400": + description: "Finished restock" + content: + application/json: + schema: + $ref: "#/components/schemas/HTTPError" "401": description: "Not authenticated" content: