@selfcommunity/api-services 0.4.0-alpha.4 → 0.4.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/client/index.d.ts +2 -10
- package/lib/cjs/client/index.js +3 -6
- package/lib/cjs/constants/Endpoints.d.ts +1 -2
- package/lib/cjs/constants/Endpoints.js +15 -4
- package/lib/cjs/constants/Errors.d.ts +4 -0
- package/lib/cjs/constants/Errors.js +7 -0
- package/lib/cjs/index.d.ts +3 -4
- package/lib/cjs/index.js +36 -61
- package/lib/cjs/services/account/index.d.ts +7 -1
- package/lib/cjs/services/account/index.js +20 -19
- package/lib/cjs/services/category/index.d.ts +0 -1
- package/lib/cjs/services/category/index.js +18 -30
- package/lib/cjs/services/comment/index.d.ts +0 -1
- package/lib/cjs/services/comment/index.js +13 -25
- package/lib/cjs/services/custom_adv/index.d.ts +0 -1
- package/lib/cjs/services/custom_adv/index.js +5 -17
- package/lib/cjs/services/custom_menu/index.d.ts +0 -1
- package/lib/cjs/services/custom_menu/index.js +6 -18
- package/lib/cjs/services/custom_page/index.d.ts +0 -1
- package/lib/cjs/services/custom_page/index.js +5 -17
- package/lib/cjs/services/data_portability/index.d.ts +0 -1
- package/lib/cjs/services/data_portability/index.js +5 -17
- package/lib/cjs/services/embed/index.d.ts +0 -1
- package/lib/cjs/services/embed/index.js +10 -22
- package/lib/cjs/services/feature/index.d.ts +0 -1
- package/lib/cjs/services/feature/index.js +3 -15
- package/lib/cjs/services/feed/index.d.ts +0 -1
- package/lib/cjs/services/feed/index.js +7 -19
- package/lib/cjs/services/feed_object/index.d.ts +0 -1
- package/lib/cjs/services/feed_object/index.js +29 -41
- package/lib/cjs/services/incubator/index.d.ts +0 -1
- package/lib/cjs/services/incubator/index.js +9 -21
- package/lib/cjs/services/insight/index.d.ts +0 -1
- package/lib/cjs/services/insight/index.js +8 -20
- package/lib/cjs/services/invite/index.d.ts +0 -1
- package/lib/cjs/services/invite/index.js +3 -15
- package/lib/cjs/services/legal_page/index.d.ts +0 -1
- package/lib/cjs/services/legal_page/index.js +11 -23
- package/lib/cjs/services/locality/index.d.ts +0 -1
- package/lib/cjs/services/locality/index.js +4 -16
- package/lib/cjs/services/loyalty/index.d.ts +5 -5
- package/lib/cjs/services/loyalty/index.js +16 -27
- package/lib/cjs/services/media/index.d.ts +0 -1
- package/lib/cjs/services/media/index.js +9 -21
- package/lib/cjs/services/moderation/index.d.ts +0 -1
- package/lib/cjs/services/moderation/index.js +8 -20
- package/lib/cjs/services/notification/index.d.ts +0 -1
- package/lib/cjs/services/notification/index.js +11 -23
- package/lib/cjs/services/preference/index.d.ts +0 -1
- package/lib/cjs/services/preference/index.js +5 -17
- package/lib/cjs/services/private_message/index.d.ts +0 -1
- package/lib/cjs/services/private_message/index.js +13 -25
- package/lib/cjs/services/promo/index.d.ts +0 -1
- package/lib/cjs/services/promo/index.js +3 -15
- package/lib/cjs/services/reactions/index.d.ts +7 -1
- package/lib/cjs/services/reactions/index.js +24 -16
- package/lib/cjs/services/score/index.d.ts +0 -1
- package/lib/cjs/services/score/index.js +5 -17
- package/lib/cjs/services/sso/index.d.ts +0 -1
- package/lib/cjs/services/sso/index.js +4 -16
- package/lib/cjs/services/suggestion/index.d.ts +9 -5
- package/lib/cjs/services/suggestion/index.js +12 -19
- package/lib/cjs/services/tag/index.d.ts +0 -1
- package/lib/cjs/services/tag/index.js +9 -21
- package/lib/cjs/services/user/index.d.ts +20 -13
- package/lib/cjs/services/user/index.js +82 -84
- package/lib/cjs/services/webhook/index.d.ts +0 -1
- package/lib/cjs/services/webhook/index.js +14 -26
- package/lib/cjs/types/account.d.ts +0 -1
- package/lib/cjs/types/account.js +0 -1
- package/lib/cjs/types/baseParams.d.ts +0 -1
- package/lib/cjs/types/baseParams.js +0 -1
- package/lib/cjs/types/category.d.ts +0 -1
- package/lib/cjs/types/category.js +0 -1
- package/lib/cjs/types/comment.d.ts +0 -1
- package/lib/cjs/types/comment.js +0 -1
- package/lib/cjs/types/customAdv.d.ts +0 -1
- package/lib/cjs/types/customAdv.js +0 -1
- package/lib/cjs/types/customPage.d.ts +0 -1
- package/lib/cjs/types/customPage.js +0 -1
- package/lib/cjs/types/embed.d.ts +0 -1
- package/lib/cjs/types/embed.js +0 -1
- package/lib/cjs/types/feature.d.ts +0 -1
- package/lib/cjs/types/feature.js +0 -1
- package/lib/cjs/types/feed.d.ts +0 -1
- package/lib/cjs/types/feed.js +0 -1
- package/lib/cjs/types/feedObject.d.ts +0 -1
- package/lib/cjs/types/feedObject.js +0 -1
- package/lib/cjs/types/incubator.d.ts +0 -1
- package/lib/cjs/types/incubator.js +0 -1
- package/lib/cjs/types/index.d.ts +2 -3
- package/lib/cjs/types/index.js +0 -1
- package/lib/cjs/types/insight.d.ts +0 -1
- package/lib/cjs/types/insight.js +0 -1
- package/lib/cjs/types/legalPage.d.ts +0 -1
- package/lib/cjs/types/legalPage.js +0 -1
- package/lib/cjs/types/media.d.ts +0 -1
- package/lib/cjs/types/media.js +0 -1
- package/lib/cjs/types/moderation.d.ts +0 -1
- package/lib/cjs/types/moderation.js +0 -1
- package/lib/cjs/types/notification.d.ts +0 -1
- package/lib/cjs/types/notification.js +0 -1
- package/lib/cjs/types/paginatedResponse.d.ts +0 -1
- package/lib/cjs/types/paginatedResponse.js +0 -1
- package/lib/cjs/types/privateMessage.d.ts +0 -1
- package/lib/cjs/types/privateMessage.js +0 -1
- package/lib/cjs/types/prize.d.ts +14 -1
- package/lib/cjs/types/prize.js +0 -1
- package/lib/cjs/types/reaction.d.ts +0 -1
- package/lib/cjs/types/reaction.js +0 -1
- package/lib/cjs/types/score.d.ts +0 -1
- package/lib/cjs/types/score.js +0 -1
- package/lib/cjs/types/sso.d.ts +0 -1
- package/lib/cjs/types/sso.js +0 -1
- package/lib/cjs/types/tag.d.ts +0 -1
- package/lib/cjs/types/tag.js +0 -1
- package/lib/cjs/types/user.d.ts +0 -1
- package/lib/cjs/types/user.js +0 -1
- package/lib/cjs/types/webhook.d.ts +0 -1
- package/lib/cjs/types/webhook.js +0 -1
- package/lib/cjs/utils/apiRequest.d.ts +0 -1
- package/lib/cjs/utils/apiRequest.js +10 -7
- package/lib/cjs/utils/http.d.ts +2 -2
- package/lib/cjs/utils/http.js +32 -6
- package/lib/cjs/utils/token.d.ts +0 -1
- package/lib/cjs/utils/token.js +3 -35
- package/lib/cjs/utils/url.d.ts +0 -1
- package/lib/cjs/utils/url.js +0 -1
- package/lib/esm/client/index.d.ts +2 -10
- package/lib/esm/client/index.js +1 -2
- package/lib/esm/constants/Endpoints.d.ts +1 -2
- package/lib/esm/constants/Endpoints.js +15 -4
- package/lib/esm/constants/Errors.d.ts +4 -0
- package/lib/esm/constants/Errors.js +4 -0
- package/lib/esm/index.d.ts +3 -4
- package/lib/esm/index.js +2 -3
- package/lib/esm/services/account/index.d.ts +7 -1
- package/lib/esm/services/account/index.js +14 -10
- package/lib/esm/services/category/index.d.ts +0 -1
- package/lib/esm/services/category/index.js +1 -10
- package/lib/esm/services/comment/index.d.ts +0 -1
- package/lib/esm/services/comment/index.js +1 -10
- package/lib/esm/services/custom_adv/index.d.ts +0 -1
- package/lib/esm/services/custom_adv/index.js +1 -10
- package/lib/esm/services/custom_menu/index.d.ts +0 -1
- package/lib/esm/services/custom_menu/index.js +1 -10
- package/lib/esm/services/custom_page/index.d.ts +0 -1
- package/lib/esm/services/custom_page/index.js +1 -10
- package/lib/esm/services/data_portability/index.d.ts +0 -1
- package/lib/esm/services/data_portability/index.js +1 -10
- package/lib/esm/services/embed/index.d.ts +0 -1
- package/lib/esm/services/embed/index.js +1 -10
- package/lib/esm/services/feature/index.d.ts +0 -1
- package/lib/esm/services/feature/index.js +1 -10
- package/lib/esm/services/feed/index.d.ts +0 -1
- package/lib/esm/services/feed/index.js +1 -10
- package/lib/esm/services/feed_object/index.d.ts +0 -1
- package/lib/esm/services/feed_object/index.js +1 -10
- package/lib/esm/services/incubator/index.d.ts +0 -1
- package/lib/esm/services/incubator/index.js +1 -10
- package/lib/esm/services/insight/index.d.ts +0 -1
- package/lib/esm/services/insight/index.js +1 -10
- package/lib/esm/services/invite/index.d.ts +0 -1
- package/lib/esm/services/invite/index.js +1 -10
- package/lib/esm/services/legal_page/index.d.ts +0 -1
- package/lib/esm/services/legal_page/index.js +1 -10
- package/lib/esm/services/locality/index.d.ts +0 -1
- package/lib/esm/services/locality/index.js +1 -10
- package/lib/esm/services/loyalty/index.d.ts +5 -5
- package/lib/esm/services/loyalty/index.js +6 -14
- package/lib/esm/services/media/index.d.ts +0 -1
- package/lib/esm/services/media/index.js +1 -10
- package/lib/esm/services/moderation/index.d.ts +0 -1
- package/lib/esm/services/moderation/index.js +1 -10
- package/lib/esm/services/notification/index.d.ts +0 -1
- package/lib/esm/services/notification/index.js +1 -10
- package/lib/esm/services/preference/index.d.ts +0 -1
- package/lib/esm/services/preference/index.js +1 -10
- package/lib/esm/services/private_message/index.d.ts +0 -1
- package/lib/esm/services/private_message/index.js +1 -10
- package/lib/esm/services/promo/index.d.ts +0 -1
- package/lib/esm/services/promo/index.js +1 -10
- package/lib/esm/services/reactions/index.d.ts +7 -1
- package/lib/esm/services/reactions/index.js +21 -10
- package/lib/esm/services/score/index.d.ts +0 -1
- package/lib/esm/services/score/index.js +1 -10
- package/lib/esm/services/sso/index.d.ts +0 -1
- package/lib/esm/services/sso/index.js +1 -10
- package/lib/esm/services/suggestion/index.d.ts +9 -5
- package/lib/esm/services/suggestion/index.js +6 -10
- package/lib/esm/services/tag/index.d.ts +0 -1
- package/lib/esm/services/tag/index.js +1 -10
- package/lib/esm/services/user/index.d.ts +20 -13
- package/lib/esm/services/user/index.js +31 -30
- package/lib/esm/services/webhook/index.d.ts +0 -1
- package/lib/esm/services/webhook/index.js +1 -10
- package/lib/esm/types/account.d.ts +0 -1
- package/lib/esm/types/account.js +0 -1
- package/lib/esm/types/baseParams.d.ts +0 -1
- package/lib/esm/types/baseParams.js +0 -1
- package/lib/esm/types/category.d.ts +0 -1
- package/lib/esm/types/category.js +0 -1
- package/lib/esm/types/comment.d.ts +0 -1
- package/lib/esm/types/comment.js +0 -1
- package/lib/esm/types/customAdv.d.ts +0 -1
- package/lib/esm/types/customAdv.js +0 -1
- package/lib/esm/types/customPage.d.ts +0 -1
- package/lib/esm/types/customPage.js +0 -1
- package/lib/esm/types/embed.d.ts +0 -1
- package/lib/esm/types/embed.js +0 -1
- package/lib/esm/types/feature.d.ts +0 -1
- package/lib/esm/types/feature.js +0 -1
- package/lib/esm/types/feed.d.ts +0 -1
- package/lib/esm/types/feed.js +0 -1
- package/lib/esm/types/feedObject.d.ts +0 -1
- package/lib/esm/types/feedObject.js +0 -1
- package/lib/esm/types/incubator.d.ts +0 -1
- package/lib/esm/types/incubator.js +0 -1
- package/lib/esm/types/index.d.ts +2 -3
- package/lib/esm/types/index.js +0 -1
- package/lib/esm/types/insight.d.ts +0 -1
- package/lib/esm/types/insight.js +0 -1
- package/lib/esm/types/legalPage.d.ts +0 -1
- package/lib/esm/types/legalPage.js +0 -1
- package/lib/esm/types/media.d.ts +0 -1
- package/lib/esm/types/media.js +0 -1
- package/lib/esm/types/moderation.d.ts +0 -1
- package/lib/esm/types/moderation.js +0 -1
- package/lib/esm/types/notification.d.ts +0 -1
- package/lib/esm/types/notification.js +0 -1
- package/lib/esm/types/paginatedResponse.d.ts +0 -1
- package/lib/esm/types/paginatedResponse.js +0 -1
- package/lib/esm/types/privateMessage.d.ts +0 -1
- package/lib/esm/types/privateMessage.js +0 -1
- package/lib/esm/types/prize.d.ts +14 -1
- package/lib/esm/types/prize.js +0 -1
- package/lib/esm/types/reaction.d.ts +0 -1
- package/lib/esm/types/reaction.js +0 -1
- package/lib/esm/types/score.d.ts +0 -1
- package/lib/esm/types/score.js +0 -1
- package/lib/esm/types/sso.d.ts +0 -1
- package/lib/esm/types/sso.js +0 -1
- package/lib/esm/types/tag.d.ts +0 -1
- package/lib/esm/types/tag.js +0 -1
- package/lib/esm/types/user.d.ts +0 -1
- package/lib/esm/types/user.js +0 -1
- package/lib/esm/types/webhook.d.ts +0 -1
- package/lib/esm/types/webhook.js +0 -1
- package/lib/esm/utils/apiRequest.d.ts +0 -1
- package/lib/esm/utils/apiRequest.js +8 -3
- package/lib/esm/utils/http.d.ts +2 -2
- package/lib/esm/utils/http.js +29 -2
- package/lib/esm/utils/token.d.ts +0 -1
- package/lib/esm/utils/token.js +1 -10
- package/lib/esm/utils/url.d.ts +0 -1
- package/lib/esm/utils/url.js +0 -1
- package/lib/umd/956.js +2 -0
- package/lib/umd/956.js.LICENSE.txt +1 -0
- package/lib/umd/api-services.js +1 -2
- package/lib/umd/api-services.js.LICENSE.txt +1 -1
- package/package.json +20 -19
- package/lib/cjs/client/index.d.ts.map +0 -1
- package/lib/cjs/client/index.js.map +0 -1
- package/lib/cjs/constants/Endpoints.d.ts.map +0 -1
- package/lib/cjs/constants/Endpoints.js.map +0 -1
- package/lib/cjs/index.d.ts.map +0 -1
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/services/account/index.d.ts.map +0 -1
- package/lib/cjs/services/account/index.js.map +0 -1
- package/lib/cjs/services/category/index.d.ts.map +0 -1
- package/lib/cjs/services/category/index.js.map +0 -1
- package/lib/cjs/services/comment/index.d.ts.map +0 -1
- package/lib/cjs/services/comment/index.js.map +0 -1
- package/lib/cjs/services/custom_adv/index.d.ts.map +0 -1
- package/lib/cjs/services/custom_adv/index.js.map +0 -1
- package/lib/cjs/services/custom_menu/index.d.ts.map +0 -1
- package/lib/cjs/services/custom_menu/index.js.map +0 -1
- package/lib/cjs/services/custom_page/index.d.ts.map +0 -1
- package/lib/cjs/services/custom_page/index.js.map +0 -1
- package/lib/cjs/services/data_portability/index.d.ts.map +0 -1
- package/lib/cjs/services/data_portability/index.js.map +0 -1
- package/lib/cjs/services/embed/index.d.ts.map +0 -1
- package/lib/cjs/services/embed/index.js.map +0 -1
- package/lib/cjs/services/feature/index.d.ts.map +0 -1
- package/lib/cjs/services/feature/index.js.map +0 -1
- package/lib/cjs/services/feed/index.d.ts.map +0 -1
- package/lib/cjs/services/feed/index.js.map +0 -1
- package/lib/cjs/services/feed_object/index.d.ts.map +0 -1
- package/lib/cjs/services/feed_object/index.js.map +0 -1
- package/lib/cjs/services/incubator/index.d.ts.map +0 -1
- package/lib/cjs/services/incubator/index.js.map +0 -1
- package/lib/cjs/services/insight/index.d.ts.map +0 -1
- package/lib/cjs/services/insight/index.js.map +0 -1
- package/lib/cjs/services/invite/index.d.ts.map +0 -1
- package/lib/cjs/services/invite/index.js.map +0 -1
- package/lib/cjs/services/legal_page/index.d.ts.map +0 -1
- package/lib/cjs/services/legal_page/index.js.map +0 -1
- package/lib/cjs/services/locality/index.d.ts.map +0 -1
- package/lib/cjs/services/locality/index.js.map +0 -1
- package/lib/cjs/services/loyalty/index.d.ts.map +0 -1
- package/lib/cjs/services/loyalty/index.js.map +0 -1
- package/lib/cjs/services/media/index.d.ts.map +0 -1
- package/lib/cjs/services/media/index.js.map +0 -1
- package/lib/cjs/services/moderation/index.d.ts.map +0 -1
- package/lib/cjs/services/moderation/index.js.map +0 -1
- package/lib/cjs/services/notification/index.d.ts.map +0 -1
- package/lib/cjs/services/notification/index.js.map +0 -1
- package/lib/cjs/services/preference/index.d.ts.map +0 -1
- package/lib/cjs/services/preference/index.js.map +0 -1
- package/lib/cjs/services/private_message/index.d.ts.map +0 -1
- package/lib/cjs/services/private_message/index.js.map +0 -1
- package/lib/cjs/services/promo/index.d.ts.map +0 -1
- package/lib/cjs/services/promo/index.js.map +0 -1
- package/lib/cjs/services/reactions/index.d.ts.map +0 -1
- package/lib/cjs/services/reactions/index.js.map +0 -1
- package/lib/cjs/services/score/index.d.ts.map +0 -1
- package/lib/cjs/services/score/index.js.map +0 -1
- package/lib/cjs/services/sso/index.d.ts.map +0 -1
- package/lib/cjs/services/sso/index.js.map +0 -1
- package/lib/cjs/services/suggestion/index.d.ts.map +0 -1
- package/lib/cjs/services/suggestion/index.js.map +0 -1
- package/lib/cjs/services/tag/index.d.ts.map +0 -1
- package/lib/cjs/services/tag/index.js.map +0 -1
- package/lib/cjs/services/user/index.d.ts.map +0 -1
- package/lib/cjs/services/user/index.js.map +0 -1
- package/lib/cjs/services/webhook/index.d.ts.map +0 -1
- package/lib/cjs/services/webhook/index.js.map +0 -1
- package/lib/cjs/types/account.d.ts.map +0 -1
- package/lib/cjs/types/account.js.map +0 -1
- package/lib/cjs/types/baseParams.d.ts.map +0 -1
- package/lib/cjs/types/baseParams.js.map +0 -1
- package/lib/cjs/types/category.d.ts.map +0 -1
- package/lib/cjs/types/category.js.map +0 -1
- package/lib/cjs/types/comment.d.ts.map +0 -1
- package/lib/cjs/types/comment.js.map +0 -1
- package/lib/cjs/types/customAdv.d.ts.map +0 -1
- package/lib/cjs/types/customAdv.js.map +0 -1
- package/lib/cjs/types/customPage.d.ts.map +0 -1
- package/lib/cjs/types/customPage.js.map +0 -1
- package/lib/cjs/types/embed.d.ts.map +0 -1
- package/lib/cjs/types/embed.js.map +0 -1
- package/lib/cjs/types/feature.d.ts.map +0 -1
- package/lib/cjs/types/feature.js.map +0 -1
- package/lib/cjs/types/feed.d.ts.map +0 -1
- package/lib/cjs/types/feed.js.map +0 -1
- package/lib/cjs/types/feedObject.d.ts.map +0 -1
- package/lib/cjs/types/feedObject.js.map +0 -1
- package/lib/cjs/types/incubator.d.ts.map +0 -1
- package/lib/cjs/types/incubator.js.map +0 -1
- package/lib/cjs/types/index.d.ts.map +0 -1
- package/lib/cjs/types/index.js.map +0 -1
- package/lib/cjs/types/insight.d.ts.map +0 -1
- package/lib/cjs/types/insight.js.map +0 -1
- package/lib/cjs/types/legalPage.d.ts.map +0 -1
- package/lib/cjs/types/legalPage.js.map +0 -1
- package/lib/cjs/types/media.d.ts.map +0 -1
- package/lib/cjs/types/media.js.map +0 -1
- package/lib/cjs/types/moderation.d.ts.map +0 -1
- package/lib/cjs/types/moderation.js.map +0 -1
- package/lib/cjs/types/notification.d.ts.map +0 -1
- package/lib/cjs/types/notification.js.map +0 -1
- package/lib/cjs/types/paginatedResponse.d.ts.map +0 -1
- package/lib/cjs/types/paginatedResponse.js.map +0 -1
- package/lib/cjs/types/privateMessage.d.ts.map +0 -1
- package/lib/cjs/types/privateMessage.js.map +0 -1
- package/lib/cjs/types/prize.d.ts.map +0 -1
- package/lib/cjs/types/prize.js.map +0 -1
- package/lib/cjs/types/reaction.d.ts.map +0 -1
- package/lib/cjs/types/reaction.js.map +0 -1
- package/lib/cjs/types/score.d.ts.map +0 -1
- package/lib/cjs/types/score.js.map +0 -1
- package/lib/cjs/types/sso.d.ts.map +0 -1
- package/lib/cjs/types/sso.js.map +0 -1
- package/lib/cjs/types/tag.d.ts.map +0 -1
- package/lib/cjs/types/tag.js.map +0 -1
- package/lib/cjs/types/user.d.ts.map +0 -1
- package/lib/cjs/types/user.js.map +0 -1
- package/lib/cjs/types/webhook.d.ts.map +0 -1
- package/lib/cjs/types/webhook.js.map +0 -1
- package/lib/cjs/utils/apiRequest.d.ts.map +0 -1
- package/lib/cjs/utils/apiRequest.js.map +0 -1
- package/lib/cjs/utils/http.d.ts.map +0 -1
- package/lib/cjs/utils/http.js.map +0 -1
- package/lib/cjs/utils/token.d.ts.map +0 -1
- package/lib/cjs/utils/token.js.map +0 -1
- package/lib/cjs/utils/url.d.ts.map +0 -1
- package/lib/cjs/utils/url.js.map +0 -1
- package/lib/esm/client/index.d.ts.map +0 -1
- package/lib/esm/client/index.js.map +0 -1
- package/lib/esm/constants/Endpoints.d.ts.map +0 -1
- package/lib/esm/constants/Endpoints.js.map +0 -1
- package/lib/esm/index.d.ts.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/services/account/index.d.ts.map +0 -1
- package/lib/esm/services/account/index.js.map +0 -1
- package/lib/esm/services/category/index.d.ts.map +0 -1
- package/lib/esm/services/category/index.js.map +0 -1
- package/lib/esm/services/comment/index.d.ts.map +0 -1
- package/lib/esm/services/comment/index.js.map +0 -1
- package/lib/esm/services/custom_adv/index.d.ts.map +0 -1
- package/lib/esm/services/custom_adv/index.js.map +0 -1
- package/lib/esm/services/custom_menu/index.d.ts.map +0 -1
- package/lib/esm/services/custom_menu/index.js.map +0 -1
- package/lib/esm/services/custom_page/index.d.ts.map +0 -1
- package/lib/esm/services/custom_page/index.js.map +0 -1
- package/lib/esm/services/data_portability/index.d.ts.map +0 -1
- package/lib/esm/services/data_portability/index.js.map +0 -1
- package/lib/esm/services/embed/index.d.ts.map +0 -1
- package/lib/esm/services/embed/index.js.map +0 -1
- package/lib/esm/services/feature/index.d.ts.map +0 -1
- package/lib/esm/services/feature/index.js.map +0 -1
- package/lib/esm/services/feed/index.d.ts.map +0 -1
- package/lib/esm/services/feed/index.js.map +0 -1
- package/lib/esm/services/feed_object/index.d.ts.map +0 -1
- package/lib/esm/services/feed_object/index.js.map +0 -1
- package/lib/esm/services/incubator/index.d.ts.map +0 -1
- package/lib/esm/services/incubator/index.js.map +0 -1
- package/lib/esm/services/insight/index.d.ts.map +0 -1
- package/lib/esm/services/insight/index.js.map +0 -1
- package/lib/esm/services/invite/index.d.ts.map +0 -1
- package/lib/esm/services/invite/index.js.map +0 -1
- package/lib/esm/services/legal_page/index.d.ts.map +0 -1
- package/lib/esm/services/legal_page/index.js.map +0 -1
- package/lib/esm/services/locality/index.d.ts.map +0 -1
- package/lib/esm/services/locality/index.js.map +0 -1
- package/lib/esm/services/loyalty/index.d.ts.map +0 -1
- package/lib/esm/services/loyalty/index.js.map +0 -1
- package/lib/esm/services/media/index.d.ts.map +0 -1
- package/lib/esm/services/media/index.js.map +0 -1
- package/lib/esm/services/moderation/index.d.ts.map +0 -1
- package/lib/esm/services/moderation/index.js.map +0 -1
- package/lib/esm/services/notification/index.d.ts.map +0 -1
- package/lib/esm/services/notification/index.js.map +0 -1
- package/lib/esm/services/preference/index.d.ts.map +0 -1
- package/lib/esm/services/preference/index.js.map +0 -1
- package/lib/esm/services/private_message/index.d.ts.map +0 -1
- package/lib/esm/services/private_message/index.js.map +0 -1
- package/lib/esm/services/promo/index.d.ts.map +0 -1
- package/lib/esm/services/promo/index.js.map +0 -1
- package/lib/esm/services/reactions/index.d.ts.map +0 -1
- package/lib/esm/services/reactions/index.js.map +0 -1
- package/lib/esm/services/score/index.d.ts.map +0 -1
- package/lib/esm/services/score/index.js.map +0 -1
- package/lib/esm/services/sso/index.d.ts.map +0 -1
- package/lib/esm/services/sso/index.js.map +0 -1
- package/lib/esm/services/suggestion/index.d.ts.map +0 -1
- package/lib/esm/services/suggestion/index.js.map +0 -1
- package/lib/esm/services/tag/index.d.ts.map +0 -1
- package/lib/esm/services/tag/index.js.map +0 -1
- package/lib/esm/services/user/index.d.ts.map +0 -1
- package/lib/esm/services/user/index.js.map +0 -1
- package/lib/esm/services/webhook/index.d.ts.map +0 -1
- package/lib/esm/services/webhook/index.js.map +0 -1
- package/lib/esm/types/account.d.ts.map +0 -1
- package/lib/esm/types/account.js.map +0 -1
- package/lib/esm/types/baseParams.d.ts.map +0 -1
- package/lib/esm/types/baseParams.js.map +0 -1
- package/lib/esm/types/category.d.ts.map +0 -1
- package/lib/esm/types/category.js.map +0 -1
- package/lib/esm/types/comment.d.ts.map +0 -1
- package/lib/esm/types/comment.js.map +0 -1
- package/lib/esm/types/customAdv.d.ts.map +0 -1
- package/lib/esm/types/customAdv.js.map +0 -1
- package/lib/esm/types/customPage.d.ts.map +0 -1
- package/lib/esm/types/customPage.js.map +0 -1
- package/lib/esm/types/embed.d.ts.map +0 -1
- package/lib/esm/types/embed.js.map +0 -1
- package/lib/esm/types/feature.d.ts.map +0 -1
- package/lib/esm/types/feature.js.map +0 -1
- package/lib/esm/types/feed.d.ts.map +0 -1
- package/lib/esm/types/feed.js.map +0 -1
- package/lib/esm/types/feedObject.d.ts.map +0 -1
- package/lib/esm/types/feedObject.js.map +0 -1
- package/lib/esm/types/incubator.d.ts.map +0 -1
- package/lib/esm/types/incubator.js.map +0 -1
- package/lib/esm/types/index.d.ts.map +0 -1
- package/lib/esm/types/index.js.map +0 -1
- package/lib/esm/types/insight.d.ts.map +0 -1
- package/lib/esm/types/insight.js.map +0 -1
- package/lib/esm/types/legalPage.d.ts.map +0 -1
- package/lib/esm/types/legalPage.js.map +0 -1
- package/lib/esm/types/media.d.ts.map +0 -1
- package/lib/esm/types/media.js.map +0 -1
- package/lib/esm/types/moderation.d.ts.map +0 -1
- package/lib/esm/types/moderation.js.map +0 -1
- package/lib/esm/types/notification.d.ts.map +0 -1
- package/lib/esm/types/notification.js.map +0 -1
- package/lib/esm/types/paginatedResponse.d.ts.map +0 -1
- package/lib/esm/types/paginatedResponse.js.map +0 -1
- package/lib/esm/types/privateMessage.d.ts.map +0 -1
- package/lib/esm/types/privateMessage.js.map +0 -1
- package/lib/esm/types/prize.d.ts.map +0 -1
- package/lib/esm/types/prize.js.map +0 -1
- package/lib/esm/types/reaction.d.ts.map +0 -1
- package/lib/esm/types/reaction.js.map +0 -1
- package/lib/esm/types/score.d.ts.map +0 -1
- package/lib/esm/types/score.js.map +0 -1
- package/lib/esm/types/sso.d.ts.map +0 -1
- package/lib/esm/types/sso.js.map +0 -1
- package/lib/esm/types/tag.d.ts.map +0 -1
- package/lib/esm/types/tag.js.map +0 -1
- package/lib/esm/types/user.d.ts.map +0 -1
- package/lib/esm/types/user.js.map +0 -1
- package/lib/esm/types/webhook.d.ts.map +0 -1
- package/lib/esm/types/webhook.js.map +0 -1
- package/lib/esm/utils/apiRequest.d.ts.map +0 -1
- package/lib/esm/utils/apiRequest.js.map +0 -1
- package/lib/esm/utils/http.d.ts.map +0 -1
- package/lib/esm/utils/http.js.map +0 -1
- package/lib/esm/utils/token.d.ts.map +0 -1
- package/lib/esm/utils/token.js.map +0 -1
- package/lib/esm/utils/url.d.ts.map +0 -1
- package/lib/esm/utils/url.js.map +0 -1
- package/lib/umd/api-services.js.map +0 -1
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import Endpoints from '../../constants/Endpoints';
|
|
11
3
|
import { apiRequest } from '../../utils/apiRequest';
|
|
12
4
|
/**
|
|
@@ -63,4 +55,3 @@ export default class PromoService {
|
|
|
63
55
|
});
|
|
64
56
|
}
|
|
65
57
|
}
|
|
66
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -15,6 +15,12 @@ export declare class ReactionApiClient {
|
|
|
15
15
|
* @param config
|
|
16
16
|
*/
|
|
17
17
|
static getAllReactions(params?: ReactionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCReactionType>>;
|
|
18
|
+
/**
|
|
19
|
+
* This endpoint retrieves all reactions data without pagination.
|
|
20
|
+
* @param params
|
|
21
|
+
* @param config
|
|
22
|
+
*/
|
|
23
|
+
static getAllReactionsList(params?: ReactionParams, config?: AxiosRequestConfig): Promise<SCReactionType[]>;
|
|
18
24
|
/**
|
|
19
25
|
* This endpoint retrieves a specific reaction.
|
|
20
26
|
* @param id
|
|
@@ -52,6 +58,6 @@ export declare class ReactionApiClient {
|
|
|
52
58
|
*/
|
|
53
59
|
export default class ReactionService {
|
|
54
60
|
static getAllReactions(params?: ReactionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCReactionType>>;
|
|
61
|
+
static getAllReactionsList(params?: ReactionParams, config?: AxiosRequestConfig): Promise<SCReactionType[]>;
|
|
55
62
|
static getSpecificReaction(id: number, config?: AxiosRequestConfig): Promise<SCReactionType>;
|
|
56
63
|
}
|
|
57
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import { apiRequest } from '../../utils/apiRequest';
|
|
11
3
|
import Endpoints from '../../constants/Endpoints';
|
|
12
4
|
import { urlParams } from '../../utils/url';
|
|
@@ -23,6 +15,21 @@ export class ReactionApiClient {
|
|
|
23
15
|
const p = urlParams(params);
|
|
24
16
|
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.GetReactions.url({})}?${p.toString()}`, method: Endpoints.GetReactions.method }));
|
|
25
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* This endpoint retrieves all reactions data without pagination.
|
|
20
|
+
* @param params
|
|
21
|
+
* @param config
|
|
22
|
+
*/
|
|
23
|
+
static getAllReactionsList(params, config) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const p = urlParams(params);
|
|
26
|
+
const response = yield apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.GetReactions.url({})}?${p.toString()}`, method: Endpoints.GetReactions.method }));
|
|
27
|
+
if (response.next) {
|
|
28
|
+
return response.results.concat(yield ReactionApiClient.getAllReactionsList(params, Object.assign(Object.assign({}, config), { url: response.next, method: Endpoints.GetReactions.method })));
|
|
29
|
+
}
|
|
30
|
+
return response.results;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
26
33
|
/**
|
|
27
34
|
* This endpoint retrieves a specific reaction.
|
|
28
35
|
* @param id
|
|
@@ -66,10 +73,14 @@ export default class ReactionService {
|
|
|
66
73
|
return ReactionApiClient.getAllReactions(params, config);
|
|
67
74
|
});
|
|
68
75
|
}
|
|
76
|
+
static getAllReactionsList(params, config) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
return ReactionApiClient.getAllReactionsList(params, config);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
69
81
|
static getSpecificReaction(id, config) {
|
|
70
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
83
|
return ReactionApiClient.getSpecificReaction(id, config);
|
|
72
84
|
});
|
|
73
85
|
}
|
|
74
86
|
}
|
|
75
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -62,4 +62,3 @@ export default class ScoreService {
|
|
|
62
62
|
static searchScore(params?: ScoreParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserScoreType>>;
|
|
63
63
|
static addScore(data: UserScoreParams, config?: AxiosRequestConfig): Promise<SCUserScoreType>;
|
|
64
64
|
}
|
|
65
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import { apiRequest } from '../../utils/apiRequest';
|
|
11
3
|
import Endpoints from '../../constants/Endpoints';
|
|
12
4
|
import { urlParams } from '../../utils/url';
|
|
@@ -86,4 +78,3 @@ export default class ScoreService {
|
|
|
86
78
|
});
|
|
87
79
|
}
|
|
88
80
|
}
|
|
89
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import { apiRequest } from '../../utils/apiRequest';
|
|
11
3
|
import Endpoints from '../../constants/Endpoints';
|
|
12
4
|
/**
|
|
@@ -71,4 +63,3 @@ export default class SSOService {
|
|
|
71
63
|
});
|
|
72
64
|
}
|
|
73
65
|
}
|
|
74
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -3,8 +3,8 @@ import { SCCategoryType, SCFeedObjectType, SCIncubatorType, SCSuggestionType, SC
|
|
|
3
3
|
import { AxiosRequestConfig } from 'axios';
|
|
4
4
|
export interface SuggestionApiClientInterface {
|
|
5
5
|
getCategorySuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
6
|
-
getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCIncubatorType
|
|
7
|
-
getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCFeedObjectType
|
|
6
|
+
getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
7
|
+
getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>>;
|
|
8
8
|
getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
9
9
|
getSearchSuggestion(search: string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCSuggestionType>>;
|
|
10
10
|
}
|
|
@@ -14,27 +14,32 @@ export interface SuggestionApiClientInterface {
|
|
|
14
14
|
export declare class SuggestionApiClient {
|
|
15
15
|
/**
|
|
16
16
|
* This endpoint retrieves a list of categories suggested to the current user.
|
|
17
|
+
* @param params
|
|
17
18
|
* @param config
|
|
18
19
|
*/
|
|
19
20
|
static getCategorySuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
20
21
|
/**
|
|
21
22
|
* This endpoint retrieves a list of suggested incubators.
|
|
23
|
+
* @param params
|
|
22
24
|
* @param config
|
|
23
25
|
*/
|
|
24
|
-
static getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCIncubatorType
|
|
26
|
+
static getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
25
27
|
/**
|
|
26
28
|
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
29
|
+
* @param params
|
|
27
30
|
* @param config
|
|
28
31
|
*/
|
|
29
32
|
static getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>>;
|
|
30
33
|
/**
|
|
31
34
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
35
|
+
* @param params
|
|
32
36
|
* @param config
|
|
33
37
|
*/
|
|
34
38
|
static getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
35
39
|
/**
|
|
36
40
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
37
41
|
* @param search
|
|
42
|
+
* @param params
|
|
38
43
|
* @param config
|
|
39
44
|
*/
|
|
40
45
|
static getSearchSuggestion(search: string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCSuggestionType>>;
|
|
@@ -69,9 +74,8 @@ export declare class SuggestionApiClient {
|
|
|
69
74
|
*/
|
|
70
75
|
export default class SuggestionService {
|
|
71
76
|
static getCategorySuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
72
|
-
static getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCIncubatorType
|
|
77
|
+
static getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
73
78
|
static getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>>;
|
|
74
79
|
static getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
75
80
|
static getSearchSuggestion(search: string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCSuggestionType>>;
|
|
76
81
|
}
|
|
77
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import { apiRequest } from '../../utils/apiRequest';
|
|
11
3
|
import Endpoints from '../../constants/Endpoints';
|
|
12
4
|
import { urlParams } from '../../utils/url';
|
|
@@ -16,6 +8,7 @@ import { urlParams } from '../../utils/url';
|
|
|
16
8
|
export class SuggestionApiClient {
|
|
17
9
|
/**
|
|
18
10
|
* This endpoint retrieves a list of categories suggested to the current user.
|
|
11
|
+
* @param params
|
|
19
12
|
* @param config
|
|
20
13
|
*/
|
|
21
14
|
static getCategorySuggestion(params, config) {
|
|
@@ -23,6 +16,7 @@ export class SuggestionApiClient {
|
|
|
23
16
|
}
|
|
24
17
|
/**
|
|
25
18
|
* This endpoint retrieves a list of suggested incubators.
|
|
19
|
+
* @param params
|
|
26
20
|
* @param config
|
|
27
21
|
*/
|
|
28
22
|
static getIncubatorSuggestion(params, config) {
|
|
@@ -30,6 +24,7 @@ export class SuggestionApiClient {
|
|
|
30
24
|
}
|
|
31
25
|
/**
|
|
32
26
|
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
27
|
+
* @param params
|
|
33
28
|
* @param config
|
|
34
29
|
*/
|
|
35
30
|
static getPollSuggestion(params, config) {
|
|
@@ -37,6 +32,7 @@ export class SuggestionApiClient {
|
|
|
37
32
|
}
|
|
38
33
|
/**
|
|
39
34
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
35
|
+
* @param params
|
|
40
36
|
* @param config
|
|
41
37
|
*/
|
|
42
38
|
static getUserSuggestion(params, config) {
|
|
@@ -45,6 +41,7 @@ export class SuggestionApiClient {
|
|
|
45
41
|
/**
|
|
46
42
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
47
43
|
* @param search
|
|
44
|
+
* @param params
|
|
48
45
|
* @param config
|
|
49
46
|
*/
|
|
50
47
|
static getSearchSuggestion(search, params, config) {
|
|
@@ -107,4 +104,3 @@ export default class SuggestionService {
|
|
|
107
104
|
});
|
|
108
105
|
}
|
|
109
106
|
}
|
|
110
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -107,4 +107,3 @@ export default class TagService {
|
|
|
107
107
|
static patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
108
108
|
static assignATag(id: number | string, user?: number, category?: number, config?: AxiosRequestConfig): Promise<SCTagType>;
|
|
109
109
|
}
|
|
110
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import { apiRequest } from '../../utils/apiRequest';
|
|
11
3
|
import Endpoints from '../../constants/Endpoints';
|
|
12
4
|
import { urlParams } from '../../utils/url';
|
|
@@ -151,4 +143,3 @@ export default class TagService {
|
|
|
151
143
|
});
|
|
152
144
|
}
|
|
153
145
|
}
|
|
154
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5,6 +5,7 @@ import { DeleteProviderAssociation } from '../../types/user';
|
|
|
5
5
|
export interface UserApiClientInterface {
|
|
6
6
|
getAllUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
7
7
|
getHiddenUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
8
|
+
getHiddenUsersId(params?: any, config?: AxiosRequestConfig): Promise<number[]>;
|
|
8
9
|
userAutocomplete(params: UserAutocompleteParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;
|
|
9
10
|
userSearch(params: UserSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
10
11
|
getSpecificUser(id: number | string, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
@@ -12,7 +13,7 @@ export interface UserApiClientInterface {
|
|
|
12
13
|
userUpdate(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
13
14
|
userPatch(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
14
15
|
userDelete(id: number | string, hard?: number, config?: AxiosRequestConfig): Promise<any>;
|
|
15
|
-
changeUserMail(id: number | string, new_email: string, confirm?: boolean, config?: AxiosRequestConfig): Promise<any | SCUserChangeEmailType>;
|
|
16
|
+
changeUserMail(id: number | string, new_email: string, confirm?: boolean, send_email?: boolean, config?: AxiosRequestConfig): Promise<any | SCUserChangeEmailType>;
|
|
16
17
|
confirmChangeUserMail(id: number | string, new_email: string, validation_code?: string, config?: AxiosRequestConfig): Promise<any>;
|
|
17
18
|
changeUserPassword(id: number | string, password: string, new_password: string, config?: AxiosRequestConfig): Promise<any>;
|
|
18
19
|
userSettings(id: number | string, config?: AxiosRequestConfig): Promise<SCUserSettingsType>;
|
|
@@ -28,10 +29,10 @@ export interface UserApiClientInterface {
|
|
|
28
29
|
followUser(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
29
30
|
checkUserFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowedStatusType>;
|
|
30
31
|
checkUserFollower(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowerStatusType>;
|
|
31
|
-
getUserConnections(id: number | string,
|
|
32
|
+
getUserConnections(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
32
33
|
checkUserConnections(id: number | string, config?: AxiosRequestConfig): Promise<SCUserConnectionStatusType>;
|
|
33
|
-
getUserConnectionRequests(
|
|
34
|
-
getUserRequestConnectionsSent(
|
|
34
|
+
getUserConnectionRequests(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
35
|
+
getUserRequestConnectionsSent(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
35
36
|
userAcceptRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
36
37
|
userRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
37
38
|
userRemoveConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
@@ -70,6 +71,12 @@ export declare class UserApiClient {
|
|
|
70
71
|
* @param config
|
|
71
72
|
*/
|
|
72
73
|
static getHiddenUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
74
|
+
/**
|
|
75
|
+
* This endpoint retrieves the list of all users hidden id by the authenticated user
|
|
76
|
+
* @param params
|
|
77
|
+
* @param config
|
|
78
|
+
*/
|
|
79
|
+
static getHiddenUsersId(params?: any, config?: AxiosRequestConfig): Promise<number[]>;
|
|
73
80
|
/**
|
|
74
81
|
* This endpoint retrieves the list of all users that meet the search criteria. The user object returned will contain only the following attributes: id, username, real_name, ext_id and avatar.
|
|
75
82
|
* This endpoint is recommended for implementing an autocomplete input field.
|
|
@@ -124,7 +131,7 @@ export declare class UserApiClient {
|
|
|
124
131
|
* @param confirm
|
|
125
132
|
* @param config
|
|
126
133
|
*/
|
|
127
|
-
static changeUserMail(id: number | string, new_email: string, confirm?: boolean, config?: AxiosRequestConfig): Promise<any | SCUserChangeEmailType>;
|
|
134
|
+
static changeUserMail(id: number | string, new_email: string, confirm?: boolean, send_email?: boolean, config?: AxiosRequestConfig): Promise<any | SCUserChangeEmailType>;
|
|
128
135
|
/**
|
|
129
136
|
* This endpoint confirms email change.
|
|
130
137
|
* @param id
|
|
@@ -226,7 +233,7 @@ export declare class UserApiClient {
|
|
|
226
233
|
* @param mutual
|
|
227
234
|
* @param config
|
|
228
235
|
*/
|
|
229
|
-
static getUserConnections(id: number | string,
|
|
236
|
+
static getUserConnections(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
230
237
|
/**
|
|
231
238
|
* This endpoint returns is_connection = true if the user (identified in path) is connected with me.
|
|
232
239
|
* @param id
|
|
@@ -238,13 +245,13 @@ export declare class UserApiClient {
|
|
|
238
245
|
* @param id
|
|
239
246
|
* @param config
|
|
240
247
|
*/
|
|
241
|
-
static getUserConnectionRequests(
|
|
248
|
+
static getUserConnectionRequests(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
242
249
|
/**
|
|
243
250
|
* This endpoint retrieves a specific user's list of connection requests sent by user.
|
|
244
251
|
* @param id
|
|
245
252
|
* @param config
|
|
246
253
|
*/
|
|
247
|
-
static getUserRequestConnectionsSent(
|
|
254
|
+
static getUserRequestConnectionsSent(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
248
255
|
/**
|
|
249
256
|
* This endpoint accepts a request connection of the user identified by {id}
|
|
250
257
|
* @param id
|
|
@@ -416,6 +423,7 @@ export declare class UserApiClient {
|
|
|
416
423
|
export default class UserService {
|
|
417
424
|
static getAllUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
418
425
|
static getHiddenUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
426
|
+
static getHiddenUsersId(params?: any, config?: AxiosRequestConfig): Promise<number[]>;
|
|
419
427
|
static userAutocomplete(params: UserAutocompleteParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;
|
|
420
428
|
static userSearch(params: UserSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
421
429
|
static getSpecificUser(id: number | string, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
@@ -423,7 +431,7 @@ export default class UserService {
|
|
|
423
431
|
static userUpdate(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
424
432
|
static userPatch(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
425
433
|
static userDelete(id: number | string, hard?: number, config?: AxiosRequestConfig): Promise<any>;
|
|
426
|
-
static changeUserMail(id: number | string, new_email: string, confirm?: boolean, config?: AxiosRequestConfig): Promise<any | SCUserChangeEmailType>;
|
|
434
|
+
static changeUserMail(id: number | string, new_email: string, confirm?: boolean, send_email?: boolean, config?: AxiosRequestConfig): Promise<any | SCUserChangeEmailType>;
|
|
427
435
|
static confirmChangeUserMail(id: number | string, new_email: string, validation_code?: string, config?: AxiosRequestConfig): Promise<any>;
|
|
428
436
|
static changeUserPassword(id: number | string, password: string, new_password: string, config?: AxiosRequestConfig): Promise<any>;
|
|
429
437
|
static userSettings(id: number | string, config?: AxiosRequestConfig): Promise<SCUserSettingsType>;
|
|
@@ -439,10 +447,10 @@ export default class UserService {
|
|
|
439
447
|
static followUser(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
440
448
|
static checkUserFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowedStatusType>;
|
|
441
449
|
static checkUserFollower(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowerStatusType>;
|
|
442
|
-
static getUserConnections(id: number | string,
|
|
450
|
+
static getUserConnections(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
443
451
|
static checkUserConnections(id: number | string, config?: AxiosRequestConfig): Promise<SCUserConnectionStatusType>;
|
|
444
|
-
static getUserConnectionRequests(
|
|
445
|
-
static getUserRequestConnectionsSent(
|
|
452
|
+
static getUserConnectionRequests(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
453
|
+
static getUserRequestConnectionsSent(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;
|
|
446
454
|
static userAcceptRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
447
455
|
static userRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
448
456
|
static userRemoveConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
@@ -465,4 +473,3 @@ export default class UserService {
|
|
|
465
473
|
static createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType>;
|
|
466
474
|
static deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;
|
|
467
475
|
}
|
|
468
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import { apiRequest } from '../../utils/apiRequest';
|
|
11
3
|
import Endpoints from '../../constants/Endpoints';
|
|
12
4
|
import { urlParams } from '../../utils/url';
|
|
@@ -32,6 +24,15 @@ export class UserApiClient {
|
|
|
32
24
|
const p = urlParams(params);
|
|
33
25
|
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.ListHiddenUsers.url({})}?${p.toString()}`, method: Endpoints.ListHiddenUsers.method }));
|
|
34
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* This endpoint retrieves the list of all users hidden id by the authenticated user
|
|
29
|
+
* @param params
|
|
30
|
+
* @param config
|
|
31
|
+
*/
|
|
32
|
+
static getHiddenUsersId(params, config) {
|
|
33
|
+
const p = urlParams(params);
|
|
34
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.ListHiddenUsersId.url({})}?${p.toString()}`, method: Endpoints.ListHiddenUsersId.method }));
|
|
35
|
+
}
|
|
35
36
|
/**
|
|
36
37
|
* This endpoint retrieves the list of all users that meet the search criteria. The user object returned will contain only the following attributes: id, username, real_name, ext_id and avatar.
|
|
37
38
|
* This endpoint is recommended for implementing an autocomplete input field.
|
|
@@ -103,11 +104,8 @@ export class UserApiClient {
|
|
|
103
104
|
* @param confirm
|
|
104
105
|
* @param config
|
|
105
106
|
*/
|
|
106
|
-
static changeUserMail(id, new_email, confirm, config) {
|
|
107
|
-
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.ChangeUserMail.url({ id }), method: Endpoints.ChangeUserMail.method, data: {
|
|
108
|
-
new_email: new_email,
|
|
109
|
-
confirm: confirm
|
|
110
|
-
} }));
|
|
107
|
+
static changeUserMail(id, new_email, confirm, send_email, config) {
|
|
108
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.ChangeUserMail.url({ id }), method: Endpoints.ChangeUserMail.method, data: Object.assign({ new_email: new_email, confirm: confirm }, (send_email ? { send_email } : {})) }));
|
|
111
109
|
}
|
|
112
110
|
/**
|
|
113
111
|
* This endpoint confirms email change.
|
|
@@ -248,9 +246,8 @@ export class UserApiClient {
|
|
|
248
246
|
* @param mutual
|
|
249
247
|
* @param config
|
|
250
248
|
*/
|
|
251
|
-
static getUserConnections(id,
|
|
252
|
-
|
|
253
|
-
return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.UserConnections.url({ id })}?${p.toString()}`, method: Endpoints.UserConnections.method }));
|
|
249
|
+
static getUserConnections(id, params, config) {
|
|
250
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserConnections.url({ id }), method: Endpoints.UserConnections.method, params }));
|
|
254
251
|
}
|
|
255
252
|
/**
|
|
256
253
|
* This endpoint returns is_connection = true if the user (identified in path) is connected with me.
|
|
@@ -265,16 +262,16 @@ export class UserApiClient {
|
|
|
265
262
|
* @param id
|
|
266
263
|
* @param config
|
|
267
264
|
*/
|
|
268
|
-
static getUserConnectionRequests(
|
|
269
|
-
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserConnectionRequests.url(
|
|
265
|
+
static getUserConnectionRequests(params, config) {
|
|
266
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserConnectionRequests.url(), method: Endpoints.UserConnectionRequests.method, params }));
|
|
270
267
|
}
|
|
271
268
|
/**
|
|
272
269
|
* This endpoint retrieves a specific user's list of connection requests sent by user.
|
|
273
270
|
* @param id
|
|
274
271
|
* @param config
|
|
275
272
|
*/
|
|
276
|
-
static getUserRequestConnectionsSent(
|
|
277
|
-
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserRequestConnectionsSent.url(
|
|
273
|
+
static getUserRequestConnectionsSent(params, config) {
|
|
274
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UserRequestConnectionsSent.url(), method: Endpoints.UserRequestConnectionsSent.method, params }));
|
|
278
275
|
}
|
|
279
276
|
/**
|
|
280
277
|
* This endpoint accepts a request connection of the user identified by {id}
|
|
@@ -498,6 +495,11 @@ export default class UserService {
|
|
|
498
495
|
return UserApiClient.getHiddenUsers(params, config);
|
|
499
496
|
});
|
|
500
497
|
}
|
|
498
|
+
static getHiddenUsersId(params, config) {
|
|
499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
+
return UserApiClient.getHiddenUsersId(params, config);
|
|
501
|
+
});
|
|
502
|
+
}
|
|
501
503
|
static userAutocomplete(params, config) {
|
|
502
504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
503
505
|
return UserApiClient.userAutocomplete(params, config);
|
|
@@ -533,9 +535,9 @@ export default class UserService {
|
|
|
533
535
|
return UserApiClient.userDelete(id, hard, config);
|
|
534
536
|
});
|
|
535
537
|
}
|
|
536
|
-
static changeUserMail(id, new_email, confirm, config) {
|
|
538
|
+
static changeUserMail(id, new_email, confirm, send_email, config) {
|
|
537
539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
-
return UserApiClient.changeUserMail(id, new_email, confirm, config);
|
|
540
|
+
return UserApiClient.changeUserMail(id, new_email, confirm, send_email, config);
|
|
539
541
|
});
|
|
540
542
|
}
|
|
541
543
|
static confirmChangeUserMail(id, new_email, validation_code, config) {
|
|
@@ -613,9 +615,9 @@ export default class UserService {
|
|
|
613
615
|
return UserApiClient.checkUserFollower(id, config);
|
|
614
616
|
});
|
|
615
617
|
}
|
|
616
|
-
static getUserConnections(id,
|
|
618
|
+
static getUserConnections(id, params, config) {
|
|
617
619
|
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
-
return UserApiClient.getUserConnections(id,
|
|
620
|
+
return UserApiClient.getUserConnections(id, params, config);
|
|
619
621
|
});
|
|
620
622
|
}
|
|
621
623
|
static checkUserConnections(id, config) {
|
|
@@ -623,14 +625,14 @@ export default class UserService {
|
|
|
623
625
|
return UserApiClient.checkUserConnections(id, config);
|
|
624
626
|
});
|
|
625
627
|
}
|
|
626
|
-
static getUserConnectionRequests(
|
|
628
|
+
static getUserConnectionRequests(params, config) {
|
|
627
629
|
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
-
return UserApiClient.getUserConnectionRequests(
|
|
630
|
+
return UserApiClient.getUserConnectionRequests(params, config);
|
|
629
631
|
});
|
|
630
632
|
}
|
|
631
|
-
static getUserRequestConnectionsSent(
|
|
633
|
+
static getUserRequestConnectionsSent(params, config) {
|
|
632
634
|
return __awaiter(this, void 0, void 0, function* () {
|
|
633
|
-
return UserApiClient.getUserRequestConnectionsSent(
|
|
635
|
+
return UserApiClient.getUserRequestConnectionsSent(params, config);
|
|
634
636
|
});
|
|
635
637
|
}
|
|
636
638
|
static userAcceptRequestConnection(id, config) {
|
|
@@ -739,4 +741,3 @@ export default class UserService {
|
|
|
739
741
|
});
|
|
740
742
|
}
|
|
741
743
|
}
|
|
742
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -144,4 +144,3 @@ export default class WebhookService {
|
|
|
144
144
|
static resendWebhookEndpointEvent(id: number | string, event: number, config?: AxiosRequestConfig): Promise<any>;
|
|
145
145
|
static resendMultipleWebhookEndpointEvent(id: number | string, event: number[], config?: AxiosRequestConfig): Promise<any>;
|
|
146
146
|
}
|
|
147
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
10
2
|
import Endpoints from '../../constants/Endpoints';
|
|
11
3
|
import { apiRequest } from '../../utils/apiRequest';
|
|
12
4
|
/**
|
|
@@ -209,4 +201,3 @@ export default class WebhookService {
|
|
|
209
201
|
});
|
|
210
202
|
}
|
|
211
203
|
}
|
|
212
|
-
//# sourceMappingURL=index.js.map
|
package/lib/esm/types/account.js
CHANGED
package/lib/esm/types/comment.js
CHANGED
package/lib/esm/types/embed.d.ts
CHANGED
package/lib/esm/types/embed.js
CHANGED