@selfcommunity/api-services 0.1.7 → 0.1.8-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{types → cjs}/client/index.d.ts +0 -0
- package/lib/{types → cjs}/client/index.d.ts.map +0 -0
- package/lib/cjs/client/index.js +112 -157
- package/lib/cjs/client/index.js.map +1 -0
- package/lib/{types → cjs}/constants/Endpoints.d.ts +0 -0
- package/lib/{types → cjs}/constants/Endpoints.d.ts.map +1 -1
- package/lib/cjs/constants/Endpoints.js +1017 -1051
- package/lib/cjs/constants/Endpoints.js.map +1 -0
- package/lib/{types → cjs}/index.d.ts +2 -2
- package/lib/{types → cjs}/index.d.ts.map +1 -1
- package/lib/cjs/index.js +133 -222
- package/lib/cjs/index.js.map +1 -0
- package/lib/{types → cjs}/services/category/index.d.ts +0 -0
- package/lib/{types → cjs}/services/category/index.d.ts.map +0 -0
- package/lib/cjs/services/category/index.js +218 -251
- package/lib/cjs/services/category/index.js.map +1 -0
- package/lib/{types → cjs}/services/comment/index.d.ts +5 -4
- package/lib/cjs/services/comment/index.d.ts.map +1 -0
- package/lib/cjs/services/comment/index.js +154 -181
- package/lib/cjs/services/comment/index.js.map +1 -0
- package/lib/{types → cjs}/services/custom_adv/index.d.ts +3 -3
- package/lib/cjs/services/custom_adv/index.d.ts.map +1 -0
- package/lib/cjs/services/custom_adv/index.js +56 -56
- package/lib/cjs/services/custom_adv/index.js.map +1 -0
- package/lib/{types → cjs}/services/custom_page/index.d.ts +0 -0
- package/lib/{types → cjs}/services/custom_page/index.d.ts.map +0 -0
- package/lib/cjs/services/custom_page/index.js +56 -56
- package/lib/cjs/services/custom_page/index.js.map +1 -0
- package/lib/{types → cjs}/services/data_portability/index.d.ts +0 -0
- package/lib/{types → cjs}/services/data_portability/index.d.ts.map +0 -0
- package/lib/cjs/services/data_portability/index.js +51 -49
- package/lib/cjs/services/data_portability/index.js.map +1 -0
- package/lib/{types → cjs}/services/embed/index.d.ts +8 -6
- package/lib/cjs/services/embed/index.d.ts.map +1 -0
- package/lib/cjs/services/embed/index.js +120 -128
- package/lib/cjs/services/embed/index.js.map +1 -0
- package/lib/cjs/services/feature/index.d.ts +19 -0
- package/lib/cjs/services/feature/index.d.ts.map +1 -0
- package/lib/cjs/services/feature/index.js +31 -25
- package/lib/cjs/services/feature/index.js.map +1 -0
- package/lib/{types → cjs}/services/feed/index.d.ts +2 -0
- package/lib/{types → cjs}/services/feed/index.d.ts.map +1 -1
- package/lib/cjs/services/feed/index.js +79 -81
- package/lib/cjs/services/feed/index.js.map +1 -0
- package/lib/{types → cjs}/services/feed_object/index.d.ts +9 -9
- package/lib/cjs/services/feed_object/index.d.ts.map +1 -0
- package/lib/cjs/services/feed_object/index.js +387 -485
- package/lib/cjs/services/feed_object/index.js.map +1 -0
- package/lib/{types → cjs}/services/incubator/index.d.ts +0 -0
- package/lib/{types → cjs}/services/incubator/index.d.ts.map +0 -0
- package/lib/cjs/services/incubator/index.js +104 -114
- package/lib/cjs/services/incubator/index.js.map +1 -0
- package/lib/{types → cjs}/services/insight/index.d.ts +13 -10
- package/lib/cjs/services/insight/index.d.ts.map +1 -0
- package/lib/cjs/services/insight/index.js +93 -94
- package/lib/cjs/services/insight/index.js.map +1 -0
- package/lib/{types → cjs}/services/legal_page/index.d.ts +0 -0
- package/lib/{types → cjs}/services/legal_page/index.d.ts.map +0 -0
- package/lib/cjs/services/legal_page/index.js +92 -102
- package/lib/cjs/services/legal_page/index.js.map +1 -0
- package/lib/cjs/services/locality/index.d.ts +26 -0
- package/lib/cjs/services/locality/index.d.ts.map +1 -0
- package/lib/cjs/services/locality/index.js +44 -37
- package/lib/cjs/services/locality/index.js.map +1 -0
- package/lib/{types → cjs}/services/loyalty/index.d.ts +3 -3
- package/lib/cjs/services/loyalty/index.d.ts.map +1 -0
- package/lib/cjs/services/loyalty/index.js +128 -148
- package/lib/cjs/services/loyalty/index.js.map +1 -0
- package/lib/{types → cjs}/services/media/index.d.ts +0 -0
- package/lib/{types → cjs}/services/media/index.d.ts.map +1 -1
- package/lib/cjs/services/media/index.js +107 -124
- package/lib/cjs/services/media/index.js.map +1 -0
- package/lib/{types → cjs}/services/moderation/index.d.ts +0 -0
- package/lib/{types → cjs}/services/moderation/index.d.ts.map +1 -1
- package/lib/cjs/services/moderation/index.js +95 -109
- package/lib/cjs/services/moderation/index.js.map +1 -0
- package/lib/{types → cjs}/services/notification/index.d.ts +3 -3
- package/lib/cjs/services/notification/index.d.ts.map +1 -0
- package/lib/cjs/services/notification/index.js +121 -131
- package/lib/cjs/services/notification/index.js.map +1 -0
- package/lib/{types → cjs}/services/preference/index.d.ts +0 -0
- package/lib/{types → cjs}/services/preference/index.d.ts.map +0 -0
- package/lib/cjs/services/preference/index.js +57 -65
- package/lib/cjs/services/preference/index.js.map +1 -0
- package/lib/{types → cjs}/services/private_message/index.d.ts +0 -0
- package/lib/{types → cjs}/services/private_message/index.d.ts.map +0 -0
- package/lib/cjs/services/private_message/index.js +137 -148
- package/lib/cjs/services/private_message/index.js.map +1 -0
- package/lib/cjs/services/score/index.d.ts +33 -0
- package/lib/cjs/services/score/index.d.ts.map +1 -0
- package/lib/cjs/services/score/index.js +56 -50
- package/lib/cjs/services/score/index.js.map +1 -0
- package/lib/{types → cjs}/services/sso/index.d.ts +2 -1
- package/lib/{types → cjs}/services/sso/index.d.ts.map +1 -1
- package/lib/cjs/services/sso/index.js +42 -38
- package/lib/cjs/services/sso/index.js.map +1 -0
- package/lib/{types → cjs}/services/suggestion/index.d.ts +0 -0
- package/lib/{types → cjs}/services/suggestion/index.d.ts.map +0 -0
- package/lib/cjs/services/suggestion/index.js +62 -61
- package/lib/cjs/services/suggestion/index.js.map +1 -0
- package/lib/{types → cjs}/services/tag/index.d.ts +10 -7
- package/lib/cjs/services/tag/index.d.ts.map +1 -0
- package/lib/cjs/services/tag/index.js +110 -119
- package/lib/cjs/services/tag/index.js.map +1 -0
- package/lib/{types → cjs}/services/user/index.d.ts +16 -12
- package/lib/cjs/services/user/index.d.ts.map +1 -0
- package/lib/cjs/services/user/index.js +606 -715
- package/lib/cjs/services/user/index.js.map +1 -0
- package/lib/{types → cjs}/services/webhook/index.d.ts +0 -0
- package/lib/{types → cjs}/services/webhook/index.d.ts.map +0 -0
- package/lib/cjs/services/webhook/index.js +164 -193
- package/lib/cjs/services/webhook/index.js.map +1 -0
- package/lib/{types → cjs}/types/baseParams.d.ts +0 -0
- package/lib/{types → cjs}/types/baseParams.d.ts.map +0 -0
- package/lib/cjs/types/baseParams.js +5 -2
- package/lib/cjs/types/baseParams.js.map +1 -0
- package/lib/{types → cjs}/types/category.d.ts +0 -0
- package/lib/{types → cjs}/types/category.d.ts.map +0 -0
- package/lib/cjs/types/category.js +2 -2
- package/lib/cjs/types/category.js.map +1 -0
- package/lib/{types → cjs}/types/comment.d.ts +0 -0
- package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
- package/lib/cjs/types/comment.js +2 -2
- package/lib/cjs/types/comment.js.map +1 -0
- package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
- package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
- package/lib/cjs/types/customAdv.js +2 -2
- package/lib/cjs/types/customAdv.js.map +1 -0
- package/lib/{types → cjs}/types/customPage.d.ts +0 -0
- package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
- package/lib/cjs/types/customPage.js +2 -2
- package/lib/cjs/types/customPage.js.map +1 -0
- package/lib/{types → cjs}/types/embed.d.ts +0 -0
- package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
- package/lib/cjs/types/embed.js +2 -2
- package/lib/cjs/types/embed.js.map +1 -0
- package/lib/cjs/types/feature.d.ts +11 -0
- package/lib/cjs/types/feature.d.ts.map +1 -0
- package/lib/cjs/types/feature.js +3 -0
- package/lib/cjs/types/feature.js.map +1 -0
- package/lib/{types → cjs}/types/feed.d.ts +0 -0
- package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
- package/lib/cjs/types/feed.js +2 -2
- package/lib/cjs/types/feed.js.map +1 -0
- package/lib/{types → cjs}/types/feedObject.d.ts +0 -0
- package/lib/{types → cjs}/types/feedObject.d.ts.map +0 -0
- package/lib/cjs/types/feedObject.js +2 -2
- package/lib/cjs/types/feedObject.js.map +1 -0
- package/lib/{types → cjs}/types/incubator.d.ts +0 -0
- package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
- package/lib/cjs/types/incubator.js +2 -2
- package/lib/cjs/types/incubator.js.map +1 -0
- package/lib/{types → cjs}/types/index.d.ts +6 -3
- package/lib/{types → cjs}/types/index.d.ts.map +1 -1
- package/lib/cjs/types/index.js +5 -101
- package/lib/cjs/types/index.js.map +1 -0
- package/lib/cjs/types/insight.d.ts +67 -0
- package/lib/cjs/types/insight.d.ts.map +1 -0
- package/lib/cjs/types/insight.js +3 -0
- package/lib/cjs/types/insight.js.map +1 -0
- package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
- package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
- package/lib/cjs/types/legalPage.js +2 -2
- package/lib/cjs/types/legalPage.js.map +1 -0
- package/lib/{types → cjs}/types/media.d.ts +2 -15
- package/lib/{types → cjs}/types/media.d.ts.map +1 -1
- package/lib/cjs/types/media.js +8 -27
- package/lib/cjs/types/media.js.map +1 -0
- package/lib/{types → cjs}/types/moderation.d.ts +1 -1
- package/lib/{types → cjs}/types/moderation.d.ts.map +1 -1
- package/lib/cjs/types/moderation.js +2 -2
- package/lib/cjs/types/moderation.js.map +1 -0
- package/lib/{types → cjs}/types/notification.d.ts +0 -0
- package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
- package/lib/cjs/types/notification.js +2 -2
- package/lib/cjs/types/notification.js.map +1 -0
- package/lib/{types → cjs}/types/paginatedResponse.d.ts +0 -0
- package/lib/{types → cjs}/types/paginatedResponse.d.ts.map +0 -0
- package/lib/cjs/types/paginatedResponse.js +5 -2
- package/lib/cjs/types/paginatedResponse.js.map +1 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
- package/lib/cjs/types/privateMessage.js +2 -2
- package/lib/cjs/types/privateMessage.js.map +1 -0
- package/lib/{types → cjs}/types/prize.d.ts +0 -0
- package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
- package/lib/cjs/types/prize.js +2 -2
- package/lib/cjs/types/prize.js.map +1 -0
- package/lib/cjs/types/score.d.ts +19 -0
- package/lib/cjs/types/score.d.ts.map +1 -0
- package/lib/cjs/types/score.js +3 -0
- package/lib/cjs/types/score.js.map +1 -0
- package/lib/{types → cjs}/types/sso.d.ts +0 -0
- package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
- package/lib/cjs/types/sso.js +5 -2
- package/lib/cjs/types/sso.js.map +1 -0
- package/lib/{types → cjs}/types/tag.d.ts +22 -0
- package/lib/cjs/types/tag.d.ts.map +1 -0
- package/lib/cjs/types/tag.js +2 -2
- package/lib/cjs/types/tag.js.map +1 -0
- package/lib/{types → cjs}/types/user.d.ts +0 -0
- package/lib/{types → cjs}/types/user.d.ts.map +0 -0
- package/lib/cjs/types/user.js +2 -2
- package/lib/cjs/types/user.js.map +1 -0
- package/lib/{types → cjs}/types/webhook.d.ts +0 -0
- package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
- package/lib/cjs/types/webhook.js +2 -2
- package/lib/cjs/types/webhook.js.map +1 -0
- package/lib/cjs/utils/apiRequest.d.ts +2 -0
- package/lib/{types → cjs}/utils/apiRequest.d.ts.map +1 -1
- package/lib/cjs/utils/apiRequest.js +26 -25
- package/lib/cjs/utils/apiRequest.js.map +1 -0
- package/lib/{types → cjs}/utils/http.d.ts +0 -0
- package/lib/{types → cjs}/utils/http.d.ts.map +0 -0
- package/lib/cjs/utils/http.js +41 -45
- package/lib/cjs/utils/http.js.map +1 -0
- package/lib/{types → cjs}/utils/token.d.ts +0 -0
- package/lib/{types → cjs}/utils/token.d.ts.map +0 -0
- package/lib/cjs/utils/token.js +62 -31
- package/lib/cjs/utils/token.js.map +1 -0
- package/lib/esm/client/index.d.ts +115 -0
- package/lib/esm/client/index.d.ts.map +1 -0
- package/lib/esm/client/index.js +108 -160
- package/lib/esm/client/index.js.map +1 -0
- package/lib/esm/constants/Endpoints.d.ts +10 -0
- package/lib/esm/constants/Endpoints.d.ts.map +1 -0
- package/lib/esm/constants/Endpoints.js +1016 -1052
- package/lib/esm/constants/Endpoints.js.map +1 -0
- package/lib/esm/index.d.ts +51 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +51 -223
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/services/category/index.d.ts +127 -0
- package/lib/esm/services/category/index.d.ts.map +1 -0
- package/lib/esm/services/category/index.js +214 -255
- package/lib/esm/services/category/index.js.map +1 -0
- package/lib/esm/services/comment/index.d.ts +92 -0
- package/lib/esm/services/comment/index.d.ts.map +1 -0
- package/lib/esm/services/comment/index.js +150 -185
- package/lib/esm/services/comment/index.js.map +1 -0
- package/lib/esm/services/custom_adv/index.d.ts +33 -0
- package/lib/esm/services/custom_adv/index.d.ts.map +1 -0
- package/lib/esm/services/custom_adv/index.js +52 -60
- package/lib/esm/services/custom_adv/index.js.map +1 -0
- package/lib/esm/services/custom_page/index.d.ts +33 -0
- package/lib/esm/services/custom_page/index.d.ts.map +1 -0
- package/lib/esm/services/custom_page/index.js +52 -60
- package/lib/esm/services/custom_page/index.js.map +1 -0
- package/lib/esm/services/data_portability/index.d.ts +29 -0
- package/lib/esm/services/data_portability/index.d.ts.map +1 -0
- package/lib/esm/services/data_portability/index.js +47 -53
- package/lib/esm/services/data_portability/index.js.map +1 -0
- package/lib/esm/services/embed/index.d.ts +71 -0
- package/lib/esm/services/embed/index.d.ts.map +1 -0
- package/lib/esm/services/embed/index.js +116 -132
- package/lib/esm/services/embed/index.js.map +1 -0
- package/lib/esm/services/feature/index.d.ts +19 -0
- package/lib/esm/services/feature/index.d.ts.map +1 -0
- package/lib/esm/services/feature/index.js +27 -29
- package/lib/esm/services/feature/index.js.map +1 -0
- package/lib/esm/services/feed/index.d.ts +46 -0
- package/lib/esm/services/feed/index.d.ts.map +1 -0
- package/lib/esm/services/feed/index.js +75 -85
- package/lib/esm/services/feed/index.js.map +1 -0
- package/lib/esm/services/feed_object/index.d.ts +236 -0
- package/lib/esm/services/feed_object/index.d.ts.map +1 -0
- package/lib/esm/services/feed_object/index.js +383 -489
- package/lib/esm/services/feed_object/index.js.map +1 -0
- package/lib/esm/services/incubator/index.d.ts +61 -0
- package/lib/esm/services/incubator/index.d.ts.map +1 -0
- package/lib/esm/services/incubator/index.js +100 -118
- package/lib/esm/services/incubator/index.js.map +1 -0
- package/lib/esm/services/insight/index.d.ts +54 -0
- package/lib/esm/services/insight/index.d.ts.map +1 -0
- package/lib/esm/services/insight/index.js +89 -98
- package/lib/esm/services/insight/index.js.map +1 -0
- package/lib/esm/services/legal_page/index.d.ts +53 -0
- package/lib/esm/services/legal_page/index.d.ts.map +1 -0
- package/lib/esm/services/legal_page/index.js +88 -106
- package/lib/esm/services/legal_page/index.js.map +1 -0
- package/lib/esm/services/locality/index.d.ts +26 -0
- package/lib/esm/services/locality/index.d.ts.map +1 -0
- package/lib/esm/services/locality/index.js +40 -41
- package/lib/esm/services/locality/index.js.map +1 -0
- package/lib/esm/services/loyalty/index.d.ts +77 -0
- package/lib/esm/services/loyalty/index.d.ts.map +1 -0
- package/lib/esm/services/loyalty/index.js +124 -152
- package/lib/esm/services/loyalty/index.js.map +1 -0
- package/lib/esm/services/media/index.d.ts +65 -0
- package/lib/esm/services/media/index.d.ts.map +1 -0
- package/lib/esm/services/media/index.js +103 -128
- package/lib/esm/services/media/index.js.map +1 -0
- package/lib/esm/services/moderation/index.d.ts +58 -0
- package/lib/esm/services/moderation/index.d.ts.map +1 -0
- package/lib/esm/services/moderation/index.js +91 -113
- package/lib/esm/services/moderation/index.js.map +1 -0
- package/lib/esm/services/notification/index.d.ts +70 -0
- package/lib/esm/services/notification/index.d.ts.map +1 -0
- package/lib/esm/services/notification/index.js +117 -135
- package/lib/esm/services/notification/index.js.map +1 -0
- package/lib/esm/services/preference/index.d.ts +35 -0
- package/lib/esm/services/preference/index.d.ts.map +1 -0
- package/lib/esm/services/preference/index.js +53 -69
- package/lib/esm/services/preference/index.js.map +1 -0
- package/lib/esm/services/private_message/index.d.ts +81 -0
- package/lib/esm/services/private_message/index.d.ts.map +1 -0
- package/lib/esm/services/private_message/index.js +133 -152
- package/lib/esm/services/private_message/index.js.map +1 -0
- package/lib/esm/services/score/index.d.ts +33 -0
- package/lib/esm/services/score/index.d.ts.map +1 -0
- package/lib/esm/services/score/index.js +52 -54
- package/lib/esm/services/score/index.js.map +1 -0
- package/lib/esm/services/sso/index.d.ts +26 -0
- package/lib/esm/services/sso/index.d.ts.map +1 -0
- package/lib/esm/services/sso/index.js +38 -42
- package/lib/esm/services/sso/index.js.map +1 -0
- package/lib/esm/services/suggestion/index.d.ts +36 -0
- package/lib/esm/services/suggestion/index.d.ts.map +1 -0
- package/lib/esm/services/suggestion/index.js +58 -65
- package/lib/esm/services/suggestion/index.js.map +1 -0
- package/lib/esm/services/tag/index.d.ts +67 -0
- package/lib/esm/services/tag/index.d.ts.map +1 -0
- package/lib/esm/services/tag/index.js +106 -123
- package/lib/esm/services/tag/index.js.map +1 -0
- package/lib/esm/services/user/index.d.ts +351 -0
- package/lib/esm/services/user/index.d.ts.map +1 -0
- package/lib/esm/services/user/index.js +602 -719
- package/lib/esm/services/user/index.js.map +1 -0
- package/lib/esm/services/webhook/index.d.ts +99 -0
- package/lib/esm/services/webhook/index.d.ts.map +1 -0
- package/lib/esm/services/webhook/index.js +160 -197
- package/lib/esm/services/webhook/index.js.map +1 -0
- package/lib/esm/types/baseParams.d.ts +23 -0
- package/lib/esm/types/baseParams.d.ts.map +1 -0
- package/lib/esm/types/baseParams.js +5 -3
- package/lib/esm/types/baseParams.js.map +1 -0
- package/lib/esm/types/category.d.ts +15 -0
- package/lib/esm/types/category.d.ts.map +1 -0
- package/lib/esm/types/category.js +2 -3
- package/lib/esm/types/category.js.map +1 -0
- package/lib/esm/types/comment.d.ts +51 -0
- package/lib/esm/types/comment.d.ts.map +1 -0
- package/lib/esm/types/comment.js +2 -3
- package/lib/esm/types/comment.js.map +1 -0
- package/lib/esm/types/customAdv.d.ts +19 -0
- package/lib/esm/types/customAdv.d.ts.map +1 -0
- package/lib/esm/types/customAdv.js +2 -3
- package/lib/esm/types/customAdv.js.map +1 -0
- package/lib/esm/types/customPage.d.ts +24 -0
- package/lib/esm/types/customPage.d.ts.map +1 -0
- package/lib/esm/types/customPage.js +2 -3
- package/lib/esm/types/customPage.js.map +1 -0
- package/lib/esm/types/embed.d.ts +26 -0
- package/lib/esm/types/embed.d.ts.map +1 -0
- package/lib/esm/types/embed.js +2 -3
- package/lib/esm/types/embed.js.map +1 -0
- package/lib/esm/types/feature.d.ts +11 -0
- package/lib/esm/types/feature.d.ts.map +1 -0
- package/lib/esm/types/feature.js +2 -0
- package/lib/esm/types/feature.js.map +1 -0
- package/lib/esm/types/feed.d.ts +11 -0
- package/lib/esm/types/feed.d.ts.map +1 -0
- package/lib/esm/types/feed.js +2 -3
- package/lib/esm/types/feed.js.map +1 -0
- package/lib/esm/types/feedObject.d.ts +56 -0
- package/lib/esm/types/feedObject.d.ts.map +1 -0
- package/lib/esm/types/feedObject.js +2 -3
- package/lib/esm/types/feedObject.js.map +1 -0
- package/lib/esm/types/incubator.d.ts +33 -0
- package/lib/esm/types/incubator.d.ts.map +1 -0
- package/lib/esm/types/incubator.js +2 -3
- package/lib/esm/types/incubator.js.map +1 -0
- package/lib/esm/types/index.d.ts +25 -0
- package/lib/esm/types/index.d.ts.map +1 -0
- package/lib/esm/types/index.js +3 -102
- package/lib/esm/types/index.js.map +1 -0
- package/lib/esm/types/insight.d.ts +67 -0
- package/lib/esm/types/insight.d.ts.map +1 -0
- package/lib/esm/types/insight.js +2 -0
- package/lib/esm/types/insight.js.map +1 -0
- package/lib/esm/types/legalPage.d.ts +19 -0
- package/lib/esm/types/legalPage.d.ts.map +1 -0
- package/lib/esm/types/legalPage.js +2 -3
- package/lib/esm/types/legalPage.js.map +1 -0
- package/lib/esm/types/media.d.ts +67 -0
- package/lib/esm/types/media.d.ts.map +1 -0
- package/lib/esm/types/media.js +6 -28
- package/lib/esm/types/media.js.map +1 -0
- package/lib/esm/types/moderation.d.ts +23 -0
- package/lib/esm/types/moderation.d.ts.map +1 -0
- package/lib/esm/types/moderation.js +2 -3
- package/lib/esm/types/moderation.js.map +1 -0
- package/lib/esm/types/notification.d.ts +31 -0
- package/lib/esm/types/notification.d.ts.map +1 -0
- package/lib/esm/types/notification.js +2 -3
- package/lib/esm/types/notification.js.map +1 -0
- package/lib/esm/types/paginatedResponse.d.ts +10 -0
- package/lib/esm/types/paginatedResponse.d.ts.map +1 -0
- package/lib/esm/types/paginatedResponse.js +5 -3
- package/lib/esm/types/paginatedResponse.js.map +1 -0
- package/lib/esm/types/privateMessage.d.ts +176 -0
- package/lib/esm/types/privateMessage.d.ts.map +1 -0
- package/lib/esm/types/privateMessage.js +2 -3
- package/lib/esm/types/privateMessage.js.map +1 -0
- package/lib/esm/types/prize.d.ts +47 -0
- package/lib/esm/types/prize.d.ts.map +1 -0
- package/lib/esm/types/prize.js +2 -3
- package/lib/esm/types/prize.js.map +1 -0
- package/lib/esm/types/score.d.ts +19 -0
- package/lib/esm/types/score.d.ts.map +1 -0
- package/lib/esm/types/score.js +2 -0
- package/lib/esm/types/score.js.map +1 -0
- package/lib/esm/types/sso.d.ts +12 -0
- package/lib/esm/types/sso.d.ts.map +1 -0
- package/lib/esm/types/sso.js +5 -3
- package/lib/esm/types/sso.js.map +1 -0
- package/lib/esm/types/tag.d.ts +61 -0
- package/lib/esm/types/tag.d.ts.map +1 -0
- package/lib/esm/types/tag.js +2 -3
- package/lib/esm/types/tag.js.map +1 -0
- package/lib/esm/types/user.d.ts +105 -0
- package/lib/esm/types/user.d.ts.map +1 -0
- package/lib/esm/types/user.js +2 -3
- package/lib/esm/types/user.js.map +1 -0
- package/lib/esm/types/webhook.d.ts +32 -0
- package/lib/esm/types/webhook.d.ts.map +1 -0
- package/lib/esm/types/webhook.js +2 -3
- package/lib/esm/types/webhook.js.map +1 -0
- package/lib/esm/utils/apiRequest.d.ts +2 -0
- package/lib/esm/utils/apiRequest.d.ts.map +1 -0
- package/lib/esm/utils/apiRequest.js +21 -27
- package/lib/esm/utils/apiRequest.js.map +1 -0
- package/lib/esm/utils/http.d.ts +6 -0
- package/lib/esm/utils/http.d.ts.map +1 -0
- package/lib/esm/utils/http.js +39 -48
- package/lib/esm/utils/http.js.map +1 -0
- package/lib/esm/utils/token.d.ts +21 -0
- package/lib/esm/utils/token.d.ts.map +1 -0
- package/lib/esm/utils/token.js +36 -33
- package/lib/esm/utils/token.js.map +1 -0
- package/lib/umd/api-services.js +1 -1
- package/lib/umd/api-services.js.map +1 -1
- package/package.json +7 -9
- package/lib/cjs/index.d.js +0 -2
- package/lib/esm/index.d.js +0 -2
- package/lib/types/services/comment/index.d.ts.map +0 -1
- package/lib/types/services/custom_adv/index.d.ts.map +0 -1
- package/lib/types/services/embed/index.d.ts.map +0 -1
- package/lib/types/services/feature/index.d.ts +0 -18
- package/lib/types/services/feature/index.d.ts.map +0 -1
- package/lib/types/services/feed_object/index.d.ts.map +0 -1
- package/lib/types/services/insight/index.d.ts.map +0 -1
- package/lib/types/services/locality/index.d.ts +0 -24
- package/lib/types/services/locality/index.d.ts.map +0 -1
- package/lib/types/services/loyalty/index.d.ts.map +0 -1
- package/lib/types/services/notification/index.d.ts.map +0 -1
- package/lib/types/services/score/index.d.ts +0 -31
- package/lib/types/services/score/index.d.ts.map +0 -1
- package/lib/types/services/tag/index.d.ts.map +0 -1
- package/lib/types/services/user/index.d.ts.map +0 -1
- package/lib/types/tsconfig.build.tsbuildinfo +0 -1
- package/lib/types/types/tag.d.ts.map +0 -1
- package/lib/types/utils/apiRequest.d.ts +0 -2
|
@@ -1,724 +1,615 @@
|
|
|
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.UserApiClient = 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 users.
|
|
14
20
|
*/
|
|
15
21
|
class UserApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* This endpoint cancels reject connection to a user identified by {id}
|
|
372
|
-
* @param id
|
|
373
|
-
*/
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
static userCancelRejectConnectionRequest(id) {
|
|
377
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserCancelRejectConnectionRequest.url({
|
|
378
|
-
id
|
|
379
|
-
}), _Endpoints.default.UserCancelRejectConnectionRequest.method);
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* This endpoint cancels a request connection for a user.
|
|
383
|
-
* @param id
|
|
384
|
-
*/
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
static userCancelRequestConnection(id) {
|
|
388
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserCancelRequestConnection.url({
|
|
389
|
-
id
|
|
390
|
-
}), _Endpoints.default.UserCancelRequestConnection.method);
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* This endpoint rejects a connection request sent from user identified by {id}
|
|
394
|
-
* @param id
|
|
395
|
-
*/
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
static userRejectConnectionRequest(id) {
|
|
399
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserRejectConnectionRequest.url({
|
|
400
|
-
id
|
|
401
|
-
}), _Endpoints.default.UserRejectConnectionRequest.method);
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
|
|
405
|
-
* @param id
|
|
406
|
-
*/
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
static userMarkSeenConnectionRequest(id) {
|
|
410
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserMarkSeenConnectionRequest.url({
|
|
411
|
-
id
|
|
412
|
-
}), _Endpoints.default.UserMarkSeenConnectionRequest.method);
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
|
|
416
|
-
* @param id
|
|
417
|
-
*/
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
static showHideUser(id) {
|
|
421
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserShowHide.url({
|
|
422
|
-
id
|
|
423
|
-
}), _Endpoints.default.UserShowHide.method);
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* This endpoint returns true if the user (identified in path) is hidden by the authenticated user.
|
|
427
|
-
* @param id
|
|
428
|
-
*/
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
static checkUserHidden(id) {
|
|
432
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckUserHidden.url({
|
|
433
|
-
id
|
|
434
|
-
}), _Endpoints.default.CheckUserHidden.method);
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* This endpoint returns true if the user (identified in path) has hidden by the authenticated user.
|
|
438
|
-
* @param id
|
|
439
|
-
*/
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
static checkUserHiddenBy(id) {
|
|
443
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckUserHiddenBy.url({
|
|
444
|
-
id
|
|
445
|
-
}), _Endpoints.default.CheckUserHiddenBy.method);
|
|
446
|
-
}
|
|
447
|
-
/**
|
|
448
|
-
* This endpoint returns user's loyalty points.
|
|
449
|
-
* @param id
|
|
450
|
-
*/
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
static getUserLoyaltyPoints(id) {
|
|
454
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.GetUserLoyaltyPoints.url({
|
|
455
|
-
id
|
|
456
|
-
}), _Endpoints.default.GetUserLoyaltyPoints.method);
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* This endpoint lists the connection/follow statuses of the logged user starting from a users array.
|
|
460
|
-
* @param users
|
|
461
|
-
*/
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
static getUserConnectionStatuses(users) {
|
|
465
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserConnectionStatuses.url({}), _Endpoints.default.UserConnectionStatuses.method, {
|
|
466
|
-
users: users
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* This endpoint returns user's tags to address a contribution.
|
|
471
|
-
*/
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
static userTagToAddressContribution() {
|
|
475
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.UserTagToAddressContribution.url({}), _Endpoints.default.UserTagToAddressContribution.method);
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* This endpoint checks an email token.
|
|
479
|
-
*/
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
static checkUserEmailToken() {
|
|
483
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.CheckEmailToken.url({}), _Endpoints.default.CheckEmailToken.method);
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* This endpoint adds an avatar to my avatars.
|
|
487
|
-
* @param avatar
|
|
488
|
-
*/
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
static addUserAvatar(avatar) {
|
|
492
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.AddAvatar.url({}), _Endpoints.default.AddAvatar.method, {
|
|
493
|
-
'Content-Type': 'multipart/form-data'
|
|
494
|
-
}, {
|
|
495
|
-
avatar: avatar
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
* This endpoint retrieves all user avatars.
|
|
500
|
-
*/
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
static getUserAvatars() {
|
|
504
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.GetAvatars.url({}), _Endpoints.default.GetAvatars.method);
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* This endpoint removes/deletes an avatar from the authenticated user avatars.
|
|
508
|
-
* @param avatar_id
|
|
509
|
-
*/
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
static removeUserAvatar(avatar_id) {
|
|
513
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.RemoveAvatar.url({}), _Endpoints.default.RemoveAvatar.method, {
|
|
514
|
-
avatar_id: avatar_id
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* This endpoint sets the primary avatar for the authenticated user.
|
|
519
|
-
* @param avatar_id
|
|
520
|
-
*/
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
static setUserPrimaryAvatar(avatar_id) {
|
|
524
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.SetPrimaryAvatar.url({}), _Endpoints.default.SetPrimaryAvatar.method, {
|
|
525
|
-
avatar_id: avatar_id
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint retrieves the list of all users
|
|
24
|
+
* @param params
|
|
25
|
+
*/
|
|
26
|
+
static getAllUsers(params) {
|
|
27
|
+
const p = new URLSearchParams(params);
|
|
28
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserList.url({})}?${p.toString()}`, Endpoints_1.default.UserList.method);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint retrieves the list of all users hidden by the authenticated user
|
|
32
|
+
* @param params
|
|
33
|
+
*/
|
|
34
|
+
static getHiddenUsers(params) {
|
|
35
|
+
const p = new URLSearchParams(params);
|
|
36
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.ListHiddenUsers.url({})}?${p.toString()}`, Endpoints_1.default.ListHiddenUsers.method);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 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.
|
|
40
|
+
* This endpoint is recommended for implementing an autocomplete input field.
|
|
41
|
+
* @param params
|
|
42
|
+
*/
|
|
43
|
+
static userAutocomplete(params) {
|
|
44
|
+
const p = new URLSearchParams(params);
|
|
45
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserAutocomplete.url({})}?${p.toString()}`, Endpoints_1.default.UserAutocomplete.method);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* This endpoint performs users search.
|
|
49
|
+
* @param params
|
|
50
|
+
*/
|
|
51
|
+
static userSearch(params) {
|
|
52
|
+
const p = new URLSearchParams(params);
|
|
53
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserSearch.url({})}?${p.toString()}`, Endpoints_1.default.UserSearch.method);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* This endpoint retrieves a specific user's profile identified by ID.
|
|
57
|
+
* @param id
|
|
58
|
+
*/
|
|
59
|
+
static getSpecificUser(id) {
|
|
60
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.User.url({ id }), Endpoints_1.default.User.method);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* This endpoint retrieves the counters of a specific user identified by Id.
|
|
64
|
+
* @param id
|
|
65
|
+
*/
|
|
66
|
+
static getUserCounters(id) {
|
|
67
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCounters.url({ id }), Endpoints_1.default.UserCounters.method);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* This endpoint updates the profile of a user identified by ID. A user can only update their personal data.
|
|
71
|
+
* 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'.
|
|
72
|
+
* @param id
|
|
73
|
+
* @param data
|
|
74
|
+
*/
|
|
75
|
+
static userUpdate(id, data) {
|
|
76
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserUpdate.url({ id }), Endpoints_1.default.UserUpdate.method, data);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* This endpoint patches a specific user identified by {id}
|
|
80
|
+
* @param id
|
|
81
|
+
* @param data
|
|
82
|
+
*/
|
|
83
|
+
static userPatch(id, data) {
|
|
84
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserPatch.url({ id }), Endpoints_1.default.UserPatch.method, data);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* This endpoint deletes a specific user identified by {id}
|
|
88
|
+
* @param id
|
|
89
|
+
* @param hard
|
|
90
|
+
*/
|
|
91
|
+
static userDelete(id, hard) {
|
|
92
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserDelete.url({ id })}?${hard.toString()}`, Endpoints_1.default.UserDelete.method);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* This endpoint changes the email of the authenticated user.
|
|
96
|
+
* @param id
|
|
97
|
+
* @param new_email
|
|
98
|
+
* @param confirm
|
|
99
|
+
*/
|
|
100
|
+
static changeUserMail(id, new_email, confirm) {
|
|
101
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.ChangeUserMail.url({ id }), Endpoints_1.default.ChangeUserMail.method, {
|
|
102
|
+
new_email: new_email,
|
|
103
|
+
confirm: confirm
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* This endpoint confirms email change.
|
|
108
|
+
* @param id
|
|
109
|
+
* @param new_email
|
|
110
|
+
* @param validation_code
|
|
111
|
+
*/
|
|
112
|
+
static confirmChangeUserMail(id, new_email, validation_code) {
|
|
113
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.ConfirmUserChangeMail.url({ id }), Endpoints_1.default.ConfirmUserChangeMail.method, {
|
|
114
|
+
new_email: new_email,
|
|
115
|
+
validation_code: validation_code
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* This endpoint changes the password of the authenticated user.
|
|
120
|
+
* @param id
|
|
121
|
+
* @param password
|
|
122
|
+
* @param new_password
|
|
123
|
+
*/
|
|
124
|
+
static changeUserPassword(id, password, new_password) {
|
|
125
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.ChangeUserPassword.url({ id }), Endpoints_1.default.ChangeUserPassword.method, {
|
|
126
|
+
password: password,
|
|
127
|
+
new_password: new_password
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* This endpoint retrieves all current user's settings for the authenticated user.
|
|
132
|
+
* @param id
|
|
133
|
+
*/
|
|
134
|
+
static userSettings(id) {
|
|
135
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserSettings.url({ id }), Endpoints_1.default.UserSettings.method);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* This endpoint changes the user settings for the authenticated user.
|
|
139
|
+
* @param id
|
|
140
|
+
* @param data
|
|
141
|
+
*/
|
|
142
|
+
static userSettingsPatch(id, data) {
|
|
143
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserSettingsPatch.url({ id }), Endpoints_1.default.UserSettingsPatch.method, data !== null && data !== void 0 ? data : null);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* This endpoint returns the user identified by the authentication token.
|
|
147
|
+
*/
|
|
148
|
+
static getCurrentUser() {
|
|
149
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Me.url(), Endpoints_1.default.Me.method);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* This endpoint returns the url to the user's current avatar.
|
|
153
|
+
*/
|
|
154
|
+
static getCurrentUserAvatar() {
|
|
155
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.MyAvatar.url({}), Endpoints_1.default.MyAvatar.method);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* This endpoint returns a list of permissions for the user identified by the authentication token. Some of the permissions in the list depend on global community settings.
|
|
159
|
+
*/
|
|
160
|
+
static getCurrentUserPermission() {
|
|
161
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Permission.url({}), Endpoints_1.default.Permission.method);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* This endpoint retrieves the platform url starting from the Authorization user token. Using this url, the logged user (must be a staff member) can access the platform to manage the community.
|
|
165
|
+
*/
|
|
166
|
+
static getCurrentUserPlatform() {
|
|
167
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Platform.url({}), Endpoints_1.default.Platform.method);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* This endpoint gets the list of categories followed by the user.
|
|
171
|
+
* @param id
|
|
172
|
+
* @param mutual
|
|
173
|
+
*/
|
|
174
|
+
static getUserFollowedCategories(id, mutual) {
|
|
175
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.FollowedCategories.url({ id, mutual }), Endpoints_1.default.FollowedCategories.method);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* This endpoint retrieves the list of posts of the user identified by {id}
|
|
179
|
+
* @param id
|
|
180
|
+
*/
|
|
181
|
+
static getUserFeed(id) {
|
|
182
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserFeed.url({ id }), Endpoints_1.default.UserFeed.method);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* This endpoint retrieves the list of followers of a specific user identified by {id}
|
|
186
|
+
* @param id
|
|
187
|
+
* @param mutual
|
|
188
|
+
*/
|
|
189
|
+
static getUserFollowers(id, mutual) {
|
|
190
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserFollowers.url({ id, mutual }), Endpoints_1.default.UserFollowers.method);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* This endpoint retrieves the list of following of a specific user identified by {id}.
|
|
194
|
+
* @param id
|
|
195
|
+
* @param mutual
|
|
196
|
+
*/
|
|
197
|
+
static getUserFollowed(id, mutual) {
|
|
198
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UsersFollowed.url({ id, mutual }), Endpoints_1.default.UsersFollowed.method);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* This endpoint allows a user to follow another user identified by {id}
|
|
202
|
+
* @param id
|
|
203
|
+
*/
|
|
204
|
+
static followUser(id) {
|
|
205
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.FollowUser.url({ id }), Endpoints_1.default.FollowUser.method);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* This endpoint returns is_followed = true if the user (identified in path) is followed by me.
|
|
209
|
+
* @param id
|
|
210
|
+
*/
|
|
211
|
+
static checkUserFollowed(id) {
|
|
212
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserFollowed.url({ id }), Endpoints_1.default.CheckUserFollowed.method);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* This endpoint returns is_follower = true if the user (identified in path) follow me
|
|
216
|
+
* @param id
|
|
217
|
+
*/
|
|
218
|
+
static checkUserFollower(id) {
|
|
219
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserFollower.url({ id }), Endpoints_1.default.CheckUserFollower.method);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* This endpoint retrieves the list of connections of a specific user identified by ID.
|
|
223
|
+
* @param id
|
|
224
|
+
* @param mutual
|
|
225
|
+
*/
|
|
226
|
+
static getUserConnections(id, mutual) {
|
|
227
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserConnections.url({ id })}?${mutual.toString()}`, Endpoints_1.default.UserConnections.method);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* This endpoint returns is_connection = true if the user (identified in path) is connected with me.
|
|
231
|
+
* @param id
|
|
232
|
+
*/
|
|
233
|
+
static checkUserConnections(id) {
|
|
234
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCheckConnection.url({ id }), Endpoints_1.default.UserCheckConnection.method);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* This endpoint retrieves the list of connection requests received by a specific user identified by ID.
|
|
238
|
+
* @param id
|
|
239
|
+
*/
|
|
240
|
+
static getUserConnectionRequests(id) {
|
|
241
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserConnectionRequests.url({ id }), Endpoints_1.default.UserConnectionRequests.method);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* This endpoint retrieves a specific user's list of connection requests sent by user.
|
|
245
|
+
* @param id
|
|
246
|
+
*/
|
|
247
|
+
static getUserRequestConnectionsSent(id) {
|
|
248
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRequestConnectionsSent.url({ id }), Endpoints_1.default.UserRequestConnectionsSent.method);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* This endpoint accepts a request connection of the user identified by {id}
|
|
252
|
+
* @param id
|
|
253
|
+
*/
|
|
254
|
+
static userAcceptRequestConnection(id) {
|
|
255
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserAcceptRequestConnection.url({ id }), Endpoints_1.default.UserAcceptRequestConnection.method);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* This endpoint requests a connection to the user identified by {id}
|
|
259
|
+
* @param id
|
|
260
|
+
*/
|
|
261
|
+
static userRequestConnection(id) {
|
|
262
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRequestConnection.url({ id }), Endpoints_1.default.UserRequestConnection.method);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* This endpoint removes connection with the user identified by {id}
|
|
266
|
+
* @param id
|
|
267
|
+
*/
|
|
268
|
+
static userRemoveConnection(id) {
|
|
269
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRemoveConnection.url({ id }), Endpoints_1.default.UserRemoveConnection.method);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* This endpoint cancels reject connection to a user identified by {id}
|
|
273
|
+
* @param id
|
|
274
|
+
*/
|
|
275
|
+
static userCancelRejectConnectionRequest(id) {
|
|
276
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCancelRejectConnectionRequest.url({ id }), Endpoints_1.default.UserCancelRejectConnectionRequest.method);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* This endpoint cancels a request connection for a user.
|
|
280
|
+
* @param id
|
|
281
|
+
*/
|
|
282
|
+
static userCancelRequestConnection(id) {
|
|
283
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCancelRequestConnection.url({ id }), Endpoints_1.default.UserCancelRequestConnection.method);
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* This endpoint rejects a connection request sent from user identified by {id}
|
|
287
|
+
* @param id
|
|
288
|
+
*/
|
|
289
|
+
static userRejectConnectionRequest(id) {
|
|
290
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRejectConnectionRequest.url({ id }), Endpoints_1.default.UserRejectConnectionRequest.method);
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
|
|
294
|
+
* @param id
|
|
295
|
+
*/
|
|
296
|
+
static userMarkSeenConnectionRequest(id) {
|
|
297
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserMarkSeenConnectionRequest.url({ id }), Endpoints_1.default.UserMarkSeenConnectionRequest.method);
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
|
|
301
|
+
* @param id
|
|
302
|
+
*/
|
|
303
|
+
static showHideUser(id) {
|
|
304
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserShowHide.url({ id }), Endpoints_1.default.UserShowHide.method);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* This endpoint returns true if the user (identified in path) is hidden by the authenticated user.
|
|
308
|
+
* @param id
|
|
309
|
+
*/
|
|
310
|
+
static checkUserHidden(id) {
|
|
311
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserHidden.url({ id }), Endpoints_1.default.CheckUserHidden.method);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* This endpoint returns true if the user (identified in path) has hidden by the authenticated user.
|
|
315
|
+
* @param id
|
|
316
|
+
*/
|
|
317
|
+
static checkUserHiddenBy(id) {
|
|
318
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserHiddenBy.url({ id }), Endpoints_1.default.CheckUserHiddenBy.method);
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* This endpoint returns user's loyalty points.
|
|
322
|
+
* @param id
|
|
323
|
+
*/
|
|
324
|
+
static getUserLoyaltyPoints(id) {
|
|
325
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetUserLoyaltyPoints.url({ id }), Endpoints_1.default.GetUserLoyaltyPoints.method);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* This endpoint lists the connection/follow statuses of the logged user starting from a users array.
|
|
329
|
+
* @param users
|
|
330
|
+
*/
|
|
331
|
+
static getUserConnectionStatuses(users) {
|
|
332
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserConnectionStatuses.url({}), Endpoints_1.default.UserConnectionStatuses.method, { users: users });
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* This endpoint returns user's tags to address a contribution.
|
|
336
|
+
*/
|
|
337
|
+
static userTagToAddressContribution() {
|
|
338
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserTagToAddressContribution.url({}), Endpoints_1.default.UserTagToAddressContribution.method);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* This endpoint checks an email token.
|
|
342
|
+
* @param email_token
|
|
343
|
+
*/
|
|
344
|
+
static checkUserEmailToken(email_token) {
|
|
345
|
+
const p = new URLSearchParams({ email_token: email_token });
|
|
346
|
+
return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CheckEmailToken.url({})}?${p.toString()}`, Endpoints_1.default.CheckEmailToken.method);
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* This endpoint adds an avatar to my avatars.
|
|
350
|
+
* @param avatar
|
|
351
|
+
*/
|
|
352
|
+
static addUserAvatar(avatar) {
|
|
353
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.AddAvatar.url({}), Endpoints_1.default.AddAvatar.method, { avatar: avatar });
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* This endpoint retrieves all user avatars.
|
|
357
|
+
*/
|
|
358
|
+
static getUserAvatars() {
|
|
359
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetAvatars.url({}), Endpoints_1.default.GetAvatars.method);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* This endpoint removes/deletes an avatar from the authenticated user avatars.
|
|
363
|
+
* @param avatar_id
|
|
364
|
+
*/
|
|
365
|
+
static removeUserAvatar(avatar_id) {
|
|
366
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.RemoveAvatar.url({}), Endpoints_1.default.RemoveAvatar.method, { avatar_id: avatar_id });
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* This endpoint sets the primary avatar for the authenticated user.
|
|
370
|
+
* @param avatar_id
|
|
371
|
+
*/
|
|
372
|
+
static setUserPrimaryAvatar(avatar_id) {
|
|
373
|
+
return (0, apiRequest_1.apiRequest)(Endpoints_1.default.SetPrimaryAvatar.url({}), Endpoints_1.default.SetPrimaryAvatar.method, { avatar_id: avatar_id });
|
|
374
|
+
}
|
|
529
375
|
}
|
|
530
|
-
|
|
531
376
|
exports.UserApiClient = UserApiClient;
|
|
532
|
-
|
|
533
377
|
class UserService {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
378
|
+
static getAllUsers(params) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
return UserApiClient.getAllUsers(params);
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
static getHiddenUsers(params) {
|
|
384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
+
return UserApiClient.getHiddenUsers(params);
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
static userAutocomplete(params) {
|
|
389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
390
|
+
return UserApiClient.userAutocomplete(params);
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
static userSearch(params) {
|
|
394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
return UserApiClient.userSearch(params);
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
static getSpecificUser(id) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
400
|
+
return UserApiClient.getSpecificUser(id);
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
static getUserCounters(id) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
return UserApiClient.getUserCounters(id);
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
static userUpdate(id, data) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
return UserApiClient.userUpdate(id, data);
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
static userPatch(id, data) {
|
|
414
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
415
|
+
return UserApiClient.userPatch(id, data);
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
static userDelete(id, hard) {
|
|
419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
420
|
+
return UserApiClient.userDelete(id, hard);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
static changeUserMail(id, new_email, confirm) {
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
return UserApiClient.changeUserMail(id, new_email, confirm);
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
static confirmChangeUserMail(id, new_email, validation_code) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
+
return UserApiClient.confirmChangeUserMail(id, new_email, validation_code);
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
static changeUserPassword(id, password, new_password) {
|
|
434
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
435
|
+
return UserApiClient.changeUserPassword(id, password, new_password);
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
static userSettings(id) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
return UserApiClient.userSettings(id);
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
static userSettingsPatch(id, data) {
|
|
444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
445
|
+
return UserApiClient.userSettingsPatch(id, data);
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
static getCurrentUser() {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
+
return UserApiClient.getCurrentUser();
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
static getCurrentUserAvatar() {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
return UserApiClient.getCurrentUserAvatar();
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
static getCurrentUserPermission() {
|
|
459
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
+
return UserApiClient.getCurrentUserPermission();
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
static getCurrentUserPlatform() {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
return UserApiClient.getCurrentUserPlatform();
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
static getUserFollowedCategories(id, mutual) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
470
|
+
return UserApiClient.getUserFollowedCategories(id, mutual);
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
static getUserFeed(id) {
|
|
474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
475
|
+
return UserApiClient.getUserFeed(id);
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
static getUserFollowers(id, mutual) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
return UserApiClient.getUserFollowers(id, mutual);
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
static getUserFollowed(id, mutual) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
485
|
+
return UserApiClient.getUserFollowed(id, mutual);
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
static followUser(id) {
|
|
489
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
+
return UserApiClient.followUser(id);
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
static checkUserFollowed(id) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
|
+
return UserApiClient.checkUserFollowed(id);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
static checkUserFollower(id) {
|
|
499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
+
return UserApiClient.checkUserFollower(id);
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
static getUserConnections(id, mutual) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
505
|
+
return UserApiClient.getUserConnections(id, mutual);
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
static checkUserConnections(id) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
510
|
+
return UserApiClient.checkUserConnections(id);
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
static getUserConnectionRequests(id) {
|
|
514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
515
|
+
return UserApiClient.getUserConnectionRequests(id);
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
static getUserRequestConnectionsSent(id) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
return UserApiClient.getUserRequestConnectionsSent(id);
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
static userAcceptRequestConnection(id) {
|
|
524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
+
return UserApiClient.userAcceptRequestConnection(id);
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
static userRequestConnection(id) {
|
|
529
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
530
|
+
return UserApiClient.userRequestConnection(id);
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
static userRemoveConnection(id) {
|
|
534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
+
return UserApiClient.userRemoveConnection(id);
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
static userCancelRejectConnectionRequest(id) {
|
|
539
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
540
|
+
return UserApiClient.userCancelRejectConnectionRequest(id);
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
static userCancelRequestConnection(id) {
|
|
544
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
+
return UserApiClient.userCancelRequestConnection(id);
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
static userRejectConnectionRequest(id) {
|
|
549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
return UserApiClient.userRejectConnectionRequest(id);
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
static userMarkSeenConnectionRequest(id) {
|
|
554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
555
|
+
return UserApiClient.userMarkSeenConnectionRequest(id);
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
static showHideUser(id) {
|
|
559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
560
|
+
return UserApiClient.showHideUser(id);
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
static checkUserHidden(id) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
return UserApiClient.checkUserHidden(id);
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
static checkUserHiddenBy(id) {
|
|
569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
570
|
+
return UserApiClient.checkUserHiddenBy(id);
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
static getUserLoyaltyPoints(id) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
return UserApiClient.getUserLoyaltyPoints(id);
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
static getUserConnectionStatuses(users) {
|
|
579
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
580
|
+
return UserApiClient.getUserConnectionStatuses(users);
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
static userTagToAddressContribution() {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
+
return UserApiClient.userTagToAddressContribution();
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
static checkUserEmailToken(email_token) {
|
|
589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
+
return UserApiClient.checkUserEmailToken(email_token);
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
static addUserAvatar(avatar) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
return UserApiClient.addUserAvatar(avatar);
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
static getUserAvatars() {
|
|
599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
600
|
+
return UserApiClient.getUserAvatars();
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
static removeUserAvatar(avatar_id) {
|
|
604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
605
|
+
return UserApiClient.removeUserAvatar(avatar_id);
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
static setUserPrimaryAvatar(avatar_id) {
|
|
609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
return UserApiClient.setUserPrimaryAvatar(avatar_id);
|
|
611
|
+
});
|
|
612
|
+
}
|
|
722
613
|
}
|
|
723
|
-
|
|
724
|
-
|
|
614
|
+
exports.default = UserService;
|
|
615
|
+
//# sourceMappingURL=index.js.map
|