@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
package/lib/esm/types/media.js
CHANGED
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.MediaTypes = exports.ChunkType = void 0;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Interface MediaCreateParams
|
|
8
|
-
*/
|
|
9
|
-
let MediaTypes;
|
|
10
|
-
/**
|
|
11
|
-
* Interface ChunkUploadParams
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
exports.MediaTypes = MediaTypes;
|
|
15
|
-
|
|
1
|
+
export var MediaTypes;
|
|
16
2
|
(function (MediaTypes) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})(MediaTypes || (
|
|
21
|
-
|
|
22
|
-
let ChunkType;
|
|
23
|
-
exports.ChunkType = ChunkType;
|
|
24
|
-
|
|
25
|
-
(function (ChunkType) {
|
|
26
|
-
ChunkType["IMAGE"] = "image";
|
|
27
|
-
ChunkType["DOC"] = "doc";
|
|
28
|
-
ChunkType["EIMAGE"] = "eimage";
|
|
29
|
-
})(ChunkType || (exports.ChunkType = ChunkType = {}));
|
|
3
|
+
MediaTypes["URL"] = "url";
|
|
4
|
+
MediaTypes["SHARE"] = "share";
|
|
5
|
+
MediaTypes["EMBED"] = "embed";
|
|
6
|
+
})(MediaTypes || (MediaTypes = {}));
|
|
7
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../src/types/media.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,6BAAe,CAAA;IACf,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SCContributionType, SCFlagTypeEnum } from '@selfcommunity/types/src/types';
|
|
2
|
+
/**
|
|
3
|
+
* ModerateContributionParams interface
|
|
4
|
+
*/
|
|
5
|
+
export interface ModerateContributionParams {
|
|
6
|
+
/**
|
|
7
|
+
* Valid values are: post, discussion, comment
|
|
8
|
+
*/
|
|
9
|
+
contribution_type: SCContributionType;
|
|
10
|
+
/**
|
|
11
|
+
* Valid values are: scold_author, scold_flagger, ignore, hide, delete
|
|
12
|
+
*/
|
|
13
|
+
action: string;
|
|
14
|
+
/**
|
|
15
|
+
* The user id of the contribution flagger to scold (use only with action=scold_flagger)
|
|
16
|
+
*/
|
|
17
|
+
user?: number;
|
|
18
|
+
/**
|
|
19
|
+
* An integer value to describe the moderation activity if action is one between scold_author, hide or delete. This param is not needed if the contribute is already hidden or deleted (you are restoring).
|
|
20
|
+
*/
|
|
21
|
+
moderation_type: SCFlagTypeEnum;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=moderation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAE,cAAc,EAAC,MAAM,gCAAgC,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,iBAAiB,EAAE,kBAAkB,CAAC;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,EAAE,cAAc,CAAC;CACjC"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=moderation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SCEmbedType } from '@selfcommunity/types/src/types';
|
|
2
|
+
/**
|
|
3
|
+
* CustomNotificationParams interface
|
|
4
|
+
*/
|
|
5
|
+
export interface CustomNotificationParams {
|
|
6
|
+
/**
|
|
7
|
+
* Can be 'connections' or 'user' (default is 'conections')
|
|
8
|
+
*/
|
|
9
|
+
recipients_type?: string;
|
|
10
|
+
/**
|
|
11
|
+
* An optional custom string to differentiate notifications
|
|
12
|
+
*/
|
|
13
|
+
type?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Embed obj.
|
|
16
|
+
*/
|
|
17
|
+
embed?: SCEmbedType;
|
|
18
|
+
/**
|
|
19
|
+
* A title for the notification
|
|
20
|
+
*/
|
|
21
|
+
title: string;
|
|
22
|
+
/**
|
|
23
|
+
* A description for the notification
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
/**
|
|
27
|
+
* The user who issues the notification(its ID)
|
|
28
|
+
*/
|
|
29
|
+
user: number;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/types/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../src/types/notification.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedResponse.d.ts","sourceRoot":"","sources":["../../../src/types/paginatedResponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,EAAE;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedResponse.js","sourceRoot":"","sources":["../../../src/types/paginatedResponse.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { SCPrivateMessageFileType } from '@selfcommunity/types/src/types';
|
|
2
|
+
/**
|
|
3
|
+
* ThreadParams interface.
|
|
4
|
+
*/
|
|
5
|
+
export interface ThreadParams {
|
|
6
|
+
/**
|
|
7
|
+
* The id of the thread(one between thread or user is required).
|
|
8
|
+
*/
|
|
9
|
+
thread: number;
|
|
10
|
+
/**
|
|
11
|
+
* The id of the user(one between thread or user is required).
|
|
12
|
+
*/
|
|
13
|
+
user?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Return all messages before this id of the message (excluded before_message).
|
|
16
|
+
*/
|
|
17
|
+
before_message?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Return all messages from this id of the message (included from_message).
|
|
20
|
+
*/
|
|
21
|
+
from_message?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Number of results to return per page.
|
|
24
|
+
*/
|
|
25
|
+
limit?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The initial index from which to return the results.
|
|
28
|
+
*/
|
|
29
|
+
offset?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* MessageCreateParams interface.
|
|
33
|
+
*/
|
|
34
|
+
export interface MessageCreateParams {
|
|
35
|
+
/**
|
|
36
|
+
* The id(s) of the recipient(s) of the message
|
|
37
|
+
*/
|
|
38
|
+
recipients: number | number[];
|
|
39
|
+
/**
|
|
40
|
+
* The content of the message. It is required when file_uuid param is missing.
|
|
41
|
+
*/
|
|
42
|
+
message: string;
|
|
43
|
+
/**
|
|
44
|
+
* The private message file
|
|
45
|
+
*/
|
|
46
|
+
file_uuid?: SCPrivateMessageFileType;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* MessageMediaUploadParams interface.
|
|
50
|
+
*/
|
|
51
|
+
export interface MessageMediaUploadParams {
|
|
52
|
+
/**
|
|
53
|
+
* The file to upload.
|
|
54
|
+
*/
|
|
55
|
+
qqfile: Blob;
|
|
56
|
+
/**
|
|
57
|
+
* The type of the file to upload.
|
|
58
|
+
*/
|
|
59
|
+
qqfiletype?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the file to upload.
|
|
62
|
+
*/
|
|
63
|
+
qqfilename?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The duration (in seconds) of the video or audio track to upload.
|
|
66
|
+
*/
|
|
67
|
+
qqduration?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The size of the file to upload.
|
|
70
|
+
*/
|
|
71
|
+
qqtotalfilesize?: number;
|
|
72
|
+
/**
|
|
73
|
+
* The MD5 of the file to upload.
|
|
74
|
+
*/
|
|
75
|
+
qqmd5?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* MessageThumbnailUploadParams interface.
|
|
79
|
+
*/
|
|
80
|
+
export interface MessageThumbnailUploadParams {
|
|
81
|
+
/**
|
|
82
|
+
* The file to upload.
|
|
83
|
+
*/
|
|
84
|
+
qqfile: Blob;
|
|
85
|
+
/**
|
|
86
|
+
* The parent file uuid. It has to be the file_uuid returned by the previous call
|
|
87
|
+
*/
|
|
88
|
+
qqparentuuid: string;
|
|
89
|
+
/**
|
|
90
|
+
* The type of the file to upload.
|
|
91
|
+
*/
|
|
92
|
+
qqfiletype?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The name of the file to upload.
|
|
95
|
+
*/
|
|
96
|
+
qqfilename?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The size of the file to upload.
|
|
99
|
+
*/
|
|
100
|
+
qqtotalfilesize?: number;
|
|
101
|
+
/**
|
|
102
|
+
* The MD5 of the file to upload.
|
|
103
|
+
*/
|
|
104
|
+
qqmd5?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* MessageMediaChunksParams interface.
|
|
108
|
+
*/
|
|
109
|
+
export interface MessageMediaChunksParams {
|
|
110
|
+
/**
|
|
111
|
+
* The file to upload.
|
|
112
|
+
*/
|
|
113
|
+
qqfile: Blob;
|
|
114
|
+
/**
|
|
115
|
+
* The file uuid returned by the first chunk upload. It is required only when qqpartindex > 0.
|
|
116
|
+
*/
|
|
117
|
+
qquuid: string;
|
|
118
|
+
/**
|
|
119
|
+
* The index of the chunk part to upload. It starts at 0 and reaches qqtotalparts -1.
|
|
120
|
+
*/
|
|
121
|
+
qqpartindex: number;
|
|
122
|
+
/**
|
|
123
|
+
* The number of total parts of the chunk to upload.
|
|
124
|
+
*/
|
|
125
|
+
qqtotalparts: number;
|
|
126
|
+
/**
|
|
127
|
+
* The type of the file to upload.
|
|
128
|
+
*/
|
|
129
|
+
qqfiletype?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The size of the file to upload.
|
|
132
|
+
*/
|
|
133
|
+
qqtotalfilesize?: number;
|
|
134
|
+
/**
|
|
135
|
+
* The chunk byte offset.
|
|
136
|
+
*/
|
|
137
|
+
qqpartbyteoffset?: number;
|
|
138
|
+
/**
|
|
139
|
+
* The size of the chunk.
|
|
140
|
+
*/
|
|
141
|
+
qqchunksize?: number;
|
|
142
|
+
/**
|
|
143
|
+
* The name of the file to upload.
|
|
144
|
+
*/
|
|
145
|
+
qqfilename?: string;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* MessageChunkUploadDoneParams interface.
|
|
149
|
+
*/
|
|
150
|
+
export interface MessageChunkUploadDoneParams {
|
|
151
|
+
/**
|
|
152
|
+
* The file uuid returned by the first chunk upload. It is required only when qqpartindex > 0.
|
|
153
|
+
*/
|
|
154
|
+
qquuid: string;
|
|
155
|
+
/**
|
|
156
|
+
* The name of the file to upload.
|
|
157
|
+
*/
|
|
158
|
+
qqfilename: string;
|
|
159
|
+
/**
|
|
160
|
+
* The number of total parts of the chunk to upload.
|
|
161
|
+
*/
|
|
162
|
+
qqtotalparts?: number;
|
|
163
|
+
/**
|
|
164
|
+
* The MD5 of the file to upload.
|
|
165
|
+
*/
|
|
166
|
+
qqmd5?: string;
|
|
167
|
+
/**
|
|
168
|
+
* The type of the file to upload.
|
|
169
|
+
*/
|
|
170
|
+
qqfiletype?: string;
|
|
171
|
+
/**
|
|
172
|
+
* The size of the file to upload.
|
|
173
|
+
*/
|
|
174
|
+
qqtotalfilesize?: number;
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=privateMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateMessage.d.ts","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,gCAAgC,CAAC;AACxE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=privateMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateMessage.js","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SCUserType } from '@selfcommunity/types/src/types';
|
|
2
|
+
/**
|
|
3
|
+
* LoyaltyPrizeParams interface
|
|
4
|
+
*/
|
|
5
|
+
export interface LoyaltyPrizeParams {
|
|
6
|
+
/**
|
|
7
|
+
* Unique integer value
|
|
8
|
+
*/
|
|
9
|
+
id?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Is this prize active?
|
|
12
|
+
*/
|
|
13
|
+
active?: true;
|
|
14
|
+
/**
|
|
15
|
+
* The title of the prize
|
|
16
|
+
*/
|
|
17
|
+
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* A description of the prize
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Points to request this prize
|
|
24
|
+
*/
|
|
25
|
+
points: number;
|
|
26
|
+
/**
|
|
27
|
+
* Link to a web resource for this prize
|
|
28
|
+
*/
|
|
29
|
+
link?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Image of this prize
|
|
32
|
+
*/
|
|
33
|
+
image: string;
|
|
34
|
+
/**
|
|
35
|
+
* Date of creation
|
|
36
|
+
*/
|
|
37
|
+
created_at?: Date | string;
|
|
38
|
+
/**
|
|
39
|
+
* Date of last modify
|
|
40
|
+
*/
|
|
41
|
+
lastmod_datetime?: Date | string;
|
|
42
|
+
/**
|
|
43
|
+
* The user who created the prize
|
|
44
|
+
*/
|
|
45
|
+
created_by?: SCUserType;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=prize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prize.d.ts","sourceRoot":"","sources":["../../../src/types/prize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAE1D;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
|
package/lib/esm/types/prize.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=prize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prize.js","sourceRoot":"","sources":["../../../src/types/prize.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseGetParams } from './baseParams';
|
|
2
|
+
/**
|
|
3
|
+
* interface ScoreParams
|
|
4
|
+
*/
|
|
5
|
+
export interface ScoreParams extends BaseGetParams {
|
|
6
|
+
/**
|
|
7
|
+
* A search term.
|
|
8
|
+
*/
|
|
9
|
+
search?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The id of a specific user
|
|
12
|
+
*/
|
|
13
|
+
user_id?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Which field to use when ordering the results.
|
|
16
|
+
*/
|
|
17
|
+
ordering?: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=score.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score.d.ts","sourceRoot":"","sources":["../../../src/types/score.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score.js","sourceRoot":"","sources":["../../../src/types/score.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso.d.ts","sourceRoot":"","sources":["../../../src/types/sso.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB"}
|
package/lib/esm/types/sso.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso.js","sourceRoot":"","sources":["../../../src/types/sso.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TagParams interface
|
|
3
|
+
*/
|
|
4
|
+
import { BaseSearchParams } from './baseParams';
|
|
5
|
+
export interface TagParams {
|
|
6
|
+
/**
|
|
7
|
+
* Is this tag active?
|
|
8
|
+
*/
|
|
9
|
+
active?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The type of the tag (unique together name).
|
|
12
|
+
* It can be "user" (only for users) or "category" (only for category).
|
|
13
|
+
*/
|
|
14
|
+
type?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the tag (unique together type).
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Tag description
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Hexadecimal format color code with #
|
|
25
|
+
*/
|
|
26
|
+
color?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Is this tag publicly visible?
|
|
29
|
+
*/
|
|
30
|
+
visible?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The tag add a visibility boost.
|
|
33
|
+
*/
|
|
34
|
+
visibility_boost?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Is this tag deleted?
|
|
37
|
+
*/
|
|
38
|
+
deleted?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Interface TagGetParams
|
|
42
|
+
*/
|
|
43
|
+
export interface TagGetParams extends BaseSearchParams {
|
|
44
|
+
/**
|
|
45
|
+
* Is this tag active?
|
|
46
|
+
*/
|
|
47
|
+
active?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Is this tag deleted?
|
|
50
|
+
*/
|
|
51
|
+
deleted?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Is this tag publicly visible?
|
|
54
|
+
*/
|
|
55
|
+
visible?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The tag add a visibility boost.
|
|
58
|
+
*/
|
|
59
|
+
visibility_boost?: boolean;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
package/lib/esm/types/tag.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UserAutocompleteParams interface.
|
|
3
|
+
*/
|
|
4
|
+
import { BaseGetParams, BaseSearchParams } from './baseParams';
|
|
5
|
+
export interface UserAutocompleteParams extends BaseSearchParams {
|
|
6
|
+
/**
|
|
7
|
+
* Filter using field username.
|
|
8
|
+
*/
|
|
9
|
+
username?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Filter using field gender type.
|
|
12
|
+
*/
|
|
13
|
+
gender?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Filter using field real_name.
|
|
16
|
+
*/
|
|
17
|
+
real_name?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Filter using field location.
|
|
20
|
+
*/
|
|
21
|
+
location?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Filter using field description.
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Ordering fields (eg?: ?ordering=username). Minus char is used for descending ordering, eg. -username
|
|
28
|
+
*/
|
|
29
|
+
ordering?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* UserScoreParams interface.
|
|
33
|
+
*/
|
|
34
|
+
export interface UserScoreParams {
|
|
35
|
+
/**
|
|
36
|
+
* A comment about this operation (only for internal usage).
|
|
37
|
+
*/
|
|
38
|
+
comment?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Positive or negative integer value.
|
|
41
|
+
*/
|
|
42
|
+
score: number;
|
|
43
|
+
/**
|
|
44
|
+
* A unique integer value identifying the user
|
|
45
|
+
*/
|
|
46
|
+
user: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* UserSearchParams interface.
|
|
50
|
+
*/
|
|
51
|
+
export interface UserSearchParams extends BaseGetParams {
|
|
52
|
+
/**
|
|
53
|
+
* A search term. Search in fields: username, real_name. If this parameter is used username & real_name will be ignored.
|
|
54
|
+
*/
|
|
55
|
+
user?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Filter using field username.
|
|
58
|
+
*/
|
|
59
|
+
username?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Filter using field real_name.
|
|
62
|
+
*/
|
|
63
|
+
real_name?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Filter using field gender type.
|
|
66
|
+
*/
|
|
67
|
+
gender?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Filter using field location.
|
|
70
|
+
*/
|
|
71
|
+
location?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Filter using age ranges. Possible values: -30, 30-45, 45+. The value 45+ must be encoded in the request url: 45%2B.
|
|
74
|
+
*/
|
|
75
|
+
age?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Filter using coordinates lat,lng.
|
|
78
|
+
*/
|
|
79
|
+
lat_lng?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Use the coordinates (position_lat_lng or location_lat_lng) of the authenticated user.
|
|
82
|
+
*/
|
|
83
|
+
user_position?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Filter using field description.
|
|
86
|
+
*/
|
|
87
|
+
description?: string;
|
|
88
|
+
/**
|
|
89
|
+
*Filter the users that belong to the staff.
|
|
90
|
+
*/
|
|
91
|
+
is_staff?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Ordering fields (eg?: ?ordering=username). Minus char is used for descending ordering, eg. -username.
|
|
94
|
+
*/
|
|
95
|
+
ordering?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Filter using tag ID.
|
|
98
|
+
*/
|
|
99
|
+
tag?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Filter using category ID.
|
|
102
|
+
*/
|
|
103
|
+
category?: number;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE7D,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
package/lib/esm/types/user.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":""}
|