@selfcommunity/api-services 0.4.0-alpha.8 → 0.4.0
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 +0 -1
- package/lib/cjs/constants/Errors.js +0 -1
- 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 +0 -1
- package/lib/cjs/services/suggestion/index.js +7 -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 +3 -6
- 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 +0 -1
- package/lib/esm/constants/Errors.js +0 -1
- 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 +0 -1
- package/lib/esm/services/suggestion/index.js +1 -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 +1 -2
- 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/constants/Errors.d.ts.map +0 -1
- package/lib/cjs/constants/Errors.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/constants/Errors.d.ts.map +0 -1
- package/lib/esm/constants/Errors.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.FeedObjectApiClient = 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 feed objs (discussions-posts-statuses).
|
|
@@ -317,140 +306,139 @@ exports.FeedObjectApiClient = FeedObjectApiClient;
|
|
|
317
306
|
*/
|
|
318
307
|
class FeedObjectService {
|
|
319
308
|
static getAllFeedObjects(type, params, config) {
|
|
320
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
321
310
|
return FeedObjectApiClient.getAllFeedObjects(type, params, config);
|
|
322
311
|
});
|
|
323
312
|
}
|
|
324
313
|
static getUncommentedFeedObjects(type, params, config) {
|
|
325
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
326
315
|
return FeedObjectApiClient.getUncommentedFeedObjects(type, params, config);
|
|
327
316
|
});
|
|
328
317
|
}
|
|
329
318
|
static searchFeedObject(type, params, config) {
|
|
330
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
331
320
|
return FeedObjectApiClient.searchFeedObject(type, params, config);
|
|
332
321
|
});
|
|
333
322
|
}
|
|
334
323
|
static createFeedObject(type, data, config) {
|
|
335
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
336
325
|
return FeedObjectApiClient.createFeedObject(type, data, config);
|
|
337
326
|
});
|
|
338
327
|
}
|
|
339
328
|
static getSpecificFeedObject(type, id, config) {
|
|
340
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
341
330
|
return FeedObjectApiClient.getSpecificFeedObject(type, id, config);
|
|
342
331
|
});
|
|
343
332
|
}
|
|
344
333
|
static updateFeedObject(type, id, data, config) {
|
|
345
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
346
335
|
return FeedObjectApiClient.updateFeedObject(type, id, data, config);
|
|
347
336
|
});
|
|
348
337
|
}
|
|
349
338
|
static deleteFeedObject(type, id, config) {
|
|
350
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
351
340
|
return FeedObjectApiClient.deleteFeedObject(type, id, config);
|
|
352
341
|
});
|
|
353
342
|
}
|
|
354
343
|
static feedObjectContributorsList(type, id, params, config) {
|
|
355
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
344
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
356
345
|
return FeedObjectApiClient.feedObjectContributorsList(type, id, params, config);
|
|
357
346
|
});
|
|
358
347
|
}
|
|
359
348
|
static feedObjectSharesList(type, id, params, config) {
|
|
360
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
361
350
|
return FeedObjectApiClient.feedObjectSharesList(type, id, params, config);
|
|
362
351
|
});
|
|
363
352
|
}
|
|
364
353
|
static feedObjectUserSharesList(type, id, params) {
|
|
365
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
366
355
|
return FeedObjectApiClient.feedObjectUserSharesList(type, id, params);
|
|
367
356
|
});
|
|
368
357
|
}
|
|
369
358
|
static restoreFeedObject(type, id, config) {
|
|
370
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
371
360
|
return FeedObjectApiClient.restoreFeedObject(type, id, config);
|
|
372
361
|
});
|
|
373
362
|
}
|
|
374
363
|
static relatedFeedObjects(type, id, params, config) {
|
|
375
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
376
365
|
return FeedObjectApiClient.relatedFeedObjects(type, id, params, config);
|
|
377
366
|
});
|
|
378
367
|
}
|
|
379
368
|
static voteFeedObject(type, id, reaction, config) {
|
|
380
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
381
370
|
return FeedObjectApiClient.voteFeedObject(type, id, reaction, config);
|
|
382
371
|
});
|
|
383
372
|
}
|
|
384
373
|
static feedObjectVotes(type, id, params, config) {
|
|
385
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
386
375
|
return FeedObjectApiClient.feedObjectVotes(type, id, params, config);
|
|
387
376
|
});
|
|
388
377
|
}
|
|
389
378
|
static feedObjectPollVote(type, id, choice, config) {
|
|
390
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
379
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
391
380
|
return FeedObjectApiClient.feedObjectPollVote(type, id, choice, config);
|
|
392
381
|
});
|
|
393
382
|
}
|
|
394
383
|
static feedObjectPollVotesList(type, id, params, config) {
|
|
395
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
396
385
|
return FeedObjectApiClient.feedObjectPollVotesList(type, id, params, config);
|
|
397
386
|
});
|
|
398
387
|
}
|
|
399
388
|
static followFeedObject(type, id, config) {
|
|
400
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
401
390
|
return FeedObjectApiClient.followFeedObject(type, id, config);
|
|
402
391
|
});
|
|
403
392
|
}
|
|
404
393
|
static feedObjectFollowingList(type, params, config) {
|
|
405
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
406
395
|
return FeedObjectApiClient.feedObjectFollowingList(type, params, config);
|
|
407
396
|
});
|
|
408
397
|
}
|
|
409
398
|
static checkIfFollowingFeedObject(type, id, config) {
|
|
410
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
411
400
|
return FeedObjectApiClient.checkIfFollowingFeedObject(type, id, config);
|
|
412
401
|
});
|
|
413
402
|
}
|
|
414
403
|
static suspendFeedObject(type, id, config) {
|
|
415
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
416
405
|
return FeedObjectApiClient.suspendFeedObject(type, id, config);
|
|
417
406
|
});
|
|
418
407
|
}
|
|
419
408
|
static checkIfSuspendedFeedObject(type, id, config) {
|
|
420
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
421
410
|
return FeedObjectApiClient.checkIfSuspendedFeedObject(type, id, config);
|
|
422
411
|
});
|
|
423
412
|
}
|
|
424
413
|
static feedObjectSuspendedList(type, params, config) {
|
|
425
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
426
415
|
return FeedObjectApiClient.feedObjectSuspendedList(type, params, config);
|
|
427
416
|
});
|
|
428
417
|
}
|
|
429
418
|
static flagFeedObject(type, id, flag_type, config) {
|
|
430
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
431
420
|
return FeedObjectApiClient.flagFeedObject(type, id, flag_type, config);
|
|
432
421
|
});
|
|
433
422
|
}
|
|
434
423
|
static feedObjectFlagList(type, id, config) {
|
|
435
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
436
425
|
return FeedObjectApiClient.feedObjectFlagList(type, id, config);
|
|
437
426
|
});
|
|
438
427
|
}
|
|
439
428
|
static feedObjectFlagStatus(type, id, config) {
|
|
440
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
441
430
|
return FeedObjectApiClient.feedObjectFlagStatus(type, id, config);
|
|
442
431
|
});
|
|
443
432
|
}
|
|
444
433
|
static hideFeedObject(type, id, config) {
|
|
445
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
446
435
|
return FeedObjectApiClient.hideFeedObject(type, id, config);
|
|
447
436
|
});
|
|
448
437
|
}
|
|
449
438
|
static feedObjectHideStatus(type, id, config) {
|
|
450
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
439
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
451
440
|
return FeedObjectApiClient.feedObjectHideStatus(type, id, config);
|
|
452
441
|
});
|
|
453
442
|
}
|
|
454
443
|
}
|
|
455
444
|
exports.default = FeedObjectService;
|
|
456
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -101,4 +101,3 @@ export default class IncubatorService {
|
|
|
101
101
|
static subscribeToIncubator(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
102
102
|
static checkIncubatorSubscription(id: number | string, config?: AxiosRequestConfig): Promise<SCIncubatorSubscriptionType>;
|
|
103
103
|
}
|
|
104
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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.IncubatorApiClient = 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 incubators.
|
|
@@ -117,40 +106,39 @@ exports.IncubatorApiClient = IncubatorApiClient;
|
|
|
117
106
|
*/
|
|
118
107
|
class IncubatorService {
|
|
119
108
|
static getAllIncubators(params, config) {
|
|
120
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
121
110
|
return IncubatorApiClient.getAllIncubators(params, config);
|
|
122
111
|
});
|
|
123
112
|
}
|
|
124
113
|
static searchIncubators(params, config) {
|
|
125
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
126
115
|
return IncubatorApiClient.searchIncubators(params, config);
|
|
127
116
|
});
|
|
128
117
|
}
|
|
129
118
|
static getSpecificIncubator(id, config) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
131
120
|
return IncubatorApiClient.getSpecificIncubator(id, config);
|
|
132
121
|
});
|
|
133
122
|
}
|
|
134
123
|
static createIncubator(data, config) {
|
|
135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
136
125
|
return IncubatorApiClient.createIncubator(data, config);
|
|
137
126
|
});
|
|
138
127
|
}
|
|
139
128
|
static getIncubatorSubscribers(id, config) {
|
|
140
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
141
130
|
return IncubatorApiClient.getIncubatorSubscribers(id, config);
|
|
142
131
|
});
|
|
143
132
|
}
|
|
144
133
|
static subscribeToIncubator(id, config) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
146
135
|
return IncubatorApiClient.subscribeToIncubator(id, config);
|
|
147
136
|
});
|
|
148
137
|
}
|
|
149
138
|
static checkIncubatorSubscription(id, config) {
|
|
150
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
151
140
|
return IncubatorApiClient.checkIncubatorSubscription(id, config);
|
|
152
141
|
});
|
|
153
142
|
}
|
|
154
143
|
}
|
|
155
144
|
exports.default = IncubatorService;
|
|
156
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -94,4 +94,3 @@ export default class InsightService {
|
|
|
94
94
|
static getEmbedsInsightCounters(type: string, id: number | string, config?: AxiosRequestConfig): Promise<SCEmbedInsightCountersType>;
|
|
95
95
|
static getUsersInsightCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCUsersInsightCountersType>;
|
|
96
96
|
}
|
|
97
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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.InsightApiClient = 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 insights.
|
|
@@ -111,35 +100,34 @@ exports.InsightApiClient = InsightApiClient;
|
|
|
111
100
|
*/
|
|
112
101
|
class InsightService {
|
|
113
102
|
static getBestContributionInsight(params, config) {
|
|
114
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
115
104
|
return InsightApiClient.getBestContributionInsight(params, config);
|
|
116
105
|
});
|
|
117
106
|
}
|
|
118
107
|
static getBestEmbedInsight(params, config) {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
120
109
|
return InsightApiClient.getBestEmbedInsight(params, config);
|
|
121
110
|
});
|
|
122
111
|
}
|
|
123
112
|
static getBestUsersInsight(params, config) {
|
|
124
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
125
114
|
return InsightApiClient.getBestUsersInsight(params, config);
|
|
126
115
|
});
|
|
127
116
|
}
|
|
128
117
|
static getContributionsInsightCounters(id, config) {
|
|
129
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
130
119
|
return InsightApiClient.getContributionsInsightCounters(id, config);
|
|
131
120
|
});
|
|
132
121
|
}
|
|
133
122
|
static getEmbedsInsightCounters(type, id, config) {
|
|
134
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
135
124
|
return InsightApiClient.getEmbedsInsightCounters(type, id, config);
|
|
136
125
|
});
|
|
137
126
|
}
|
|
138
127
|
static getUsersInsightCounters(id, config) {
|
|
139
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
140
129
|
return InsightApiClient.getUsersInsightCounters(id, config);
|
|
141
130
|
});
|
|
142
131
|
}
|
|
143
132
|
}
|
|
144
133
|
exports.default = InsightService;
|
|
145
|
-
//# sourceMappingURL=index.js.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.InviteApiClient = 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 invite codes.
|
|
@@ -65,10 +54,9 @@ exports.InviteApiClient = InviteApiClient;
|
|
|
65
54
|
*/
|
|
66
55
|
class InviteService {
|
|
67
56
|
static getSpecificInvite(code, config) {
|
|
68
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
69
58
|
return InviteApiClient.getSpecificInvite(code, config);
|
|
70
59
|
});
|
|
71
60
|
}
|
|
72
61
|
}
|
|
73
62
|
exports.default = InviteService;
|
|
74
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -113,4 +113,3 @@ export default class LegalPageService {
|
|
|
113
113
|
static getSpecificUserAck(id: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageAckType>;
|
|
114
114
|
static userAckList(config?: AxiosRequestConfig): Promise<SCLegalPageAckType[]>;
|
|
115
115
|
}
|
|
116
|
-
//# 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.LegalPageApiClient = 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
|
/**
|
|
@@ -131,50 +120,49 @@ exports.LegalPageApiClient = LegalPageApiClient;
|
|
|
131
120
|
*/
|
|
132
121
|
class LegalPageService {
|
|
133
122
|
static getLegalPages(params, config) {
|
|
134
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
135
124
|
return LegalPageApiClient.getLegalPages(params, config);
|
|
136
125
|
});
|
|
137
126
|
}
|
|
138
127
|
static getSpecificLegalPage(id, config) {
|
|
139
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
140
129
|
return LegalPageApiClient.getSpecificLegalPage(id, config);
|
|
141
130
|
});
|
|
142
131
|
}
|
|
143
132
|
static getAllRevisionsOfLegalPage(policy, config) {
|
|
144
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
145
134
|
return LegalPageApiClient.getAllRevisionsOfLegalPage(policy, config);
|
|
146
135
|
});
|
|
147
136
|
}
|
|
148
137
|
static getAllLastRevisionsOfLegalPages(config) {
|
|
149
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
150
139
|
return LegalPageApiClient.getAllLastRevisionsOfLegalPages(config);
|
|
151
140
|
});
|
|
152
141
|
}
|
|
153
142
|
static getLastRevisionOfLegalPage(policy, config) {
|
|
154
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
155
144
|
return LegalPageApiClient.getLastRevisionOfLegalPage(policy, config);
|
|
156
145
|
});
|
|
157
146
|
}
|
|
158
147
|
static searchLegalPages(params, config) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
160
149
|
return LegalPageApiClient.searchLegalPages(params, config);
|
|
161
150
|
});
|
|
162
151
|
}
|
|
163
152
|
static ackLegalPage(id, accept, config) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
165
154
|
return LegalPageApiClient.ackLegalPage(id, accept, config);
|
|
166
155
|
});
|
|
167
156
|
}
|
|
168
157
|
static getSpecificUserAck(id, config) {
|
|
169
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
170
159
|
return LegalPageApiClient.getSpecificUserAck(id, config);
|
|
171
160
|
});
|
|
172
161
|
}
|
|
173
162
|
static userAckList(config) {
|
|
174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
175
164
|
return LegalPageApiClient.userAckList(config);
|
|
176
165
|
});
|
|
177
166
|
}
|
|
178
167
|
}
|
|
179
168
|
exports.default = LegalPageService;
|
|
180
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -54,4 +54,3 @@ export default class LocalityService {
|
|
|
54
54
|
static getLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>>;
|
|
55
55
|
static searchLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>>;
|
|
56
56
|
}
|
|
57
|
-
//# 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.LocalityApiClient = 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
|
/**
|
|
@@ -70,15 +59,14 @@ exports.LocalityApiClient = LocalityApiClient;
|
|
|
70
59
|
*/
|
|
71
60
|
class LocalityService {
|
|
72
61
|
static getLocalities(params, config) {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
74
63
|
return LocalityApiClient.getLocalities(params, config);
|
|
75
64
|
});
|
|
76
65
|
}
|
|
77
66
|
static searchLocalities(params, config) {
|
|
78
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
68
|
return LocalityApiClient.searchLocalities(params, config);
|
|
80
69
|
});
|
|
81
70
|
}
|
|
82
71
|
}
|
|
83
72
|
exports.default = LocalityService;
|
|
84
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SCPrizeType, SCPrizeUserStatusType, SCPrizeUserType } from '@selfcommunity/types';
|
|
2
|
-
import { SCPaginatedResponse, LoyaltyPrizeParams } from '../../types';
|
|
2
|
+
import { SCPaginatedResponse, LoyaltyPrizeParams, LoyaltyGetPrizeParams } from '../../types';
|
|
3
3
|
import { AxiosRequestConfig } from 'axios';
|
|
4
4
|
export interface LoyaltyApiClientInterface {
|
|
5
|
-
getPrizes(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>>;
|
|
5
|
+
getPrizes(params?: LoyaltyGetPrizeParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>>;
|
|
6
6
|
createPrize(data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType>;
|
|
7
7
|
getSpecificPrize(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeType>;
|
|
8
8
|
updatePrize(id: number | string, data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType>;
|
|
@@ -18,9 +18,10 @@ export interface LoyaltyApiClientInterface {
|
|
|
18
18
|
export declare class LoyaltyApiClient {
|
|
19
19
|
/**
|
|
20
20
|
* This endpoint retrieves all prizes.
|
|
21
|
+
* @param params
|
|
21
22
|
* @param config
|
|
22
23
|
*/
|
|
23
|
-
static getPrizes(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>>;
|
|
24
|
+
static getPrizes(params?: LoyaltyGetPrizeParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>>;
|
|
24
25
|
/**
|
|
25
26
|
* This endpoint creates a prize.
|
|
26
27
|
* @param data
|
|
@@ -109,7 +110,7 @@ export declare class LoyaltyApiClient {
|
|
|
109
110
|
:::
|
|
110
111
|
*/
|
|
111
112
|
export default class LoyaltyService {
|
|
112
|
-
static getPrizes(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>>;
|
|
113
|
+
static getPrizes(params?: LoyaltyGetPrizeParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>>;
|
|
113
114
|
static createPrize(data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType>;
|
|
114
115
|
static getSpecificPrize(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeType>;
|
|
115
116
|
static updatePrize(id: number | string, data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType>;
|
|
@@ -119,4 +120,3 @@ export default class LoyaltyService {
|
|
|
119
120
|
static getSpecificPrizeRequest(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeUserType>;
|
|
120
121
|
static patchPrizeRequest(id: number | string, status?: SCPrizeUserStatusType, config?: AxiosRequestConfig): Promise<SCPrizeUserType>;
|
|
121
122
|
}
|
|
122
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,30 +1,20 @@
|
|
|
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.LoyaltyApiClient = 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
|
/**
|
|
19
8
|
* Contains all the endpoints needed to manage loyalty program.
|
|
20
9
|
*/
|
|
21
10
|
class LoyaltyApiClient {
|
|
22
11
|
/**
|
|
23
12
|
* This endpoint retrieves all prizes.
|
|
13
|
+
* @param params
|
|
24
14
|
* @param config
|
|
25
15
|
*/
|
|
26
|
-
static getPrizes(config) {
|
|
27
|
-
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetPrizes.url({}), method: Endpoints_1.default.GetPrizes.method }));
|
|
16
|
+
static getPrizes(params, config) {
|
|
17
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { params, url: Endpoints_1.default.GetPrizes.url({}), method: Endpoints_1.default.GetPrizes.method }));
|
|
28
18
|
}
|
|
29
19
|
/**
|
|
30
20
|
* This endpoint creates a prize.
|
|
@@ -131,51 +121,50 @@ exports.LoyaltyApiClient = LoyaltyApiClient;
|
|
|
131
121
|
:::
|
|
132
122
|
*/
|
|
133
123
|
class LoyaltyService {
|
|
134
|
-
static getPrizes(config) {
|
|
135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
return LoyaltyApiClient.getPrizes(config);
|
|
124
|
+
static getPrizes(params, config) {
|
|
125
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
return LoyaltyApiClient.getPrizes(params, config);
|
|
137
127
|
});
|
|
138
128
|
}
|
|
139
129
|
static createPrize(data, config) {
|
|
140
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
141
131
|
return LoyaltyApiClient.createPrize(data, config);
|
|
142
132
|
});
|
|
143
133
|
}
|
|
144
134
|
static getSpecificPrize(id, config) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
146
136
|
return LoyaltyApiClient.getSpecificPrize(id, config);
|
|
147
137
|
});
|
|
148
138
|
}
|
|
149
139
|
static updatePrize(id, data, config) {
|
|
150
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
151
141
|
return LoyaltyApiClient.updatePrize(id, data, config);
|
|
152
142
|
});
|
|
153
143
|
}
|
|
154
144
|
static patchPrize(id, data, config) {
|
|
155
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
156
146
|
return LoyaltyApiClient.patchPrize(id, data, config);
|
|
157
147
|
});
|
|
158
148
|
}
|
|
159
149
|
static getAllPrizeRequests(config) {
|
|
160
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
161
151
|
return LoyaltyApiClient.getAllPrizeRequests(config);
|
|
162
152
|
});
|
|
163
153
|
}
|
|
164
154
|
static createPrizeRequest(prize, config) {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
166
156
|
return LoyaltyApiClient.createPrizeRequest(prize, config);
|
|
167
157
|
});
|
|
168
158
|
}
|
|
169
159
|
static getSpecificPrizeRequest(id, config) {
|
|
170
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
171
161
|
return LoyaltyApiClient.getSpecificPrizeRequest(id, config);
|
|
172
162
|
});
|
|
173
163
|
}
|
|
174
164
|
static patchPrizeRequest(id, status, config) {
|
|
175
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
176
166
|
return LoyaltyApiClient.patchPrizeRequest(id, status, config);
|
|
177
167
|
});
|
|
178
168
|
}
|
|
179
169
|
}
|
|
180
170
|
exports.default = LoyaltyService;
|
|
181
|
-
//# sourceMappingURL=index.js.map
|