@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,20 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.UserApiClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const apiRequest_1 = require("../../utils/apiRequest");
|
|
17
|
-
const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
|
|
6
|
+
const Endpoints_1 = tslib_1.__importDefault(require("../../constants/Endpoints"));
|
|
18
7
|
const url_1 = require("../../utils/url");
|
|
19
8
|
/**
|
|
20
9
|
* Contains all the endpoints needed to manage users.
|
|
@@ -38,6 +27,15 @@ class UserApiClient {
|
|
|
38
27
|
const p = (0, url_1.urlParams)(params);
|
|
39
28
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.ListHiddenUsers.url({})}?${p.toString()}`, method: Endpoints_1.default.ListHiddenUsers.method }));
|
|
40
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint retrieves the list of all users hidden id by the authenticated user
|
|
32
|
+
* @param params
|
|
33
|
+
* @param config
|
|
34
|
+
*/
|
|
35
|
+
static getHiddenUsersId(params, config) {
|
|
36
|
+
const p = (0, url_1.urlParams)(params);
|
|
37
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.ListHiddenUsersId.url({})}?${p.toString()}`, method: Endpoints_1.default.ListHiddenUsersId.method }));
|
|
38
|
+
}
|
|
41
39
|
/**
|
|
42
40
|
* 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.
|
|
43
41
|
* This endpoint is recommended for implementing an autocomplete input field.
|
|
@@ -109,11 +107,8 @@ class UserApiClient {
|
|
|
109
107
|
* @param confirm
|
|
110
108
|
* @param config
|
|
111
109
|
*/
|
|
112
|
-
static changeUserMail(id, new_email, confirm, config) {
|
|
113
|
-
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.ChangeUserMail.url({ id }), method: Endpoints_1.default.ChangeUserMail.method, data: {
|
|
114
|
-
new_email: new_email,
|
|
115
|
-
confirm: confirm
|
|
116
|
-
} }));
|
|
110
|
+
static changeUserMail(id, new_email, confirm, send_email, config) {
|
|
111
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.ChangeUserMail.url({ id }), method: Endpoints_1.default.ChangeUserMail.method, data: Object.assign({ new_email: new_email, confirm: confirm }, (send_email ? { send_email } : {})) }));
|
|
117
112
|
}
|
|
118
113
|
/**
|
|
119
114
|
* This endpoint confirms email change.
|
|
@@ -254,9 +249,8 @@ class UserApiClient {
|
|
|
254
249
|
* @param mutual
|
|
255
250
|
* @param config
|
|
256
251
|
*/
|
|
257
|
-
static getUserConnections(id,
|
|
258
|
-
|
|
259
|
-
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.UserConnections.url({ id })}?${p.toString()}`, method: Endpoints_1.default.UserConnections.method }));
|
|
252
|
+
static getUserConnections(id, params, config) {
|
|
253
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserConnections.url({ id }), method: Endpoints_1.default.UserConnections.method, params }));
|
|
260
254
|
}
|
|
261
255
|
/**
|
|
262
256
|
* This endpoint returns is_connection = true if the user (identified in path) is connected with me.
|
|
@@ -271,16 +265,16 @@ class UserApiClient {
|
|
|
271
265
|
* @param id
|
|
272
266
|
* @param config
|
|
273
267
|
*/
|
|
274
|
-
static getUserConnectionRequests(
|
|
275
|
-
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserConnectionRequests.url(
|
|
268
|
+
static getUserConnectionRequests(params, config) {
|
|
269
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserConnectionRequests.url(), method: Endpoints_1.default.UserConnectionRequests.method, params }));
|
|
276
270
|
}
|
|
277
271
|
/**
|
|
278
272
|
* This endpoint retrieves a specific user's list of connection requests sent by user.
|
|
279
273
|
* @param id
|
|
280
274
|
* @param config
|
|
281
275
|
*/
|
|
282
|
-
static getUserRequestConnectionsSent(
|
|
283
|
-
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRequestConnectionsSent.url(
|
|
276
|
+
static getUserRequestConnectionsSent(params, config) {
|
|
277
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRequestConnectionsSent.url(), method: Endpoints_1.default.UserRequestConnectionsSent.method, params }));
|
|
284
278
|
}
|
|
285
279
|
/**
|
|
286
280
|
* This endpoint accepts a request connection of the user identified by {id}
|
|
@@ -496,255 +490,259 @@ exports.UserApiClient = UserApiClient;
|
|
|
496
490
|
*/
|
|
497
491
|
class UserService {
|
|
498
492
|
static getAllUsers(params, config) {
|
|
499
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
493
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
500
494
|
return UserApiClient.getAllUsers(params, config);
|
|
501
495
|
});
|
|
502
496
|
}
|
|
503
497
|
static getHiddenUsers(params, config) {
|
|
504
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
498
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
505
499
|
return UserApiClient.getHiddenUsers(params, config);
|
|
506
500
|
});
|
|
507
501
|
}
|
|
502
|
+
static getHiddenUsersId(params, config) {
|
|
503
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
504
|
+
return UserApiClient.getHiddenUsersId(params, config);
|
|
505
|
+
});
|
|
506
|
+
}
|
|
508
507
|
static userAutocomplete(params, config) {
|
|
509
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
510
509
|
return UserApiClient.userAutocomplete(params, config);
|
|
511
510
|
});
|
|
512
511
|
}
|
|
513
512
|
static userSearch(params, config) {
|
|
514
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
513
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
515
514
|
return UserApiClient.userSearch(params, config);
|
|
516
515
|
});
|
|
517
516
|
}
|
|
518
517
|
static getSpecificUser(id, config) {
|
|
519
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
518
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
520
519
|
return UserApiClient.getSpecificUser(id, config);
|
|
521
520
|
});
|
|
522
521
|
}
|
|
523
522
|
static getUserCounters(id, config) {
|
|
524
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
523
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
525
524
|
return UserApiClient.getUserCounters(id, config);
|
|
526
525
|
});
|
|
527
526
|
}
|
|
528
527
|
static userUpdate(id, data, config) {
|
|
529
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
530
529
|
return UserApiClient.userUpdate(id, data, config);
|
|
531
530
|
});
|
|
532
531
|
}
|
|
533
532
|
static userPatch(id, data, config) {
|
|
534
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
533
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
535
534
|
return UserApiClient.userPatch(id, data, config);
|
|
536
535
|
});
|
|
537
536
|
}
|
|
538
537
|
static userDelete(id, hard, config) {
|
|
539
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
540
539
|
return UserApiClient.userDelete(id, hard, config);
|
|
541
540
|
});
|
|
542
541
|
}
|
|
543
|
-
static changeUserMail(id, new_email, confirm, config) {
|
|
544
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
-
return UserApiClient.changeUserMail(id, new_email, confirm, config);
|
|
542
|
+
static changeUserMail(id, new_email, confirm, send_email, config) {
|
|
543
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
544
|
+
return UserApiClient.changeUserMail(id, new_email, confirm, send_email, config);
|
|
546
545
|
});
|
|
547
546
|
}
|
|
548
547
|
static confirmChangeUserMail(id, new_email, validation_code, config) {
|
|
549
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
548
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
550
549
|
return UserApiClient.confirmChangeUserMail(id, new_email, validation_code, config);
|
|
551
550
|
});
|
|
552
551
|
}
|
|
553
552
|
static changeUserPassword(id, password, new_password, config) {
|
|
554
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
555
554
|
return UserApiClient.changeUserPassword(id, password, new_password, config);
|
|
556
555
|
});
|
|
557
556
|
}
|
|
558
557
|
static userSettings(id, config) {
|
|
559
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
558
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
560
559
|
return UserApiClient.userSettings(id, config);
|
|
561
560
|
});
|
|
562
561
|
}
|
|
563
562
|
static userSettingsPatch(id, data, config) {
|
|
564
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
565
564
|
return UserApiClient.userSettingsPatch(id, data, config);
|
|
566
565
|
});
|
|
567
566
|
}
|
|
568
567
|
static getCurrentUser(config) {
|
|
569
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
568
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
570
569
|
return UserApiClient.getCurrentUser(config);
|
|
571
570
|
});
|
|
572
571
|
}
|
|
573
572
|
static getCurrentUserAvatar(config) {
|
|
574
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
573
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
575
574
|
return UserApiClient.getCurrentUserAvatar(config);
|
|
576
575
|
});
|
|
577
576
|
}
|
|
578
577
|
static getCurrentUserPermission(config) {
|
|
579
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
580
579
|
return UserApiClient.getCurrentUserPermission(config);
|
|
581
580
|
});
|
|
582
581
|
}
|
|
583
582
|
static getCurrentUserPlatform(next, config) {
|
|
584
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
583
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
585
584
|
return UserApiClient.getCurrentUserPlatform(next, config);
|
|
586
585
|
});
|
|
587
586
|
}
|
|
588
587
|
static getUserFollowedCategories(id, mutual, config) {
|
|
589
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
588
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
590
589
|
return UserApiClient.getUserFollowedCategories(id, mutual, config);
|
|
591
590
|
});
|
|
592
591
|
}
|
|
593
592
|
static getUserFeed(id, params, config) {
|
|
594
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
595
594
|
return UserApiClient.getUserFeed(id, params, config);
|
|
596
595
|
});
|
|
597
596
|
}
|
|
598
597
|
static getUserFollowers(id, params, config) {
|
|
599
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
598
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
600
599
|
return UserApiClient.getUserFollowers(id, params, config);
|
|
601
600
|
});
|
|
602
601
|
}
|
|
603
602
|
static getUserFollowings(id, params, config) {
|
|
604
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
603
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
605
604
|
return UserApiClient.getUserFollowings(id, params, config);
|
|
606
605
|
});
|
|
607
606
|
}
|
|
608
607
|
static followUser(id, config) {
|
|
609
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
610
609
|
return UserApiClient.followUser(id, config);
|
|
611
610
|
});
|
|
612
611
|
}
|
|
613
612
|
static checkUserFollowed(id, config) {
|
|
614
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
613
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
615
614
|
return UserApiClient.checkUserFollowed(id, config);
|
|
616
615
|
});
|
|
617
616
|
}
|
|
618
617
|
static checkUserFollower(id, config) {
|
|
619
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
620
619
|
return UserApiClient.checkUserFollower(id, config);
|
|
621
620
|
});
|
|
622
621
|
}
|
|
623
|
-
static getUserConnections(id,
|
|
624
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
625
|
-
return UserApiClient.getUserConnections(id,
|
|
622
|
+
static getUserConnections(id, params, config) {
|
|
623
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
624
|
+
return UserApiClient.getUserConnections(id, params, config);
|
|
626
625
|
});
|
|
627
626
|
}
|
|
628
627
|
static checkUserConnections(id, config) {
|
|
629
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
630
629
|
return UserApiClient.checkUserConnections(id, config);
|
|
631
630
|
});
|
|
632
631
|
}
|
|
633
|
-
static getUserConnectionRequests(
|
|
634
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
635
|
-
return UserApiClient.getUserConnectionRequests(
|
|
632
|
+
static getUserConnectionRequests(params, config) {
|
|
633
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
634
|
+
return UserApiClient.getUserConnectionRequests(params, config);
|
|
636
635
|
});
|
|
637
636
|
}
|
|
638
|
-
static getUserRequestConnectionsSent(
|
|
639
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
640
|
-
return UserApiClient.getUserRequestConnectionsSent(
|
|
637
|
+
static getUserRequestConnectionsSent(params, config) {
|
|
638
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
639
|
+
return UserApiClient.getUserRequestConnectionsSent(params, config);
|
|
641
640
|
});
|
|
642
641
|
}
|
|
643
642
|
static userAcceptRequestConnection(id, config) {
|
|
644
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
643
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
645
644
|
return UserApiClient.userAcceptRequestConnection(id, config);
|
|
646
645
|
});
|
|
647
646
|
}
|
|
648
647
|
static userRequestConnection(id, config) {
|
|
649
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
650
649
|
return UserApiClient.userRequestConnection(id, config);
|
|
651
650
|
});
|
|
652
651
|
}
|
|
653
652
|
static userRemoveConnection(id, config) {
|
|
654
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
653
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
655
654
|
return UserApiClient.userRemoveConnection(id, config);
|
|
656
655
|
});
|
|
657
656
|
}
|
|
658
657
|
static userCancelRejectConnectionRequest(id, config) {
|
|
659
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
658
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
660
659
|
return UserApiClient.userCancelRejectConnectionRequest(id, config);
|
|
661
660
|
});
|
|
662
661
|
}
|
|
663
662
|
static userCancelRequestConnection(id, config) {
|
|
664
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
663
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
665
664
|
return UserApiClient.userCancelRequestConnection(id, config);
|
|
666
665
|
});
|
|
667
666
|
}
|
|
668
667
|
static userRejectConnectionRequest(id, config) {
|
|
669
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
668
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
670
669
|
return UserApiClient.userRejectConnectionRequest(id, config);
|
|
671
670
|
});
|
|
672
671
|
}
|
|
673
672
|
static userMarkSeenConnectionRequest(id, config) {
|
|
674
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
675
674
|
return UserApiClient.userMarkSeenConnectionRequest(id, config);
|
|
676
675
|
});
|
|
677
676
|
}
|
|
678
677
|
static showHideUser(id, config) {
|
|
679
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
678
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
680
679
|
return UserApiClient.showHideUser(id, config);
|
|
681
680
|
});
|
|
682
681
|
}
|
|
683
682
|
static checkUserHidden(id, config) {
|
|
684
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
683
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
685
684
|
return UserApiClient.checkUserHidden(id, config);
|
|
686
685
|
});
|
|
687
686
|
}
|
|
688
687
|
static checkUserHiddenBy(id, config) {
|
|
689
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
690
689
|
return UserApiClient.checkUserHiddenBy(id, config);
|
|
691
690
|
});
|
|
692
691
|
}
|
|
693
692
|
static getUserLoyaltyPoints(id, config) {
|
|
694
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
693
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
695
694
|
return UserApiClient.getUserLoyaltyPoints(id, config);
|
|
696
695
|
});
|
|
697
696
|
}
|
|
698
697
|
static getUserConnectionStatuses(users, config) {
|
|
699
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
700
699
|
return UserApiClient.getUserConnectionStatuses(users, config);
|
|
701
700
|
});
|
|
702
701
|
}
|
|
703
702
|
static userTagToAddressContribution(config) {
|
|
704
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
703
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
705
704
|
return UserApiClient.userTagToAddressContribution(config);
|
|
706
705
|
});
|
|
707
706
|
}
|
|
708
707
|
static checkUserEmailToken(id, email_token, config) {
|
|
709
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
708
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
710
709
|
return UserApiClient.checkUserEmailToken(id, email_token, config);
|
|
711
710
|
});
|
|
712
711
|
}
|
|
713
712
|
static addUserAvatar(data, config) {
|
|
714
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
713
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
715
714
|
return UserApiClient.addUserAvatar(data, config);
|
|
716
715
|
});
|
|
717
716
|
}
|
|
718
717
|
static getUserAvatars(config) {
|
|
719
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
718
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
720
719
|
return UserApiClient.getUserAvatars(config);
|
|
721
720
|
});
|
|
722
721
|
}
|
|
723
722
|
static removeUserAvatar(avatar_id, config) {
|
|
724
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
723
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
725
724
|
return UserApiClient.removeUserAvatar(avatar_id, config);
|
|
726
725
|
});
|
|
727
726
|
}
|
|
728
727
|
static setUserPrimaryAvatar(avatar_id, config) {
|
|
729
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
728
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
730
729
|
return UserApiClient.setUserPrimaryAvatar(avatar_id, config);
|
|
731
730
|
});
|
|
732
731
|
}
|
|
733
732
|
static getProviderAssociations(userId, config) {
|
|
734
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
733
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
735
734
|
return UserApiClient.getProviderAssociations(userId, config);
|
|
736
735
|
});
|
|
737
736
|
}
|
|
738
737
|
static createProviderAssociation(data, config) {
|
|
739
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
738
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
740
739
|
return UserApiClient.createProviderAssociation(data, config);
|
|
741
740
|
});
|
|
742
741
|
}
|
|
743
742
|
static deleteProviderAssociation(data, config) {
|
|
744
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
743
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
745
744
|
return UserApiClient.deleteProviderAssociation(data, config);
|
|
746
745
|
});
|
|
747
746
|
}
|
|
748
747
|
}
|
|
749
748
|
exports.default = UserService;
|
|
750
|
-
//# 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,19 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.WebhookApiClient = void 0;
|
|
16
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Endpoints_1 = tslib_1.__importDefault(require("../../constants/Endpoints"));
|
|
17
6
|
const apiRequest_1 = require("../../utils/apiRequest");
|
|
18
7
|
/**
|
|
19
8
|
* Contains all the endpoints needed to manage webhooks.
|
|
@@ -156,65 +145,64 @@ exports.WebhookApiClient = WebhookApiClient;
|
|
|
156
145
|
*/
|
|
157
146
|
class WebhookService {
|
|
158
147
|
static getAllWebhookEndpoints(config) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
160
149
|
return WebhookApiClient.getAllWebhookEndpoints(config);
|
|
161
150
|
});
|
|
162
151
|
}
|
|
163
152
|
static getAllWebhookEvents(config) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
165
154
|
return WebhookApiClient.getAllWebhookEvents(config);
|
|
166
155
|
});
|
|
167
156
|
}
|
|
168
157
|
static createWebhookEndpoint(params, config) {
|
|
169
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
170
159
|
return WebhookApiClient.createWebhookEndpoint(params, config);
|
|
171
160
|
});
|
|
172
161
|
}
|
|
173
162
|
static getASpecificWebhookEndpoint(id, config) {
|
|
174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
175
164
|
return WebhookApiClient.getASpecificWebhookEndpoint(id, config);
|
|
176
165
|
});
|
|
177
166
|
}
|
|
178
167
|
static updateASpecificWebhookEndpoint(id, params, config) {
|
|
179
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
180
169
|
return WebhookApiClient.updateASpecificWebhookEndpoint(id, params, config);
|
|
181
170
|
});
|
|
182
171
|
}
|
|
183
172
|
static updateASingleWebhookEndpointField(id, params, config) {
|
|
184
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
185
174
|
return WebhookApiClient.updateASingleWebhookEndpointField(id, params, config);
|
|
186
175
|
});
|
|
187
176
|
}
|
|
188
177
|
static deleteWebhookEndpoint(id, config) {
|
|
189
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
190
179
|
return WebhookApiClient.deleteWebhookEndpoint(id, config);
|
|
191
180
|
});
|
|
192
181
|
}
|
|
193
182
|
static getAllWebhookEndpointAttempts(id, config) {
|
|
194
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
195
184
|
return WebhookApiClient.getAllWebhookEndpointAttempts(id, config);
|
|
196
185
|
});
|
|
197
186
|
}
|
|
198
187
|
static expireWebhookSigningSecret(id, config) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
200
189
|
return WebhookApiClient.expireWebhookSigningSecret(id, config);
|
|
201
190
|
});
|
|
202
191
|
}
|
|
203
192
|
static revealWebhookSigningSecret(id, config) {
|
|
204
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
205
194
|
return WebhookApiClient.revealWebhookSigningSecret(id, config);
|
|
206
195
|
});
|
|
207
196
|
}
|
|
208
197
|
static resendWebhookEndpointEvent(id, event, config) {
|
|
209
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
210
199
|
return WebhookApiClient.resendWebhookEndpointEvent(id, event, config);
|
|
211
200
|
});
|
|
212
201
|
}
|
|
213
202
|
static resendMultipleWebhookEndpointEvent(id, event, config) {
|
|
214
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
215
204
|
return WebhookApiClient.resendMultipleWebhookEndpointEvent(id, event, config);
|
|
216
205
|
});
|
|
217
206
|
}
|
|
218
207
|
}
|
|
219
208
|
exports.default = WebhookService;
|
|
220
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/types/account.js
CHANGED
package/lib/cjs/types/comment.js
CHANGED
package/lib/cjs/types/embed.d.ts
CHANGED
package/lib/cjs/types/embed.js
CHANGED
package/lib/cjs/types/feature.js
CHANGED
package/lib/cjs/types/feed.d.ts
CHANGED
package/lib/cjs/types/feed.js
CHANGED