@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,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance,
|
|
1
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
2
|
/**
|
|
3
3
|
* List of all Http methods
|
|
4
4
|
*/
|
|
@@ -12,14 +12,7 @@ export declare type AxiosResponseHeaders = Record<string, string> & {
|
|
|
12
12
|
/**
|
|
13
13
|
* General HttpResponse
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
16
|
-
data: T;
|
|
17
|
-
status: number;
|
|
18
|
-
statusText: string;
|
|
19
|
-
headers: AxiosResponseHeaders;
|
|
20
|
-
config: AxiosRequestConfig<D>;
|
|
21
|
-
request?: any;
|
|
22
|
-
}
|
|
15
|
+
export declare type HttpResponse<T = unknown, D = any> = AxiosResponse<T, D>;
|
|
23
16
|
/**
|
|
24
17
|
* Interface for the ApiClient
|
|
25
18
|
*/
|
|
@@ -122,4 +115,3 @@ export declare class ApiClient implements ApiClientInterface {
|
|
|
122
115
|
}
|
|
123
116
|
declare const client: ApiClient;
|
|
124
117
|
export default client;
|
|
125
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/cjs/client/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ApiClient = void 0;
|
|
7
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
8
6
|
/**
|
|
9
7
|
* Create an abstraction wrapping of axios
|
|
10
8
|
* Create a sort of interface between axios and the rest of application
|
|
@@ -51,7 +49,7 @@ class ApiClient {
|
|
|
51
49
|
}
|
|
52
50
|
};
|
|
53
51
|
this.client = this.createClient(config);
|
|
54
|
-
this.setDefaultHeader({ name: 'Content-Type', value: 'application/
|
|
52
|
+
this.setDefaultHeader({ name: 'Content-Type', value: 'application/json', methods: ['post'] });
|
|
55
53
|
}
|
|
56
54
|
createClient(config) {
|
|
57
55
|
return axios_1.default.create(Object.assign(Object.assign({}, (config && config.baseURL && { baseURL: config.baseURL })), { responseType: 'json', headers: Object.assign({}, (config && config.accessToken && { Authorization: `Token ${config.accessToken}` })), timeout: ApiClient.DEFAULT_TIMEOUT }));
|
|
@@ -144,4 +142,3 @@ exports.ApiClient = ApiClient;
|
|
|
144
142
|
ApiClient.DEFAULT_TIMEOUT = 10 * 1000;
|
|
145
143
|
const client = new ApiClient();
|
|
146
144
|
exports.default = client;
|
|
147
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { HttpMethod } from '../client';
|
|
2
2
|
export interface EndpointType {
|
|
3
|
-
url: (params?:
|
|
3
|
+
url: (params?: any) => string;
|
|
4
4
|
method: HttpMethod;
|
|
5
5
|
}
|
|
6
6
|
declare const Endpoints: {
|
|
7
7
|
[key: string]: EndpointType;
|
|
8
8
|
};
|
|
9
9
|
export default Endpoints;
|
|
10
|
-
//# sourceMappingURL=Endpoints.d.ts.map
|
|
@@ -13,6 +13,10 @@ const Endpoints = {
|
|
|
13
13
|
url: (0, utils_1.urlReplacer)('/api/v2/account/verify/'),
|
|
14
14
|
method: 'POST'
|
|
15
15
|
},
|
|
16
|
+
AccountVerifyValidationCode: {
|
|
17
|
+
url: (0, utils_1.urlReplacer)('/api/v2/account/verify/validation_code/'),
|
|
18
|
+
method: 'POST'
|
|
19
|
+
},
|
|
16
20
|
AccountRecover: {
|
|
17
21
|
url: (0, utils_1.urlReplacer)('/api/v2/account/recover/'),
|
|
18
22
|
method: 'POST'
|
|
@@ -313,6 +317,10 @@ const Endpoints = {
|
|
|
313
317
|
url: (0, utils_1.urlReplacer)('/api/v2/user/hidden_users/'),
|
|
314
318
|
method: 'GET'
|
|
315
319
|
},
|
|
320
|
+
ListHiddenUsersId: {
|
|
321
|
+
url: (0, utils_1.urlReplacer)('/api/v2/user/hidden_users_id/'),
|
|
322
|
+
method: 'GET'
|
|
323
|
+
},
|
|
316
324
|
UserAutocomplete: {
|
|
317
325
|
url: (0, utils_1.urlReplacer)('/api/v2/user/autocomplete/'),
|
|
318
326
|
method: 'GET'
|
|
@@ -409,12 +417,16 @@ const Endpoints = {
|
|
|
409
417
|
url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/is_connection/'),
|
|
410
418
|
method: 'GET'
|
|
411
419
|
},
|
|
420
|
+
UserCheckConnectionStatus: {
|
|
421
|
+
url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/connection_status/'),
|
|
422
|
+
method: 'GET'
|
|
423
|
+
},
|
|
412
424
|
UserConnectionRequests: {
|
|
413
|
-
url: (0, utils_1.urlReplacer)('/api/v2/user
|
|
425
|
+
url: (0, utils_1.urlReplacer)('/api/v2/user/connection/requests/'),
|
|
414
426
|
method: 'GET'
|
|
415
427
|
},
|
|
416
428
|
UserRequestConnectionsSent: {
|
|
417
|
-
url: (0, utils_1.urlReplacer)('/api/v2/user
|
|
429
|
+
url: (0, utils_1.urlReplacer)('/api/v2/user/connection/requests_sent/'),
|
|
418
430
|
method: 'GET'
|
|
419
431
|
},
|
|
420
432
|
UserAcceptRequestConnection: {
|
|
@@ -1081,7 +1093,7 @@ const Endpoints = {
|
|
|
1081
1093
|
method: 'GET'
|
|
1082
1094
|
},
|
|
1083
1095
|
DataPortabilityDownload: {
|
|
1084
|
-
url: (0, utils_1.urlReplacer)('/api/v2/udp/download'),
|
|
1096
|
+
url: (0, utils_1.urlReplacer)('/api/v2/udp/download/'),
|
|
1085
1097
|
method: 'GET'
|
|
1086
1098
|
},
|
|
1087
1099
|
/**
|
|
@@ -1112,4 +1124,3 @@ const Endpoints = {
|
|
|
1112
1124
|
}
|
|
1113
1125
|
};
|
|
1114
1126
|
exports.default = Endpoints;
|
|
1115
|
-
//# sourceMappingURL=Endpoints.js.map
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import Endpoints, { EndpointType } from './constants/Endpoints';
|
|
|
9
9
|
/**
|
|
10
10
|
* Utils
|
|
11
11
|
*/
|
|
12
|
-
import { formatHttpError, getCancelTokenSourceRequest } from './utils/http';
|
|
12
|
+
import { formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest } from './utils/http';
|
|
13
13
|
import { generateJWTToken, parseJwt } from './utils/token';
|
|
14
14
|
import { apiRequest } from './utils/apiRequest';
|
|
15
15
|
import { urlParams } from './utils/url';
|
|
@@ -49,9 +49,8 @@ import ReactionService, { ReactionApiClient, ReactionApiClientInterface } from '
|
|
|
49
49
|
/**
|
|
50
50
|
* Types
|
|
51
51
|
*/
|
|
52
|
-
import { AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams } from './types';
|
|
52
|
+
import { AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams } from './types';
|
|
53
53
|
/**
|
|
54
54
|
* Export all
|
|
55
55
|
*/
|
|
56
|
-
export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, EndpointType, AccountService, AccountApiClient, AccountApiClientInterface, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomMenuService, CustomMenuApiClient, CustomMenuApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, InviteService, InviteApiClient, InviteApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, PromoService, PromoApiClient, PromoApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType, AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, SSOSignUpParams, CommentListParams, LoyaltyPrizeParams, ModerationParams, FlaggedContributionParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, ReactionService, ReactionApiClient, ReactionApiClientInterface };
|
|
57
|
-
//# sourceMappingURL=index.d.ts.map
|
|
56
|
+
export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, EndpointType, AccountService, AccountApiClient, AccountApiClientInterface, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomMenuService, CustomMenuApiClient, CustomMenuApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, InviteService, InviteApiClient, InviteApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, PromoService, PromoApiClient, PromoApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType, AccountSearchParams, AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, SSOSignUpParams, CommentListParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, FlaggedContributionParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, ReactionService, ReactionApiClient, ReactionApiClientInterface };
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,48 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.ReactionApiClient = exports.ReactionService = exports.MediaTypes = exports.WebhookApiClient = exports.WebhookService = exports.TagApiClient = exports.TagService = exports.SuggestionApiClient = exports.SuggestionService = exports.SSOApiClient = exports.SSOService = exports.ScoreApiClient = exports.ScoreService = exports.PromoApiClient = exports.PromoService = exports.PrivateMessageApiClient = exports.PrivateMessageService = exports.NotificationApiClient = exports.NotificationService = void 0;
|
|
3
|
+
exports.ModerationService = exports.MediaApiClient = exports.MediaService = exports.LoyaltyApiClient = exports.LoyaltyService = exports.LocalityApiClient = exports.LocalityService = exports.LegalPageApiClient = exports.LegalPageService = exports.InviteApiClient = exports.InviteService = exports.InsightApiClient = exports.InsightService = exports.IncubatorApiClient = exports.IncubatorService = exports.FeedObjectApiClient = exports.FeedObjectService = exports.FeedApiClient = exports.FeedService = exports.EmbedApiClient = exports.EmbedService = exports.DataPortabilityApiClient = exports.DataPortabilityService = exports.CustomPageApiClient = exports.CustomPageService = exports.CustomMenuApiClient = exports.CustomMenuService = exports.CustomAdvApiClient = exports.CustomAdvService = exports.CommentApiClient = exports.CommentService = exports.CategoryApiClient = exports.CategoryService = exports.FeatureApiClient = exports.FeatureService = exports.UserApiClient = exports.UserService = exports.PreferenceApiClient = exports.PreferenceService = exports.AccountApiClient = exports.AccountService = exports.Endpoints = exports.urlParams = exports.parseJwt = exports.generateJWTToken = exports.getCancelTokenSourceRequest = exports.formatHttpErrorCode = exports.formatHttpError = exports.apiRequest = exports.http = void 0;
|
|
4
|
+
exports.ReactionApiClient = exports.ReactionService = exports.MediaTypes = exports.WebhookApiClient = exports.WebhookService = exports.TagApiClient = exports.TagService = exports.SuggestionApiClient = exports.SuggestionService = exports.SSOApiClient = exports.SSOService = exports.ScoreApiClient = exports.ScoreService = exports.PromoApiClient = exports.PromoService = exports.PrivateMessageApiClient = exports.PrivateMessageService = exports.NotificationApiClient = exports.NotificationService = exports.ModerationApiClient = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
31
6
|
/**
|
|
32
7
|
* Axios client wrapper
|
|
33
8
|
*/
|
|
34
|
-
const client_1 = __importDefault(require("./client"));
|
|
9
|
+
const client_1 = tslib_1.__importDefault(require("./client"));
|
|
35
10
|
exports.http = client_1.default;
|
|
36
11
|
/**
|
|
37
12
|
* Endpoint component
|
|
38
13
|
*/
|
|
39
|
-
const Endpoints_1 = __importDefault(require("./constants/Endpoints"));
|
|
14
|
+
const Endpoints_1 = tslib_1.__importDefault(require("./constants/Endpoints"));
|
|
40
15
|
exports.Endpoints = Endpoints_1.default;
|
|
41
16
|
/**
|
|
42
17
|
* Utils
|
|
43
18
|
*/
|
|
44
19
|
const http_1 = require("./utils/http");
|
|
45
20
|
Object.defineProperty(exports, "formatHttpError", { enumerable: true, get: function () { return http_1.formatHttpError; } });
|
|
21
|
+
Object.defineProperty(exports, "formatHttpErrorCode", { enumerable: true, get: function () { return http_1.formatHttpErrorCode; } });
|
|
46
22
|
Object.defineProperty(exports, "getCancelTokenSourceRequest", { enumerable: true, get: function () { return http_1.getCancelTokenSourceRequest; } });
|
|
47
23
|
const token_1 = require("./utils/token");
|
|
48
24
|
Object.defineProperty(exports, "generateJWTToken", { enumerable: true, get: function () { return token_1.generateJWTToken; } });
|
|
@@ -54,94 +30,94 @@ Object.defineProperty(exports, "urlParams", { enumerable: true, get: function ()
|
|
|
54
30
|
/**
|
|
55
31
|
* Services
|
|
56
32
|
*/
|
|
57
|
-
const account_1 = __importStar(require("./services/account"));
|
|
33
|
+
const account_1 = tslib_1.__importStar(require("./services/account"));
|
|
58
34
|
exports.AccountService = account_1.default;
|
|
59
35
|
Object.defineProperty(exports, "AccountApiClient", { enumerable: true, get: function () { return account_1.AccountApiClient; } });
|
|
60
|
-
const category_1 = __importStar(require("./services/category"));
|
|
36
|
+
const category_1 = tslib_1.__importStar(require("./services/category"));
|
|
61
37
|
exports.CategoryService = category_1.default;
|
|
62
38
|
Object.defineProperty(exports, "CategoryApiClient", { enumerable: true, get: function () { return category_1.CategoryApiClient; } });
|
|
63
|
-
const comment_1 = __importStar(require("./services/comment"));
|
|
39
|
+
const comment_1 = tslib_1.__importStar(require("./services/comment"));
|
|
64
40
|
exports.CommentService = comment_1.default;
|
|
65
41
|
Object.defineProperty(exports, "CommentApiClient", { enumerable: true, get: function () { return comment_1.CommentApiClient; } });
|
|
66
|
-
const custom_adv_1 = __importStar(require("./services/custom_adv"));
|
|
42
|
+
const custom_adv_1 = tslib_1.__importStar(require("./services/custom_adv"));
|
|
67
43
|
exports.CustomAdvService = custom_adv_1.default;
|
|
68
44
|
Object.defineProperty(exports, "CustomAdvApiClient", { enumerable: true, get: function () { return custom_adv_1.CustomAdvApiClient; } });
|
|
69
|
-
const custom_menu_1 = __importStar(require("./services/custom_menu"));
|
|
45
|
+
const custom_menu_1 = tslib_1.__importStar(require("./services/custom_menu"));
|
|
70
46
|
exports.CustomMenuService = custom_menu_1.default;
|
|
71
47
|
Object.defineProperty(exports, "CustomMenuApiClient", { enumerable: true, get: function () { return custom_menu_1.CustomMenuApiClient; } });
|
|
72
|
-
const custom_page_1 = __importStar(require("./services/custom_page"));
|
|
48
|
+
const custom_page_1 = tslib_1.__importStar(require("./services/custom_page"));
|
|
73
49
|
exports.CustomPageService = custom_page_1.default;
|
|
74
50
|
Object.defineProperty(exports, "CustomPageApiClient", { enumerable: true, get: function () { return custom_page_1.CustomPageApiClient; } });
|
|
75
|
-
const data_portability_1 = __importStar(require("./services/data_portability"));
|
|
51
|
+
const data_portability_1 = tslib_1.__importStar(require("./services/data_portability"));
|
|
76
52
|
exports.DataPortabilityService = data_portability_1.default;
|
|
77
53
|
Object.defineProperty(exports, "DataPortabilityApiClient", { enumerable: true, get: function () { return data_portability_1.DataPortabilityApiClient; } });
|
|
78
|
-
const embed_1 = __importStar(require("./services/embed"));
|
|
54
|
+
const embed_1 = tslib_1.__importStar(require("./services/embed"));
|
|
79
55
|
exports.EmbedService = embed_1.default;
|
|
80
56
|
Object.defineProperty(exports, "EmbedApiClient", { enumerable: true, get: function () { return embed_1.EmbedApiClient; } });
|
|
81
|
-
const feature_1 = __importStar(require("./services/feature"));
|
|
57
|
+
const feature_1 = tslib_1.__importStar(require("./services/feature"));
|
|
82
58
|
exports.FeatureService = feature_1.default;
|
|
83
59
|
Object.defineProperty(exports, "FeatureApiClient", { enumerable: true, get: function () { return feature_1.FeatureApiClient; } });
|
|
84
|
-
const feed_1 = __importStar(require("./services/feed"));
|
|
60
|
+
const feed_1 = tslib_1.__importStar(require("./services/feed"));
|
|
85
61
|
exports.FeedService = feed_1.default;
|
|
86
62
|
Object.defineProperty(exports, "FeedApiClient", { enumerable: true, get: function () { return feed_1.FeedApiClient; } });
|
|
87
|
-
const feed_object_1 = __importStar(require("./services/feed_object"));
|
|
63
|
+
const feed_object_1 = tslib_1.__importStar(require("./services/feed_object"));
|
|
88
64
|
exports.FeedObjectService = feed_object_1.default;
|
|
89
65
|
Object.defineProperty(exports, "FeedObjectApiClient", { enumerable: true, get: function () { return feed_object_1.FeedObjectApiClient; } });
|
|
90
|
-
const incubator_1 = __importStar(require("./services/incubator"));
|
|
66
|
+
const incubator_1 = tslib_1.__importStar(require("./services/incubator"));
|
|
91
67
|
exports.IncubatorService = incubator_1.default;
|
|
92
68
|
Object.defineProperty(exports, "IncubatorApiClient", { enumerable: true, get: function () { return incubator_1.IncubatorApiClient; } });
|
|
93
|
-
const insight_1 = __importStar(require("./services/insight"));
|
|
69
|
+
const insight_1 = tslib_1.__importStar(require("./services/insight"));
|
|
94
70
|
exports.InsightService = insight_1.default;
|
|
95
71
|
Object.defineProperty(exports, "InsightApiClient", { enumerable: true, get: function () { return insight_1.InsightApiClient; } });
|
|
96
|
-
const invite_1 = __importStar(require("./services/invite"));
|
|
72
|
+
const invite_1 = tslib_1.__importStar(require("./services/invite"));
|
|
97
73
|
exports.InviteService = invite_1.default;
|
|
98
74
|
Object.defineProperty(exports, "InviteApiClient", { enumerable: true, get: function () { return invite_1.InviteApiClient; } });
|
|
99
|
-
const legal_page_1 = __importStar(require("./services/legal_page"));
|
|
75
|
+
const legal_page_1 = tslib_1.__importStar(require("./services/legal_page"));
|
|
100
76
|
exports.LegalPageService = legal_page_1.default;
|
|
101
77
|
Object.defineProperty(exports, "LegalPageApiClient", { enumerable: true, get: function () { return legal_page_1.LegalPageApiClient; } });
|
|
102
|
-
const locality_1 = __importStar(require("./services/locality"));
|
|
78
|
+
const locality_1 = tslib_1.__importStar(require("./services/locality"));
|
|
103
79
|
exports.LocalityService = locality_1.default;
|
|
104
80
|
Object.defineProperty(exports, "LocalityApiClient", { enumerable: true, get: function () { return locality_1.LocalityApiClient; } });
|
|
105
|
-
const loyalty_1 = __importStar(require("./services/loyalty"));
|
|
81
|
+
const loyalty_1 = tslib_1.__importStar(require("./services/loyalty"));
|
|
106
82
|
exports.LoyaltyService = loyalty_1.default;
|
|
107
83
|
Object.defineProperty(exports, "LoyaltyApiClient", { enumerable: true, get: function () { return loyalty_1.LoyaltyApiClient; } });
|
|
108
|
-
const media_1 = __importStar(require("./services/media"));
|
|
84
|
+
const media_1 = tslib_1.__importStar(require("./services/media"));
|
|
109
85
|
exports.MediaService = media_1.default;
|
|
110
86
|
Object.defineProperty(exports, "MediaApiClient", { enumerable: true, get: function () { return media_1.MediaApiClient; } });
|
|
111
|
-
const moderation_1 = __importStar(require("./services/moderation"));
|
|
87
|
+
const moderation_1 = tslib_1.__importStar(require("./services/moderation"));
|
|
112
88
|
exports.ModerationService = moderation_1.default;
|
|
113
89
|
Object.defineProperty(exports, "ModerationApiClient", { enumerable: true, get: function () { return moderation_1.ModerationApiClient; } });
|
|
114
|
-
const notification_1 = __importStar(require("./services/notification"));
|
|
90
|
+
const notification_1 = tslib_1.__importStar(require("./services/notification"));
|
|
115
91
|
exports.NotificationService = notification_1.default;
|
|
116
92
|
Object.defineProperty(exports, "NotificationApiClient", { enumerable: true, get: function () { return notification_1.NotificationApiClient; } });
|
|
117
|
-
const preference_1 = __importStar(require("./services/preference"));
|
|
93
|
+
const preference_1 = tslib_1.__importStar(require("./services/preference"));
|
|
118
94
|
exports.PreferenceService = preference_1.default;
|
|
119
95
|
Object.defineProperty(exports, "PreferenceApiClient", { enumerable: true, get: function () { return preference_1.PreferenceApiClient; } });
|
|
120
|
-
const private_message_1 = __importStar(require("./services/private_message"));
|
|
96
|
+
const private_message_1 = tslib_1.__importStar(require("./services/private_message"));
|
|
121
97
|
exports.PrivateMessageService = private_message_1.default;
|
|
122
98
|
Object.defineProperty(exports, "PrivateMessageApiClient", { enumerable: true, get: function () { return private_message_1.PrivateMessageApiClient; } });
|
|
123
|
-
const promo_1 = __importStar(require("./services/promo"));
|
|
99
|
+
const promo_1 = tslib_1.__importStar(require("./services/promo"));
|
|
124
100
|
exports.PromoService = promo_1.default;
|
|
125
101
|
Object.defineProperty(exports, "PromoApiClient", { enumerable: true, get: function () { return promo_1.PromoApiClient; } });
|
|
126
|
-
const score_1 = __importStar(require("./services/score"));
|
|
102
|
+
const score_1 = tslib_1.__importStar(require("./services/score"));
|
|
127
103
|
exports.ScoreService = score_1.default;
|
|
128
104
|
Object.defineProperty(exports, "ScoreApiClient", { enumerable: true, get: function () { return score_1.ScoreApiClient; } });
|
|
129
|
-
const sso_1 = __importStar(require("./services/sso"));
|
|
105
|
+
const sso_1 = tslib_1.__importStar(require("./services/sso"));
|
|
130
106
|
exports.SSOService = sso_1.default;
|
|
131
107
|
Object.defineProperty(exports, "SSOApiClient", { enumerable: true, get: function () { return sso_1.SSOApiClient; } });
|
|
132
|
-
const suggestion_1 = __importStar(require("./services/suggestion"));
|
|
108
|
+
const suggestion_1 = tslib_1.__importStar(require("./services/suggestion"));
|
|
133
109
|
exports.SuggestionService = suggestion_1.default;
|
|
134
110
|
Object.defineProperty(exports, "SuggestionApiClient", { enumerable: true, get: function () { return suggestion_1.SuggestionApiClient; } });
|
|
135
|
-
const tag_1 = __importStar(require("./services/tag"));
|
|
111
|
+
const tag_1 = tslib_1.__importStar(require("./services/tag"));
|
|
136
112
|
exports.TagService = tag_1.default;
|
|
137
113
|
Object.defineProperty(exports, "TagApiClient", { enumerable: true, get: function () { return tag_1.TagApiClient; } });
|
|
138
|
-
const user_1 = __importStar(require("./services/user"));
|
|
114
|
+
const user_1 = tslib_1.__importStar(require("./services/user"));
|
|
139
115
|
exports.UserService = user_1.default;
|
|
140
116
|
Object.defineProperty(exports, "UserApiClient", { enumerable: true, get: function () { return user_1.UserApiClient; } });
|
|
141
|
-
const webhook_1 = __importStar(require("./services/webhook"));
|
|
117
|
+
const webhook_1 = tslib_1.__importStar(require("./services/webhook"));
|
|
142
118
|
exports.WebhookService = webhook_1.default;
|
|
143
119
|
Object.defineProperty(exports, "WebhookApiClient", { enumerable: true, get: function () { return webhook_1.WebhookApiClient; } });
|
|
144
|
-
const reactions_1 = __importStar(require("./services/reactions"));
|
|
120
|
+
const reactions_1 = tslib_1.__importStar(require("./services/reactions"));
|
|
145
121
|
exports.ReactionService = reactions_1.default;
|
|
146
122
|
Object.defineProperty(exports, "ReactionApiClient", { enumerable: true, get: function () { return reactions_1.ReactionApiClient; } });
|
|
147
123
|
/**
|
|
@@ -149,4 +125,3 @@ Object.defineProperty(exports, "ReactionApiClient", { enumerable: true, get: fun
|
|
|
149
125
|
*/
|
|
150
126
|
const types_1 = require("./types");
|
|
151
127
|
Object.defineProperty(exports, "MediaTypes", { enumerable: true, get: function () { return types_1.MediaTypes; } });
|
|
152
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -27,6 +27,12 @@ export declare class AccountApiClient {
|
|
|
27
27
|
* @param config
|
|
28
28
|
*/
|
|
29
29
|
static verify(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint verify if a validation code is valid.
|
|
32
|
+
* @param data
|
|
33
|
+
* @param config
|
|
34
|
+
*/
|
|
35
|
+
static verifyValidationCode(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any>;
|
|
30
36
|
/**
|
|
31
37
|
* This endpoint recover an account.
|
|
32
38
|
* @param data
|
|
@@ -86,8 +92,8 @@ export declare class AccountApiClient {
|
|
|
86
92
|
export default class AccountService {
|
|
87
93
|
static create(data?: AccountCreateParams, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
88
94
|
static verify(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any>;
|
|
95
|
+
static verifyValidationCode(params?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
89
96
|
static recover(data?: AccountRecoverParams, config?: AxiosRequestConfig): Promise<any>;
|
|
90
97
|
static reset(data?: AccountResetParams, config?: AxiosRequestConfig): Promise<any>;
|
|
91
98
|
static search(params?: AccountSearchParams, config?: AxiosRequestConfig): Promise<SCUserType>;
|
|
92
99
|
}
|
|
93
|
-
//# 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.AccountApiClient = 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 categories.
|
|
@@ -38,6 +27,14 @@ class AccountApiClient {
|
|
|
38
27
|
static verify(data, config) {
|
|
39
28
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { data, url: Endpoints_1.default.AccountVerify.url({}), method: Endpoints_1.default.AccountVerify.method }));
|
|
40
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint verify if a validation code is valid.
|
|
32
|
+
* @param data
|
|
33
|
+
* @param config
|
|
34
|
+
*/
|
|
35
|
+
static verifyValidationCode(data, config) {
|
|
36
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { data, url: Endpoints_1.default.AccountVerifyValidationCode.url({}), method: Endpoints_1.default.AccountVerifyValidationCode.method }));
|
|
37
|
+
}
|
|
41
38
|
/**
|
|
42
39
|
* This endpoint recover an account.
|
|
43
40
|
* @param data
|
|
@@ -103,30 +100,34 @@ exports.AccountApiClient = AccountApiClient;
|
|
|
103
100
|
*/
|
|
104
101
|
class AccountService {
|
|
105
102
|
static create(data, config) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
107
104
|
return AccountApiClient.create(data, config);
|
|
108
105
|
});
|
|
109
106
|
}
|
|
110
107
|
static verify(data, config) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
112
109
|
return AccountApiClient.verify(data, config);
|
|
113
110
|
});
|
|
114
111
|
}
|
|
112
|
+
static verifyValidationCode(params, config) {
|
|
113
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
return AccountApiClient.verifyValidationCode(params, config);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
115
117
|
static recover(data, config) {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
117
119
|
return AccountApiClient.recover(data, config);
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
122
|
static reset(data, config) {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
122
124
|
return AccountApiClient.reset(data, config);
|
|
123
125
|
});
|
|
124
126
|
}
|
|
125
127
|
static search(params, config) {
|
|
126
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
127
129
|
return AccountApiClient.search(params, config);
|
|
128
130
|
});
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
133
|
exports.default = AccountService;
|
|
132
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -175,4 +175,3 @@ export default class CategoryService {
|
|
|
175
175
|
static getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
176
176
|
static getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
177
177
|
}
|
|
178
|
-
//# 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.CategoryApiClient = 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
|
const url_1 = require("../../utils/url");
|
|
19
8
|
/**
|
|
@@ -194,85 +183,84 @@ exports.CategoryApiClient = CategoryApiClient;
|
|
|
194
183
|
*/
|
|
195
184
|
class CategoryService {
|
|
196
185
|
static getAllCategories(params, config) {
|
|
197
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
198
187
|
return CategoryApiClient.getAllCategories(params, config);
|
|
199
188
|
});
|
|
200
189
|
}
|
|
201
190
|
static searchCategory(params, config) {
|
|
202
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
203
192
|
return CategoryApiClient.searchCategory(params, config);
|
|
204
193
|
});
|
|
205
194
|
}
|
|
206
195
|
static createCategory(data, config) {
|
|
207
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
208
197
|
return CategoryApiClient.createCategory(data, config);
|
|
209
198
|
});
|
|
210
199
|
}
|
|
211
200
|
static getSpecificCategory(id, config) {
|
|
212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
213
202
|
return CategoryApiClient.getSpecificCategory(id, config);
|
|
214
203
|
});
|
|
215
204
|
}
|
|
216
205
|
static updateASpecificCategory(id, data, config) {
|
|
217
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
218
207
|
return CategoryApiClient.updateASpecificCategory(id, data, config);
|
|
219
208
|
});
|
|
220
209
|
}
|
|
221
210
|
static patchASpecificCategory(id, data, config) {
|
|
222
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
223
212
|
return CategoryApiClient.patchASpecificCategory(id, data, config);
|
|
224
213
|
});
|
|
225
214
|
}
|
|
226
215
|
static deleteASpecificCategory(id, config) {
|
|
227
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
228
217
|
return CategoryApiClient.deleteASpecificCategory(id, config);
|
|
229
218
|
});
|
|
230
219
|
}
|
|
231
220
|
static getCategoryAudience(id, config) {
|
|
232
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
233
222
|
return CategoryApiClient.getCategoryAudience(id, config);
|
|
234
223
|
});
|
|
235
224
|
}
|
|
236
225
|
static getCategoryFollowers(id, params, config) {
|
|
237
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
238
227
|
return CategoryApiClient.getCategoryFollowers(id, params, config);
|
|
239
228
|
});
|
|
240
229
|
}
|
|
241
230
|
static getCategoryFeed(id, params, config) {
|
|
242
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
243
232
|
return CategoryApiClient.getCategoryFeed(id, params, config);
|
|
244
233
|
});
|
|
245
234
|
}
|
|
246
235
|
static getCategoryTrendingFeed(id, params, config) {
|
|
247
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
248
237
|
return CategoryApiClient.getCategoryTrendingFeed(id, params, config);
|
|
249
238
|
});
|
|
250
239
|
}
|
|
251
240
|
static getCategoryTrendingFollowers(id, params, config) {
|
|
252
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
253
242
|
return CategoryApiClient.getCategoryTrendingFollowers(id, params, config);
|
|
254
243
|
});
|
|
255
244
|
}
|
|
256
245
|
static followCategory(id, config) {
|
|
257
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
258
247
|
return CategoryApiClient.followCategory(id, config);
|
|
259
248
|
});
|
|
260
249
|
}
|
|
261
250
|
static checkCategoryIsFollowed(id, config) {
|
|
262
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
263
252
|
return CategoryApiClient.checkCategoryIsFollowed(id, config);
|
|
264
253
|
});
|
|
265
254
|
}
|
|
266
255
|
static getFollowedCategories(params, config) {
|
|
267
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
268
257
|
return CategoryApiClient.getFollowedCategories(params, config);
|
|
269
258
|
});
|
|
270
259
|
}
|
|
271
260
|
static getPopularCategories(params, config) {
|
|
272
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
273
262
|
return CategoryApiClient.getPopularCategories(params, config);
|
|
274
263
|
});
|
|
275
264
|
}
|
|
276
265
|
}
|
|
277
266
|
exports.default = CategoryService;
|
|
278
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -136,4 +136,3 @@ export default class CommentService {
|
|
|
136
136
|
static flagComment(id: number | string, flagType: SCFlagTypeEnum, config?: AxiosRequestConfig): Promise<any>;
|
|
137
137
|
static getSpecificCommentFlagStatus(id: number | string, config?: AxiosRequestConfig): Promise<SCFlagType>;
|
|
138
138
|
}
|
|
139
|
-
//# sourceMappingURL=index.d.ts.map
|