@selfcommunity/api-services
Version:
Client api for SelfCommunity.
65 lines (64 loc) • 10.4 kB
TypeScript
/**
* Axios client wrapper
*/
import http, { HttpResponse, HttpMethod } from './client';
/**
* Endpoint component
*/
import Endpoints, { EndpointType } from './constants/Endpoints';
/**
* Utils
*/
import { formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest } from './utils/http';
import { generateJWTToken, parseJwt } from './utils/token';
import { apiRequest } from './utils/apiRequest';
import { urlParams } from './utils/url';
/**
* Services
*/
import AccountService, { AccountApiClient, AccountApiClientInterface } from './services/account';
import CategoryService, { CategoryApiClient, CategoryApiClientInterface } from './services/category';
import CommentService, { CommentApiClient, CommentApiClientInterface } from './services/comment';
import CustomAdvService, { CustomAdvApiClient, CustomAdvApiClientInterface } from './services/custom_adv';
import CustomMenuService, { CustomMenuApiClient, CustomMenuApiClientInterface } from './services/custom_menu';
import CustomPageService, { CustomPageApiClient, CustomPageApiClientInterface } from './services/custom_page';
import DataPortabilityService, { DataPortabilityApiClient, DataPortabilityApiClientInterface } from './services/data_portability';
import EmbedService, { EmbedApiClient, EmbedApiClientInterface } from './services/embed';
import FeatureService, { FeatureApiClient, FeatureApiClientInterface } from './services/feature';
import FeedService, { FeedApiClient, FeedApiClientInterface } from './services/feed';
import FeedObjectService, { FeedObjectApiClient, FeedObjectApiClientInterface } from './services/feed_object';
import IncubatorService, { IncubatorApiClient, IncubatorApiClientInterface } from './services/incubator';
import InsightService, { InsightApiClient, InsightApiClientInterface } from './services/insight';
import InviteService, { InviteApiClient, InviteApiClientInterface } from './services/invite';
import LegalPageService, { LegalPageApiClient, LegalPageApiClientInterface } from './services/legal_page';
import LocalityService, { LocalityApiClient, LocalityApiClientInterface } from './services/locality';
import LoyaltyService, { LoyaltyApiClient, LoyaltyApiClientInterface } from './services/loyalty';
import MediaService, { MediaApiClient, MediaApiClientInterface } from './services/media';
import ModerationService, { ModerationApiClient, ModerationApiClientInterface } from './services/moderation';
import NotificationService, { NotificationApiClient, NotificationApiClientInterface } from './services/notification';
import PreferenceService, { PreferenceApiClient, PreferenceApiClientInterface } from './services/preference';
import PrivateMessageService, { PrivateMessageApiClient, PrivateMessageApiClientInterface } from './services/private_message';
import PromoService, { PromoApiClient, PromoApiClientInterface } from './services/promo';
import ScoreService, { ScoreApiClient, ScoreApiClientInterface } from './services/score';
import SSOService, { SSOApiClient, SSOApiClientInterface } from './services/sso';
import SuggestionService, { SuggestionApiClient, SuggestionApiClientInterface } from './services/suggestion';
import TagService, { TagApiClient, TagApiClientInterface } from './services/tag';
import UserService, { UserApiClient, UserApiClientInterface } from './services/user';
import WebhookService, { WebhookApiClient, WebhookApiClientInterface } from './services/webhook';
import ReactionService, { ReactionApiClient, ReactionApiClientInterface } from './services/reactions';
import GroupService, { GroupApiClient, GroupApiClientInterface } from './services/group';
import EventService, { EventApiClient, EventApiClientInterface } from './services/event';
import LiveStreamService, { LiveStreamApiClient, LiveStreamApiClientInterface } from './services/live_stream';
import OnBoardingService, { OnBoardingApiClient, OnBoardingApiClientInterface } from './services/onboarding';
import CourseService, { CourseApiClient, CourseApiClientInterface } from './services/course';
import PaymentService, { PaymentApiClient, PaymentApiClientInterface } from './services/payment';
import CommunityService, { CommunityApiClient, CommunityApiClientInterface } from './services/community';
import ContactUsService, { ContactUsApiClient, ContactUsApiClientInterface } from './services/contact_us';
/**
* Types
*/
import { AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, ScheduledFeedObjParams, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, GroupCreateParams, GroupFeedParams, EventCreateParams, EventFeedParams, EventSearchParams, LiveStreamCreateParams, LiveStreamSearchParams, LiveStreamRemoveParticipantParams, StartStepParams, OnBoardingStep, CourseCreateParams, CourseSearchParams, CourseInfoViewType, CourseInfoParams, CourseLessonCommentsParams, CourseUserRoleParams, CourseUsersParams, CourseDashboardUsersParams, PaymentContentStatusParams, PaymentContentStatus, PaymentProductsParams, CustomerPortalCreateSessionParams, CheckoutSessionParams, CheckoutCreateSessionParams, PaymentOrderParams, ContactUsRequestParams } from './types';
/**
* Export all
*/
export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, EndpointType, AccountService, AccountApiClient, AccountApiClientInterface, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomMenuService, CustomMenuApiClient, CustomMenuApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, InviteService, InviteApiClient, InviteApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, PromoService, PromoApiClient, PromoApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType, AccountSearchParams, AccountCreateParams, AccountVerifyParams, AccountResetParams, AccountRecoverParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, SSOSignUpParams, CommentListParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, FlaggedContributionParams, ModerateContributionParams, CustomNotificationParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams, ThreadParams, MessageCreateParams, MessageMediaUploadParams, MessageThumbnailUploadParams, MessageChunkUploadDoneParams, MessageMediaChunksParams, CategoryParams, CustomAdvParams, CustomPageParams, CustomPageSearchParams, EmbedUpdateParams, EmbedSearchParams, BaseGetParams, BaseSearchParams, FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch, ScheduledFeedObjParams, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, ReactionService, ReactionApiClient, ReactionApiClientInterface, GroupCreateParams, GroupFeedParams, GroupService, GroupApiClient, GroupApiClientInterface, EventCreateParams, EventFeedParams, EventSearchParams, EventService, EventApiClient, EventApiClientInterface, LiveStreamService, LiveStreamApiClient, LiveStreamApiClientInterface, LiveStreamCreateParams, LiveStreamSearchParams, LiveStreamRemoveParticipantParams, OnBoardingService, OnBoardingApiClientInterface, OnBoardingApiClient, StartStepParams, OnBoardingStep, CourseCreateParams, CourseSearchParams, CourseInfoParams, CourseInfoViewType, CourseService, CourseApiClientInterface, CourseApiClient, CourseLessonCommentsParams, CourseUserRoleParams, CourseUsersParams, CourseDashboardUsersParams, PaymentService, PaymentApiClientInterface, PaymentApiClient, CommunityService, CommunityApiClient, CommunityApiClientInterface, PaymentContentStatusParams, PaymentContentStatus, PaymentProductsParams, CustomerPortalCreateSessionParams, CheckoutSessionParams, CheckoutCreateSessionParams, PaymentOrderParams, ContactUsRequestParams, ContactUsService, ContactUsApiClient, ContactUsApiClientInterface };