@selfcommunity/api-services 0.1.7 → 0.1.8-alpha.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/{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 +134 -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 +5 -2
- package/lib/cjs/types/index.d.ts.map +1 -0
- package/lib/cjs/types/index.js +6 -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 +0 -0
- package/lib/{types → cjs}/types/media.d.ts.map +0 -0
- package/lib/cjs/types/media.js +22 -26
- 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 +80 -0
- package/lib/esm/types/media.d.ts.map +1 -0
- package/lib/esm/types/media.js +20 -27
- 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/index.d.ts.map +0 -1
- package/lib/types/types/tag.d.ts.map +0 -1
- package/lib/types/utils/apiRequest.d.ts +0 -2
|
@@ -1,59 +1,57 @@
|
|
|
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 user scores.
|
|
14
14
|
*/
|
|
15
|
-
class ScoreApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
15
|
+
export class ScoreApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint retrieves all users scores.
|
|
18
|
+
* @param params
|
|
19
|
+
*/
|
|
20
|
+
static getAllScores(params) {
|
|
21
|
+
const p = new URLSearchParams(params);
|
|
22
|
+
return apiRequest(`${Endpoints.ScoresList.url({})}?${p.toString()}`, Endpoints.ScoresList.method);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* This endpoint performs search to user scores.
|
|
26
|
+
* @param params
|
|
27
|
+
*/
|
|
28
|
+
static searchScore(params) {
|
|
29
|
+
const p = new URLSearchParams(params);
|
|
30
|
+
return apiRequest(`${Endpoints.SearchScore.url({})}?${p.toString()}`, Endpoints.SearchScore.method);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* This endpoint adds/removes score to a user.
|
|
34
|
+
* @param data
|
|
35
|
+
*/
|
|
36
|
+
static addScore(data) {
|
|
37
|
+
return apiRequest(Endpoints.AddScore.url({}), Endpoints.AddScore.method, data);
|
|
38
|
+
}
|
|
40
39
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
40
|
+
export default class ScoreService {
|
|
41
|
+
static getAllScores(params) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return ScoreApiClient.getAllScores(params);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static searchScore(params) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return ScoreApiClient.searchScore(params);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
static addScore(data) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return ScoreApiClient.addScore(data);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
exports.default = ScoreService;
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/score/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AASlD;;GAEG;AAEH,MAAM,OAAO,cAAc;IACzB;;;OAGG;IACH,MAAM,CAAC,YAAY,CAAC,MAAoB;QACtC,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,MAAoB;QACrC,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACtG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAqB;QACnC,OAAO,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,MAAM,CAAO,YAAY,CAAC,MAAoB;;YAC5C,OAAO,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC7C,CAAC;KAAA;IACD,MAAM,CAAO,WAAW,CAAC,MAAoB;;YAC3C,OAAO,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC5C,CAAC;KAAA;IACD,MAAM,CAAO,QAAQ,CAAC,IAAqB;;YACzC,OAAO,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SSOSignInType, SSOSignUpType } from '@selfcommunity/types/src/types/sso';
|
|
2
|
+
import { SSOSignUpParams } from '../../types';
|
|
3
|
+
export interface SSOApiClientInterface {
|
|
4
|
+
SignIn(): Promise<SSOSignInType>;
|
|
5
|
+
SignUp(data: SSOSignUpParams): Promise<SSOSignUpType>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Contains all the endpoints needed to manage sso.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SSOApiClient {
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint signs in the user authenticated with the access token.
|
|
13
|
+
*/
|
|
14
|
+
static SignIn(): Promise<SSOSignInType>;
|
|
15
|
+
/**
|
|
16
|
+
* This endpoint creates a new account.
|
|
17
|
+
* Only users with the admin role can register new users.
|
|
18
|
+
* @param data
|
|
19
|
+
*/
|
|
20
|
+
static SignUp(data: SSOSignUpParams): Promise<SSOSignUpType>;
|
|
21
|
+
}
|
|
22
|
+
export default class SSOService {
|
|
23
|
+
static SignIn(): Promise<SSOSignInType>;
|
|
24
|
+
static SignUp(data: SSOSignUpParams): Promise<SSOSignUpType>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IACpC,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IACjC,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACvD;AACD;;GAEG;AAEH,qBAAa,YAAY;IACvB;;OAEG;IACH,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;IAIvC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;CAG7D;AAED,MAAM,CAAC,OAAO,OAAO,UAAU;WAChB,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;WAGhC,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;CAGnE"}
|
|
@@ -1,47 +1,43 @@
|
|
|
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 sso.
|
|
14
14
|
*/
|
|
15
|
-
class SSOApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
15
|
+
export class SSOApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint signs in the user authenticated with the access token.
|
|
18
|
+
*/
|
|
19
|
+
static SignIn() {
|
|
20
|
+
return apiRequest(Endpoints.SignIn.url({}), Endpoints.SignIn.method);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint creates a new account.
|
|
24
|
+
* Only users with the admin role can register new users.
|
|
25
|
+
* @param data
|
|
26
|
+
*/
|
|
27
|
+
static SignUp(data) {
|
|
28
|
+
return apiRequest(Endpoints.SignUp.url({}), Endpoints.SignUp.method, data);
|
|
29
|
+
}
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
export default class SSOService {
|
|
32
|
+
static SignIn() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
return SSOApiClient.SignIn();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
static SignUp(data) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return SSOApiClient.SignUp(data);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
45
42
|
}
|
|
46
|
-
|
|
47
|
-
exports.default = SSOService;
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAQlD;;GAEG;AAEH,MAAM,OAAO,YAAY;IACvB;;OAEG;IACH,MAAM,CAAC,MAAM;QACX,OAAO,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,IAAqB;QACjC,OAAO,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,MAAM,CAAO,MAAM;;YACjB,OAAO,YAAY,CAAC,MAAM,EAAE,CAAC;QAC/B,CAAC;KAAA;IACD,MAAM,CAAO,MAAM,CAAC,IAAqB;;YACvC,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SCPaginatedResponse } from '../../types';
|
|
2
|
+
import { SCCategoryType, SCFeedObjectType, SCIncubatorType, SCUserType } from '@selfcommunity/types';
|
|
3
|
+
export interface SuggestionApiClientInterface {
|
|
4
|
+
getCategorySuggestion(): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
5
|
+
getIncubatorSuggestion(): Promise<SCIncubatorType[]>;
|
|
6
|
+
getPollSuggestion(): Promise<SCFeedObjectType[]>;
|
|
7
|
+
getUserSuggestion(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Contains all the endpoints needed to manage suggestions.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SuggestionApiClient {
|
|
13
|
+
/**
|
|
14
|
+
* This endpoint retrieves a list of categories suggested to the current user.
|
|
15
|
+
*/
|
|
16
|
+
static getCategorySuggestion(): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
17
|
+
/**
|
|
18
|
+
* This endpoint retrieves a list of suggested incubators.
|
|
19
|
+
*/
|
|
20
|
+
static getIncubatorSuggestion(): Promise<SCIncubatorType[]>;
|
|
21
|
+
/**
|
|
22
|
+
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
23
|
+
*/
|
|
24
|
+
static getPollSuggestion(): Promise<SCFeedObjectType[]>;
|
|
25
|
+
/**
|
|
26
|
+
* This endpoint retrieves a list of users suggested to the current user.
|
|
27
|
+
*/
|
|
28
|
+
static getUserSuggestion(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
29
|
+
}
|
|
30
|
+
export default class SuggestionService {
|
|
31
|
+
static getCategorySuggestion(): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
32
|
+
static getIncubatorSuggestion(): Promise<SCIncubatorType[]>;
|
|
33
|
+
static getPollSuggestion(): Promise<SCFeedObjectType[]>;
|
|
34
|
+
static getUserSuggestion(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEnG,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC;IACtE,sBAAsB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IACrD,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACjD,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;CAC/D;AACD;;GAEG;AAEH,qBAAa,mBAAmB;IAC9B;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,sBAAsB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAI3D;;OAEG;IACH,MAAM,CAAC,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIvD;;OAEG;IACH,MAAM,CAAC,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;CAGrE;AAED,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;WAIrE,sBAAsB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;WAIpD,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;WAIhD,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;CAG3E"}
|
|
@@ -1,70 +1,63 @@
|
|
|
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 suggestions.
|
|
14
14
|
*/
|
|
15
|
-
class SuggestionApiClient {
|
|
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
|
-
static getUserSuggestion() {
|
|
44
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserSuggestion.url({}), _Endpoints.default.UserSuggestion.method);
|
|
45
|
-
}
|
|
46
|
-
|
|
15
|
+
export class SuggestionApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint retrieves a list of categories suggested to the current user.
|
|
18
|
+
*/
|
|
19
|
+
static getCategorySuggestion() {
|
|
20
|
+
return apiRequest(Endpoints.CategoriesSuggestion.url({}), Endpoints.CategoriesSuggestion.method);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint retrieves a list of suggested incubators.
|
|
24
|
+
*/
|
|
25
|
+
static getIncubatorSuggestion() {
|
|
26
|
+
return apiRequest(Endpoints.GetIncubatorSuggestion.url({}), Endpoints.GetIncubatorSuggestion.method);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
30
|
+
*/
|
|
31
|
+
static getPollSuggestion() {
|
|
32
|
+
return apiRequest(Endpoints.PollSuggestion.url({}), Endpoints.PollSuggestion.method);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* This endpoint retrieves a list of users suggested to the current user.
|
|
36
|
+
*/
|
|
37
|
+
static getUserSuggestion() {
|
|
38
|
+
return apiRequest(Endpoints.UserSuggestion.url({}), Endpoints.UserSuggestion.method);
|
|
39
|
+
}
|
|
47
40
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
41
|
+
export default class SuggestionService {
|
|
42
|
+
static getCategorySuggestion() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return SuggestionApiClient.getCategorySuggestion();
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
static getIncubatorSuggestion() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
return SuggestionApiClient.getIncubatorSuggestion();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
static getPollSuggestion() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
return SuggestionApiClient.getPollSuggestion();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
static getUserSuggestion() {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return SuggestionApiClient.getUserSuggestion();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
68
62
|
}
|
|
69
|
-
|
|
70
|
-
exports.default = SuggestionService;
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAUlD;;GAEG;AAEH,MAAM,OAAO,mBAAmB;IAC9B;;OAEG;IACH,MAAM,CAAC,qBAAqB;QAC1B,OAAO,UAAU,CAAC,SAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,sBAAsB;QAC3B,OAAO,UAAU,CAAC,SAAS,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB;QACtB,OAAO,UAAU,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB;QACtB,OAAO,UAAU,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACvF,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,MAAM,CAAO,qBAAqB;;YAChC,OAAO,mBAAmB,CAAC,qBAAqB,EAAE,CAAC;QACrD,CAAC;KAAA;IAED,MAAM,CAAO,sBAAsB;;YACjC,OAAO,mBAAmB,CAAC,sBAAsB,EAAE,CAAC;QACtD,CAAC;KAAA;IAED,MAAM,CAAO,iBAAiB;;YAC5B,OAAO,mBAAmB,CAAC,iBAAiB,EAAE,CAAC;QACjD,CAAC;KAAA;IAED,MAAM,CAAO,iBAAiB;;YAC5B,OAAO,mBAAmB,CAAC,iBAAiB,EAAE,CAAC;QACjD,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { TagParams, SCPaginatedResponse, TagGetParams } from '../../types';
|
|
2
|
+
import { SCTagType } from '@selfcommunity/types/src/types';
|
|
3
|
+
export interface TagApiClientInterface {
|
|
4
|
+
getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
5
|
+
createTag(data: TagParams): Promise<SCTagType>;
|
|
6
|
+
searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
7
|
+
getSpecificTag(id: number): Promise<SCTagType>;
|
|
8
|
+
updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
9
|
+
patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
10
|
+
assignATag(id: number, user?: number, category?: number): Promise<SCTagType>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Contains all the endpoints needed to manage tags.
|
|
14
|
+
* All endpoints require admin role.
|
|
15
|
+
*/
|
|
16
|
+
export declare class TagApiClient {
|
|
17
|
+
/**
|
|
18
|
+
* This endpoint retrieves all tags.
|
|
19
|
+
* @param params
|
|
20
|
+
*/
|
|
21
|
+
static getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint creates a tag
|
|
24
|
+
* @param data
|
|
25
|
+
*/
|
|
26
|
+
static createTag(data: TagParams): Promise<SCTagType>;
|
|
27
|
+
/**
|
|
28
|
+
* This endpoint performs tag search.
|
|
29
|
+
* @param params
|
|
30
|
+
*/
|
|
31
|
+
static searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
32
|
+
/**
|
|
33
|
+
* This endpoint retrieves a specific tag.
|
|
34
|
+
* @param id
|
|
35
|
+
*/
|
|
36
|
+
static getSpecificTag(id: number): Promise<SCTagType>;
|
|
37
|
+
/**
|
|
38
|
+
* This endpoint updates a specific tag.
|
|
39
|
+
* @param id
|
|
40
|
+
* @param data
|
|
41
|
+
*/
|
|
42
|
+
static updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
43
|
+
/**
|
|
44
|
+
* This endpoint patches a specific tag.
|
|
45
|
+
* @param id
|
|
46
|
+
* @param data
|
|
47
|
+
*/
|
|
48
|
+
static patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
49
|
+
/**
|
|
50
|
+
* This endpoint assigns a tag to a user or to a category.
|
|
51
|
+
* One param between "user" and "category" need to be passed to this endpoint.
|
|
52
|
+
* @param id
|
|
53
|
+
* @param user
|
|
54
|
+
* @param category
|
|
55
|
+
*/
|
|
56
|
+
static assignATag(id: number, user?: number, category?: number): Promise<SCTagType>;
|
|
57
|
+
}
|
|
58
|
+
export default class TagService {
|
|
59
|
+
static getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
60
|
+
static createTag(data: TagParams): Promise<SCTagType>;
|
|
61
|
+
static searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
62
|
+
static getSpecificTag(id: number): Promise<SCTagType>;
|
|
63
|
+
static updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
64
|
+
static patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
65
|
+
static assignATag(id: number, user?: number, category?: number): Promise<SCTagType>;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":"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"}
|