@selfcommunity/api-services 0.7.0-alpha.1 → 0.7.0-alpha.10

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.
Files changed (39) hide show
  1. package/lib/cjs/constants/Endpoints.js +19 -1
  2. package/lib/cjs/index.d.ts +3 -2
  3. package/lib/cjs/index.js +4 -1
  4. package/lib/cjs/services/community/index.d.ts +28 -24
  5. package/lib/cjs/services/community/index.js +28 -24
  6. package/lib/cjs/services/contact_us/index.d.ts +57 -0
  7. package/lib/cjs/services/contact_us/index.js +65 -0
  8. package/lib/cjs/services/custom_menu/index.d.ts +0 -7
  9. package/lib/cjs/services/custom_menu/index.js +0 -12
  10. package/lib/cjs/services/payment/index.d.ts +5 -5
  11. package/lib/cjs/services/payment/index.js +2 -2
  12. package/lib/cjs/services/user/index.d.ts +8 -0
  13. package/lib/cjs/services/user/index.js +13 -0
  14. package/lib/cjs/types/contactUs.d.ts +25 -0
  15. package/lib/cjs/types/contactUs.js +5 -0
  16. package/lib/cjs/types/index.d.ts +2 -1
  17. package/lib/cjs/types/user.d.ts +4 -0
  18. package/lib/esm/constants/Endpoints.js +19 -1
  19. package/lib/esm/index.d.ts +3 -2
  20. package/lib/esm/index.js +2 -1
  21. package/lib/esm/services/community/index.d.ts +28 -24
  22. package/lib/esm/services/community/index.js +28 -24
  23. package/lib/esm/services/contact_us/index.d.ts +57 -0
  24. package/lib/esm/services/contact_us/index.js +60 -0
  25. package/lib/esm/services/custom_menu/index.d.ts +0 -7
  26. package/lib/esm/services/custom_menu/index.js +0 -12
  27. package/lib/esm/services/payment/index.d.ts +5 -5
  28. package/lib/esm/services/payment/index.js +2 -2
  29. package/lib/esm/services/user/index.d.ts +8 -0
  30. package/lib/esm/services/user/index.js +13 -0
  31. package/lib/esm/types/contactUs.d.ts +25 -0
  32. package/lib/esm/types/contactUs.js +4 -0
  33. package/lib/esm/types/index.d.ts +2 -1
  34. package/lib/esm/types/user.d.ts +4 -0
  35. package/lib/umd/956.js +2 -0
  36. package/lib/umd/api-services.js +1 -1
  37. package/package.json +4 -4
  38. package/lib/umd/740.js +0 -2
  39. /package/lib/umd/{740.js.LICENSE.txt → 956.js.LICENSE.txt} +0 -0
@@ -166,6 +166,10 @@ const Endpoints = {
166
166
  url: (0, utils_1.urlReplacer)('/api/v2/$(type)/drafted/'),
167
167
  method: 'GET'
168
168
  },
169
+ GetDownloadCSV: {
170
+ url: (0, utils_1.urlReplacer)('/api/v2/$(type)/$(id)/export/'),
171
+ method: 'GET'
172
+ },
169
173
  /**
170
174
  * Comments
171
175
  */
@@ -329,6 +333,10 @@ const Endpoints = {
329
333
  url: (0, utils_1.urlReplacer)('/api/v2/user/'),
330
334
  method: 'GET'
331
335
  },
336
+ UserMatchUsernames: {
337
+ url: (0, utils_1.urlReplacer)('/api/v2/user/match/'),
338
+ method: 'POST'
339
+ },
332
340
  ListHiddenUsers: {
333
341
  url: (0, utils_1.urlReplacer)('/api/v2/user/hidden_users/'),
334
342
  method: 'GET'
@@ -1659,6 +1667,16 @@ const Endpoints = {
1659
1667
  url: (0, utils_1.urlReplacer)('/api/v2/payments/customer_portal_session/'),
1660
1668
  method: 'POST'
1661
1669
  },
1662
- CreatePaymentProduct: { url: (0, utils_1.urlReplacer)('/api/v2/payments/payment_product/price/'), method: 'POST' }
1670
+ CreatePaymentProduct: {
1671
+ url: (0, utils_1.urlReplacer)('/api/v2/payments/payment_product/price/'),
1672
+ method: 'POST'
1673
+ },
1674
+ /**
1675
+ * Contact-us Endpoints
1676
+ */
1677
+ ContactRequest: {
1678
+ url: (0, utils_1.urlReplacer)('/api/v2/contact/request/'),
1679
+ method: 'POST'
1680
+ }
1663
1681
  };
