diff options
author | Wim <wim@42.be> | 2021-06-16 21:00:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 21:00:49 +0200 |
commit | fb5a84212c491332504fcdd4b5f4a4b97705d2e3 (patch) | |
tree | be03e973d30d040a49a90c47f1e6b73ed8922539 /vendor/github.com/SevereCloud/vksdk/v2/api | |
parent | dedc1c45a113d8db373d9e4638f54a0f9d29624f (diff) | |
download | matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.gz matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.bz2 matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.zip |
Update dependencies (#1521)
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api')
4 files changed, 64 insertions, 4 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go b/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go index a852e7d9..e9ea1310 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go @@ -174,6 +174,9 @@ const ( // Unknown group. ErrUnknownGroup ErrorType = 40 + // Additional signup required. + ErrAdditionalSignupRequired ErrorType = 41 + // One of the parameters specified was missing or invalid // // Check the required parameters list and their format on a method @@ -658,9 +661,15 @@ const ( // Item has bad links in description. ErrMarketItemHasBadLinks ErrorType = 1408 - // Shop not enabled. + // Extended market not enabled. ErrMarketShopNotEnabled ErrorType = 1409 + // Grouping items with different properties. + ErrMarketGroupingItemsWithDifferentProperties ErrorType = 1412 + + // Grouping already has such variant. + ErrMarketGroupingAlreadyHasSuchVariant ErrorType = 1413 + // Variant not found. ErrMarketVariantNotFound ErrorType = 1416 @@ -697,6 +706,9 @@ const ( // Crop size is less than the minimum. ErrMarketPhotosCropSizeTooLow ErrorType = 1435 + // Market not enabled. + ErrMarketNotEnabled ErrorType = 1438 + // Cart is empty. ErrMarketCartEmpty ErrorType = 1427 @@ -730,6 +742,15 @@ const ( // Servers number limit is reached. ErrCallbackServersLimit ErrorType = 2000 + // Stickers are not purchased. + ErrStickersNotPurchased ErrorType = 2100 + + // Too many favorite stickers. + ErrStickersTooManyFavorites ErrorType = 2101 + + // Stickers are not favorite. + ErrStickersNotFavorite ErrorType = 2102 + // Specified link is incorrect (can't find source). ErrWallCheckLinkCantDetermineSource ErrorType = 3102 diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go index dc140a86..f78a068d 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go @@ -306,8 +306,9 @@ func (vk *VK) MarketRestoreComment(params Params) (response int, err error) { // MarketSearchResponse struct. type MarketSearchResponse struct { - Count int `json:"count"` - Items []object.MarketMarketItem `json:"items"` + Count int `json:"count"` + Items []object.MarketMarketItem `json:"items"` + ViewType int `json:"view_type"` } // MarketSearch searches market items in a community's catalog. diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/store.go b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go new file mode 100644 index 00000000..a2df4ca0 --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go @@ -0,0 +1,35 @@ +package api // import "github.com/SevereCloud/vksdk/api" + +import ( + "github.com/SevereCloud/vksdk/v2/object" +) + +// StoreAddStickersToFavorite add stickers to favorite. +// +// https://vk.com/dev/store.addStickersToFavorite +func (vk *VK) StoreAddStickersToFavorite(params Params) (response int, err error) { + err = vk.RequestUnmarshal("store.addStickersToFavorite", &response, params) + return +} + +// StoreGetFavoriteStickersResponse struct. +type StoreGetFavoriteStickersResponse struct { + Count int `json:"count"` + Items []object.BaseSticker `json:"items"` +} + +// StoreGetFavoriteStickers return favorite stickers. +// +// https://vk.com/dev/store.getFavoriteStickers +func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavoriteStickersResponse, err error) { + err = vk.RequestUnmarshal("store.getFavoriteStickers", &response, params) + return +} + +// StoreRemoveStickersFromFavorite remove stickers from favorite. +// +// https://vk.com/dev/store.removeStickersFromFavorite +func (vk *VK) StoreRemoveStickersFromFavorite(params Params) (response int, err error) { + err = vk.RequestUnmarshal("store.removeStickersFromFavorite", &response, params) + return +} diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go index 46c643b9..b68424b8 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go @@ -1,6 +1,8 @@ package api // import "github.com/SevereCloud/vksdk/v2/api" -import "github.com/SevereCloud/vksdk/v2/object" +import ( + "github.com/SevereCloud/vksdk/v2/object" +) // StoriesBanOwner allows to hide stories from chosen sources from current user's feed. // @@ -240,6 +242,7 @@ func (vk *VK) StoriesHideReply(params Params) (response int, err error) { type StoriesSaveResponse struct { Count int `json:"count"` Items []object.StoriesStory `json:"items"` + object.ExtendedResponse } // StoriesSave method. |