@selfcommunity/api-services 0.1.7 → 0.1.8-alpha.2
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/{types → cjs}/client/index.d.ts +0 -0
- package/lib/{types → cjs}/client/index.d.ts.map +0 -0
- package/lib/cjs/client/index.js +112 -157
- package/lib/cjs/client/index.js.map +1 -0
- package/lib/{types → cjs}/constants/Endpoints.d.ts +0 -0
- package/lib/{types → cjs}/constants/Endpoints.d.ts.map +1 -1
- package/lib/cjs/constants/Endpoints.js +1017 -1051
- package/lib/cjs/constants/Endpoints.js.map +1 -0
- package/lib/{types → cjs}/index.d.ts +2 -2
- package/lib/{types → cjs}/index.d.ts.map +1 -1
- package/lib/cjs/index.js +133 -222
- package/lib/cjs/index.js.map +1 -0
- package/lib/{types → cjs}/services/category/index.d.ts +0 -0
- package/lib/{types → cjs}/services/category/index.d.ts.map +0 -0
- package/lib/cjs/services/category/index.js +218 -251
- package/lib/cjs/services/category/index.js.map +1 -0
- package/lib/{types → cjs}/services/comment/index.d.ts +5 -4
- package/lib/cjs/services/comment/index.d.ts.map +1 -0
- package/lib/cjs/services/comment/index.js +154 -181
- package/lib/cjs/services/comment/index.js.map +1 -0
- package/lib/{types → cjs}/services/custom_adv/index.d.ts +3 -3
- package/lib/cjs/services/custom_adv/index.d.ts.map +1 -0
- package/lib/cjs/services/custom_adv/index.js +56 -56
- package/lib/cjs/services/custom_adv/index.js.map +1 -0
- package/lib/{types → cjs}/services/custom_page/index.d.ts +0 -0
- package/lib/{types → cjs}/services/custom_page/index.d.ts.map +0 -0
- package/lib/cjs/services/custom_page/index.js +56 -56
- package/lib/cjs/services/custom_page/index.js.map +1 -0
- package/lib/{types → cjs}/services/data_portability/index.d.ts +0 -0
- package/lib/{types → cjs}/services/data_portability/index.d.ts.map +0 -0
- package/lib/cjs/services/data_portability/index.js +51 -49
- package/lib/cjs/services/data_portability/index.js.map +1 -0
- package/lib/{types → cjs}/services/embed/index.d.ts +8 -6
- package/lib/cjs/services/embed/index.d.ts.map +1 -0
- package/lib/cjs/services/embed/index.js +120 -128
- package/lib/cjs/services/embed/index.js.map +1 -0
- package/lib/cjs/services/feature/index.d.ts +19 -0
- package/lib/cjs/services/feature/index.d.ts.map +1 -0
- package/lib/cjs/services/feature/index.js +31 -25
- package/lib/cjs/services/feature/index.js.map +1 -0
- package/lib/{types → cjs}/services/feed/index.d.ts +2 -0
- package/lib/{types → cjs}/services/feed/index.d.ts.map +1 -1
- package/lib/cjs/services/feed/index.js +79 -81
- package/lib/cjs/services/feed/index.js.map +1 -0
- package/lib/{types → cjs}/services/feed_object/index.d.ts +9 -9
- package/lib/cjs/services/feed_object/index.d.ts.map +1 -0
- package/lib/cjs/services/feed_object/index.js +387 -485
- package/lib/cjs/services/feed_object/index.js.map +1 -0
- package/lib/{types → cjs}/services/incubator/index.d.ts +0 -0
- package/lib/{types → cjs}/services/incubator/index.d.ts.map +0 -0
- package/lib/cjs/services/incubator/index.js +104 -114
- package/lib/cjs/services/incubator/index.js.map +1 -0
- package/lib/{types → cjs}/services/insight/index.d.ts +13 -10
- package/lib/cjs/services/insight/index.d.ts.map +1 -0
- package/lib/cjs/services/insight/index.js +93 -94
- package/lib/cjs/services/insight/index.js.map +1 -0
- package/lib/{types → cjs}/services/legal_page/index.d.ts +0 -0
- package/lib/{types → cjs}/services/legal_page/index.d.ts.map +0 -0
- package/lib/cjs/services/legal_page/index.js +92 -102
- package/lib/cjs/services/legal_page/index.js.map +1 -0
- package/lib/cjs/services/locality/index.d.ts +26 -0
- package/lib/cjs/services/locality/index.d.ts.map +1 -0
- package/lib/cjs/services/locality/index.js +44 -37
- package/lib/cjs/services/locality/index.js.map +1 -0
- package/lib/{types → cjs}/services/loyalty/index.d.ts +3 -3
- package/lib/cjs/services/loyalty/index.d.ts.map +1 -0
- package/lib/cjs/services/loyalty/index.js +128 -148
- package/lib/cjs/services/loyalty/index.js.map +1 -0
- package/lib/{types → cjs}/services/media/index.d.ts +0 -0
- package/lib/{types → cjs}/services/media/index.d.ts.map +1 -1
- package/lib/cjs/services/media/index.js +107 -124
- package/lib/cjs/services/media/index.js.map +1 -0
- package/lib/{types → cjs}/services/moderation/index.d.ts +0 -0
- package/lib/{types → cjs}/services/moderation/index.d.ts.map +1 -1
- package/lib/cjs/services/moderation/index.js +95 -109
- package/lib/cjs/services/moderation/index.js.map +1 -0
- package/lib/{types → cjs}/services/notification/index.d.ts +3 -3
- package/lib/cjs/services/notification/index.d.ts.map +1 -0
- package/lib/cjs/services/notification/index.js +121 -131
- package/lib/cjs/services/notification/index.js.map +1 -0
- package/lib/{types → cjs}/services/preference/index.d.ts +0 -0
- package/lib/{types → cjs}/services/preference/index.d.ts.map +0 -0
- package/lib/cjs/services/preference/index.js +57 -65
- package/lib/cjs/services/preference/index.js.map +1 -0
- package/lib/{types → cjs}/services/private_message/index.d.ts +0 -0
- package/lib/{types → cjs}/services/private_message/index.d.ts.map +0 -0
- package/lib/cjs/services/private_message/index.js +137 -148
- package/lib/cjs/services/private_message/index.js.map +1 -0
- package/lib/cjs/services/score/index.d.ts +33 -0
- package/lib/cjs/services/score/index.d.ts.map +1 -0
- package/lib/cjs/services/score/index.js +56 -50
- package/lib/cjs/services/score/index.js.map +1 -0
- package/lib/{types → cjs}/services/sso/index.d.ts +2 -1
- package/lib/{types → cjs}/services/sso/index.d.ts.map +1 -1
- package/lib/cjs/services/sso/index.js +42 -38
- package/lib/cjs/services/sso/index.js.map +1 -0
- package/lib/{types → cjs}/services/suggestion/index.d.ts +0 -0
- package/lib/{types → cjs}/services/suggestion/index.d.ts.map +0 -0
- package/lib/cjs/services/suggestion/index.js +62 -61
- package/lib/cjs/services/suggestion/index.js.map +1 -0
- package/lib/{types → cjs}/services/tag/index.d.ts +10 -7
- package/lib/cjs/services/tag/index.d.ts.map +1 -0
- package/lib/cjs/services/tag/index.js +110 -119
- package/lib/cjs/services/tag/index.js.map +1 -0
- package/lib/{types → cjs}/services/user/index.d.ts +16 -12
- package/lib/cjs/services/user/index.d.ts.map +1 -0
- package/lib/cjs/services/user/index.js +606 -715
- package/lib/cjs/services/user/index.js.map +1 -0
- package/lib/{types → cjs}/services/webhook/index.d.ts +0 -0
- package/lib/{types → cjs}/services/webhook/index.d.ts.map +0 -0
- package/lib/cjs/services/webhook/index.js +164 -193
- package/lib/cjs/services/webhook/index.js.map +1 -0
- package/lib/{types → cjs}/types/baseParams.d.ts +0 -0
- package/lib/{types → cjs}/types/baseParams.d.ts.map +0 -0
- package/lib/cjs/types/baseParams.js +5 -2
- package/lib/cjs/types/baseParams.js.map +1 -0
- package/lib/{types → cjs}/types/category.d.ts +0 -0
- package/lib/{types → cjs}/types/category.d.ts.map +0 -0
- package/lib/cjs/types/category.js +2 -2
- package/lib/cjs/types/category.js.map +1 -0
- package/lib/{types → cjs}/types/comment.d.ts +0 -0
- package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
- package/lib/cjs/types/comment.js +2 -2
- package/lib/cjs/types/comment.js.map +1 -0
- package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
- package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
- package/lib/cjs/types/customAdv.js +2 -2
- package/lib/cjs/types/customAdv.js.map +1 -0
- package/lib/{types → cjs}/types/customPage.d.ts +0 -0
- package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
- package/lib/cjs/types/customPage.js +2 -2
- package/lib/cjs/types/customPage.js.map +1 -0
- package/lib/{types → cjs}/types/embed.d.ts +0 -0
- package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
- package/lib/cjs/types/embed.js +2 -2
- package/lib/cjs/types/embed.js.map +1 -0
- package/lib/cjs/types/feature.d.ts +11 -0
- package/lib/cjs/types/feature.d.ts.map +1 -0
- package/lib/cjs/types/feature.js +3 -0
- package/lib/cjs/types/feature.js.map +1 -0
- package/lib/{types → cjs}/types/feed.d.ts +0 -0
- package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
- package/lib/cjs/types/feed.js +2 -2
- package/lib/cjs/types/feed.js.map +1 -0
- package/lib/{types → cjs}/types/feedObject.d.ts +0 -0
- package/lib/{types → cjs}/types/feedObject.d.ts.map +0 -0
- package/lib/cjs/types/feedObject.js +2 -2
- package/lib/cjs/types/feedObject.js.map +1 -0
- package/lib/{types → cjs}/types/incubator.d.ts +0 -0
- package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
- package/lib/cjs/types/incubator.js +2 -2
- package/lib/cjs/types/incubator.js.map +1 -0
- package/lib/{types → cjs}/types/index.d.ts +6 -3
- package/lib/{types → cjs}/types/index.d.ts.map +1 -1
- package/lib/cjs/types/index.js +5 -101
- package/lib/cjs/types/index.js.map +1 -0
- package/lib/cjs/types/insight.d.ts +67 -0
- package/lib/cjs/types/insight.d.ts.map +1 -0
- package/lib/cjs/types/insight.js +3 -0
- package/lib/cjs/types/insight.js.map +1 -0
- package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
- package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
- package/lib/cjs/types/legalPage.js +2 -2
- package/lib/cjs/types/legalPage.js.map +1 -0
- package/lib/{types → cjs}/types/media.d.ts +2 -15
- package/lib/{types → cjs}/types/media.d.ts.map +1 -1
- package/lib/cjs/types/media.js +8 -27
- package/lib/cjs/types/media.js.map +1 -0
- package/lib/{types → cjs}/types/moderation.d.ts +1 -1
- package/lib/{types → cjs}/types/moderation.d.ts.map +1 -1
- package/lib/cjs/types/moderation.js +2 -2
- package/lib/cjs/types/moderation.js.map +1 -0
- package/lib/{types → cjs}/types/notification.d.ts +0 -0
- package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
- package/lib/cjs/types/notification.js +2 -2
- package/lib/cjs/types/notification.js.map +1 -0
- package/lib/{types → cjs}/types/paginatedResponse.d.ts +0 -0
- package/lib/{types → cjs}/types/paginatedResponse.d.ts.map +0 -0
- package/lib/cjs/types/paginatedResponse.js +5 -2
- package/lib/cjs/types/paginatedResponse.js.map +1 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
- package/lib/cjs/types/privateMessage.js +2 -2
- package/lib/cjs/types/privateMessage.js.map +1 -0
- package/lib/{types → cjs}/types/prize.d.ts +0 -0
- package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
- package/lib/cjs/types/prize.js +2 -2
- package/lib/cjs/types/prize.js.map +1 -0
- package/lib/cjs/types/score.d.ts +19 -0
- package/lib/cjs/types/score.d.ts.map +1 -0
- package/lib/cjs/types/score.js +3 -0
- package/lib/cjs/types/score.js.map +1 -0
- package/lib/{types → cjs}/types/sso.d.ts +0 -0
- package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
- package/lib/cjs/types/sso.js +5 -2
- package/lib/cjs/types/sso.js.map +1 -0
- package/lib/{types → cjs}/types/tag.d.ts +22 -0
- package/lib/cjs/types/tag.d.ts.map +1 -0
- package/lib/cjs/types/tag.js +2 -2
- package/lib/cjs/types/tag.js.map +1 -0
- package/lib/{types → cjs}/types/user.d.ts +0 -0
- package/lib/{types → cjs}/types/user.d.ts.map +0 -0
- package/lib/cjs/types/user.js +2 -2
- package/lib/cjs/types/user.js.map +1 -0
- package/lib/{types → cjs}/types/webhook.d.ts +0 -0
- package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
- package/lib/cjs/types/webhook.js +2 -2
- package/lib/cjs/types/webhook.js.map +1 -0
- package/lib/cjs/utils/apiRequest.d.ts +2 -0
- package/lib/{types → cjs}/utils/apiRequest.d.ts.map +1 -1
- package/lib/cjs/utils/apiRequest.js +26 -25
- package/lib/cjs/utils/apiRequest.js.map +1 -0
- package/lib/{types → cjs}/utils/http.d.ts +0 -0
- package/lib/{types → cjs}/utils/http.d.ts.map +0 -0
- package/lib/cjs/utils/http.js +41 -45
- package/lib/cjs/utils/http.js.map +1 -0
- package/lib/{types → cjs}/utils/token.d.ts +0 -0
- package/lib/{types → cjs}/utils/token.d.ts.map +0 -0
- package/lib/cjs/utils/token.js +62 -31
- package/lib/cjs/utils/token.js.map +1 -0
- package/lib/esm/client/index.d.ts +115 -0
- package/lib/esm/client/index.d.ts.map +1 -0
- package/lib/esm/client/index.js +108 -160
- package/lib/esm/client/index.js.map +1 -0
- package/lib/esm/constants/Endpoints.d.ts +10 -0
- package/lib/esm/constants/Endpoints.d.ts.map +1 -0
- package/lib/esm/constants/Endpoints.js +1016 -1052
- package/lib/esm/constants/Endpoints.js.map +1 -0
- package/lib/esm/index.d.ts +51 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +51 -223
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/services/category/index.d.ts +127 -0
- package/lib/esm/services/category/index.d.ts.map +1 -0
- package/lib/esm/services/category/index.js +214 -255
- package/lib/esm/services/category/index.js.map +1 -0
- package/lib/esm/services/comment/index.d.ts +92 -0
- package/lib/esm/services/comment/index.d.ts.map +1 -0
- package/lib/esm/services/comment/index.js +150 -185
- package/lib/esm/services/comment/index.js.map +1 -0
- package/lib/esm/services/custom_adv/index.d.ts +33 -0
- package/lib/esm/services/custom_adv/index.d.ts.map +1 -0
- package/lib/esm/services/custom_adv/index.js +52 -60
- package/lib/esm/services/custom_adv/index.js.map +1 -0
- package/lib/esm/services/custom_page/index.d.ts +33 -0
- package/lib/esm/services/custom_page/index.d.ts.map +1 -0
- package/lib/esm/services/custom_page/index.js +52 -60
- package/lib/esm/services/custom_page/index.js.map +1 -0
- package/lib/esm/services/data_portability/index.d.ts +29 -0
- package/lib/esm/services/data_portability/index.d.ts.map +1 -0
- package/lib/esm/services/data_portability/index.js +47 -53
- package/lib/esm/services/data_portability/index.js.map +1 -0
- package/lib/esm/services/embed/index.d.ts +71 -0
- package/lib/esm/services/embed/index.d.ts.map +1 -0
- package/lib/esm/services/embed/index.js +116 -132
- package/lib/esm/services/embed/index.js.map +1 -0
- package/lib/esm/services/feature/index.d.ts +19 -0
- package/lib/esm/services/feature/index.d.ts.map +1 -0
- package/lib/esm/services/feature/index.js +27 -29
- package/lib/esm/services/feature/index.js.map +1 -0
- package/lib/esm/services/feed/index.d.ts +46 -0
- package/lib/esm/services/feed/index.d.ts.map +1 -0
- package/lib/esm/services/feed/index.js +75 -85
- package/lib/esm/services/feed/index.js.map +1 -0
- package/lib/esm/services/feed_object/index.d.ts +236 -0
- package/lib/esm/services/feed_object/index.d.ts.map +1 -0
- package/lib/esm/services/feed_object/index.js +383 -489
- package/lib/esm/services/feed_object/index.js.map +1 -0
- package/lib/esm/services/incubator/index.d.ts +61 -0
- package/lib/esm/services/incubator/index.d.ts.map +1 -0
- package/lib/esm/services/incubator/index.js +100 -118
- package/lib/esm/services/incubator/index.js.map +1 -0
- package/lib/esm/services/insight/index.d.ts +54 -0
- package/lib/esm/services/insight/index.d.ts.map +1 -0
- package/lib/esm/services/insight/index.js +89 -98
- package/lib/esm/services/insight/index.js.map +1 -0
- package/lib/esm/services/legal_page/index.d.ts +53 -0
- package/lib/esm/services/legal_page/index.d.ts.map +1 -0
- package/lib/esm/services/legal_page/index.js +88 -106
- package/lib/esm/services/legal_page/index.js.map +1 -0
- package/lib/esm/services/locality/index.d.ts +26 -0
- package/lib/esm/services/locality/index.d.ts.map +1 -0
- package/lib/esm/services/locality/index.js +40 -41
- package/lib/esm/services/locality/index.js.map +1 -0
- package/lib/esm/services/loyalty/index.d.ts +77 -0
- package/lib/esm/services/loyalty/index.d.ts.map +1 -0
- package/lib/esm/services/loyalty/index.js +124 -152
- package/lib/esm/services/loyalty/index.js.map +1 -0
- package/lib/esm/services/media/index.d.ts +65 -0
- package/lib/esm/services/media/index.d.ts.map +1 -0
- package/lib/esm/services/media/index.js +103 -128
- package/lib/esm/services/media/index.js.map +1 -0
- package/lib/esm/services/moderation/index.d.ts +58 -0
- package/lib/esm/services/moderation/index.d.ts.map +1 -0
- package/lib/esm/services/moderation/index.js +91 -113
- package/lib/esm/services/moderation/index.js.map +1 -0
- package/lib/esm/services/notification/index.d.ts +70 -0
- package/lib/esm/services/notification/index.d.ts.map +1 -0
- package/lib/esm/services/notification/index.js +117 -135
- package/lib/esm/services/notification/index.js.map +1 -0
- package/lib/esm/services/preference/index.d.ts +35 -0
- package/lib/esm/services/preference/index.d.ts.map +1 -0
- package/lib/esm/services/preference/index.js +53 -69
- package/lib/esm/services/preference/index.js.map +1 -0
- package/lib/esm/services/private_message/index.d.ts +81 -0
- package/lib/esm/services/private_message/index.d.ts.map +1 -0
- package/lib/esm/services/private_message/index.js +133 -152
- package/lib/esm/services/private_message/index.js.map +1 -0
- package/lib/esm/services/score/index.d.ts +33 -0
- package/lib/esm/services/score/index.d.ts.map +1 -0
- package/lib/esm/services/score/index.js +52 -54
- package/lib/esm/services/score/index.js.map +1 -0
- package/lib/esm/services/sso/index.d.ts +26 -0
- package/lib/esm/services/sso/index.d.ts.map +1 -0
- package/lib/esm/services/sso/index.js +38 -42
- package/lib/esm/services/sso/index.js.map +1 -0
- package/lib/esm/services/suggestion/index.d.ts +36 -0
- package/lib/esm/services/suggestion/index.d.ts.map +1 -0
- package/lib/esm/services/suggestion/index.js +58 -65
- package/lib/esm/services/suggestion/index.js.map +1 -0
- package/lib/esm/services/tag/index.d.ts +67 -0
- package/lib/esm/services/tag/index.d.ts.map +1 -0
- package/lib/esm/services/tag/index.js +106 -123
- package/lib/esm/services/tag/index.js.map +1 -0
- package/lib/esm/services/user/index.d.ts +351 -0
- package/lib/esm/services/user/index.d.ts.map +1 -0
- package/lib/esm/services/user/index.js +602 -719
- package/lib/esm/services/user/index.js.map +1 -0
- package/lib/esm/services/webhook/index.d.ts +99 -0
- package/lib/esm/services/webhook/index.d.ts.map +1 -0
- package/lib/esm/services/webhook/index.js +160 -197
- package/lib/esm/services/webhook/index.js.map +1 -0
- package/lib/esm/types/baseParams.d.ts +23 -0
- package/lib/esm/types/baseParams.d.ts.map +1 -0
- package/lib/esm/types/baseParams.js +5 -3
- package/lib/esm/types/baseParams.js.map +1 -0
- package/lib/esm/types/category.d.ts +15 -0
- package/lib/esm/types/category.d.ts.map +1 -0
- package/lib/esm/types/category.js +2 -3
- package/lib/esm/types/category.js.map +1 -0
- package/lib/esm/types/comment.d.ts +51 -0
- package/lib/esm/types/comment.d.ts.map +1 -0
- package/lib/esm/types/comment.js +2 -3
- package/lib/esm/types/comment.js.map +1 -0
- package/lib/esm/types/customAdv.d.ts +19 -0
- package/lib/esm/types/customAdv.d.ts.map +1 -0
- package/lib/esm/types/customAdv.js +2 -3
- package/lib/esm/types/customAdv.js.map +1 -0
- package/lib/esm/types/customPage.d.ts +24 -0
- package/lib/esm/types/customPage.d.ts.map +1 -0
- package/lib/esm/types/customPage.js +2 -3
- package/lib/esm/types/customPage.js.map +1 -0
- package/lib/esm/types/embed.d.ts +26 -0
- package/lib/esm/types/embed.d.ts.map +1 -0
- package/lib/esm/types/embed.js +2 -3
- package/lib/esm/types/embed.js.map +1 -0
- package/lib/esm/types/feature.d.ts +11 -0
- package/lib/esm/types/feature.d.ts.map +1 -0
- package/lib/esm/types/feature.js +2 -0
- package/lib/esm/types/feature.js.map +1 -0
- package/lib/esm/types/feed.d.ts +11 -0
- package/lib/esm/types/feed.d.ts.map +1 -0
- package/lib/esm/types/feed.js +2 -3
- package/lib/esm/types/feed.js.map +1 -0
- package/lib/esm/types/feedObject.d.ts +56 -0
- package/lib/esm/types/feedObject.d.ts.map +1 -0
- package/lib/esm/types/feedObject.js +2 -3
- package/lib/esm/types/feedObject.js.map +1 -0
- package/lib/esm/types/incubator.d.ts +33 -0
- package/lib/esm/types/incubator.d.ts.map +1 -0
- package/lib/esm/types/incubator.js +2 -3
- package/lib/esm/types/incubator.js.map +1 -0
- package/lib/esm/types/index.d.ts +25 -0
- package/lib/esm/types/index.d.ts.map +1 -0
- package/lib/esm/types/index.js +3 -102
- package/lib/esm/types/index.js.map +1 -0
- package/lib/esm/types/insight.d.ts +67 -0
- package/lib/esm/types/insight.d.ts.map +1 -0
- package/lib/esm/types/insight.js +2 -0
- package/lib/esm/types/insight.js.map +1 -0
- package/lib/esm/types/legalPage.d.ts +19 -0
- package/lib/esm/types/legalPage.d.ts.map +1 -0
- package/lib/esm/types/legalPage.js +2 -3
- package/lib/esm/types/legalPage.js.map +1 -0
- package/lib/esm/types/media.d.ts +67 -0
- package/lib/esm/types/media.d.ts.map +1 -0
- package/lib/esm/types/media.js +6 -28
- package/lib/esm/types/media.js.map +1 -0
- package/lib/esm/types/moderation.d.ts +23 -0
- package/lib/esm/types/moderation.d.ts.map +1 -0
- package/lib/esm/types/moderation.js +2 -3
- package/lib/esm/types/moderation.js.map +1 -0
- package/lib/esm/types/notification.d.ts +31 -0
- package/lib/esm/types/notification.d.ts.map +1 -0
- package/lib/esm/types/notification.js +2 -3
- package/lib/esm/types/notification.js.map +1 -0
- package/lib/esm/types/paginatedResponse.d.ts +10 -0
- package/lib/esm/types/paginatedResponse.d.ts.map +1 -0
- package/lib/esm/types/paginatedResponse.js +5 -3
- package/lib/esm/types/paginatedResponse.js.map +1 -0
- package/lib/esm/types/privateMessage.d.ts +176 -0
- package/lib/esm/types/privateMessage.d.ts.map +1 -0
- package/lib/esm/types/privateMessage.js +2 -3
- package/lib/esm/types/privateMessage.js.map +1 -0
- package/lib/esm/types/prize.d.ts +47 -0
- package/lib/esm/types/prize.d.ts.map +1 -0
- package/lib/esm/types/prize.js +2 -3
- package/lib/esm/types/prize.js.map +1 -0
- package/lib/esm/types/score.d.ts +19 -0
- package/lib/esm/types/score.d.ts.map +1 -0
- package/lib/esm/types/score.js +2 -0
- package/lib/esm/types/score.js.map +1 -0
- package/lib/esm/types/sso.d.ts +12 -0
- package/lib/esm/types/sso.d.ts.map +1 -0
- package/lib/esm/types/sso.js +5 -3
- package/lib/esm/types/sso.js.map +1 -0
- package/lib/esm/types/tag.d.ts +61 -0
- package/lib/esm/types/tag.d.ts.map +1 -0
- package/lib/esm/types/tag.js +2 -3
- package/lib/esm/types/tag.js.map +1 -0
- package/lib/esm/types/user.d.ts +105 -0
- package/lib/esm/types/user.d.ts.map +1 -0
- package/lib/esm/types/user.js +2 -3
- package/lib/esm/types/user.js.map +1 -0
- package/lib/esm/types/webhook.d.ts +32 -0
- package/lib/esm/types/webhook.d.ts.map +1 -0
- package/lib/esm/types/webhook.js +2 -3
- package/lib/esm/types/webhook.js.map +1 -0
- package/lib/esm/utils/apiRequest.d.ts +2 -0
- package/lib/esm/utils/apiRequest.d.ts.map +1 -0
- package/lib/esm/utils/apiRequest.js +21 -27
- package/lib/esm/utils/apiRequest.js.map +1 -0
- package/lib/esm/utils/http.d.ts +6 -0
- package/lib/esm/utils/http.d.ts.map +1 -0
- package/lib/esm/utils/http.js +39 -48
- package/lib/esm/utils/http.js.map +1 -0
- package/lib/esm/utils/token.d.ts +21 -0
- package/lib/esm/utils/token.d.ts.map +1 -0
- package/lib/esm/utils/token.js +36 -33
- package/lib/esm/utils/token.js.map +1 -0
- package/lib/umd/api-services.js +1 -1
- package/lib/umd/api-services.js.map +1 -1
- package/package.json +7 -9
- package/lib/cjs/index.d.js +0 -2
- package/lib/esm/index.d.js +0 -2
- package/lib/types/services/comment/index.d.ts.map +0 -1
- package/lib/types/services/custom_adv/index.d.ts.map +0 -1
- package/lib/types/services/embed/index.d.ts.map +0 -1
- package/lib/types/services/feature/index.d.ts +0 -18
- package/lib/types/services/feature/index.d.ts.map +0 -1
- package/lib/types/services/feed_object/index.d.ts.map +0 -1
- package/lib/types/services/insight/index.d.ts.map +0 -1
- package/lib/types/services/locality/index.d.ts +0 -24
- package/lib/types/services/locality/index.d.ts.map +0 -1
- package/lib/types/services/loyalty/index.d.ts.map +0 -1
- package/lib/types/services/notification/index.d.ts.map +0 -1
- package/lib/types/services/score/index.d.ts +0 -31
- package/lib/types/services/score/index.d.ts.map +0 -1
- package/lib/types/services/tag/index.d.ts.map +0 -1
- package/lib/types/services/user/index.d.ts.map +0 -1
- package/lib/types/tsconfig.build.tsbuildinfo +0 -1
- package/lib/types/types/tag.d.ts.map +0 -1
- package/lib/types/utils/apiRequest.d.ts +0 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { SCUserModerationType, SCUserStatus, SCFlaggedContributionType, SCFlagType, SCFlagTypeEnum, SCContributionType } from '@selfcommunity/types';
|
|
2
|
+
import { ModerateContributionParams, SCPaginatedResponse } from '../../types';
|
|
3
|
+
import { SCContributionStatus } from '@selfcommunity/types';
|
|
4
|
+
export interface ModerationApiClientInterface {
|
|
5
|
+
getUsersForModeration(): Promise<SCPaginatedResponse<SCUserModerationType>>;
|
|
6
|
+
moderateASpecificUser(id: number, status: SCUserStatus): Promise<any>;
|
|
7
|
+
getAllFlaggedContributions(): Promise<SCPaginatedResponse<SCFlaggedContributionType>>;
|
|
8
|
+
getAllFlagsForSpecificContribution(id: number, contribution_type: SCContributionType, flag_type?: SCFlagTypeEnum): Promise<SCPaginatedResponse<SCFlagType>>;
|
|
9
|
+
moderateAContribution(id: number, data: ModerateContributionParams): Promise<any>;
|
|
10
|
+
getContributionModerationStatus(id: number, contribution_type: SCContributionType): Promise<SCContributionStatus>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Contains all the endpoints needed to manage moderation.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ModerationApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint retrieves all users for moderation purpose.
|
|
18
|
+
*/
|
|
19
|
+
static getUsersForModeration(): Promise<SCPaginatedResponse<SCUserModerationType>>;
|
|
20
|
+
/**
|
|
21
|
+
* This endpoint performs users moderation.
|
|
22
|
+
* @param id
|
|
23
|
+
* @param status
|
|
24
|
+
*/
|
|
25
|
+
static moderateASpecificUser(id: number, status: SCUserStatus): Promise<any>;
|
|
26
|
+
/**
|
|
27
|
+
* This endpoint retrieves all flagged contributions.
|
|
28
|
+
*/
|
|
29
|
+
static getAllFlaggedContributions(): Promise<SCPaginatedResponse<SCFlaggedContributionType>>;
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint retrieves all flags for a specific contribution.
|
|
32
|
+
* @param id
|
|
33
|
+
* @param contribution_type
|
|
34
|
+
* @param flag_type
|
|
35
|
+
*/
|
|
36
|
+
static getAllFlagsForSpecificContribution(id: number, contribution_type: SCContributionType, flag_type?: SCFlagTypeEnum): Promise<SCPaginatedResponse<SCFlagType>>;
|
|
37
|
+
/**
|
|
38
|
+
* This endpoint provides actions for flagged contributions moderation.
|
|
39
|
+
* @param id
|
|
40
|
+
* @param data
|
|
41
|
+
*/
|
|
42
|
+
static moderateAContribution(id: number, data: ModerateContributionParams): Promise<any>;
|
|
43
|
+
/**
|
|
44
|
+
* This endpoint retrieves moderation status for a specific contribution.
|
|
45
|
+
* @param id
|
|
46
|
+
* @param contribution_type
|
|
47
|
+
*/
|
|
48
|
+
static getContributionModerationStatus(id: number, contribution_type: SCContributionType): Promise<SCContributionStatus>;
|
|
49
|
+
}
|
|
50
|
+
export default class ModerationService {
|
|
51
|
+
static getUsersForModeration(): Promise<SCPaginatedResponse<SCUserModerationType>>;
|
|
52
|
+
static moderateASpecificUser(id: number, status: SCUserStatus): Promise<any>;
|
|
53
|
+
static getAllFlaggedContributions(): Promise<SCPaginatedResponse<SCFlaggedContributionType>>;
|
|
54
|
+
static getAllFlagsForSpecificContribution(id: number, contribution_type: SCContributionType, flag_type?: SCFlagTypeEnum): Promise<SCPaginatedResponse<SCFlagType>>;
|
|
55
|
+
static moderateAContribution(id: number, data: ModerateContributionParams): Promise<any>;
|
|
56
|
+
static getContributionModerationStatus(id: number, contribution_type: SCContributionType): Promise<SCContributionStatus>;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/moderation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAE,YAAY,EAAE,yBAAyB,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACnJ,OAAO,EAAC,0BAA0B,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC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H,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,GAAG,CAAC;IAIxF;;;;OAIG;IACH,MAAM,CAAC,+BAA+B,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAGzH;AAED,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;WAG3E,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC;WAGrE,0BAA0B,IAAI,OAAO,CAAC,mBAAmB,CAAC,yBAAyB,CAAC,CAAC;WAGrF,kCAAkC,CAC7C,EAAE,EAAE,MAAM,EACV,iBAAiB,EAAE,kBAAkB,EACrC,SAAS,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;WAG9B,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,GAAG,CAAC;WAGjF,+BAA+B,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG/H"}
|
|
@@ -1,118 +1,96 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { apiRequest } from '../../utils/apiRequest';
|
|
11
|
+
import Endpoints from '../../constants/Endpoints';
|
|
12
12
|
/**
|
|
13
13
|
* Contains all the endpoints needed to manage moderation.
|
|
14
14
|
*/
|
|
15
|
-
class ModerationApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
* @param data
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
static moderateAContribution(id, data) {
|
|
68
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.ModerateContribution.url({
|
|
69
|
-
id
|
|
70
|
-
}), _Endpoints.default.ModerateContribution.method, data);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* This endpoint retrieves moderation status for a specific contribution.
|
|
74
|
-
* @param id
|
|
75
|
-
* @param contribution_type
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
static getContributionModerationStatus(id, contribution_type) {
|
|
80
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.ModerateContributionStatus.url({
|
|
81
|
-
id
|
|
82
|
-
}), _Endpoints.default.ModerateContributionStatus.method, {
|
|
83
|
-
contribution_type: contribution_type
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
15
|
+
export class ModerationApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint retrieves all users for moderation purpose.
|
|
18
|
+
*/
|
|
19
|
+
static getUsersForModeration() {
|
|
20
|
+
return apiRequest(Endpoints.UsersForModeration.url({}), Endpoints.UsersForModeration.method);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint performs users moderation.
|
|
24
|
+
* @param id
|
|
25
|
+
* @param status
|
|
26
|
+
*/
|
|
27
|
+
static moderateASpecificUser(id, status) {
|
|
28
|
+
return apiRequest(Endpoints.ModerateUser.url({ id }), Endpoints.ModerateUser.method, { status: status });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint retrieves all flagged contributions.
|
|
32
|
+
*/
|
|
33
|
+
static getAllFlaggedContributions() {
|
|
34
|
+
return apiRequest(Endpoints.FlaggedContributions.url({}), Endpoints.FlaggedContributions.method);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* This endpoint retrieves all flags for a specific contribution.
|
|
38
|
+
* @param id
|
|
39
|
+
* @param contribution_type
|
|
40
|
+
* @param flag_type
|
|
41
|
+
*/
|
|
42
|
+
static getAllFlagsForSpecificContribution(id, contribution_type, flag_type) {
|
|
43
|
+
return apiRequest(Endpoints.FlagsForSpecificContribution.url({ id, contribution_type }), Endpoints.FlagsForSpecificContribution.method, {
|
|
44
|
+
flag_type: flag_type !== null && flag_type !== void 0 ? flag_type : null
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* This endpoint provides actions for flagged contributions moderation.
|
|
49
|
+
* @param id
|
|
50
|
+
* @param data
|
|
51
|
+
*/
|
|
52
|
+
static moderateAContribution(id, data) {
|
|
53
|
+
return apiRequest(Endpoints.ModerateContribution.url({ id }), Endpoints.ModerateContribution.method, data);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* This endpoint retrieves moderation status for a specific contribution.
|
|
57
|
+
* @param id
|
|
58
|
+
* @param contribution_type
|
|
59
|
+
*/
|
|
60
|
+
static getContributionModerationStatus(id, contribution_type) {
|
|
61
|
+
return apiRequest(Endpoints.ModerateContributionStatus.url({ id, contribution_type }), Endpoints.ModerateContributionStatus.method);
|
|
62
|
+
}
|
|
87
63
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
64
|
+
export default class ModerationService {
|
|
65
|
+
static getUsersForModeration() {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
return ModerationApiClient.getUsersForModeration();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
static moderateASpecificUser(id, status) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
return ModerationApiClient.moderateASpecificUser(id, status);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
static getAllFlaggedContributions() {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
return ModerationApiClient.getAllFlaggedContributions();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
static getAllFlagsForSpecificContribution(id, contribution_type, flag_type) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
return ModerationApiClient.getAllFlagsForSpecificContribution(id, contribution_type, flag_type);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
static moderateAContribution(id, data) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
return ModerationApiClient.moderateAContribution(id, data);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
static getContributionModerationStatus(id, contribution_type) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return ModerationApiClient.getContributionModerationStatus(id, contribution_type);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
116
95
|
}
|
|
117
|
-
|
|
118
|
-
exports.default = ModerationService;
|
|
96
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/moderation/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAiBlD;;GAEG;AAEH,MAAM,OAAO,mBAAmB;IAC9B;;OAEG;IACH,MAAM,CAAC,qBAAqB;QAC1B,OAAO,UAAU,CAAC,SAAS,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC/F,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,qBAAqB,CAAC,EAAU,EAAE,MAAoB;QAC3D,OAAO,UAAU,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,EAAC,EAAE,EAAC,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,MA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;YACrC,OAAO,mBAAmB,CAAC,0BAA0B,EAAE,CAAC;QAC1D,CAAC;KAAA;IACD,MAAM,CAAO,kCAAkC,CAC7C,EAAU,EACV,iBAAqC,EACrC,SAA0B;;YAE1B,OAAO,mBAAmB,CAAC,kCAAkC,CAAC,EAAE,EAAE,iBAAiB,EAAE,SAAS,CAAC,CAAC;QAClG,CAAC;KAAA;IACD,MAAM,CAAO,qBAAqB,CAAC,EAAU,EAAE,IAAgC;;YAC7E,OAAO,mBAAmB,CAAC,qBAAqB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC7D,CAAC;KAAA;IACD,MAAM,CAAO,+BAA+B,CAAC,EAAU,EAAE,iBAAqC;;YAC5F,OAAO,mBAAmB,CAAC,+BAA+B,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC;QACpF,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { SCBroadcastMessageType, SCNotificationAggregatedType, SCNotificationUnseenCountType } from '@selfcommunity/types';
|
|
2
|
+
import { CustomNotificationParams, SCPaginatedResponse } from '../../types';
|
|
3
|
+
export interface NotificationApiClientInterface {
|
|
4
|
+
listUserNotification(): Promise<SCPaginatedResponse<SCNotificationAggregatedType>>;
|
|
5
|
+
markReadNotification(sids: string[]): Promise<any>;
|
|
6
|
+
getUnseenNotification(): Promise<SCNotificationUnseenCountType>;
|
|
7
|
+
createCustomNotification(data: CustomNotificationParams): Promise<any>;
|
|
8
|
+
listBroadcastMessages(): Promise<SCPaginatedResponse<SCBroadcastMessageType>>;
|
|
9
|
+
listBroadcastMessagesUnseenCount(): Promise<SCNotificationUnseenCountType>;
|
|
10
|
+
listBroadcastMessagesUndisposedCount(): Promise<SCNotificationUnseenCountType>;
|
|
11
|
+
markReadBroadcastMessages(banner_ids: number[]): Promise<any>;
|
|
12
|
+
disposeBroadcastMessages(banner_ids: number[]): Promise<any>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Contains all the endpoints needed to manage notifications.
|
|
16
|
+
*/
|
|
17
|
+
export declare class NotificationApiClient {
|
|
18
|
+
/**
|
|
19
|
+
* List all user notifications (in aggregate form) related to the community.
|
|
20
|
+
*/
|
|
21
|
+
static listUserNotification(): Promise<SCPaginatedResponse<SCNotificationAggregatedType>>;
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint marks as read a list of notifications identified by serialization_ids (sids).
|
|
24
|
+
* @param sids
|
|
25
|
+
*/
|
|
26
|
+
static markReadNotification(sids: string[]): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* This endpoint retrieves the number of unseen/unread notifications.
|
|
29
|
+
*/
|
|
30
|
+
static getUnseenNotification(): Promise<SCNotificationUnseenCountType>;
|
|
31
|
+
/**
|
|
32
|
+
* This endpoint generates a custom notification starting from the user. The recipients of the notification can be the user's friends/followers or the user himself (based on recipients_type value). Es. connections -> "user" added an item to the wishlist.
|
|
33
|
+
* @param data
|
|
34
|
+
*/
|
|
35
|
+
static createCustomNotification(data: CustomNotificationParams): Promise<any>;
|
|
36
|
+
/**
|
|
37
|
+
* This endpoint lists all broadcast messages. Broadcast Message is a feature which allows a specific user to send messages and announcements to a larger group of users at once.
|
|
38
|
+
*/
|
|
39
|
+
static listBroadcastMessages(): Promise<SCPaginatedResponse<SCBroadcastMessageType>>;
|
|
40
|
+
/**
|
|
41
|
+
* This endpoint retrieves the total number of broadcast messages not yet seen by the user.
|
|
42
|
+
*/
|
|
43
|
+
static listBroadcastMessagesUnseenCount(): Promise<SCNotificationUnseenCountType>;
|
|
44
|
+
/**
|
|
45
|
+
* This endpoint retrieves the total number of broadcast messages not yet disposed by the user.
|
|
46
|
+
*/
|
|
47
|
+
static listBroadcastMessagesUndisposedCount(): Promise<SCNotificationUnseenCountType>;
|
|
48
|
+
/**
|
|
49
|
+
* This endpoint marks as viewed/read a broadcast message for a user.
|
|
50
|
+
* @param banner_ids
|
|
51
|
+
*/
|
|
52
|
+
static markReadBroadcastMessages(banner_ids: number[]): Promise<any>;
|
|
53
|
+
/**
|
|
54
|
+
* This endpoint disposes a broadcast message for a user.
|
|
55
|
+
* @param banner_ids
|
|
56
|
+
*/
|
|
57
|
+
static disposeBroadcastMessages(banner_ids: number[]): Promise<any>;
|
|
58
|
+
}
|
|
59
|
+
export default class NotificationService {
|
|
60
|
+
static listUserNotification(): Promise<SCPaginatedResponse<SCNotificationAggregatedType>>;
|
|
61
|
+
static markReadNotification(sids: string[]): Promise<any>;
|
|
62
|
+
static getUnseenNotification(): Promise<SCNotificationUnseenCountType>;
|
|
63
|
+
static createCustomNotification(data: CustomNotificationParams): Promise<any>;
|
|
64
|
+
static listBroadcastMessages(): Promise<SCPaginatedResponse<SCBroadcastMessageType>>;
|
|
65
|
+
static listBroadcastMessagesUnseenCount(): Promise<SCNotificationUnseenCountType>;
|
|
66
|
+
static listBroadcastMessagesUndisposedCount(): Promise<SCNotificationUnseenCountType>;
|
|
67
|
+
static disposeBroadcastMessages(banner_ids: number[]): Promise<any>;
|
|
68
|
+
static markReadBroadcastMessages(banner_ids: number[]): Promise<any>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/notification/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,sBAAsB,EAAE,4BAA4B,EAAE,6BAA6B,EAAC,MAAM,sBAAsB,CAAC;AACzH,OAAO,EAAC,wBAAwB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,8BAA8B;IAC7C,oBAAoB,IAAI,OAAO,CAAC,mBAAmB,CAAC,4BAA4B,CAAC,CAAC,CAAC;IACnF,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,qBAAqB,IAAI,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAChE,wBAAwB,CAAC,IAAI,EAA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;CAGpE;AAED,MAAM,CAAC,OAAO,OAAO,mBAAmB;WACzB,oBAAoB,IAAI,OAAO,CAAC,mBAAmB,CAAC,4BAA4B,CAAC,CAAC;WAGlF,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;WAGlD,qBAAqB,IAAI,OAAO,CAAC,6BAA6B,CAAC;WAG/D,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,GAAG,CAAC;WAGtE,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;WAG7E,gCAAgC,IAAI,OAAO,CAAC,6BAA6B,CAAC;WAG1E,oCAAoC,IAAI,OAAO,CAAC,6BAA6B,CAAC;WAG9E,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;WAG5D,yBAAyB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAG3E"}
|
|
@@ -1,140 +1,122 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { apiRequest } from '../../utils/apiRequest';
|
|
11
|
+
import Endpoints from '../../constants/Endpoints';
|
|
12
12
|
/**
|
|
13
13
|
* Contains all the endpoints needed to manage notifications.
|
|
14
14
|
*/
|
|
15
|
-
class NotificationApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* This endpoint marks as viewed/read a broadcast message for a user.
|
|
76
|
-
* @param banner_ids
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
static markReadBroadcastMessages(banner_ids) {
|
|
81
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.BroadcastMessagesMarkRead.url({}), _Endpoints.default.BroadcastMessagesMarkRead.method, {
|
|
82
|
-
banner_ids: banner_ids
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* This endpoint disposes a broadcast message for a user.
|
|
87
|
-
* @param banner_ids
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
static disposeBroadcastMessages(banner_ids) {
|
|
92
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.BroadcastMessagesDispose.url({}), _Endpoints.default.BroadcastMessagesDispose.method, {
|
|
93
|
-
banner_ids: banner_ids
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
|
|
15
|
+
export class NotificationApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* List all user notifications (in aggregate form) related to the community.
|
|
18
|
+
*/
|
|
19
|
+
static listUserNotification() {
|
|
20
|
+
return apiRequest(Endpoints.UserNotificationList.url({}), Endpoints.UserNotificationList.method);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint marks as read a list of notifications identified by serialization_ids (sids).
|
|
24
|
+
* @param sids
|
|
25
|
+
*/
|
|
26
|
+
static markReadNotification(sids) {
|
|
27
|
+
return apiRequest(Endpoints.UserMarkReadNotification.url({}), Endpoints.UserMarkReadNotification.method, { sids: sids });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* This endpoint retrieves the number of unseen/unread notifications.
|
|
31
|
+
*/
|
|
32
|
+
static getUnseenNotification() {
|
|
33
|
+
return apiRequest(Endpoints.UserUnseenNotificationCount.url({}), Endpoints.UserUnseenNotificationCount.method);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* This endpoint generates a custom notification starting from the user. The recipients of the notification can be the user's friends/followers or the user himself (based on recipients_type value). Es. connections -> "user" added an item to the wishlist.
|
|
37
|
+
* @param data
|
|
38
|
+
*/
|
|
39
|
+
static createCustomNotification(data) {
|
|
40
|
+
return apiRequest(Endpoints.CreateCustomNotification.url({}), Endpoints.CreateCustomNotification.method, data);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* This endpoint lists all broadcast messages. Broadcast Message is a feature which allows a specific user to send messages and announcements to a larger group of users at once.
|
|
44
|
+
*/
|
|
45
|
+
static listBroadcastMessages() {
|
|
46
|
+
return apiRequest(Endpoints.BroadcastMessagesList.url({}), Endpoints.BroadcastMessagesList.method);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* This endpoint retrieves the total number of broadcast messages not yet seen by the user.
|
|
50
|
+
*/
|
|
51
|
+
static listBroadcastMessagesUnseenCount() {
|
|
52
|
+
return apiRequest(Endpoints.BroadcastMessagesUnseenCount.url({}), Endpoints.BroadcastMessagesUnseenCount.method);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* This endpoint retrieves the total number of broadcast messages not yet disposed by the user.
|
|
56
|
+
*/
|
|
57
|
+
static listBroadcastMessagesUndisposedCount() {
|
|
58
|
+
return apiRequest(Endpoints.BroadcastMessagesUndisposedCount.url({}), Endpoints.BroadcastMessagesUndisposedCount.method);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* This endpoint marks as viewed/read a broadcast message for a user.
|
|
62
|
+
* @param banner_ids
|
|
63
|
+
*/
|
|
64
|
+
static markReadBroadcastMessages(banner_ids) {
|
|
65
|
+
return apiRequest(Endpoints.BroadcastMessagesMarkRead.url({}), Endpoints.BroadcastMessagesMarkRead.method, { banner_ids: banner_ids });
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* This endpoint disposes a broadcast message for a user.
|
|
69
|
+
* @param banner_ids
|
|
70
|
+
*/
|
|
71
|
+
static disposeBroadcastMessages(banner_ids) {
|
|
72
|
+
return apiRequest(Endpoints.BroadcastMessagesDispose.url({}), Endpoints.BroadcastMessagesDispose.method, { banner_ids: banner_ids });
|
|
73
|
+
}
|
|
97
74
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
75
|
+
export default class NotificationService {
|
|
76
|
+
static listUserNotification() {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
return NotificationApiClient.listUserNotification();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
static markReadNotification(sids) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return NotificationApiClient.markReadNotification(sids);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
static getUnseenNotification() {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
return NotificationApiClient.getUnseenNotification();
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
static createCustomNotification(data) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
return NotificationApiClient.createCustomNotification(data);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
static listBroadcastMessages() {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
return NotificationApiClient.listBroadcastMessages();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
static listBroadcastMessagesUnseenCount() {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return NotificationApiClient.listBroadcastMessagesUnseenCount();
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
static listBroadcastMessagesUndisposedCount() {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
return NotificationApiClient.listBroadcastMessagesUndisposedCount();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
static disposeBroadcastMessages(banner_ids) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
return NotificationApiClient.disposeBroadcastMessages(banner_ids);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
static markReadBroadcastMessages(banner_ids) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return NotificationApiClient.markReadBroadcastMessages(banner_ids);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
138
121
|
}
|
|
139
|
-
|
|
140
|
-
exports.default = NotificationService;
|
|
122
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/notification/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAelD;;GAEG;AAEH,MAAM,OAAO,qBAAqB;IAChC;;OAEG;IACH,MAAM,CAAC,oBAAoB;QACzB,OAAO,UAAU,CAAC,SAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,IAAc;QACxC,OAAO,UAAU,CAAC,SAAS,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,wBAAwB,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;IACzH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,qBAAqB;QAC1B,OAAO,UAAU,CAAC,SAAS,CAAC,2BAA2B,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;IACjH,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,wBA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