1664
1682
  exports.default = Endpoints;
@@ -53,11 +53,12 @@ import OnBoardingService, { OnBoardingApiClient, OnBoardingApiClientInterface }
53
53
  import CourseService, { CourseApiClient, CourseApiClientInterface } from './services/course';
54
54
  import PaymentService, { PaymentApiClient, PaymentApiClientInterface } from './services/payment';
55
55
  import CommunityService, { CommunityApiClient, CommunityApiClientInterface } from './services/community';
56
+ import ContactUsService, { ContactUsApiClient, ContactUsApiClientInterface } from './services/contact_us';
56
57
  /**
57
58
  * Types
58
59
  */
59
- 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 } from './types';
60
+ 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';
60
61
  /**
61
62
  * Export all
62
63
  */
63
- 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 };
64
+ 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 };
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.CommunityApiClient = exports.CommunityService = 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;
4
+ exports.ContactUsApiClient = exports.ContactUsService = exports.CommunityApiClient = exports.CommunityService = 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
@@ -141,6 +141,9 @@ Object.defineProperty(exports, "PaymentApiClient", { enumerable: true, get: func
141
141
  const community_1 = tslib_1.__importStar(require("./services/community"));
142
142
  exports.CommunityService = community_1.default;
143
143
  Object.defineProperty(exports, "CommunityApiClient", { enumerable: true, get: function () { return community_1.CommunityApiClient; } });
144
+ const contact_us_1 = tslib_1.__importStar(require("./services/contact_us"));
145
+ exports.ContactUsService = contact_us_1.default;
146
+ Object.defineProperty(exports, "ContactUsApiClient", { enumerable: true, get: function () { return contact_us_1.ContactUsApiClient; } });
144
147
  /**
145
148
  * Types
146
149
  */
@@ -34,30 +34,34 @@ export declare class CommunityApiClient {
34
34
  }
35
35
  /**
36
36
  *
37
- :::tip Community service can be used in the following way:
38
-
39
- ```jsx
40
- 1. Import the service from our library:
41
-
42
- import {CommunityService} from "@selfcommunity/api-services";
43
- ```
44
- ```jsx
45
- 2. Create a function and put the service inside it!
46
- The async function `getCommunities` will return the events matching the search query.
47
-
48
- async getCommunities() {
49
- return await CommunityService.getCommunities({...});
50
- }
51
- ```
52
- If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
53
-
54
- 1. Declare it(or declare them, it is possible to add multiple params)
55
-
56
- const headers = headers: {Authorization: `Bearer ${yourToken}`}
57
-
58
- 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
59
- ```
60
- :::
37
+ * :::tip Community service can be used in the following way:
38
+ *
39
+ * 1. Import the service from our library:
40
+ *
41
+ * ```ts
42
+ * import {CommunityService} from "@selfcommunity/api-services";
43
+ * ```
44
+ *
45
+ * 2. Create a function and put the service inside it! The async function `getCommunities`
46
+ * will return the events matching the search query.
47
+ *
48
+ * ```ts
49
+ * async function getCommunities() {
50
+ * return await CommunityService.getCommunities({...});
51
+ * }
52
+ * ```
53
+ *
54
+ * If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
55
+ *
56
+ * 1. Declare it (or declare multiple params):
57
+ *
58
+ * ```ts
59
+ * const headers = { Authorization: `Bearer ${yourToken}` };
60
+ * ```
61
+ *
62
+ * 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
63
+ *
64
+ * :::
61
65
  */
62
66
  export default class CommunityService {
63
67
  static getCommunities(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCommunityType>>;
@@ -30,30 +30,34 @@ class CommunityApiClient {
30
30
  exports.CommunityApiClient = CommunityApiClient;
31
31
  /**
32
32
  *
33
- :::tip Community service can be used in the following way:
34
-
35
- ```jsx
36
- 1. Import the service from our library:
37
-
38
- import {CommunityService} from "@selfcommunity/api-services";
39
- ```
40
- ```jsx
41
- 2. Create a function and put the service inside it!
42
- The async function `getCommunities` will return the events matching the search query.
43
-
44
- async getCommunities() {
45
- return await CommunityService.getCommunities({...});
46
- }
47
- ```
48
- If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
49
-
50
- 1. Declare it(or declare them, it is possible to add multiple params)
51
-
52
- const headers = headers: {Authorization: `Bearer ${yourToken}`}
53
-
54
- 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
55
- ```
56
- :::
33
+ * :::tip Community service can be used in the following way:
34
+ *
35
+ * 1. Import the service from our library:
36
+ *
37
+ * ```ts
38
+ * import {CommunityService} from "@selfcommunity/api-services";
39
+ * ```
40
+ *
41
+ * 2. Create a function and put the service inside it! The async function `getCommunities`
42
+ * will return the events matching the search query.
43
+ *
44
+ * ```ts
45
+ * async function getCommunities() {
46
+ * return await CommunityService.getCommunities({...});
47
+ * }
48
+ * ```
49
+ *
50
+ * If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
51
+ *
52
+ * 1. Declare it (or declare multiple params):
53
+ *
54
+ * ```ts
55
+ * const headers = { Authorization: `Bearer ${yourToken}` };
56
+ * ```
57
+ *
58
+ * 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
59
+ *
60
+ * :::
57
61
  */
58
62
  class CommunityService {
59
63
  static getCommunities(params, config) {
@@ -0,0 +1,57 @@
1
+ import { ContactUsRequestParams } from '../../types';
2
+ import { type SCContactUsRequestType } from '@selfcommunity/types';
3
+ import { AxiosRequestConfig } from 'axios';
4
+ export interface ContactUsApiClientInterface {
5
+ request(data?: ContactUsRequestParams, config?: AxiosRequestConfig): Promise<SCContactUsRequestType>;
6
+ }
7
+ /**
8
+ * Contains all the endpoints needed to contact-us.
9
+ */
10
+ export declare class ContactUsApiClient {
11
+ /**
12
+ * This endpoint create an contact request.
13
+ *
14
+ * It requires an authenticated user.
15
+ *
16
+ * @param data
17
+ * @param config
18
+ */
19
+ static request(data?: ContactUsRequestParams, config?: AxiosRequestConfig): Promise<SCContactUsRequestType>;
20
+ }
21
+ /**
22
+ *
23
+ :::tip Contact service can be used in the following way:
24
+ ```jsx
25
+ 1. Import the service from our library:
26
+
27
+ import {ContactService} from "@selfcommunity/api-services";
28
+ ```
29
+ ```jsx
30
+ 2. Create a function and put the service inside it!
31
+ The async function `create` will return the paginated list of categories.
32
+
33
+ async create() {
34
+ return await ContactService.request();
35
+ }
36
+ ```
37
+ ```jsx
38
+ In case of required `params`, just add them inside the brackets.
39
+
40
+ async request(data) {
41
+ return await ContactService.request(data);
42
+ }
43
+ ```
44
+ ```jsx
45
+ If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
46
+
47
+ 1. Declare it(or declare them, it is possible to add multiple params)
48
+
49
+ const headers = headers: {Authorization: `Bearer ${yourToken}`}
50
+
51
+ 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
52
+ ```
53
+ :::
54
+ */
55
+ export default class ContactUsService {
56
+ static request(data?: ContactUsRequestParams, config?: AxiosRequestConfig): Promise<SCContactUsRequestType>;
57
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContactUsApiClient = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const Endpoints_1 = tslib_1.__importDefault(require("../../constants/Endpoints"));
6
+ const apiRequest_1 = require("../../utils/apiRequest");
7
+ /**
8
+ * Contains all the endpoints needed to contact-us.
9
+ */
10
+ class ContactUsApiClient {
11
+ /**
12
+ * This endpoint create an contact request.
13
+ *
14
+ * It requires an authenticated user.
15
+ *
16
+ * @param data
17
+ * @param config
18
+ */
19
+ static request(data, config) {
20
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { data, url: Endpoints_1.default.ContactRequest.url({}), method: Endpoints_1.default.ContactRequest.method }));
21
+ }
22
+ }
23
+ exports.ContactUsApiClient = ContactUsApiClient;
24
+ /**
25
+ *
26
+ :::tip Contact service can be used in the following way:
27
+ ```jsx
28
+ 1. Import the service from our library:
29
+
30
+ import {ContactService} from "@selfcommunity/api-services";
31
+ ```
32
+ ```jsx
33
+ 2. Create a function and put the service inside it!
34
+ The async function `create` will return the paginated list of categories.
35
+
36
+ async create() {
37
+ return await ContactService.request();
38
+ }
39
+ ```
40
+ ```jsx
41
+ In case of required `params`, just add them inside the brackets.
42
+
43
+ async request(data) {
44
+ return await ContactService.request(data);
45
+ }
46
+ ```
47
+ ```jsx
48
+ If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
49
+
50
+ 1. Declare it(or declare them, it is possible to add multiple params)
51
+
52
+ const headers = headers: {Authorization: `Bearer ${yourToken}`}
53
+
54
+ 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
55
+ ```
56
+ :::
57
+ */
58
+ class ContactUsService {
59
+ static request(data, config) {
60
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
61
+ return ContactUsApiClient.request(data, config);
62
+ });
63
+ }
64
+ }
65
+ exports.default = ContactUsService;
@@ -4,7 +4,6 @@ import { AxiosRequestConfig } from 'axios';
4
4
  export interface CustomMenuApiClientInterface {
5
5
  getASpecificCustomMenu(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomMenuType>;
6
6
  getAllCustomMenus(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>>;
7
- getBaseCustomMenu(config?: AxiosRequestConfig): Promise<SCCustomMenuType>;
8
7
  searchCustomMenus(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>>;
9
8
  }
10
9
  /**
@@ -23,11 +22,6 @@ export declare class CustomMenuApiClient {
23
22
  * @param config
24
23
  */
25
24
  static getAllCustomMenus(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>>;
26
- /**
27
- * This endpoint retrieves the base custom menu.
28
- * @param config
29
- */
30
- static getBaseCustomMenu(config?: AxiosRequestConfig): Promise<SCCustomMenuType>;
31
25
  /**
32
26
  * This endpoint performs search of a Custom Menu
33
27
  * @param params
@@ -73,6 +67,5 @@ export declare class CustomMenuApiClient {
73
67
  export default class CustomMenuService {
74
68
  static getASpecificCustomMenu(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomMenuType>;
75
69
  static getAllCustomMenus(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>>;
76
- static getBaseCustomMenu(config?: AxiosRequestConfig): Promise<SCCustomMenuType>;
77
70
  static searchCustomMenus(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>>;
78
71
  }
@@ -26,13 +26,6 @@ class CustomMenuApiClient {
26
26
  const p = (0, url_1.urlParams)(params);
27
27
  return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetCustomMenus.url({})}?${p.toString()}`, method: Endpoints_1.default.GetCustomMenus.method }));
28
28
  }
29
- /**
30
- * This endpoint retrieves the base custom menu.
31
- * @param config
32
- */
33
- static getBaseCustomMenu(config) {
34
- return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CustomMenu.url({ id: 'base' }), method: Endpoints_1.default.CustomMenu.method }));
35
- }
36
29
  /**
37
30
  * This endpoint performs search of a Custom Menu
38
31
  * @param params
@@ -90,11 +83,6 @@ class CustomMenuService {
90
83
  return CustomMenuApiClient.getAllCustomMenus(params, config);
91
84
  });
92
85
  }
93
- static getBaseCustomMenu(config) {
94
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
95
- return CustomMenuApiClient.getBaseCustomMenu(config);
96
- });
97
- }
98
86
  static searchCustomMenus(params, config) {
99
87
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
100
88
  return CustomMenuApiClient.searchCustomMenus(params, config);
@@ -4,13 +4,13 @@ import { CheckoutCreateSessionParams, CheckoutSessionParams, PaymentProductsPara
4
4
  import { SCCheckoutSession, SCPaymentOrder, SCCheckoutSessionDetail, SCCheckoutSessionComplete, SCPaymentProduct, SCPaymentPrice, SCPaymentsCustomerPortalSession, SCPaywall } from '@selfcommunity/types';
5
5
  export interface PaymentApiClientInterface {
6
6
  /**
7
- * Get payment products related to an object (aka paywalls) of type <content_type> and id <content_id> and the current payment_order
7
+ * Get payment products related to an object (aka paywalls) of type &lt;content_type&gt; and id &lt;content_id&gt; and the current payment_order
8
8
  * @param params
9
9
  * @param config
10
10
  */
11
11
  getPaymentContentStatus(params?: PaymentContentStatusParams, config?: AxiosRequestConfig): Promise<PaymentContentStatus>;
12
12
  /**
13
- * Get payment products related to an object (aka paywalls) of type <content_type> and id <content_id>
13
+ * Get payment products related to an object (aka paywalls) of type &lt;content_type&gt; and id &lt;content_id&gt;
14
14
  * @param params
15
15
  * @param config
16
16
  */
@@ -35,7 +35,7 @@ export interface PaymentApiClientInterface {
35
35
  */
36
36
  getPaymentProductPrices(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentPrice>>;
37
37
  /**
38
- * Create session checkout with price_id for an object of type <content_type> and id <content_id>
38
+ * Create session checkout with price_id for an object of type &lt;content_type&gt; and id &lt;content_id&gt;
39
39
  * @param data
40
40
  * @param config
41
41
  */
@@ -88,13 +88,13 @@ export interface PaymentApiClientInterface {
88
88
  */
89
89
  export declare class PaymentApiClient {
90
90
  /**
91
- * This endpoint retrieves all the products related to an object of type <content_type> and id <content_id> and the current payment_order
91
+ * This endpoint retrieves all the products related to an object of type &lt;content_type&gt; and id &lt;content_id&gt; and the current payment_order
92
92
  * @param params
93
93
  * @param config
94
94
  */
95
95
  static getPaymentContentStatus(params?: PaymentContentStatusParams, config?: AxiosRequestConfig): Promise<PaymentContentStatus>;
96
96
  /**
97
- * This endpoint retrieves all the products related to an object of type <content_type> and id <content_id>
97
+ * This endpoint retrieves all the products related to an object of type &lt;content_type&gt; and id &lt;content_id&gt;
98
98
  * @param params
99
99
  * @param config
100
100
  */
@@ -10,7 +10,7 @@ const url_1 = require("../../utils/url");
10
10
  */
11
11
  class PaymentApiClient {
12
12
  /**
13
- * This endpoint retrieves all the products related to an object of type <content_type> and id <content_id> and the current payment_order
13
+ * This endpoint retrieves all the products related to an object of type &lt;content_type&gt; and id &lt;content_id&gt; and the current payment_order
14
14
  * @param params
15
15
  * @param config
16
16
  */
@@ -18,7 +18,7 @@ class PaymentApiClient {
18
18
  return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { params, url: `${Endpoints_1.default.GetPaymentContentStatus.url({})}`, method: Endpoints_1.default.GetPaymentContentStatus.method }));
19
19
  }
20
20
  /**
21
- * This endpoint retrieves all the products related to an object of type <content_type> and id <content_id>
21
+ * This endpoint retrieves all the products related to an object of type &lt;content_type&gt; and id &lt;content_id&gt;
22
22
  * @param params
23
23
  * @param config
24
24
  */
@@ -57,6 +57,7 @@ export interface UserApiClientInterface {
57
57
  getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
58
58
  getOrderHistory(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaymentOrder[]>;
59
59
  getOrderDetail(id: number, order: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
60
+ matchUsernames(usernames: string[], config?: AxiosRequestConfig): Promise<SCUserAutocompleteType[]>;
60
61
  }
61
62
  /**
62
63
  * Contains all the endpoints needed to manage users.
@@ -410,6 +411,12 @@ export declare class UserApiClient {
410
411
  * @param config
411
412
  */
412
413
  static getOrderDetail(id: number, order: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
414
+ /**
415
+ * This endpoint retrieve the users corresponding to the sent usernames
416
+ * @param usernames
417
+ * @param config
418
+ */
419
+ static matchUsernames(usernames: string[], config?: AxiosRequestConfig): Promise<SCUserAutocompleteType[]>;
413
420
  }
414
421
  /**
415
422
  *
@@ -503,4 +510,5 @@ export default class UserService {
503
510
  static getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
504
511
  static getOrderHistory(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
505
512
  static getOrderDetail(id: number, order: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
513
+ static matchUsernames(usernames: string[], config?: AxiosRequestConfig): Promise<SCUserAutocompleteType[]>;
506
514
  }
@@ -480,6 +480,14 @@ class UserApiClient {
480
480
  static getOrderDetail(id, order, params, config) {
481
481
  return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetOrderDetail.url({ id, order }), method: Endpoints_1.default.GetOrderDetail.method, params }));
482
482
  }
483
+ /**
484
+ * This endpoint retrieve the users corresponding to the sent usernames
485
+ * @param usernames
486
+ * @param config
487
+ */
488
+ static matchUsernames(usernames, config) {
489
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserMatchUsernames.url(), method: Endpoints_1.default.UserMatchUsernames.method, data: usernames }));
490
+ }
483
491
  }
484
492
  exports.UserApiClient = UserApiClient;
485
493
  /**
@@ -790,5 +798,10 @@ class UserService {
790
798
  return UserApiClient.getOrderDetail(id, order, params, config);
791
799
  });
792
800
  }
801
+ static matchUsernames(usernames, config) {
802
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
803
+ return UserApiClient.matchUsernames(usernames, config);
804
+ });
805
+ }
793
806
  }
794
807
  exports.default = UserService;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * ContactUsRequestParams interface
3
+ */
4
+ export interface ContactUsRequestParams {
5
+ /**
6
+ * name field for the account
7
+ */
8
+ name?: string;
9
+ /**
10
+ * Surname field for the account
11
+ */
12
+ surname?: string;
13
+ /**
14
+ * Email field for the account
15
+ */
16
+ email?: string;
17
+ /**
18
+ * Contact request message text
19
+ */
20
+ message?: string;
21
+ /**
22
+ * Any other properties
23
+ */
24
+ [p: string]: any;
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * ContactUsRequestParams interface
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -29,4 +29,5 @@ import { LiveStreamCreateParams, LiveStreamSearchParams, LiveStreamRemovePartici
29
29
  import { StartStepParams, OnBoardingStep } from './onBoarding';
30
30
  import { CourseCreateParams, CourseSearchParams, CourseInfoViewType, CourseInfoParams, CourseLessonCommentsParams, CourseUserRoleParams, CourseUsersParams, CourseDashboardUsersParams } from './course';
31
31
  import { PaymentContentStatusParams, PaymentContentStatus, PaymentProductsParams, CustomerPortalCreateSessionParams, CheckoutSessionParams, CheckoutCreateSessionParams, PaymentOrderParams } from './payment';
32
- export { AccountCreateParams, AccountVerifyParams, AccountRecoverParams, AccountResetParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserGetParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadCompleteParams, ChunkUploadParams, ThreadParams, ThreadDeleteParams, 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, EventRelatedParams, EventSearchParams, LiveStreamCreateParams, LiveStreamSearchParams, LiveStreamRemoveParticipantParams, StartStepParams, OnBoardingStep, CourseCreateParams, CourseSearchParams, CourseInfoViewType, CourseInfoParams, CourseLessonCommentsParams, CourseUserRoleParams, CourseUsersParams, CourseDashboardUsersParams, PaymentContentStatusParams, PaymentContentStatus, PaymentProductsParams, CustomerPortalCreateSessionParams, CheckoutSessionParams, CheckoutCreateSessionParams, PaymentOrderParams };
32
+ import { ContactUsRequestParams } from './contactUs';
33
+ export { AccountCreateParams, AccountVerifyParams, AccountRecoverParams, AccountResetParams, AccountSearchParams, SCPaginatedResponse, WebhookParamType, WebhookEventsType, SSOSignUpParams, CommentListParams, CommentCreateParams, IncubatorCreateParams, IncubatorSearchParams, LoyaltyPrizeParams, LoyaltyGetPrizeParams, ModerationParams, ModerateContributionParams, FlaggedContributionParams, CustomNotificationParams, UserGetParams, UserAutocompleteParams, UserScoreParams, UserSearchParams, TagParams, TagGetParams, MediaCreateParams, MediaTypes, ChunkUploadCompleteParams, ChunkUploadParams, ThreadParams, ThreadDeleteParams, 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, EventRelatedParams, EventSearchParams, LiveStreamCreateParams, LiveStreamSearchParams, LiveStreamRemoveParticipantParams, StartStepParams, OnBoardingStep, CourseCreateParams, CourseSearchParams, CourseInfoViewType, CourseInfoParams, CourseLessonCommentsParams, CourseUserRoleParams, CourseUsersParams, CourseDashboardUsersParams, PaymentContentStatusParams, PaymentContentStatus, PaymentProductsParams, CustomerPortalCreateSessionParams, CheckoutSessionParams, CheckoutCreateSessionParams, PaymentOrderParams, ContactUsRequestParams };
@@ -27,6 +27,10 @@ export interface UserAutocompleteParams extends BaseSearchParams {
27
27
  * Ordering fields (eg?: ?ordering=username). Minus char is used for descending ordering, eg. -username
28
28
  */
29
29
  ordering?: string;
30
+ /**
31
+ * Filter using the user ids
32
+ */
33
+ exclude?: string;
30
34
  }
31
35
  /**
32
36
  * UserScoreParams interface.
@@ -164,6 +164,10 @@ const Endpoints = {
164
164
  url: urlReplacer('/api/v2/$(type)/drafted/'),
165
165
  method: 'GET'
166
166
  },
167
+ GetDownloadCSV: {
168
+ url: urlReplacer('/api/v2/$(type)/$(id)/export/'),
169
+ method: 'GET'
170
+ },
167
171
  /**
168
172
  * Comments
169
173
  */
@@ -327,6 +331,10 @@ const Endpoints = {
327
331
  url: urlReplacer('/api/v2/user/'),
328
332
  method: 'GET'
329
333
  },
334
+ UserMatchUsernames: {
335
+ url: urlReplacer('/api/v2/user/match/'),
336
+ method: 'POST'
337
+ },
330
338
  ListHiddenUsers: {
331
339
  url: urlReplacer('/api/v2/user/hidden_users/'),
332
340
  method: 'GET'
@@ -1657,6 +1665,16 @@ const Endpoints = {
1657
1665
  url: urlReplacer('/api/v2/payments/customer_portal_session/'),
1658
1666
  method: 'POST'
1659
1667
  },
1660
- CreatePaymentProduct: { url: urlReplacer('/api/v2/payments/payment_product/price/'), method: 'POST' }
1668
+ CreatePaymentProduct: {
1669
+ url: urlReplacer('/api/v2/payments/payment_product/price/'),
1670
+ method: 'POST'
1671
+ },
1672
+ /**
1673
+ * Contact-us Endpoints
1674
+ */
1675
+ ContactRequest: {
1676
+ url: urlReplacer('/api/v2/contact/request/'),
1677
+ method: 'POST'
1678
+ }
1661
1679
  };
1662
1680
  export default Endpoints;