@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,65 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import Endpoints from '../../constants/Endpoints';
|
|
11
|
+
import { apiRequest } from '../../utils/apiRequest';
|
|
12
12
|
/**
|
|
13
13
|
* Contains all the endpoints needed to manage custom pages.
|
|
14
14
|
*/
|
|
15
|
-
class CustomPageApiClient {
|
|
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
|
-
static searchCustomPages(params) {
|
|
42
|
-
const p = new URLSearchParams(params);
|
|
43
|
-
return (0, _apiRequest.apiRequest)(`${_Endpoints.default.CustomPageSearch.url({})}?${p.toString()}`, _Endpoints.default.CustomPageSearch.method);
|
|
44
|
-
}
|
|
45
|
-
|
|
15
|
+
export class CustomPageApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint retrieves a specific custom page.
|
|
18
|
+
* @param id
|
|
19
|
+
*/
|
|
20
|
+
static getASpecificCustomPage(id) {
|
|
21
|
+
return apiRequest(Endpoints.CustomPage.url({ id }), Endpoints.CustomPage.method);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* This endpoint retrieves all custom pages.
|
|
25
|
+
* @param params
|
|
26
|
+
*/
|
|
27
|
+
static getAllCustomPages(params) {
|
|
28
|
+
const p = new URLSearchParams(params);
|
|
29
|
+
return apiRequest(`${Endpoints.GetCustomPages.url({})}?${p.toString()}`, Endpoints.GetCustomPages.method);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This endpoint performs search of a Custom Page
|
|
33
|
+
* @param params
|
|
34
|
+
*/
|
|
35
|
+
static searchCustomPages(params) {
|
|
36
|
+
const p = new URLSearchParams(params);
|
|
37
|
+
return apiRequest(`${Endpoints.CustomPageSearch.url({})}?${p.toString()}`, Endpoints.CustomPageSearch.method);
|
|
38
|
+
}
|
|
46
39
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
export default class CustomPageService {
|
|
41
|
+
static getASpecificCustomPage(id) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return CustomPageApiClient.getASpecificCustomPage(id);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static getAllCustomPages(params) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return CustomPageApiClient.getAllCustomPages(params);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
static searchCustomPages(params) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return CustomPageApiClient.searchCustomPages(params);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
63
56
|
}
|
|
64
|
-
|
|
65
|
-
exports.default = CustomPageService;
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/custom_page/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAOlD;;GAEG;AAEH,MAAM,OAAO,mBAAmB;IAC9B;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CAAC,EAAU;QACtC,OAAO,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAC,EAAE,EAAC,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACjF,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAAyB;QAChD,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC5G,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAA+B;QACtD,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChH,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,MAAM,CAAO,sBAAsB,CAAC,EAAU;;YAC5C,OAAO,mBAAmB,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;QACxD,CAAC;KAAA;IACD,MAAM,CAAO,iBAAiB,CAAC,MAAyB;;YACtD,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC;KAAA;IACD,MAAM,CAAO,iBAAiB,CAAC,MAA+B;;YAC5D,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SCDataPortabilityType } from '@selfcommunity/types';
|
|
2
|
+
export interface DataPortabilityApiClientInterface {
|
|
3
|
+
generateDataPortability(): Promise<SCDataPortabilityType>;
|
|
4
|
+
downloadDataPortability(): Promise<any>;
|
|
5
|
+
dataPortabilityStatus(): Promise<SCDataPortabilityType>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Contains all the endpoints needed to manage data portability.
|
|
9
|
+
*/
|
|
10
|
+
export declare class DataPortabilityApiClient {
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint generates data portability.
|
|
13
|
+
*/
|
|
14
|
+
static generateDataPortability(): Promise<SCDataPortabilityType>;
|
|
15
|
+
/**
|
|
16
|
+
* This endpoint downloads data portability.
|
|
17
|
+
*/
|
|
18
|
+
static downloadDataPortability(): Promise<any>;
|
|
19
|
+
/**
|
|
20
|
+
* This endpoint retrieves data portability status.
|
|
21
|
+
*/
|
|
22
|
+
static dataPortabilityStatus(): Promise<SCDataPortabilityType>;
|
|
23
|
+
}
|
|
24
|
+
export default class DataPortabilityService {
|
|
25
|
+
static generateDataPortability(): Promise<SCDataPortabilityType>;
|
|
26
|
+
static downloadDataPortability(): Promise<any>;
|
|
27
|
+
static dataPortabilityStatus(): Promise<SCDataPortabilityType>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/data_portability/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAE3D,MAAM,WAAW,iCAAiC;IAChD,uBAAuB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC1D,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,qBAAqB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACzD;AACD;;GAEG;AAEH,qBAAa,wBAAwB;IACnC;;OAEG;IACH,MAAM,CAAC,uBAAuB,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAIhE;;OAEG;IACH,MAAM,CAAC,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;IAI9C;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,OAAO,CAAC,qBAAqB,CAAC;CAG/D;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB;WAC5B,uBAAuB,IAAI,OAAO,CAAC,qBAAqB,CAAC;WAGzD,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGvC,qBAAqB,IAAI,OAAO,CAAC,qBAAqB,CAAC;CAGrE"}
|
|
@@ -1,58 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { apiRequest } from '../../utils/apiRequest';
|
|
11
|
+
import Endpoints from '../../constants/Endpoints';
|
|
12
12
|
/**
|
|
13
13
|
* Contains all the endpoints needed to manage data portability.
|
|
14
14
|
*/
|
|
15
|
-
class DataPortabilityApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
static dataPortabilityStatus() {
|
|
36
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.DataPortabilityStatus.url({}), _Endpoints.default.DataPortabilityStatus.method);
|
|
37
|
-
}
|
|
38
|
-
|
|
15
|
+
export class DataPortabilityApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint generates data portability.
|
|
18
|
+
*/
|
|
19
|
+
static generateDataPortability() {
|
|
20
|
+
return apiRequest(Endpoints.GenerateDataPortability.url({}), Endpoints.GenerateDataPortability.method);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint downloads data portability.
|
|
24
|
+
*/
|
|
25
|
+
static downloadDataPortability() {
|
|
26
|
+
return apiRequest(Endpoints.DataPortabilityDownload.url({}), Endpoints.DataPortabilityDownload.method);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This endpoint retrieves data portability status.
|
|
30
|
+
*/
|
|
31
|
+
static dataPortabilityStatus() {
|
|
32
|
+
return apiRequest(Endpoints.DataPortabilityStatus.url({}), Endpoints.DataPortabilityStatus.method);
|
|
33
|
+
}
|
|
39
34
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
export default class DataPortabilityService {
|
|
36
|
+
static generateDataPortability() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return DataPortabilityApiClient.generateDataPortability();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
static downloadDataPortability() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return DataPortabilityApiClient.downloadDataPortability();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static dataPortabilityStatus() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return DataPortabilityApiClient.dataPortabilityStatus();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
56
51
|
}
|
|
57
|
-
|
|
58
|
-
exports.default = DataPortabilityService;
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/data_portability/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAQlD;;GAEG;AAEH,MAAM,OAAO,wBAAwB;IACnC;;OAEG;IACH,MAAM,CAAC,uBAAuB;QAC5B,OAAO,UAAU,CAAC,SAAS,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,uBAAuB;QAC5B,OAAO,UAAU,CAAC,SAAS,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,qBAAqB;QAC1B,OAAO,UAAU,CAAC,SAAS,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACrG,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB;IACzC,MAAM,CAAO,uBAAuB;;YAClC,OAAO,wBAAwB,CAAC,uBAAuB,EAAE,CAAC;QAC5D,CAAC;KAAA;IACD,MAAM,CAAO,uBAAuB;;YAClC,OAAO,wBAAwB,CAAC,uBAAuB,EAAE,CAAC;QAC5D,CAAC;KAAA;IACD,MAAM,CAAO,qBAAqB;;YAChC,OAAO,wBAAwB,CAAC,qBAAqB,EAAE,CAAC;QAC1D,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { BaseGetParams, EmbedSearchParams, EmbedUpdateParams, SCPaginatedResponse } from '../../types';
|
|
2
|
+
import { SCEmbedType, SCFeedUnitType } from '@selfcommunity/types';
|
|
3
|
+
export interface EmbedApiClientInterface {
|
|
4
|
+
getAllEmbeds(params?: BaseGetParams): Promise<SCPaginatedResponse<SCEmbedType>>;
|
|
5
|
+
createEmbed(data: SCEmbedType): Promise<SCEmbedType>;
|
|
6
|
+
searchEmbed(params?: EmbedSearchParams): Promise<SCPaginatedResponse<SCEmbedType>>;
|
|
7
|
+
getSpecificEmbed(id: number): Promise<SCEmbedType>;
|
|
8
|
+
updateASpecificEmbed(id: number, data?: EmbedUpdateParams): Promise<SCEmbedType>;
|
|
9
|
+
patchASpecificEmbed(id: number, data?: EmbedUpdateParams): Promise<SCEmbedType>;
|
|
10
|
+
getEmbedFeed(embed_type?: string, embed_id?: string): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
11
|
+
getSpecificEmbedFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Contains all the endpoints needed to manage embeds.
|
|
15
|
+
*/
|
|
16
|
+
export declare class EmbedApiClient {
|
|
17
|
+
/**
|
|
18
|
+
* This endpoint retrieves all embeds.
|
|
19
|
+
* @param params
|
|
20
|
+
*/
|
|
21
|
+
static getAllEmbeds(params?: BaseGetParams): Promise<SCPaginatedResponse<SCEmbedType>>;
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint creates an embed. This operation requires admin role.
|
|
24
|
+
* @param data
|
|
25
|
+
*/
|
|
26
|
+
static createEmbed(data: SCEmbedType): Promise<SCEmbedType>;
|
|
27
|
+
/**
|
|
28
|
+
* This endpoint performs embed search.
|
|
29
|
+
* @param params
|
|
30
|
+
*/
|
|
31
|
+
static searchEmbed(params?: EmbedSearchParams): Promise<SCPaginatedResponse<SCEmbedType>>;
|
|
32
|
+
/**
|
|
33
|
+
* This endpoint retrieves a specific embed using ID.
|
|
34
|
+
* @param id
|
|
35
|
+
*/
|
|
36
|
+
static getSpecificEmbed(id: number): Promise<SCEmbedType>;
|
|
37
|
+
/**
|
|
38
|
+
* This endpoint updates a specific embed. This operation requires admin role.
|
|
39
|
+
* @param id
|
|
40
|
+
* @param data
|
|
41
|
+
*/
|
|
42
|
+
static updateASpecificEmbed(id: number, data?: EmbedUpdateParams): Promise<SCEmbedType>;
|
|
43
|
+
/**
|
|
44
|
+
* This endpoint patches a specific embed. This operation requires admin role.
|
|
45
|
+
* @param id
|
|
46
|
+
* @param data
|
|
47
|
+
*/
|
|
48
|
+
static patchASpecificEmbed(id: number, data?: EmbedUpdateParams): Promise<SCEmbedType>;
|
|
49
|
+
/**
|
|
50
|
+
* This endpoint retrieves the embed's feed which contains Feed that has the Embed as associated media.
|
|
51
|
+
* @param embed_type
|
|
52
|
+
* @param embed_id
|
|
53
|
+
*/
|
|
54
|
+
static getEmbedFeed(embed_type?: string, embed_id?: string): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
55
|
+
/**
|
|
56
|
+
* This endpoint retrieves the embed's feed which contains Feed that has an Embed as associated media.
|
|
57
|
+
* @param id
|
|
58
|
+
*/
|
|
59
|
+
static getSpecificEmbedFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
60
|
+
}
|
|
61
|
+
export default class EmbedService {
|
|
62
|
+
static getAllEmbeds(params?: BaseGetParams): Promise<SCPaginatedResponse<SCEmbedType>>;
|
|
63
|
+
static searchEmbed(params?: EmbedSearchParams): Promise<SCPaginatedResponse<SCEmbedType>>;
|
|
64
|
+
static createEmbed(data: SCEmbedType): Promise<SCEmbedType>;
|
|
65
|
+
static getSpecificEmbed(id: number): Promise<SCEmbedType>;
|
|
66
|
+
static updateASpecificEmbed(id: number, data?: EmbedUpdateParams): Promise<SCEmbedType>;
|
|
67
|
+
static patchASpecificEmbed(id: number, data?: EmbedUpdateParams): Promise<SCEmbedType>;
|
|
68
|
+
static getEmbedFeed(embed_type?: string, embed_id?: string): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
69
|
+
static getSpecificEmbedFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/embed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAGrG,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAC;IAChF,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACrD,WAAW,CA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
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { apiRequest } from '../../utils/apiRequest';
|
|
11
|
+
import Endpoints from '../../constants/Endpoints';
|
|
12
12
|
/**
|
|
13
13
|
* Contains all the endpoints needed to manage embeds.
|
|
14
14
|
*/
|
|
15
|
-
class EmbedApiClient {
|
|
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
|
-
* This endpoint retrieves the embed's feed which contains Feed that has the Embed as associated media.
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
static getEmbedFeed() {
|
|
84
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.EmbedFeed.url({}), _Endpoints.default.EmbedFeed.method);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* This endpoint retrieves the embed's feed which contains Feed that has an Embed as associated media.
|
|
88
|
-
* @param id
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
static getSpecificEmbedFeed(id) {
|
|
93
|
-
return (0, _apiRequest.apiRequest)(_Endpoints.default.SpecificEmbedFeed.url({
|
|
94
|
-
id
|
|
95
|
-
}), _Endpoints.default.SpecificEmbedFeed.method);
|
|
96
|
-
}
|
|
97
|
-
|
|
15
|
+
export class EmbedApiClient {
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint retrieves all embeds.
|
|
18
|
+
* @param params
|
|
19
|
+
*/
|
|
20
|
+
static getAllEmbeds(params) {
|
|
21
|
+
const p = new URLSearchParams(params);
|
|
22
|
+
return apiRequest(`${Endpoints.EmbedList.url({})}?${p.toString()}`, Endpoints.EmbedList.method);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* This endpoint creates an embed. This operation requires admin role.
|
|
26
|
+
* @param data
|
|
27
|
+
*/
|
|
28
|
+
static createEmbed(data) {
|
|
29
|
+
return apiRequest(Endpoints.EmbedCreate.url({}), Endpoints.EmbedCreate.method, data);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This endpoint performs embed search.
|
|
33
|
+
* @param params
|
|
34
|
+
*/
|
|
35
|
+
static searchEmbed(params) {
|
|
36
|
+
const p = new URLSearchParams(params);
|
|
37
|
+
return apiRequest(`${Endpoints.EmbedSearch.url({})}?${p.toString()}`, Endpoints.EmbedSearch.method);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* This endpoint retrieves a specific embed using ID.
|
|
41
|
+
* @param id
|
|
42
|
+
*/
|
|
43
|
+
static getSpecificEmbed(id) {
|
|
44
|
+
return apiRequest(Endpoints.Embed.url({ id }), Endpoints.Embed.method);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* This endpoint updates a specific embed. This operation requires admin role.
|
|
48
|
+
* @param id
|
|
49
|
+
* @param data
|
|
50
|
+
*/
|
|
51
|
+
static updateASpecificEmbed(id, data) {
|
|
52
|
+
return apiRequest(Endpoints.UpdateEmbed.url({ id }), Endpoints.UpdateEmbed.method, data);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* This endpoint patches a specific embed. This operation requires admin role.
|
|
56
|
+
* @param id
|
|
57
|
+
* @param data
|
|
58
|
+
*/
|
|
59
|
+
static patchASpecificEmbed(id, data) {
|
|
60
|
+
return apiRequest(Endpoints.PatchEmbed.url({ id }), Endpoints.PatchEmbed.method, data);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* This endpoint retrieves the embed's feed which contains Feed that has the Embed as associated media.
|
|
64
|
+
* @param embed_type
|
|
65
|
+
* @param embed_id
|
|
66
|
+
*/
|
|
67
|
+
static getEmbedFeed(embed_type, embed_id) {
|
|
68
|
+
const p = new URLSearchParams({ embed_type: embed_type, embed_id: embed_id });
|
|
69
|
+
return apiRequest(`${Endpoints.EmbedFeed.url({})}?${p.toString()}`, Endpoints.EmbedFeed.method);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* This endpoint retrieves the embed's feed which contains Feed that has an Embed as associated media.
|
|
73
|
+
* @param id
|
|
74
|
+
*/
|
|
75
|
+
static getSpecificEmbedFeed(id) {
|
|
76
|
+
return apiRequest(Endpoints.SpecificEmbedFeed.url({ id }), Endpoints.SpecificEmbedFeed.method);
|
|
77
|
+
}
|
|
98
78
|
}
|
|
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
|
-
|
|
79
|
+
export default class EmbedService {
|
|
80
|
+
static getAllEmbeds(params) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
return EmbedApiClient.getAllEmbeds(params);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
static searchEmbed(params) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
return EmbedApiClient.searchEmbed(params);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
static createEmbed(data) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return EmbedApiClient.createEmbed(data);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
static getSpecificEmbed(id) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return EmbedApiClient.getSpecificEmbed(id);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
static updateASpecificEmbed(id, data) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
return EmbedApiClient.updateASpecificEmbed(id, data);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
static patchASpecificEmbed(id, data) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
return EmbedApiClient.patchASpecificEmbed(id, data);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
static getEmbedFeed(embed_type, embed_id) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
return EmbedApiClient.getEmbedFeed(embed_type, embed_id);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
static getSpecificEmbedFeed(id) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
return EmbedApiClient.getSpecificEmbedFeed(id);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
135
120
|
}
|
|
136
|
-
|
|
137
|
-
exports.default = EmbedService;
|
|
121
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/embed/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAalD;;GAEG;AAEH,MAAM,OAAO,cAAc;IACzB;;;OAGG;IACH,MAAM,CAAC,YAAY,CAAC,MAAsB;QACxC,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,IAAiB;QAClC,OAAO,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;I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B,CAAC,EAAE,CAAC,CAAC;QACjD,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FeatureParams, SCPaginatedResponse } from '../../types';
|
|
2
|
+
import { SCFeatureType } from '@selfcommunity/types';
|
|
3
|
+
export interface FeatureApiClientInterface {
|
|
4
|
+
getAllFeatures(params?: FeatureParams): Promise<SCPaginatedResponse<SCFeatureType[]>>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Contains all the endpoints needed to manage features.
|
|
8
|
+
*/
|
|
9
|
+
export declare class FeatureApiClient {
|
|
10
|
+
/**
|
|
11
|
+
* This endpoint retrieves all features.
|
|
12
|
+
* @param params
|
|
13
|
+
*/
|
|
14
|
+
static getAllFeatures(params?: FeatureParams): Promise<SCPaginatedResponse<SCFeatureType[]>>;
|
|
15
|
+
}
|
|
16
|
+
export default class FeatureService {
|
|
17
|
+
static getAllFeatures(params?: FeatureParams): Promise<SCPaginatedResponse<SCFeatureType[]>>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/feature/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAG/D,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;CACvF;AACD;;GAEG;AAEH,qBAAa,gBAAgB;IAC3B;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,aAAa,EAAE,CAAC,CAAC;CAI7F;AAED,MAAM,CAAC,OAAO,OAAO,cAAc;WACpB,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,aAAa,EAAE,CAAC,CAAC;CAGnG"}
|