@selfcommunity/api-services 0.1.7 → 0.1.8-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{types → cjs}/client/index.d.ts +0 -0
- package/lib/{types → cjs}/client/index.d.ts.map +0 -0
- package/lib/cjs/client/index.js +112 -157
- package/lib/cjs/client/index.js.map +1 -0
- package/lib/{types → cjs}/constants/Endpoints.d.ts +0 -0
- package/lib/{types → cjs}/constants/Endpoints.d.ts.map +1 -1
- package/lib/cjs/constants/Endpoints.js +1017 -1051
- package/lib/cjs/constants/Endpoints.js.map +1 -0
- package/lib/{types → cjs}/index.d.ts +2 -2
- package/lib/{types → cjs}/index.d.ts.map +1 -1
- package/lib/cjs/index.js +134 -222
- package/lib/cjs/index.js.map +1 -0
- package/lib/{types → cjs}/services/category/index.d.ts +0 -0
- package/lib/{types → cjs}/services/category/index.d.ts.map +0 -0
- package/lib/cjs/services/category/index.js +218 -251
- package/lib/cjs/services/category/index.js.map +1 -0
- package/lib/{types → cjs}/services/comment/index.d.ts +5 -4
- package/lib/cjs/services/comment/index.d.ts.map +1 -0
- package/lib/cjs/services/comment/index.js +154 -181
- package/lib/cjs/services/comment/index.js.map +1 -0
- package/lib/{types → cjs}/services/custom_adv/index.d.ts +3 -3
- package/lib/cjs/services/custom_adv/index.d.ts.map +1 -0
- package/lib/cjs/services/custom_adv/index.js +56 -56
- package/lib/cjs/services/custom_adv/index.js.map +1 -0
- package/lib/{types → cjs}/services/custom_page/index.d.ts +0 -0
- package/lib/{types → cjs}/services/custom_page/index.d.ts.map +0 -0
- package/lib/cjs/services/custom_page/index.js +56 -56
- package/lib/cjs/services/custom_page/index.js.map +1 -0
- package/lib/{types → cjs}/services/data_portability/index.d.ts +0 -0
- package/lib/{types → cjs}/services/data_portability/index.d.ts.map +0 -0
- package/lib/cjs/services/data_portability/index.js +51 -49
- package/lib/cjs/services/data_portability/index.js.map +1 -0
- package/lib/{types → cjs}/services/embed/index.d.ts +8 -6
- package/lib/cjs/services/embed/index.d.ts.map +1 -0
- package/lib/cjs/services/embed/index.js +120 -128
- package/lib/cjs/services/embed/index.js.map +1 -0
- package/lib/cjs/services/feature/index.d.ts +19 -0
- package/lib/cjs/services/feature/index.d.ts.map +1 -0
- package/lib/cjs/services/feature/index.js +31 -25
- package/lib/cjs/services/feature/index.js.map +1 -0
- package/lib/{types → cjs}/services/feed/index.d.ts +2 -0
- package/lib/{types → cjs}/services/feed/index.d.ts.map +1 -1
- package/lib/cjs/services/feed/index.js +79 -81
- package/lib/cjs/services/feed/index.js.map +1 -0
- package/lib/{types → cjs}/services/feed_object/index.d.ts +9 -9
- package/lib/cjs/services/feed_object/index.d.ts.map +1 -0
- package/lib/cjs/services/feed_object/index.js +387 -485
- package/lib/cjs/services/feed_object/index.js.map +1 -0
- package/lib/{types → cjs}/services/incubator/index.d.ts +0 -0
- package/lib/{types → cjs}/services/incubator/index.d.ts.map +0 -0
- package/lib/cjs/services/incubator/index.js +104 -114
- package/lib/cjs/services/incubator/index.js.map +1 -0
- package/lib/{types → cjs}/services/insight/index.d.ts +13 -10
- package/lib/cjs/services/insight/index.d.ts.map +1 -0
- package/lib/cjs/services/insight/index.js +93 -94
- package/lib/cjs/services/insight/index.js.map +1 -0
- package/lib/{types → cjs}/services/legal_page/index.d.ts +0 -0
- package/lib/{types → cjs}/services/legal_page/index.d.ts.map +0 -0
- package/lib/cjs/services/legal_page/index.js +92 -102
- package/lib/cjs/services/legal_page/index.js.map +1 -0
- package/lib/cjs/services/locality/index.d.ts +26 -0
- package/lib/cjs/services/locality/index.d.ts.map +1 -0
- package/lib/cjs/services/locality/index.js +44 -37
- package/lib/cjs/services/locality/index.js.map +1 -0
- package/lib/{types → cjs}/services/loyalty/index.d.ts +3 -3
- package/lib/cjs/services/loyalty/index.d.ts.map +1 -0
- package/lib/cjs/services/loyalty/index.js +128 -148
- package/lib/cjs/services/loyalty/index.js.map +1 -0
- package/lib/{types → cjs}/services/media/index.d.ts +0 -0
- package/lib/{types → cjs}/services/media/index.d.ts.map +1 -1
- package/lib/cjs/services/media/index.js +107 -124
- package/lib/cjs/services/media/index.js.map +1 -0
- package/lib/{types → cjs}/services/moderation/index.d.ts +0 -0
- package/lib/{types → cjs}/services/moderation/index.d.ts.map +1 -1
- package/lib/cjs/services/moderation/index.js +95 -109
- package/lib/cjs/services/moderation/index.js.map +1 -0
- package/lib/{types → cjs}/services/notification/index.d.ts +3 -3
- package/lib/cjs/services/notification/index.d.ts.map +1 -0
- package/lib/cjs/services/notification/index.js +121 -131
- package/lib/cjs/services/notification/index.js.map +1 -0
- package/lib/{types → cjs}/services/preference/index.d.ts +0 -0
- package/lib/{types → cjs}/services/preference/index.d.ts.map +0 -0
- package/lib/cjs/services/preference/index.js +57 -65
- package/lib/cjs/services/preference/index.js.map +1 -0
- package/lib/{types → cjs}/services/private_message/index.d.ts +0 -0
- package/lib/{types → cjs}/services/private_message/index.d.ts.map +0 -0
- package/lib/cjs/services/private_message/index.js +137 -148
- package/lib/cjs/services/private_message/index.js.map +1 -0
- package/lib/cjs/services/score/index.d.ts +33 -0
- package/lib/cjs/services/score/index.d.ts.map +1 -0
- package/lib/cjs/services/score/index.js +56 -50
- package/lib/cjs/services/score/index.js.map +1 -0
- package/lib/{types → cjs}/services/sso/index.d.ts +2 -1
- package/lib/{types → cjs}/services/sso/index.d.ts.map +1 -1
- package/lib/cjs/services/sso/index.js +42 -38
- package/lib/cjs/services/sso/index.js.map +1 -0
- package/lib/{types → cjs}/services/suggestion/index.d.ts +0 -0
- package/lib/{types → cjs}/services/suggestion/index.d.ts.map +0 -0
- package/lib/cjs/services/suggestion/index.js +62 -61
- package/lib/cjs/services/suggestion/index.js.map +1 -0
- package/lib/{types → cjs}/services/tag/index.d.ts +10 -7
- package/lib/cjs/services/tag/index.d.ts.map +1 -0
- package/lib/cjs/services/tag/index.js +110 -119
- package/lib/cjs/services/tag/index.js.map +1 -0
- package/lib/{types → cjs}/services/user/index.d.ts +16 -12
- package/lib/cjs/services/user/index.d.ts.map +1 -0
- package/lib/cjs/services/user/index.js +606 -715
- package/lib/cjs/services/user/index.js.map +1 -0
- package/lib/{types → cjs}/services/webhook/index.d.ts +0 -0
- package/lib/{types → cjs}/services/webhook/index.d.ts.map +0 -0
- package/lib/cjs/services/webhook/index.js +164 -193
- package/lib/cjs/services/webhook/index.js.map +1 -0
- package/lib/{types → cjs}/types/baseParams.d.ts +0 -0
- package/lib/{types → cjs}/types/baseParams.d.ts.map +0 -0
- package/lib/cjs/types/baseParams.js +5 -2
- package/lib/cjs/types/baseParams.js.map +1 -0
- package/lib/{types → cjs}/types/category.d.ts +0 -0
- package/lib/{types → cjs}/types/category.d.ts.map +0 -0
- package/lib/cjs/types/category.js +2 -2
- package/lib/cjs/types/category.js.map +1 -0
- package/lib/{types → cjs}/types/comment.d.ts +0 -0
- package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
- package/lib/cjs/types/comment.js +2 -2
- package/lib/cjs/types/comment.js.map +1 -0
- package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
- package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
- package/lib/cjs/types/customAdv.js +2 -2
- package/lib/cjs/types/customAdv.js.map +1 -0
- package/lib/{types → cjs}/types/customPage.d.ts +0 -0
- package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
- package/lib/cjs/types/customPage.js +2 -2
- package/lib/cjs/types/customPage.js.map +1 -0
- package/lib/{types → cjs}/types/embed.d.ts +0 -0
- package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
- package/lib/cjs/types/embed.js +2 -2
- package/lib/cjs/types/embed.js.map +1 -0
- package/lib/cjs/types/feature.d.ts +11 -0
- package/lib/cjs/types/feature.d.ts.map +1 -0
- package/lib/cjs/types/feature.js +3 -0
- package/lib/cjs/types/feature.js.map +1 -0
- package/lib/{types → cjs}/types/feed.d.ts +0 -0
- package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
- package/lib/cjs/types/feed.js +2 -2
- package/lib/cjs/types/feed.js.map +1 -0
- package/lib/{types → cjs}/types/feedObject.d.ts +0 -0
- package/lib/{types → cjs}/types/feedObject.d.ts.map +0 -0
- package/lib/cjs/types/feedObject.js +2 -2
- package/lib/cjs/types/feedObject.js.map +1 -0
- package/lib/{types → cjs}/types/incubator.d.ts +0 -0
- package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
- package/lib/cjs/types/incubator.js +2 -2
- package/lib/cjs/types/incubator.js.map +1 -0
- package/lib/{types → cjs}/types/index.d.ts +5 -2
- package/lib/cjs/types/index.d.ts.map +1 -0
- package/lib/cjs/types/index.js +6 -101
- package/lib/cjs/types/index.js.map +1 -0
- package/lib/cjs/types/insight.d.ts +67 -0
- package/lib/cjs/types/insight.d.ts.map +1 -0
- package/lib/cjs/types/insight.js +3 -0
- package/lib/cjs/types/insight.js.map +1 -0
- package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
- package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
- package/lib/cjs/types/legalPage.js +2 -2
- package/lib/cjs/types/legalPage.js.map +1 -0
- package/lib/{types → cjs}/types/media.d.ts +0 -0
- package/lib/{types → cjs}/types/media.d.ts.map +0 -0
- package/lib/cjs/types/media.js +22 -26
- package/lib/cjs/types/media.js.map +1 -0
- package/lib/{types → cjs}/types/moderation.d.ts +1 -1
- package/lib/{types → cjs}/types/moderation.d.ts.map +1 -1
- package/lib/cjs/types/moderation.js +2 -2
- package/lib/cjs/types/moderation.js.map +1 -0
- package/lib/{types → cjs}/types/notification.d.ts +0 -0
- package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
- package/lib/cjs/types/notification.js +2 -2
- package/lib/cjs/types/notification.js.map +1 -0
- package/lib/{types → cjs}/types/paginatedResponse.d.ts +0 -0
- package/lib/{types → cjs}/types/paginatedResponse.d.ts.map +0 -0
- package/lib/cjs/types/paginatedResponse.js +5 -2
- package/lib/cjs/types/paginatedResponse.js.map +1 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
- package/lib/cjs/types/privateMessage.js +2 -2
- package/lib/cjs/types/privateMessage.js.map +1 -0
- package/lib/{types → cjs}/types/prize.d.ts +0 -0
- package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
- package/lib/cjs/types/prize.js +2 -2
- package/lib/cjs/types/prize.js.map +1 -0
- package/lib/cjs/types/score.d.ts +19 -0
- package/lib/cjs/types/score.d.ts.map +1 -0
- package/lib/cjs/types/score.js +3 -0
- package/lib/cjs/types/score.js.map +1 -0
- package/lib/{types → cjs}/types/sso.d.ts +0 -0
- package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
- package/lib/cjs/types/sso.js +5 -2
- package/lib/cjs/types/sso.js.map +1 -0
- package/lib/{types → cjs}/types/tag.d.ts +22 -0
- package/lib/cjs/types/tag.d.ts.map +1 -0
- package/lib/cjs/types/tag.js +2 -2
- package/lib/cjs/types/tag.js.map +1 -0
- package/lib/{types → cjs}/types/user.d.ts +0 -0
- package/lib/{types → cjs}/types/user.d.ts.map +0 -0
- package/lib/cjs/types/user.js +2 -2
- package/lib/cjs/types/user.js.map +1 -0
- package/lib/{types → cjs}/types/webhook.d.ts +0 -0
- package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
- package/lib/cjs/types/webhook.js +2 -2
- package/lib/cjs/types/webhook.js.map +1 -0
- package/lib/cjs/utils/apiRequest.d.ts +2 -0
- package/lib/{types → cjs}/utils/apiRequest.d.ts.map +1 -1
- package/lib/cjs/utils/apiRequest.js +26 -25
- package/lib/cjs/utils/apiRequest.js.map +1 -0
- package/lib/{types → cjs}/utils/http.d.ts +0 -0
- package/lib/{types → cjs}/utils/http.d.ts.map +0 -0
- package/lib/cjs/utils/http.js +41 -45
- package/lib/cjs/utils/http.js.map +1 -0
- package/lib/{types → cjs}/utils/token.d.ts +0 -0
- package/lib/{types → cjs}/utils/token.d.ts.map +0 -0
- package/lib/cjs/utils/token.js +62 -31
- package/lib/cjs/utils/token.js.map +1 -0
- package/lib/esm/client/index.d.ts +115 -0
- package/lib/esm/client/index.d.ts.map +1 -0
- package/lib/esm/client/index.js +108 -160
- package/lib/esm/client/index.js.map +1 -0
- package/lib/esm/constants/Endpoints.d.ts +10 -0
- package/lib/esm/constants/Endpoints.d.ts.map +1 -0
- package/lib/esm/constants/Endpoints.js +1016 -1052
- package/lib/esm/constants/Endpoints.js.map +1 -0
- package/lib/esm/index.d.ts +51 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +51 -223
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/services/category/index.d.ts +127 -0
- package/lib/esm/services/category/index.d.ts.map +1 -0
- package/lib/esm/services/category/index.js +214 -255
- package/lib/esm/services/category/index.js.map +1 -0
- package/lib/esm/services/comment/index.d.ts +92 -0
- package/lib/esm/services/comment/index.d.ts.map +1 -0
- package/lib/esm/services/comment/index.js +150 -185
- package/lib/esm/services/comment/index.js.map +1 -0
- package/lib/esm/services/custom_adv/index.d.ts +33 -0
- package/lib/esm/services/custom_adv/index.d.ts.map +1 -0
- package/lib/esm/services/custom_adv/index.js +52 -60
- package/lib/esm/services/custom_adv/index.js.map +1 -0
- package/lib/esm/services/custom_page/index.d.ts +33 -0
- package/lib/esm/services/custom_page/index.d.ts.map +1 -0
- package/lib/esm/services/custom_page/index.js +52 -60
- package/lib/esm/services/custom_page/index.js.map +1 -0
- package/lib/esm/services/data_portability/index.d.ts +29 -0
- package/lib/esm/services/data_portability/index.d.ts.map +1 -0
- package/lib/esm/services/data_portability/index.js +47 -53
- package/lib/esm/services/data_portability/index.js.map +1 -0
- package/lib/esm/services/embed/index.d.ts +71 -0
- package/lib/esm/services/embed/index.d.ts.map +1 -0
- package/lib/esm/services/embed/index.js +116 -132
- package/lib/esm/services/embed/index.js.map +1 -0
- package/lib/esm/services/feature/index.d.ts +19 -0
- package/lib/esm/services/feature/index.d.ts.map +1 -0
- package/lib/esm/services/feature/index.js +27 -29
- package/lib/esm/services/feature/index.js.map +1 -0
- package/lib/esm/services/feed/index.d.ts +46 -0
- package/lib/esm/services/feed/index.d.ts.map +1 -0
- package/lib/esm/services/feed/index.js +75 -85
- package/lib/esm/services/feed/index.js.map +1 -0
- package/lib/esm/services/feed_object/index.d.ts +236 -0
- package/lib/esm/services/feed_object/index.d.ts.map +1 -0
- package/lib/esm/services/feed_object/index.js +383 -489
- package/lib/esm/services/feed_object/index.js.map +1 -0
- package/lib/esm/services/incubator/index.d.ts +61 -0
- package/lib/esm/services/incubator/index.d.ts.map +1 -0
- package/lib/esm/services/incubator/index.js +100 -118
- package/lib/esm/services/incubator/index.js.map +1 -0
- package/lib/esm/services/insight/index.d.ts +54 -0
- package/lib/esm/services/insight/index.d.ts.map +1 -0
- package/lib/esm/services/insight/index.js +89 -98
- package/lib/esm/services/insight/index.js.map +1 -0
- package/lib/esm/services/legal_page/index.d.ts +53 -0
- package/lib/esm/services/legal_page/index.d.ts.map +1 -0
- package/lib/esm/services/legal_page/index.js +88 -106
- package/lib/esm/services/legal_page/index.js.map +1 -0
- package/lib/esm/services/locality/index.d.ts +26 -0
- package/lib/esm/services/locality/index.d.ts.map +1 -0
- package/lib/esm/services/locality/index.js +40 -41
- package/lib/esm/services/locality/index.js.map +1 -0
- package/lib/esm/services/loyalty/index.d.ts +77 -0
- package/lib/esm/services/loyalty/index.d.ts.map +1 -0
- package/lib/esm/services/loyalty/index.js +124 -152
- package/lib/esm/services/loyalty/index.js.map +1 -0
- package/lib/esm/services/media/index.d.ts +65 -0
- package/lib/esm/services/media/index.d.ts.map +1 -0
- package/lib/esm/services/media/index.js +103 -128
- package/lib/esm/services/media/index.js.map +1 -0
- package/lib/esm/services/moderation/index.d.ts +58 -0
- package/lib/esm/services/moderation/index.d.ts.map +1 -0
- package/lib/esm/services/moderation/index.js +91 -113
- package/lib/esm/services/moderation/index.js.map +1 -0
- package/lib/esm/services/notification/index.d.ts +70 -0
- package/lib/esm/services/notification/index.d.ts.map +1 -0
- package/lib/esm/services/notification/index.js +117 -135
- package/lib/esm/services/notification/index.js.map +1 -0
- package/lib/esm/services/preference/index.d.ts +35 -0
- package/lib/esm/services/preference/index.d.ts.map +1 -0
- package/lib/esm/services/preference/index.js +53 -69
- package/lib/esm/services/preference/index.js.map +1 -0
- package/lib/esm/services/private_message/index.d.ts +81 -0
- package/lib/esm/services/private_message/index.d.ts.map +1 -0
- package/lib/esm/services/private_message/index.js +133 -152
- package/lib/esm/services/private_message/index.js.map +1 -0
- package/lib/esm/services/score/index.d.ts +33 -0
- package/lib/esm/services/score/index.d.ts.map +1 -0
- package/lib/esm/services/score/index.js +52 -54
- package/lib/esm/services/score/index.js.map +1 -0
- package/lib/esm/services/sso/index.d.ts +26 -0
- package/lib/esm/services/sso/index.d.ts.map +1 -0
- package/lib/esm/services/sso/index.js +38 -42
- package/lib/esm/services/sso/index.js.map +1 -0
- package/lib/esm/services/suggestion/index.d.ts +36 -0
- package/lib/esm/services/suggestion/index.d.ts.map +1 -0
- package/lib/esm/services/suggestion/index.js +58 -65
- package/lib/esm/services/suggestion/index.js.map +1 -0
- package/lib/esm/services/tag/index.d.ts +67 -0
- package/lib/esm/services/tag/index.d.ts.map +1 -0
- package/lib/esm/services/tag/index.js +106 -123
- package/lib/esm/services/tag/index.js.map +1 -0
- package/lib/esm/services/user/index.d.ts +351 -0
- package/lib/esm/services/user/index.d.ts.map +1 -0
- package/lib/esm/services/user/index.js +602 -719
- package/lib/esm/services/user/index.js.map +1 -0
- package/lib/esm/services/webhook/index.d.ts +99 -0
- package/lib/esm/services/webhook/index.d.ts.map +1 -0
- package/lib/esm/services/webhook/index.js +160 -197
- package/lib/esm/services/webhook/index.js.map +1 -0
- package/lib/esm/types/baseParams.d.ts +23 -0
- package/lib/esm/types/baseParams.d.ts.map +1 -0
- package/lib/esm/types/baseParams.js +5 -3
- package/lib/esm/types/baseParams.js.map +1 -0
- package/lib/esm/types/category.d.ts +15 -0
- package/lib/esm/types/category.d.ts.map +1 -0
- package/lib/esm/types/category.js +2 -3
- package/lib/esm/types/category.js.map +1 -0
- package/lib/esm/types/comment.d.ts +51 -0
- package/lib/esm/types/comment.d.ts.map +1 -0
- package/lib/esm/types/comment.js +2 -3
- package/lib/esm/types/comment.js.map +1 -0
- package/lib/esm/types/customAdv.d.ts +19 -0
- package/lib/esm/types/customAdv.d.ts.map +1 -0
- package/lib/esm/types/customAdv.js +2 -3
- package/lib/esm/types/customAdv.js.map +1 -0
- package/lib/esm/types/customPage.d.ts +24 -0
- package/lib/esm/types/customPage.d.ts.map +1 -0
- package/lib/esm/types/customPage.js +2 -3
- package/lib/esm/types/customPage.js.map +1 -0
- package/lib/esm/types/embed.d.ts +26 -0
- package/lib/esm/types/embed.d.ts.map +1 -0
- package/lib/esm/types/embed.js +2 -3
- package/lib/esm/types/embed.js.map +1 -0
- package/lib/esm/types/feature.d.ts +11 -0
- package/lib/esm/types/feature.d.ts.map +1 -0
- package/lib/esm/types/feature.js +2 -0
- package/lib/esm/types/feature.js.map +1 -0
- package/lib/esm/types/feed.d.ts +11 -0
- package/lib/esm/types/feed.d.ts.map +1 -0
- package/lib/esm/types/feed.js +2 -3
- package/lib/esm/types/feed.js.map +1 -0
- package/lib/esm/types/feedObject.d.ts +56 -0
- package/lib/esm/types/feedObject.d.ts.map +1 -0
- package/lib/esm/types/feedObject.js +2 -3
- package/lib/esm/types/feedObject.js.map +1 -0
- package/lib/esm/types/incubator.d.ts +33 -0
- package/lib/esm/types/incubator.d.ts.map +1 -0
- package/lib/esm/types/incubator.js +2 -3
- package/lib/esm/types/incubator.js.map +1 -0
- package/lib/esm/types/index.d.ts +25 -0
- package/lib/esm/types/index.d.ts.map +1 -0
- package/lib/esm/types/index.js +3 -102
- package/lib/esm/types/index.js.map +1 -0
- package/lib/esm/types/insight.d.ts +67 -0
- package/lib/esm/types/insight.d.ts.map +1 -0
- package/lib/esm/types/insight.js +2 -0
- package/lib/esm/types/insight.js.map +1 -0
- package/lib/esm/types/legalPage.d.ts +19 -0
- package/lib/esm/types/legalPage.d.ts.map +1 -0
- package/lib/esm/types/legalPage.js +2 -3
- package/lib/esm/types/legalPage.js.map +1 -0
- package/lib/esm/types/media.d.ts +80 -0
- package/lib/esm/types/media.d.ts.map +1 -0
- package/lib/esm/types/media.js +20 -27
- package/lib/esm/types/media.js.map +1 -0
- package/lib/esm/types/moderation.d.ts +23 -0
- package/lib/esm/types/moderation.d.ts.map +1 -0
- package/lib/esm/types/moderation.js +2 -3
- package/lib/esm/types/moderation.js.map +1 -0
- package/lib/esm/types/notification.d.ts +31 -0
- package/lib/esm/types/notification.d.ts.map +1 -0
- package/lib/esm/types/notification.js +2 -3
- package/lib/esm/types/notification.js.map +1 -0
- package/lib/esm/types/paginatedResponse.d.ts +10 -0
- package/lib/esm/types/paginatedResponse.d.ts.map +1 -0
- package/lib/esm/types/paginatedResponse.js +5 -3
- package/lib/esm/types/paginatedResponse.js.map +1 -0
- package/lib/esm/types/privateMessage.d.ts +176 -0
- package/lib/esm/types/privateMessage.d.ts.map +1 -0
- package/lib/esm/types/privateMessage.js +2 -3
- package/lib/esm/types/privateMessage.js.map +1 -0
- package/lib/esm/types/prize.d.ts +47 -0
- package/lib/esm/types/prize.d.ts.map +1 -0
- package/lib/esm/types/prize.js +2 -3
- package/lib/esm/types/prize.js.map +1 -0
- package/lib/esm/types/score.d.ts +19 -0
- package/lib/esm/types/score.d.ts.map +1 -0
- package/lib/esm/types/score.js +2 -0
- package/lib/esm/types/score.js.map +1 -0
- package/lib/esm/types/sso.d.ts +12 -0
- package/lib/esm/types/sso.d.ts.map +1 -0
- package/lib/esm/types/sso.js +5 -3
- package/lib/esm/types/sso.js.map +1 -0
- package/lib/esm/types/tag.d.ts +61 -0
- package/lib/esm/types/tag.d.ts.map +1 -0
- package/lib/esm/types/tag.js +2 -3
- package/lib/esm/types/tag.js.map +1 -0
- package/lib/esm/types/user.d.ts +105 -0
- package/lib/esm/types/user.d.ts.map +1 -0
- package/lib/esm/types/user.js +2 -3
- package/lib/esm/types/user.js.map +1 -0
- package/lib/esm/types/webhook.d.ts +32 -0
- package/lib/esm/types/webhook.d.ts.map +1 -0
- package/lib/esm/types/webhook.js +2 -3
- package/lib/esm/types/webhook.js.map +1 -0
- package/lib/esm/utils/apiRequest.d.ts +2 -0
- package/lib/esm/utils/apiRequest.d.ts.map +1 -0
- package/lib/esm/utils/apiRequest.js +21 -27
- package/lib/esm/utils/apiRequest.js.map +1 -0
- package/lib/esm/utils/http.d.ts +6 -0
- package/lib/esm/utils/http.d.ts.map +1 -0
- package/lib/esm/utils/http.js +39 -48
- package/lib/esm/utils/http.js.map +1 -0
- package/lib/esm/utils/token.d.ts +21 -0
- package/lib/esm/utils/token.d.ts.map +1 -0
- package/lib/esm/utils/token.js +36 -33
- package/lib/esm/utils/token.js.map +1 -0
- package/lib/umd/api-services.js +1 -1
- package/lib/umd/api-services.js.map +1 -1
- package/package.json +7 -9
- package/lib/cjs/index.d.js +0 -2
- package/lib/esm/index.d.js +0 -2
- package/lib/types/services/comment/index.d.ts.map +0 -1
- package/lib/types/services/custom_adv/index.d.ts.map +0 -1
- package/lib/types/services/embed/index.d.ts.map +0 -1
- package/lib/types/services/feature/index.d.ts +0 -18
- package/lib/types/services/feature/index.d.ts.map +0 -1
- package/lib/types/services/feed_object/index.d.ts.map +0 -1
- package/lib/types/services/insight/index.d.ts.map +0 -1
- package/lib/types/services/locality/index.d.ts +0 -24
- package/lib/types/services/locality/index.d.ts.map +0 -1
- package/lib/types/services/loyalty/index.d.ts.map +0 -1
- package/lib/types/services/notification/index.d.ts.map +0 -1
- package/lib/types/services/score/index.d.ts +0 -31
- package/lib/types/services/score/index.d.ts.map +0 -1
- package/lib/types/services/tag/index.d.ts.map +0 -1
- package/lib/types/services/user/index.d.ts.map +0 -1
- package/lib/types/tsconfig.build.tsbuildinfo +0 -1
- package/lib/types/types/index.d.ts.map +0 -1
- package/lib/types/types/tag.d.ts.map +0 -1
- package/lib/types/utils/apiRequest.d.ts +0 -2
package/lib/cjs/utils/http.js
CHANGED
|
@@ -1,51 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
exports.formatHttpError = formatHttpError;
|
|
6
|
-
|
|
7
|
-
var _utils = require("@selfcommunity/utils");
|
|
8
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatHttpError = exports.defaultError = void 0;
|
|
4
|
+
const utils_1 = require("@selfcommunity/utils");
|
|
9
5
|
function defaultError(error) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
if (error.request) {
|
|
7
|
+
// The request was made but no response was received
|
|
8
|
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
|
9
|
+
// http.ClientRequest in node.js
|
|
10
|
+
console.log(error.request);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
// Something happened in setting up the request that triggered an Error
|
|
14
|
+
console.log('Error', error.message);
|
|
15
|
+
}
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
const formatError = error => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
exports.defaultError = defaultError;
|
|
18
|
+
const formatError = (error) => {
|
|
19
|
+
const errors = {};
|
|
20
|
+
if (Array.isArray(error)) {
|
|
21
|
+
for (let i = 0; i < error.length; i++) {
|
|
22
|
+
const err = error[i];
|
|
23
|
+
if (err.field) {
|
|
24
|
+
errors[`${(0, utils_1.camelCase)(err.field)}Error`] = Array.isArray(err.messages) ? formatError(err.messages) : err.messages;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
errors.error = err.message;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
33
30
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return errors;
|
|
31
|
+
else {
|
|
32
|
+
errors.error = error.errors;
|
|
33
|
+
}
|
|
34
|
+
return errors;
|
|
39
35
|
};
|
|
40
|
-
|
|
41
36
|
function formatHttpError(error) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
let errors = {};
|
|
38
|
+
if (error.response && error.response.data && typeof error.response.data === 'object' && error.response.data.errors) {
|
|
39
|
+
errors = Object.assign({}, formatError(error.response.data.errors));
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
defaultError(error);
|
|
43
|
+
}
|
|
44
|
+
return errors;
|
|
45
|
+
}
|
|
46
|
+
exports.formatHttpError = formatHttpError;
|
|
47
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/utils/http.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAE/C,SAAgB,YAAY,CAAC,KAAqC;IAChE,IAAI,KAAK,CAAC,OAAO,EAAE;QACjB,oDAAoD;QACpD,qFAAqF;QACrF,gCAAgC;QAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;KAC5B;SAAM;QACL,uEAAuE;QACvE,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;KACrC;AACH,CAAC;AAVD,oCAUC;AAED,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,EAAE;IAC5B,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAA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createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.parseJwt = exports.generateJWTToken = void 0;
|
|
36
|
+
const jose = __importStar(require("jose"));
|
|
13
37
|
/**
|
|
14
38
|
* Generate a JWT
|
|
15
39
|
:::tipContext can be consumed as following:
|
|
@@ -24,29 +48,36 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
24
48
|
* @param secretKey
|
|
25
49
|
* @param expirationTime
|
|
26
50
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
51
|
+
function generateJWTToken(userId, secretKey, expirationTime = '2h') {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
let data = {
|
|
54
|
+
token_type: 'access',
|
|
55
|
+
user_id: userId,
|
|
56
|
+
jti: new Date().getTime().toString()
|
|
57
|
+
};
|
|
58
|
+
const privateKey = new TextEncoder().encode(secretKey);
|
|
59
|
+
return yield new jose.SignJWT(data)
|
|
60
|
+
.setProtectedHeader({ alg: 'HS256', typ: 'JWT' })
|
|
61
|
+
.setIssuedAt()
|
|
62
|
+
.setExpirationTime(expirationTime ? expirationTime : '2h')
|
|
63
|
+
.sign(privateKey);
|
|
64
|
+
});
|
|
38
65
|
}
|
|
66
|
+
exports.generateJWTToken = generateJWTToken;
|
|
39
67
|
/**
|
|
40
68
|
* Extract from a jwt token payload
|
|
41
69
|
* @param token
|
|
42
70
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
71
|
function parseJwt(token) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
72
|
+
let base64Url = token.split('.')[1];
|
|
73
|
+
let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
74
|
+
let jsonPayload = decodeURIComponent(atob(base64)
|
|
75
|
+
.split('')
|
|
76
|
+
.map(function (c) {
|
|
77
|
+
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
78
|
+
})
|
|
79
|
+
.join(''));
|
|
80
|
+
return JSON.parse(jsonPayload);
|
|
81
|
+
}
|
|
82
|
+
exports.parseJwt = parseJwt;
|
|
83
|
+
//# sourceMappingURL=token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../src/utils/token.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B;;;;;;;;;;;;;GAaG;AACH,SAAsB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,GAAG,IAAI;;QAC7E,IAAI,IAAI,GAAG;YACT,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,MAAM;YACf,GAAG,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;SACrC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvD,OAAO,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;aAChC,kBAAkB,CAAC,EAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAC,CAAC;aAC9C,WAAW,EAAE;aACb,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;aACzD,IAAI,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;CAAA;AAZD,4CAYC;AAED;;;GAGG;AACH,SAAgB,QAAQ,CAAC,KAAK;IAC5B,IAAI,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,IAAI,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC7D,IAAI,WAAW,GAAG,kBAAkB,CAClC,IAAI,CAAC,MAAM,CAAC;SACT,KAAK,CAAC,EAAE,CAAC;SACT,GAAG,CAAC,UAAU,CAAC;QACd,OAAO,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC;SACD,IAAI,CAAC,EAAE,CAAC,CACZ,CAAC;IACF,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC;AAZD,4BAYC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
/**
|
|
3
|
+
* List of all Http methods
|
|
4
|
+
*/
|
|
5
|
+
export declare type HttpMethod = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
6
|
+
/**
|
|
7
|
+
* AxiosResponseHeaders interface
|
|
8
|
+
*/
|
|
9
|
+
export declare type AxiosResponseHeaders = Record<string, string> & {
|
|
10
|
+
'set-cookie'?: string[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* General HttpResponse
|
|
14
|
+
*/
|
|
15
|
+
export interface HttpResponse<T = unknown, D = any> {
|
|
16
|
+
data: T;
|
|
17
|
+
status: number;
|
|
18
|
+
statusText: string;
|
|
19
|
+
headers: AxiosResponseHeaders;
|
|
20
|
+
config: AxiosRequestConfig<D>;
|
|
21
|
+
request?: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Interface for the ApiClient
|
|
25
|
+
*/
|
|
26
|
+
export interface ApiClientInterface {
|
|
27
|
+
request<TRequest, TResponse>(config?: any): Promise<HttpResponse<TResponse>>;
|
|
28
|
+
post<TRequest, TResponse>(path: string, object: TRequest, config?: any): Promise<HttpResponse<TResponse>>;
|
|
29
|
+
patch<TRequest, TResponse>(path: string, object: TRequest): Promise<HttpResponse<TResponse>>;
|
|
30
|
+
put<TRequest, TResponse>(path: string, object: TRequest): Promise<HttpResponse<TResponse>>;
|
|
31
|
+
get<TResponse>(path: string): Promise<HttpResponse<TResponse>>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create an abstraction wrapping of axios
|
|
35
|
+
* Create a sort of interface between axios and the rest of application
|
|
36
|
+
* This makes it easy for instance, to swap axios out for another package,
|
|
37
|
+
* should we choose to do so in the future, without it breaking our app.
|
|
38
|
+
*/
|
|
39
|
+
export declare class ApiClient implements ApiClientInterface {
|
|
40
|
+
static DEFAULT_TIMEOUT: number;
|
|
41
|
+
protected readonly client: AxiosInstance;
|
|
42
|
+
protected createClient(config?: any): AxiosInstance;
|
|
43
|
+
constructor(config?: any);
|
|
44
|
+
/**
|
|
45
|
+
* Get client instance
|
|
46
|
+
*/
|
|
47
|
+
getClientInstance(): AxiosInstance;
|
|
48
|
+
/**
|
|
49
|
+
* Change configuration
|
|
50
|
+
* @param config
|
|
51
|
+
*/
|
|
52
|
+
config(config: any): void;
|
|
53
|
+
/**
|
|
54
|
+
* Set default header
|
|
55
|
+
* @param name
|
|
56
|
+
* @param value
|
|
57
|
+
* @param methods
|
|
58
|
+
*/
|
|
59
|
+
setDefaultHeader: ({ name, value, methods }: {
|
|
60
|
+
name: string;
|
|
61
|
+
value: string;
|
|
62
|
+
methods?: string[];
|
|
63
|
+
}) => void;
|
|
64
|
+
/**
|
|
65
|
+
* setSupportWithCredentials
|
|
66
|
+
* Disable/enable withCredentials
|
|
67
|
+
* Bypass cookie if disabled
|
|
68
|
+
* @param enable
|
|
69
|
+
*/
|
|
70
|
+
setSupportWithCredentials(enable: boolean): void;
|
|
71
|
+
/**
|
|
72
|
+
* setBasePortal
|
|
73
|
+
* Set base path of all http requests
|
|
74
|
+
* @param portal
|
|
75
|
+
*/
|
|
76
|
+
setBasePortal(baseUrl: string): void;
|
|
77
|
+
/**
|
|
78
|
+
* setAuthorizeToken
|
|
79
|
+
* Set authorization header for all http requests
|
|
80
|
+
* @param token
|
|
81
|
+
*/
|
|
82
|
+
setAuthorizeToken(token: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* request wrapper
|
|
85
|
+
* @param config
|
|
86
|
+
*/
|
|
87
|
+
request<TRequest, TResponse>(config: any): Promise<HttpResponse<TResponse>>;
|
|
88
|
+
/**
|
|
89
|
+
* get wrapper
|
|
90
|
+
* @param path
|
|
91
|
+
*/
|
|
92
|
+
get<TResponse>(path: string): Promise<HttpResponse<TResponse>>;
|
|
93
|
+
/**
|
|
94
|
+
* post wrapper
|
|
95
|
+
* @param path
|
|
96
|
+
* @param payload
|
|
97
|
+
* @param config
|
|
98
|
+
*/
|
|
99
|
+
post<TRequest, TResponse>(path: string, payload: TRequest, config?: any): Promise<HttpResponse<TResponse>>;
|
|
100
|
+
/**
|
|
101
|
+
* patch wrapper
|
|
102
|
+
* @param path
|
|
103
|
+
* @param object
|
|
104
|
+
*/
|
|
105
|
+
patch<TRequest, TResponse>(path: string, payload: TRequest): Promise<HttpResponse<TResponse>>;
|
|
106
|
+
/**
|
|
107
|
+
* put wrapper
|
|
108
|
+
* @param path
|
|
109
|
+
* @param payload
|
|
110
|
+
*/
|
|
111
|
+
put<TRequest, TResponse>(path: string, payload: TRequest): Promise<HttpResponse<TResponse>>;
|
|
112
|
+
}
|
|
113
|
+
declare const client: ApiClient;
|
|
114
|
+
export default client;
|
|
115
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAC,aAAa,EAAE,kBAAkB,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AIG;IACH,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAI7F;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;CAG5F;AAED,QAAA,MAAM,MAAM,WAAkB,CAAC;AAC/B,eAAe,MAAM,CAAC"}
|
package/lib/esm/client/index.js
CHANGED
|
@@ -1,170 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.ApiClient = void 0;
|
|
5
|
-
|
|
6
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
7
|
-
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
1
|
+
import axios from 'axios';
|
|
10
2
|
/**
|
|
11
3
|
* Create an abstraction wrapping of axios
|
|
12
4
|
* Create a sort of interface between axios and the rest of application
|
|
13
5
|
* This makes it easy for instance, to swap axios out for another package,
|
|
14
6
|
* should we choose to do so in the future, without it breaking our app.
|
|
15
7
|
*/
|
|
16
|
-
class ApiClient {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
8
|
+
export class ApiClient {
|
|
9
|
+
constructor(config) {
|
|
10
|
+
/**
|
|
11
|
+
* Set default header
|
|
12
|
+
* @param name
|
|
13
|
+
* @param value
|
|
14
|
+
* @param methods
|
|
15
|
+
*/
|
|
16
|
+
this.setDefaultHeader = ({ name, value, methods }) => {
|
|
17
|
+
const headers = this.client.defaults.headers;
|
|
18
|
+
if (Array.isArray(methods)) {
|
|
19
|
+
methods.forEach((method) => {
|
|
20
|
+
if (headers[method]) {
|
|
21
|
+
headers[method][name] = value;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
headers.common[name] = value;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
this.client = this.createClient(config);
|
|
30
|
+
this.setDefaultHeader({ name: 'Content-Type', value: 'application/x-www-form-urlencoded', methods: ['post'] });
|
|
31
|
+
}
|
|
32
|
+
createClient(config) {
|
|
33
|
+
return axios.create(Object.assign(Object.assign({}, (config && config.baseURL && { baseURL: config.baseURL })), { responseType: 'json', headers: Object.assign({}, (config && config.accessToken && { Authorization: `Token ${config.accessToken}` })), timeout: ApiClient.DEFAULT_TIMEOUT }));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get client instance
|
|
37
|
+
*/
|
|
38
|
+
getClientInstance() {
|
|
39
|
+
return this.client;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Change configuration
|
|
43
|
+
* @param config
|
|
44
|
+
*/
|
|
45
|
+
config(config) {
|
|
46
|
+
this.client(config);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* setSupportWithCredentials
|
|
50
|
+
* Disable/enable withCredentials
|
|
51
|
+
* Bypass cookie if disabled
|
|
52
|
+
* @param enable
|
|
53
|
+
*/
|
|
54
|
+
setSupportWithCredentials(enable) {
|
|
55
|
+
this.client.defaults.withCredentials = enable;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* setBasePortal
|
|
59
|
+
* Set base path of all http requests
|
|
60
|
+
* @param portal
|
|
61
|
+
*/
|
|
62
|
+
setBasePortal(baseUrl) {
|
|
63
|
+
this.client.defaults.baseURL = baseUrl;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* setAuthorizeToken
|
|
67
|
+
* Set authorization header for all http requests
|
|
68
|
+
* @param token
|
|
69
|
+
*/
|
|
70
|
+
setAuthorizeToken(token) {
|
|
71
|
+
if (token) {
|
|
72
|
+
this.setDefaultHeader({ name: 'Authorization', value: `Bearer ${token}` });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* request wrapper
|
|
77
|
+
* @param config
|
|
78
|
+
*/
|
|
79
|
+
request(config) {
|
|
80
|
+
return this.client.request(config);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* get wrapper
|
|
84
|
+
* @param path
|
|
85
|
+
*/
|
|
86
|
+
get(path) {
|
|
87
|
+
return this.client.get(path);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* post wrapper
|
|
91
|
+
* @param path
|
|
92
|
+
* @param payload
|
|
93
|
+
* @param config
|
|
94
|
+
*/
|
|
95
|
+
post(path, payload, config) {
|
|
96
|
+
return config ? this.client.post(path, payload, config) : this.client.post(path, payload);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* patch wrapper
|
|
100
|
+
* @param path
|
|
101
|
+
* @param object
|
|
102
|
+
*/
|
|
103
|
+
patch(path, payload) {
|
|
104
|
+
return this.client.patch(path, payload);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* put wrapper
|
|
108
|
+
* @param path
|
|
109
|
+
* @param payload
|
|
110
|
+
*/
|
|
111
|
+
put(path, payload) {
|
|
112
|
+
return this.client.put(path, payload);
|
|
112
113
|
}
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* request wrapper
|
|
116
|
-
* @param config
|
|
117
|
-
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
request(config) {
|
|
121
|
-
return this.client.request(config);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* get wrapper
|
|
125
|
-
* @param path
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
get(path) {
|
|
130
|
-
return this.client.get(path);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* post wrapper
|
|
134
|
-
* @param path
|
|
135
|
-
* @param payload
|
|
136
|
-
* @param config
|
|
137
|
-
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
post(path, payload, config) {
|
|
141
|
-
return config ? this.client.post(path, payload, config) : this.client.post(path, payload);
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* patch wrapper
|
|
145
|
-
* @param path
|
|
146
|
-
* @param object
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
patch(path, payload) {
|
|
151
|
-
return this.client.patch(path, payload);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* put wrapper
|
|
155
|
-
* @param path
|
|
156
|
-
* @param payload
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
put(path, payload) {
|
|
161
|
-
return this.client.put(path, payload);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
114
|
}
|
|
165
|
-
|
|
166
|
-
exports.ApiClient = ApiClient;
|
|
167
115
|
ApiClient.DEFAULT_TIMEOUT = 10 * 1000;
|
|
168
116
|
const client = new ApiClient();
|
|
169
|
-
|
|
170
|
-
|
|
117
|
+
export default client;
|
|
118
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAyD/D;;;;;GAKG;AACH,MAAM,OAAO,SAAS;IAepB,YAAY,MAAY;QAoBxB;;;;;WAKG;QACI,qBAAgB,GAAG,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAoD,EAAE,EAAE;YACtG,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC;YAC7C,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;gBAC1B,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;oBACzB,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;wBACnB,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;qBAC/B;gBACH,CAAC,CAAC,CAAC;aACJ;iBAAM;gBACL,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,KAA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OAAO,CAAsB,MAAW;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAY,MAAM,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACH,GAAG,CAAY,IAAY;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAY,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAsB,IAAY,EAAE,OAAiB,EAAE,MAAY;QACrE,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAY,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAY,IAAI,EAAE,OAAO,CAAC,CAAC;IAClH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAsB,IAAY,EAAE,OAAiB;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAsB,IAAY,EAAE,OAAiB;QACtD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAY,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;;AA7HM,yBAAe,GAAG,EAAE,GAAG,IAAI,CAAC;AAgIrC,MAAM,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;AAC/B,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpMethod } from '../client';
|
|
2
|
+
export interface EndpointType {
|
|
3
|
+
url: (params?: object) => string;
|
|
4
|
+
method: HttpMethod;
|
|
5
|
+
}
|
|
6
|
+
declare const Endpoints: {
|
|
7
|
+
[key: string]: EndpointType;
|
|
8
|
+
};
|
|
9
|
+
export default Endpoints;
|
|
10
|
+
//# sourceMappingURL=Endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Endpoints.d.ts","sourceRoot":"","sources":["../../../src/constants/Endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAkgC5C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|