@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,47 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SSOApiClient = void 0;
|
|
16
|
+
const apiRequest_1 = require("../../utils/apiRequest");
|
|
17
|
+
const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
|
|
12
18
|
/**
|
|
13
19
|
* Contains all the endpoints needed to manage sso.
|
|
14
20
|
*/
|
|
15
21
|
class SSOApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint signs in the user authenticated with the access token.
|
|
24
|
+
*/
|
|
25
|
+
static SignIn() {
|
|
26
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.SignIn.url({}), Endpoints_1.default.SignIn.method);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This endpoint creates a new account.
|
|
30
|
+
* Only users with the admin role can register new users.
|
|
31
|
+
* @param data
|
|
32
|
+
*/
|
|
33
|
+
static SignUp(data) {
|
|
34
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.SignUp.url({}), Endpoints_1.default.SignUp.method, data);
|
|
35
|
+
}
|
|
32
36
|
}
|
|
33
|
-
|
|
34
37
|
exports.SSOApiClient = SSOApiClient;
|
|
35
|
-
|
|
36
38
|
class SSOService {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
static SignIn() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return SSOApiClient.SignIn();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
static SignUp(data) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
return SSOApiClient.SignUp(data);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
exports.default = SSOService;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/sso/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAkD;AAClD,0EAAkD;AAQlD;;GAEG;AAEH,MAAa,YAAY;IACvB;;OAEG;IACH,MAAM,CAAC,MAAM;QACX,OAAO,IAAA,uBAAU,EAAC,mBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,mBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,IAAqB;QACjC,OAAO,IAAA,uBAAU,EAAC,mBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,mBAAS,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;CACF;AAhBD,oCAgBC;AAED,MAAqB,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;AAPD,6BAOC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,70 +1,71 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SuggestionApiClient = void 0;
|
|
16
|
+
const apiRequest_1 = require("../../utils/apiRequest");
|
|
17
|
+
const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
|
|
12
18
|
/**
|
|
13
19
|
* Contains all the endpoints needed to manage suggestions.
|
|
14
20
|
*/
|
|
15
21
|
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
|
-
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint retrieves a list of categories suggested to the current user.
|
|
24
|
+
*/
|
|
25
|
+
static getCategorySuggestion() {
|
|
26
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoriesSuggestion.url({}), Endpoints_1.default.CategoriesSuggestion.method);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This endpoint retrieves a list of suggested incubators.
|
|
30
|
+
*/
|
|
31
|
+
static getIncubatorSuggestion() {
|
|
32
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetIncubatorSuggestion.url({}), Endpoints_1.default.GetIncubatorSuggestion.method);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.
|
|
36
|
+
*/
|
|
37
|
+
static getPollSuggestion() {
|
|
38
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.PollSuggestion.url({}), Endpoints_1.default.PollSuggestion.method);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* This endpoint retrieves a list of users suggested to the current user.
|
|
42
|
+
*/
|
|
43
|
+
static getUserSuggestion() {
|
|
44
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserSuggestion.url({}), Endpoints_1.default.UserSuggestion.method);
|
|
45
|
+
}
|
|
47
46
|
}
|
|
48
|
-
|
|
49
47
|
exports.SuggestionApiClient = SuggestionApiClient;
|
|
50
|
-
|
|
51
48
|
class SuggestionService {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
49
|
+
static getCategorySuggestion() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
return SuggestionApiClient.getCategorySuggestion();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
static getIncubatorSuggestion() {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return SuggestionApiClient.getIncubatorSuggestion();
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
static getPollSuggestion() {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
return SuggestionApiClient.getPollSuggestion();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
static getUserSuggestion() {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
return SuggestionApiClient.getUserSuggestion();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
exports.default = SuggestionService;
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/suggestion/index.ts"],"names":[],"mappings":";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D,oCAgBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TagParams, SCPaginatedResponse } from '../../types';
|
|
1
|
+
import { TagParams, SCPaginatedResponse, TagGetParams } from '../../types';
|
|
2
2
|
import { SCTagType } from '@selfcommunity/types/src/types';
|
|
3
3
|
export interface TagApiClientInterface {
|
|
4
|
-
getAllTags(): Promise<SCPaginatedResponse<SCTagType>>;
|
|
4
|
+
getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
5
5
|
createTag(data: TagParams): Promise<SCTagType>;
|
|
6
|
-
searchTag(): Promise<SCPaginatedResponse<SCTagType>>;
|
|
6
|
+
searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
7
7
|
getSpecificTag(id: number): Promise<SCTagType>;
|
|
8
8
|
updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
9
9
|
patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
@@ -11,12 +11,14 @@ export interface TagApiClientInterface {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Contains all the endpoints needed to manage tags.
|
|
14
|
+
* All endpoints require admin role.
|
|
14
15
|
*/
|
|
15
16
|
export declare class TagApiClient {
|
|
16
17
|
/**
|
|
17
18
|
* This endpoint retrieves all tags.
|
|
19
|
+
* @param params
|
|
18
20
|
*/
|
|
19
|
-
static getAllTags(): Promise<SCPaginatedResponse<SCTagType>>;
|
|
21
|
+
static getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
20
22
|
/**
|
|
21
23
|
* This endpoint creates a tag
|
|
22
24
|
* @param data
|
|
@@ -24,8 +26,9 @@ export declare class TagApiClient {
|
|
|
24
26
|
static createTag(data: TagParams): Promise<SCTagType>;
|
|
25
27
|
/**
|
|
26
28
|
* This endpoint performs tag search.
|
|
29
|
+
* @param params
|
|
27
30
|
*/
|
|
28
|
-
static searchTag(): Promise<SCPaginatedResponse<SCTagType>>;
|
|
31
|
+
static searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
29
32
|
/**
|
|
30
33
|
* This endpoint retrieves a specific tag.
|
|
31
34
|
* @param id
|
|
@@ -53,9 +56,9 @@ export declare class TagApiClient {
|
|
|
53
56
|
static assignATag(id: number, user?: number, category?: number): Promise<SCTagType>;
|
|
54
57
|
}
|
|
55
58
|
export default class TagService {
|
|
56
|
-
static getAllTags(): Promise<SCPaginatedResponse<SCTagType>>;
|
|
59
|
+
static getAllTags(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
57
60
|
static createTag(data: TagParams): Promise<SCTagType>;
|
|
58
|
-
static searchTag(): Promise<SCPaginatedResponse<SCTagType>>;
|
|
61
|
+
static searchTag(params?: TagGetParams): Promise<SCPaginatedResponse<SCTagType>>;
|
|
59
62
|
static getSpecificTag(id: number): Promise<SCTagType>;
|
|
60
63
|
static updateTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
61
64
|
static patchTag(id: number, data?: TagParams): Promise<SCTagType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAE,mBAAmB,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzE,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAEzD,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3E,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/C,SAAS,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1E,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO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AC;CAGpF;AAED,MAAM,CAAC,OAAO,OAAO,UAAU;WAChB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;WAG1E,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;WAG9C,SAAS,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;WAGzE,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;WAG9C,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;WAG3D,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;WAG1D,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;CAG1F"}
|
|
@@ -1,128 +1,119 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.TagApiClient = void 0;
|
|
16
|
+
const apiRequest_1 = require("../../utils/apiRequest");
|
|
17
|
+
const Endpoints_1 = __importDefault(require("../../constants/Endpoints"));
|
|
12
18
|
/**
|
|
13
19
|
* Contains all the endpoints needed to manage tags.
|
|
20
|
+
* All endpoints require admin role.
|
|
14
21
|
*/
|
|
15
22
|
class TagApiClient {
|
|
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
|
-
}), _Endpoints.default.PatchTag.method, data != null ? data : null);
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* This endpoint assigns a tag to a user or to a category.
|
|
76
|
-
* One param between "user" and "category" need to be passed to this endpoint.
|
|
77
|
-
* @param id
|
|
78
|
-
* @param user
|
|
79
|
-
* @param category
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
static assignATag(id, user, category) {
|
|
84
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.AssignTag.url({
|
|
85
|
-
id
|
|
86
|
-
}), _Endpoints.default.AssignTag.method, user ? {
|
|
87
|
-
user: user
|
|
88
|
-
} : {
|
|
89
|
-
category: category
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
23
|
+
/**
|
|
24
|
+
* This endpoint retrieves all tags.
|
|
25
|
+
* @param params
|
|
26
|
+
*/
|
|
27
|
+
static getAllTags(params) {
|
|
28
|
+
const p = new URLSearchParams(params);
|
|
29
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.TagsList.url({})}?${p.toString()}`, Endpoints_1.default.TagsList.method);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This endpoint creates a tag
|
|
33
|
+
* @param data
|
|
34
|
+
*/
|
|
35
|
+
static createTag(data) {
|
|
36
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CreateTag.url({}), Endpoints_1.default.CreateTag.method, data);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* This endpoint performs tag search.
|
|
40
|
+
* @param params
|
|
41
|
+
*/
|
|
42
|
+
static searchTag(params) {
|
|
43
|
+
const p = new URLSearchParams(params);
|
|
44
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.SearchTag.url({})}?${p.toString()}`, Endpoints_1.default.SearchTag.method);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* This endpoint retrieves a specific tag.
|
|
48
|
+
* @param id
|
|
49
|
+
*/
|
|
50
|
+
static getSpecificTag(id) {
|
|
51
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Tag.url({ id }), Endpoints_1.default.Tag.method);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* This endpoint updates a specific tag.
|
|
55
|
+
* @param id
|
|
56
|
+
* @param data
|
|
57
|
+
*/
|
|
58
|
+
static updateTag(id, data) {
|
|
59
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UpdateTag.url({ id }), Endpoints_1.default.UpdateTag.method, data !== null && data !== void 0 ? data : null);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* This endpoint patches a specific tag.
|
|
63
|
+
* @param id
|
|
64
|
+
* @param data
|
|
65
|
+
*/
|
|
66
|
+
static patchTag(id, data) {
|
|
67
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.PatchTag.url({ id }), Endpoints_1.default.PatchTag.method, data !== null && data !== void 0 ? data : null);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* This endpoint assigns a tag to a user or to a category.
|
|
71
|
+
* One param between "user" and "category" need to be passed to this endpoint.
|
|
72
|
+
* @param id
|
|
73
|
+
* @param user
|
|
74
|
+
* @param category
|
|
75
|
+
*/
|
|
76
|
+
static assignATag(id, user, category) {
|
|
77
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.AssignTag.url({ id }), Endpoints_1.default.AssignTag.method, user ? { user: user } : { category: category });
|
|
78
|
+
}
|
|
93
79
|
}
|
|
94
|
-
|
|
95
80
|
exports.TagApiClient = TagApiClient;
|
|
96
|
-
|
|
97
81
|
class TagService {
|
|
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
|
-
|
|
82
|
+
static getAllTags(params) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
return TagApiClient.getAllTags(params);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
static createTag(data) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
return TagApiClient.createTag(data);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
static searchTag(params) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
return TagApiClient.searchTag(params);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
static getSpecificTag(id) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
return TagApiClient.getSpecificTag(id);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
static updateTag(id, data) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
return TagApiClient.updateTag(id, data);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
static patchTag(id, data) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return TagApiClient.patchTag(id, data);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
static assignATag(id, user, category) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
return TagApiClient.assignATag(id, user, category);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
126
117
|
}
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
exports.default = TagService;
|
|
119
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/tag/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAkD;AAElD,0EAAkD;AAYlD;;;GAGG;AACH,MAAa,YAAY;IACvB;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,MAAqB;QACrC,MAAM,CAAC,GAAG,IAAI,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AgB;;YAChD,OAAO,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;KAAA;IACD,MAAM,CAAO,UAAU,CAAC,EAAU,EAAE,IAAa,EAAE,QAAiB;;YAClE,OAAO,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACF;AAtBD,6BAsBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SCUserAutocompleteType, SCUserType, SCUserCounterType, SCUserSettingsType, SCUserChangeEmailType, SCUserAvatarType, SCUserPermissionType, SCPlatformType, SCCategoryType, SCFeedUnitType, SCUserFollowedStatusType, SCUserFollowerStatusType, SCUserConnectionStatusType, SCUserHiddenStatusType, SCUserConnectionRequestType, SCTagType, SCUserLoyaltyPointsType, SCUserEmailTokenType, SCUserHiddenByStatusType, SCAvatarType, SCMediaType } from '@selfcommunity/types';
|
|
2
2
|
import { SCPaginatedResponse, UserAutocompleteParams, UserSearchParams } from '../../types';
|
|
3
3
|
export interface UserApiClientInterface {
|
|
4
|
-
getAllUsers(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
5
|
-
getHiddenUsers(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
4
|
+
getAllUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
|
|
5
|
+
getHiddenUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
|
|
6
6
|
userAutocomplete(params: UserAutocompleteParams): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;
|
|
7
7
|
userSearch(params: UserSearchParams): Promise<SCPaginatedResponse<SCUserType>>;
|
|
8
8
|
getSpecificUser(id: number): Promise<SCUserType>;
|
|
@@ -43,9 +43,9 @@ export interface UserApiClientInterface {
|
|
|
43
43
|
getUserLoyaltyPoints(id: number): Promise<SCUserLoyaltyPointsType>;
|
|
44
44
|
getUserConnectionStatuses(users: number[]): Promise<any>;
|
|
45
45
|
userTagToAddressContribution(): Promise<SCTagType>;
|
|
46
|
-
checkUserEmailToken(): Promise<SCUserEmailTokenType>;
|
|
46
|
+
checkUserEmailToken(email_token: string): Promise<SCUserEmailTokenType>;
|
|
47
47
|
addUserAvatar(avatar: SCMediaType): Promise<SCAvatarType>;
|
|
48
|
-
getUserAvatars(): Promise<SCAvatarType
|
|
48
|
+
getUserAvatars(): Promise<SCPaginatedResponse<SCAvatarType>>;
|
|
49
49
|
removeUserAvatar(avatar_id: number): Promise<any>;
|
|
50
50
|
setUserPrimaryAvatar(avatar_id: number): Promise<any>;
|
|
51
51
|
}
|
|
@@ -55,12 +55,14 @@ export interface UserApiClientInterface {
|
|
|
55
55
|
export declare class UserApiClient {
|
|
56
56
|
/**
|
|
57
57
|
* This endpoint retrieves the list of all users
|
|
58
|
+
* @param params
|
|
58
59
|
*/
|
|
59
|
-
static getAllUsers(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
60
|
+
static getAllUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
|
|
60
61
|
/**
|
|
61
62
|
* This endpoint retrieves the list of all users hidden by the authenticated user
|
|
63
|
+
* @param params
|
|
62
64
|
*/
|
|
63
|
-
static getHiddenUsers(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
65
|
+
static getHiddenUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
|
|
64
66
|
/**
|
|
65
67
|
* This endpoint retrieves the list of all users that meet the search criteria. The user object returned will contain only the following attributes: id, username, real_name, ext_id and avatar.
|
|
66
68
|
* This endpoint is recommended for implementing an autocomplete input field.
|
|
@@ -84,6 +86,7 @@ export declare class UserApiClient {
|
|
|
84
86
|
static getUserCounters(id: number): Promise<SCUserCounterType>;
|
|
85
87
|
/**
|
|
86
88
|
* This endpoint updates the profile of a user identified by ID. A user can only update their personal data.
|
|
89
|
+
* If the request will update the avatar or the cover the 'Content-Type' request header must be set as 'multipart/form-data', otherwise it can be 'application/x-www-form-urlencoded'.
|
|
87
90
|
* @param id
|
|
88
91
|
* @param data
|
|
89
92
|
*/
|
|
@@ -273,8 +276,9 @@ export declare class UserApiClient {
|
|
|
273
276
|
static userTagToAddressContribution(): Promise<SCTagType>;
|
|
274
277
|
/**
|
|
275
278
|
* This endpoint checks an email token.
|
|
279
|
+
* @param email_token
|
|
276
280
|
*/
|
|
277
|
-
static checkUserEmailToken(): Promise<SCUserEmailTokenType>;
|
|
281
|
+
static checkUserEmailToken(email_token: any): Promise<SCUserEmailTokenType>;
|
|
278
282
|
/**
|
|
279
283
|
* This endpoint adds an avatar to my avatars.
|
|
280
284
|
* @param avatar
|
|
@@ -283,7 +287,7 @@ export declare class UserApiClient {
|
|
|
283
287
|
/**
|
|
284
288
|
* This endpoint retrieves all user avatars.
|
|
285
289
|
*/
|
|
286
|
-
static getUserAvatars(): Promise<SCAvatarType
|
|
290
|
+
static getUserAvatars(): Promise<SCPaginatedResponse<SCAvatarType>>;
|
|
287
291
|
/**
|
|
288
292
|
* This endpoint removes/deletes an avatar from the authenticated user avatars.
|
|
289
293
|
* @param avatar_id
|
|
@@ -296,8 +300,8 @@ export declare class UserApiClient {
|
|
|
296
300
|
static setUserPrimaryAvatar(avatar_id: number): Promise<any>;
|
|
297
301
|
}
|
|
298
302
|
export default class UserService {
|
|
299
|
-
static getAllUsers(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
300
|
-
static getHiddenUsers(): Promise<SCPaginatedResponse<SCUserType>>;
|
|
303
|
+
static getAllUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
|
|
304
|
+
static getHiddenUsers(params?: any): Promise<SCPaginatedResponse<SCUserType>>;
|
|
301
305
|
static userAutocomplete(params: UserAutocompleteParams): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;
|
|
302
306
|
static userSearch(params: UserSearchParams): Promise<SCPaginatedResponse<SCUserType>>;
|
|
303
307
|
static getSpecificUser(id: number): Promise<SCUserType>;
|
|
@@ -338,9 +342,9 @@ export default class UserService {
|
|
|
338
342
|
static getUserLoyaltyPoints(id: number): Promise<SCUserLoyaltyPointsType>;
|
|
339
343
|
static getUserConnectionStatuses(users: number[]): Promise<any>;
|
|
340
344
|
static userTagToAddressContribution(): Promise<SCTagType>;
|
|
341
|
-
static checkUserEmailToken(): Promise<SCUserEmailTokenType>;
|
|
345
|
+
static checkUserEmailToken(email_token: any): Promise<SCUserEmailTokenType>;
|
|
342
346
|
static addUserAvatar(avatar: SCMediaType): Promise<SCAvatarType>;
|
|
343
|
-
static getUserAvatars(): Promise<SCAvatarType
|
|
347
|
+
static getUserAvatars(): Promise<SCPaginatedResponse<SCAvatarType>>;
|
|
344
348
|
static removeUserAvatar(avatar_id: number): Promise<any>;
|
|
345
349
|
static setUserPrimaryAvatar(avatar_id: number): Promise<any>;
|
|
346
350
|
}
|