@selfcommunity/api-services 0.6.7-alpha.2 → 0.6.7-payments.143
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/cjs/client/index.d.ts +3 -3
- package/lib/cjs/client/index.js +3 -3
- package/lib/cjs/constants/Endpoints.js +198 -0
- package/lib/cjs/index.d.ts +4 -2
- package/lib/cjs/index.js +8 -1
- package/lib/cjs/services/course/index.d.ts +449 -0
- package/lib/cjs/services/course/index.js +643 -0
- package/lib/cjs/services/payment/index.d.ts +117 -0
- package/lib/cjs/services/payment/index.js +120 -0
- package/lib/cjs/services/suggestion/index.d.ts +9 -1
- package/lib/cjs/services/suggestion/index.js +13 -0
- package/lib/cjs/services/user/index.d.ts +19 -0
- package/lib/cjs/services/user/index.js +29 -0
- package/lib/cjs/types/category.d.ts +4 -0
- package/lib/cjs/types/course.d.ts +123 -0
- package/lib/cjs/types/course.js +12 -0
- package/lib/cjs/types/index.d.ts +2 -1
- package/lib/cjs/types/index.js +3 -1
- package/lib/cjs/types/payment.d.ts +39 -0
- package/lib/cjs/types/payment.js +2 -0
- package/lib/esm/client/index.d.ts +3 -3
- package/lib/esm/client/index.js +3 -3
- package/lib/esm/constants/Endpoints.js +198 -0
- package/lib/esm/index.d.ts +4 -2
- package/lib/esm/index.js +4 -2
- package/lib/esm/services/course/index.d.ts +449 -0
- package/lib/esm/services/course/index.js +638 -0
- package/lib/esm/services/payment/index.d.ts +117 -0
- package/lib/esm/services/payment/index.js +115 -0
- package/lib/esm/services/suggestion/index.d.ts +9 -1
- package/lib/esm/services/suggestion/index.js +13 -0
- package/lib/esm/services/user/index.d.ts +19 -0
- package/lib/esm/services/user/index.js +29 -0
- package/lib/esm/types/category.d.ts +4 -0
- package/lib/esm/types/course.d.ts +123 -0
- package/lib/esm/types/course.js +9 -0
- package/lib/esm/types/index.d.ts +2 -1
- package/lib/esm/types/index.js +2 -1
- package/lib/esm/types/payment.d.ts +39 -0
- package/lib/esm/types/payment.js +1 -0
- package/lib/umd/api-services.js +1 -1
- package/package.json +4 -4
|
@@ -2,17 +2,17 @@ import { AxiosInstance, AxiosResponse } from 'axios';
|
|
|
2
2
|
/**
|
|
3
3
|
* List of all Http methods
|
|
4
4
|
*/
|
|
5
|
-
export type HttpMethod = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
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
6
|
/**
|
|
7
7
|
* AxiosResponseHeaders interface
|
|
8
8
|
*/
|
|
9
|
-
export type AxiosResponseHeaders = Record<string, string> & {
|
|
9
|
+
export declare type AxiosResponseHeaders = Record<string, string> & {
|
|
10
10
|
'set-cookie'?: string[];
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* General HttpResponse
|
|
14
14
|
*/
|
|
15
|
-
export type HttpResponse<T = unknown, D = any> = AxiosResponse<T, D>;
|
|
15
|
+
export declare type HttpResponse<T = unknown, D = any> = AxiosResponse<T, D>;
|
|
16
16
|
/**
|
|
17
17
|
* Interface for the ApiClient
|
|
18
18
|
*/
|
package/lib/cjs/client/index.js
CHANGED
|
@@ -10,9 +10,6 @@ const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
|
10
10
|
* should we choose to do so in the future, without it breaking our app.
|
|
11
11
|
*/
|
|
12
12
|
class ApiClient {
|
|
13
|
-
createClient(config) {
|
|
14
|
-
return axios_1.default.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 }));
|
|
15
|
-
}
|
|
16
13
|
constructor(config) {
|
|
17
14
|
/**
|
|
18
15
|
* Set default header
|
|
@@ -54,6 +51,9 @@ class ApiClient {
|
|
|
54
51
|
this.client = this.createClient(config);
|
|
55
52
|
this.setDefaultHeader({ name: 'Content-Type', value: 'application/json', methods: ['post'] });
|
|
56
53
|
}
|
|
54
|
+
createClient(config) {
|
|
55
|
+
return axios_1.default.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 }));
|
|
56
|
+
}
|
|
57
57
|
/**
|
|
58
58
|
* Get client instance
|
|
59
59
|
*/
|
|
@@ -521,6 +521,14 @@ const Endpoints = {
|
|
|
521
521
|
url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/live_stream/'),
|
|
522
522
|
method: 'GET'
|
|
523
523
|
},
|
|
524
|
+
GetOrderHistory: {
|
|
525
|
+
url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/order/'),
|
|
526
|
+
method: 'GET'
|
|
527
|
+
},
|
|
528
|
+
GetOrderDetail: {
|
|
529
|
+
url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/order/$(order)/'),
|
|
530
|
+
method: 'GET'
|
|
531
|
+
},
|
|
524
532
|
/**
|
|
525
533
|
* Broadcast Messages
|
|
526
534
|
*/
|
|
@@ -582,6 +590,10 @@ const Endpoints = {
|
|
|
582
590
|
url: (0, utils_1.urlReplacer)('/api/v2/suggestion/category/'),
|
|
583
591
|
method: 'GET'
|
|
584
592
|
},
|
|
593
|
+
CourseSuggestion: {
|
|
594
|
+
url: (0, utils_1.urlReplacer)('/api/v2/suggestion/course/'),
|
|
595
|
+
method: 'GET'
|
|
596
|
+
},
|
|
585
597
|
GetIncubatorSuggestion: {
|
|
586
598
|
url: (0, utils_1.urlReplacer)('/api/v2/suggestion/incubator/'),
|
|
587
599
|
method: 'GET'
|
|
@@ -1405,6 +1417,192 @@ const Endpoints = {
|
|
|
1405
1417
|
CompleteAStep: {
|
|
1406
1418
|
url: (0, utils_1.urlReplacer)('/api/v2/onboarding/$(step)/complete/'),
|
|
1407
1419
|
method: 'POST'
|
|
1420
|
+
},
|
|
1421
|
+
/**
|
|
1422
|
+
* Courses
|
|
1423
|
+
*/
|
|
1424
|
+
ChangeCourseUserRole: {
|
|
1425
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/role/'),
|
|
1426
|
+
method: 'POST'
|
|
1427
|
+
},
|
|
1428
|
+
CreateCourse: {
|
|
1429
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/'),
|
|
1430
|
+
method: 'POST'
|
|
1431
|
+
},
|
|
1432
|
+
CreateCourseComment: {
|
|
1433
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/'),
|
|
1434
|
+
method: 'POST'
|
|
1435
|
+
},
|
|
1436
|
+
CreateCourseLesson: {
|
|
1437
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/'),
|
|
1438
|
+
method: 'POST'
|
|
1439
|
+
},
|
|
1440
|
+
CreateCourseSection: {
|
|
1441
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/'),
|
|
1442
|
+
method: 'POST'
|
|
1443
|
+
},
|
|
1444
|
+
DeleteCourse: {
|
|
1445
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/'),
|
|
1446
|
+
method: 'DELETE'
|
|
1447
|
+
},
|
|
1448
|
+
DeleteCourseComment: {
|
|
1449
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/'),
|
|
1450
|
+
method: 'DELETE'
|
|
1451
|
+
},
|
|
1452
|
+
DeleteCourseLesson: {
|
|
1453
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/'),
|
|
1454
|
+
method: 'DELETE'
|
|
1455
|
+
},
|
|
1456
|
+
DeleteCourseSection: {
|
|
1457
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/'),
|
|
1458
|
+
method: 'DELETE'
|
|
1459
|
+
},
|
|
1460
|
+
GetCourseComments: {
|
|
1461
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/comment/'),
|
|
1462
|
+
method: 'GET'
|
|
1463
|
+
},
|
|
1464
|
+
GetCourseDashboardUsers: {
|
|
1465
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/users/'),
|
|
1466
|
+
method: 'GET'
|
|
1467
|
+
},
|
|
1468
|
+
GetCourseInfo: {
|
|
1469
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/'),
|
|
1470
|
+
method: 'GET'
|
|
1471
|
+
},
|
|
1472
|
+
GetCourseInvitedUsers: {
|
|
1473
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/invite/'),
|
|
1474
|
+
method: 'GET'
|
|
1475
|
+
},
|
|
1476
|
+
GetCourseJoinedUsers: {
|
|
1477
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/join/'),
|
|
1478
|
+
method: 'GET'
|
|
1479
|
+
},
|
|
1480
|
+
GetCourseLesson: {
|
|
1481
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/'),
|
|
1482
|
+
method: 'GET'
|
|
1483
|
+
},
|
|
1484
|
+
GetCourseLessonComment: {
|
|
1485
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/'),
|
|
1486
|
+
method: 'GET'
|
|
1487
|
+
},
|
|
1488
|
+
GetCourseLessonComments: {
|
|
1489
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/'),
|
|
1490
|
+
method: 'GET'
|
|
1491
|
+
},
|
|
1492
|
+
GetCourseLessons: {
|
|
1493
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/'),
|
|
1494
|
+
method: 'GET'
|
|
1495
|
+
},
|
|
1496
|
+
GetCourseSection: {
|
|
1497
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/'),
|
|
1498
|
+
method: 'GET'
|
|
1499
|
+
},
|
|
1500
|
+
GetCourseSections: {
|
|
1501
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/'),
|
|
1502
|
+
method: 'GET'
|
|
1503
|
+
},
|
|
1504
|
+
GetCourseStatus: {
|
|
1505
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/status/'),
|
|
1506
|
+
method: 'GET'
|
|
1507
|
+
},
|
|
1508
|
+
GetCourseWaitingApproval: {
|
|
1509
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/request_join/'),
|
|
1510
|
+
method: 'GET'
|
|
1511
|
+
},
|
|
1512
|
+
GetJoinedCourses: {
|
|
1513
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/'),
|
|
1514
|
+
method: 'GET'
|
|
1515
|
+
},
|
|
1516
|
+
InviteOrAcceptUsersToCourse: {
|
|
1517
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/invite/'),
|
|
1518
|
+
method: 'POST'
|
|
1519
|
+
},
|
|
1520
|
+
JoinOrAcceptInviteToCourse: {
|
|
1521
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/join/'),
|
|
1522
|
+
method: 'POST'
|
|
1523
|
+
},
|
|
1524
|
+
LeaveOrRemoveCourseRequest: {
|
|
1525
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/join/'),
|
|
1526
|
+
method: 'DELETE'
|
|
1527
|
+
},
|
|
1528
|
+
MarkLessonComplete: {
|
|
1529
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/complete/'),
|
|
1530
|
+
method: 'POST'
|
|
1531
|
+
},
|
|
1532
|
+
MarkLessonIncomplete: {
|
|
1533
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/incomplete/'),
|
|
1534
|
+
method: 'POST'
|
|
1535
|
+
},
|
|
1536
|
+
PatchCourse: {
|
|
1537
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/'),
|
|
1538
|
+
method: 'PATCH'
|
|
1539
|
+
},
|
|
1540
|
+
PatchCourseComment: {
|
|
1541
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/'),
|
|
1542
|
+
method: 'PATCH'
|
|
1543
|
+
},
|
|
1544
|
+
PatchCourseLesson: {
|
|
1545
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/'),
|
|
1546
|
+
method: 'PATCH'
|
|
1547
|
+
},
|
|
1548
|
+
PatchCourseSection: {
|
|
1549
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/'),
|
|
1550
|
+
method: 'PATCH'
|
|
1551
|
+
},
|
|
1552
|
+
RemoveInvitationToCourse: {
|
|
1553
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/invite/'),
|
|
1554
|
+
method: 'DELETE'
|
|
1555
|
+
},
|
|
1556
|
+
SearchCourses: {
|
|
1557
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/search/'),
|
|
1558
|
+
method: 'GET'
|
|
1559
|
+
},
|
|
1560
|
+
GetCourseSuggestedUsers: {
|
|
1561
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/user/'),
|
|
1562
|
+
method: 'GET'
|
|
1563
|
+
},
|
|
1564
|
+
UpdateCourse: {
|
|
1565
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/'),
|
|
1566
|
+
method: 'PUT'
|
|
1567
|
+
},
|
|
1568
|
+
UpdateCourseComment: {
|
|
1569
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/'),
|
|
1570
|
+
method: 'PUT'
|
|
1571
|
+
},
|
|
1572
|
+
UpdateCourseLesson: {
|
|
1573
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/'),
|
|
1574
|
+
method: 'PUT'
|
|
1575
|
+
},
|
|
1576
|
+
UpdateCourseSection: {
|
|
1577
|
+
url: (0, utils_1.urlReplacer)('/api/v2/course/$(id)/section/$(section_id)/'),
|
|
1578
|
+
method: 'PUT'
|
|
1579
|
+
},
|
|
1580
|
+
GetUserJoinedCourses: {
|
|
1581
|
+
url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/courses/'),
|
|
1582
|
+
method: 'GET'
|
|
1583
|
+
},
|
|
1584
|
+
/**
|
|
1585
|
+
* Payments/Paywalls
|
|
1586
|
+
*/
|
|
1587
|
+
GetContentProducts: {
|
|
1588
|
+
url: (0, utils_1.urlReplacer)('/api/v2/payments/products/'),
|
|
1589
|
+
method: 'GET'
|
|
1590
|
+
},
|
|
1591
|
+
GetProductPrices: {
|
|
1592
|
+
url: (0, utils_1.urlReplacer)('/api/v2/payments/product/$(id)/prices/'),
|
|
1593
|
+
method: 'GET'
|
|
1594
|
+
},
|
|
1595
|
+
GetCheckoutSession: {
|
|
1596
|
+
url: (0, utils_1.urlReplacer)('/api/v2/payments/checkout_session/'),
|
|
1597
|
+
method: 'GET'
|
|
1598
|
+
},
|
|
1599
|
+
CheckoutCreateSession: {
|
|
1600
|
+
url: (0, utils_1.urlReplacer)('/api/v2/payments/checkout_session/'),
|
|
1601
|
+
method: 'POST'
|
|
1602
|
+
},
|
|
1603
|
+
CheckoutSessionComplete: {
|
|
1604
|
+
url: (0, utils_1.urlReplacer)('/api/v2/payments/checkout_session/complete/'),
|
|
1605
|
+
method: 'POST'
|
|
1408
1606
|
}
|
|
1409
1607
|
};
|
|
1410
1608
|
exports.default = Endpoints;
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -50,11 +50,13 @@ import GroupService, { GroupApiClient, GroupApiClientInterface } from './service
|
|
|
50
50
|
import EventService, { EventApiClient, EventApiClientInterface } from './services/event';
|
|
51
51
|
import LiveStreamService, { LiveStreamApiClient, LiveStreamApiClientInterface } from './services/live_stream';
|
|
52
52
|
import OnBoardingService, { OnBoardingApiClient, OnBoardingApiClientInterface } from './services/onboarding';
|
|
53
|
+
import CourseService, { CourseApiClient, CourseApiClientInterface } from './services/course';
|
|
54
|
+
import PaymentService, { PaymentApiClient, PaymentApiClientInterface } from './services/payment';
|
|
53
55
|
/**
|
|
54
56
|
* Types
|
|
55
57
|
*/
|
|
56
|
-
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, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, GroupCreateParams, GroupFeedParams, EventCreateParams, EventFeedParams, EventSearchParams, LiveStreamCreateParams, LiveStreamSearchParams, LiveStreamRemoveParticipantParams, StartStepParams, OnBoardingStep } from './types';
|
|
58
|
+
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, 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 } from './types';
|
|
57
59
|
/**
|
|
58
60
|
* Export all
|
|
59
61
|
*/
|
|
60
|
-
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, 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 };
|
|
62
|
+
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, 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 };
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ModerationService = exports.MediaApiClient = exports.MediaService = exports.LoyaltyApiClient = exports.LoyaltyService = exports.LocalityApiClient = exports.LocalityService = exports.LegalPageApiClient = exports.LegalPageService = exports.InviteApiClient = exports.InviteService = exports.InsightApiClient = exports.InsightService = exports.IncubatorApiClient = exports.IncubatorService = exports.FeedObjectApiClient = exports.FeedObjectService = exports.FeedApiClient = exports.FeedService = exports.EmbedApiClient = exports.EmbedService = exports.DataPortabilityApiClient = exports.DataPortabilityService = exports.CustomPageApiClient = exports.CustomPageService = exports.CustomMenuApiClient = exports.CustomMenuService = exports.CustomAdvApiClient = exports.CustomAdvService = exports.CommentApiClient = exports.CommentService = exports.CategoryApiClient = exports.CategoryService = exports.FeatureApiClient = exports.FeatureService = exports.UserApiClient = exports.UserService = exports.PreferenceApiClient = exports.PreferenceService = exports.AccountApiClient = exports.AccountService = exports.Endpoints = exports.urlParams = exports.parseJwt = exports.generateJWTToken = exports.getCancelTokenSourceRequest = exports.formatHttpErrorCode = exports.formatHttpError = exports.apiRequest = exports.http = void 0;
|
|
4
|
-
exports.OnBoardingStep = exports.OnBoardingApiClient = exports.OnBoardingService = exports.LiveStreamApiClient = exports.LiveStreamService = exports.EventApiClient = exports.EventService = exports.GroupApiClient = exports.GroupService = exports.ReactionApiClient = exports.ReactionService = exports.MediaTypes = exports.WebhookApiClient = exports.WebhookService = exports.TagApiClient = exports.TagService = exports.SuggestionApiClient = exports.SuggestionService = exports.SSOApiClient = exports.SSOService = exports.ScoreApiClient = exports.ScoreService = exports.PromoApiClient = exports.PromoService = exports.PrivateMessageApiClient = exports.PrivateMessageService = exports.NotificationApiClient = exports.NotificationService = exports.ModerationApiClient = void 0;
|
|
4
|
+
exports.PaymentApiClient = exports.PaymentService = exports.CourseApiClient = exports.CourseService = exports.CourseInfoViewType = exports.OnBoardingStep = exports.OnBoardingApiClient = exports.OnBoardingService = exports.LiveStreamApiClient = exports.LiveStreamService = exports.EventApiClient = exports.EventService = exports.GroupApiClient = exports.GroupService = exports.ReactionApiClient = exports.ReactionService = exports.MediaTypes = exports.WebhookApiClient = exports.WebhookService = exports.TagApiClient = exports.TagService = exports.SuggestionApiClient = exports.SuggestionService = exports.SSOApiClient = exports.SSOService = exports.ScoreApiClient = exports.ScoreService = exports.PromoApiClient = exports.PromoService = exports.PrivateMessageApiClient = exports.PrivateMessageService = exports.NotificationApiClient = exports.NotificationService = exports.ModerationApiClient = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
/**
|
|
7
7
|
* Axios client wrapper
|
|
@@ -132,9 +132,16 @@ Object.defineProperty(exports, "LiveStreamApiClient", { enumerable: true, get: f
|
|
|
132
132
|
const onboarding_1 = tslib_1.__importStar(require("./services/onboarding"));
|
|
133
133
|
exports.OnBoardingService = onboarding_1.default;
|
|
134
134
|
Object.defineProperty(exports, "OnBoardingApiClient", { enumerable: true, get: function () { return onboarding_1.OnBoardingApiClient; } });
|
|
135
|
+
const course_1 = tslib_1.__importStar(require("./services/course"));
|
|
136
|
+
exports.CourseService = course_1.default;
|
|
137
|
+
Object.defineProperty(exports, "CourseApiClient", { enumerable: true, get: function () { return course_1.CourseApiClient; } });
|
|
138
|
+
const payment_1 = tslib_1.__importStar(require("./services/payment"));
|
|
139
|
+
exports.PaymentService = payment_1.default;
|
|
140
|
+
Object.defineProperty(exports, "PaymentApiClient", { enumerable: true, get: function () { return payment_1.PaymentApiClient; } });
|
|
135
141
|
/**
|
|
136
142
|
* Types
|
|
137
143
|
*/
|
|
138
144
|
const types_1 = require("./types");
|
|
139
145
|
Object.defineProperty(exports, "MediaTypes", { enumerable: true, get: function () { return types_1.MediaTypes; } });
|
|
140
146
|
Object.defineProperty(exports, "OnBoardingStep", { enumerable: true, get: function () { return types_1.OnBoardingStep; } });
|
|
147
|
+
Object.defineProperty(exports, "CourseInfoViewType", { enumerable: true, get: function () { return types_1.CourseInfoViewType; } });
|