@selfcommunity/api-services 0.4.55 → 0.5.0-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/cjs/constants/Endpoints.js +146 -0
- package/lib/cjs/index.d.ts +4 -2
- package/lib/cjs/index.js +8 -1
- package/lib/cjs/services/event/index.d.ts +316 -0
- package/lib/cjs/services/event/index.js +467 -0
- package/lib/cjs/services/onboarding/index.d.ts +80 -0
- package/lib/cjs/services/onboarding/index.js +102 -0
- package/lib/cjs/services/preference/index.d.ts +8 -0
- package/lib/cjs/services/preference/index.js +13 -0
- package/lib/cjs/services/suggestion/index.d.ts +9 -1
- package/lib/cjs/services/suggestion/index.js +13 -0
- package/lib/cjs/types/event.d.ts +108 -0
- package/lib/cjs/types/event.js +2 -0
- package/lib/cjs/types/index.d.ts +3 -1
- package/lib/cjs/types/index.js +3 -1
- package/lib/cjs/types/onBoarding.d.ts +30 -0
- package/lib/cjs/types/onBoarding.js +18 -0
- package/lib/esm/constants/Endpoints.js +146 -0
- package/lib/esm/index.d.ts +4 -2
- package/lib/esm/index.js +4 -2
- package/lib/esm/services/event/index.d.ts +316 -0
- package/lib/esm/services/event/index.js +462 -0
- package/lib/esm/services/onboarding/index.d.ts +80 -0
- package/lib/esm/services/onboarding/index.js +97 -0
- package/lib/esm/services/preference/index.d.ts +8 -0
- package/lib/esm/services/preference/index.js +13 -0
- package/lib/esm/services/suggestion/index.d.ts +9 -1
- package/lib/esm/services/suggestion/index.js +13 -0
- package/lib/esm/types/event.d.ts +108 -0
- package/lib/esm/types/event.js +1 -0
- package/lib/esm/types/index.d.ts +3 -1
- package/lib/esm/types/index.js +2 -1
- package/lib/esm/types/onBoarding.d.ts +30 -0
- package/lib/esm/types/onBoarding.js +15 -0
- package/lib/umd/api-services.js +1 -1
- package/package.json +4 -4
|
@@ -36,6 +36,14 @@ class PreferenceApiClient {
|
|
|
36
36
|
static getSpecificPreference(id, config) {
|
|
37
37
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetPreference.url({ id }), method: Endpoints_1.default.Preferences.method }));
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* This endpoint patches one or more dynamic preferences.
|
|
41
|
+
* @param data
|
|
42
|
+
* @param config
|
|
43
|
+
*/
|
|
44
|
+
static updatePreferences(data, config) {
|
|
45
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UpdatePreferences.url(), method: Endpoints_1.default.UpdatePreferences.method, data: data }));
|
|
46
|
+
}
|
|
39
47
|
}
|
|
40
48
|
exports.PreferenceApiClient = PreferenceApiClient;
|
|
41
49
|
/**
|
|
@@ -89,5 +97,10 @@ class PreferenceService {
|
|
|
89
97
|
return PreferenceApiClient.getSpecificPreference(id, config);
|
|
90
98
|
});
|
|
91
99
|
}
|
|
100
|
+
static updatePreferences(data, config) {
|
|
101
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
return PreferenceApiClient.updatePreferences(data, config);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
92
105
|
}
|
|
93
106
|
exports.default = PreferenceService;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BaseGetParams, SCPaginatedResponse } from '../../types';
|
|
2
|
-
import { SCCategoryType, SCFeedObjectType, SCIncubatorType, SCSuggestionType, SCUserType } from '@selfcommunity/types';
|
|
2
|
+
import { SCCategoryType, SCEventType, SCFeedObjectType, SCIncubatorType, SCSuggestionType, SCUserType } from '@selfcommunity/types';
|
|
3
3
|
import { AxiosRequestConfig } from 'axios';
|
|
4
4
|
export interface SuggestionApiClientInterface {
|
|
5
5
|
getCategorySuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
|
|
6
6
|
getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
7
7
|
getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>>;
|
|
8
8
|
getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
9
|
+
getEventSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEventType>>;
|
|
9
10
|
getSearchSuggestion(search: string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCSuggestionType>>;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
@@ -36,6 +37,12 @@ export declare class SuggestionApiClient {
|
|
|
36
37
|
* @param config
|
|
37
38
|
*/
|
|
38
39
|
static getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
40
|
+
/**
|
|
41
|
+
* This endpoint retrieves a list of events suggested to the current user.
|
|
42
|
+
* @param params
|
|
43
|
+
* @param config
|
|
44
|
+
*/
|
|
45
|
+
static getEventSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEventType>>;
|
|
39
46
|
/**
|
|
40
47
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
41
48
|
* @param search
|
|
@@ -77,5 +84,6 @@ export default class SuggestionService {
|
|
|
77
84
|
static getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;
|
|
78
85
|
static getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>>;
|
|
79
86
|
static getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
87
|
+
static getEventSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEventType>>;
|
|
80
88
|
static getSearchSuggestion(search: string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCSuggestionType>>;
|
|
81
89
|
}
|
|
@@ -41,6 +41,14 @@ class SuggestionApiClient {
|
|
|
41
41
|
static getUserSuggestion(params, config) {
|
|
42
42
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserSuggestion.url({}), method: Endpoints_1.default.UserSuggestion.method, params }));
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* This endpoint retrieves a list of events suggested to the current user.
|
|
46
|
+
* @param params
|
|
47
|
+
* @param config
|
|
48
|
+
*/
|
|
49
|
+
static getEventSuggestion(params, config) {
|
|
50
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.EventSuggestion.url({}), method: Endpoints_1.default.EventSuggestion.method, params }));
|
|
51
|
+
}
|
|
44
52
|
/**
|
|
45
53
|
* This endpoint retrieves a list of users suggested to the current user.
|
|
46
54
|
* @param search
|
|
@@ -102,6 +110,11 @@ class SuggestionService {
|
|
|
102
110
|
return SuggestionApiClient.getUserSuggestion(params, config);
|
|
103
111
|
});
|
|
104
112
|
}
|
|
113
|
+
static getEventSuggestion(params, config) {
|
|
114
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return SuggestionApiClient.getEventSuggestion(params, config);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
105
118
|
static getSearchSuggestion(search, params, config) {
|
|
106
119
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
107
120
|
return SuggestionApiClient.getSearchSuggestion(search, params, config);
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventCreateParams interface
|
|
3
|
+
*/
|
|
4
|
+
import { SCEventDateFilterType, SCEventPrivacyType, SCEventRecurrenceType, SCEventSubscriptionStatusType } from '@selfcommunity/types';
|
|
5
|
+
import { BaseGetParams, BaseSearchParams } from './baseParams';
|
|
6
|
+
import { SCEventLocationType } from '@selfcommunity/types/src/types/event';
|
|
7
|
+
export interface EventCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* A unique name for the group
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The group privacy
|
|
14
|
+
*/
|
|
15
|
+
privacy: SCEventPrivacyType;
|
|
16
|
+
/**
|
|
17
|
+
* The group visibility. It is required when privacy = private.
|
|
18
|
+
*/
|
|
19
|
+
visible?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The group description
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The event starting date and time
|
|
26
|
+
*/
|
|
27
|
+
start_date: string;
|
|
28
|
+
/**
|
|
29
|
+
* The group ending date and time
|
|
30
|
+
*/
|
|
31
|
+
end_date?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The users to invite to the group
|
|
34
|
+
*/
|
|
35
|
+
invite_users?: number[];
|
|
36
|
+
/**
|
|
37
|
+
* The event image
|
|
38
|
+
*/
|
|
39
|
+
image_original?: File;
|
|
40
|
+
/**
|
|
41
|
+
* The event location
|
|
42
|
+
*/
|
|
43
|
+
location: SCEventLocationType;
|
|
44
|
+
/**
|
|
45
|
+
* The event exact point
|
|
46
|
+
*/
|
|
47
|
+
geolocation: string;
|
|
48
|
+
/**
|
|
49
|
+
* The event latitude
|
|
50
|
+
*/
|
|
51
|
+
geolocation_lat: number;
|
|
52
|
+
/**
|
|
53
|
+
* The event longitude
|
|
54
|
+
*/
|
|
55
|
+
geolocation_lng: number;
|
|
56
|
+
/**
|
|
57
|
+
* The event recurrency
|
|
58
|
+
*/
|
|
59
|
+
recurring?: SCEventRecurrenceType;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* EventFeedParams interface.
|
|
63
|
+
*/
|
|
64
|
+
export interface EventFeedParams extends BaseGetParams {
|
|
65
|
+
/**
|
|
66
|
+
* Which field to use when ordering the results.
|
|
67
|
+
*/
|
|
68
|
+
ordering?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* EventRelatedParams interface.
|
|
72
|
+
*/
|
|
73
|
+
export interface EventRelatedParams extends BaseGetParams {
|
|
74
|
+
/**
|
|
75
|
+
* Filter results by created_by user id.
|
|
76
|
+
*/
|
|
77
|
+
created_by?: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* EventUserParams interface.
|
|
81
|
+
*/
|
|
82
|
+
export interface EventUserParams extends BaseGetParams {
|
|
83
|
+
/**
|
|
84
|
+
* Filter results by subscription_status
|
|
85
|
+
*/
|
|
86
|
+
subscription_status?: SCEventSubscriptionStatusType;
|
|
87
|
+
/**
|
|
88
|
+
* Filtered past events
|
|
89
|
+
*/
|
|
90
|
+
past?: boolean | number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* EventFeedParams interface.
|
|
94
|
+
*/
|
|
95
|
+
export interface EventSearchParams extends BaseSearchParams {
|
|
96
|
+
/**
|
|
97
|
+
* The events filtered by a specific time frame
|
|
98
|
+
*/
|
|
99
|
+
date_filter?: SCEventDateFilterType;
|
|
100
|
+
/**
|
|
101
|
+
* The events created or followed by the users followed
|
|
102
|
+
*/
|
|
103
|
+
follows?: boolean | number;
|
|
104
|
+
/**
|
|
105
|
+
* Filtered past events
|
|
106
|
+
*/
|
|
107
|
+
past?: boolean | number;
|
|
108
|
+
}
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -24,4 +24,6 @@ import { ScoreParams } from './score';
|
|
|
24
24
|
import { InsightCommonParams, InsightEmbedParams, InsightUserParams, InsightContributionParams } from './insight';
|
|
25
25
|
import { ReactionParams } from './reaction';
|
|
26
26
|
import { GroupCreateParams, GroupFeedParams } from './group';
|
|
27
|
-
|
|
27
|
+
import { EventCreateParams, EventFeedParams, EventRelatedParams, EventSearchParams } from './event';
|
|
28
|
+
import { StartStepParams, OnBoardingStep } from './onBoarding';
|
|
29
|
+
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, FeedParams, LegalPageFilterParams, FeatureParams, ScoreParams, InsightContributionParams, InsightUserParams, InsightEmbedParams, InsightCommonParams, ReactionParams, GroupCreateParams, GroupFeedParams, EventCreateParams, EventFeedParams, EventRelatedParams, EventSearchParams, StartStepParams, OnBoardingStep };
|
package/lib/cjs/types/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaTypes = void 0;
|
|
3
|
+
exports.OnBoardingStep = exports.MediaTypes = void 0;
|
|
4
4
|
const media_1 = require("./media");
|
|
5
5
|
Object.defineProperty(exports, "MediaTypes", { enumerable: true, get: function () { return media_1.MediaTypes; } });
|
|
6
|
+
const onBoarding_1 = require("./onBoarding");
|
|
7
|
+
Object.defineProperty(exports, "OnBoardingStep", { enumerable: true, get: function () { return onBoarding_1.OnBoardingStep; } });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StartStepParams interface
|
|
3
|
+
*/
|
|
4
|
+
export interface StartStepParams {
|
|
5
|
+
/**
|
|
6
|
+
* The number of the post to generate.
|
|
7
|
+
* @default 10
|
|
8
|
+
*/
|
|
9
|
+
num_posts?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The number of the post images to generate
|
|
12
|
+
* @default 1
|
|
13
|
+
*/
|
|
14
|
+
num_images?: number;
|
|
15
|
+
/**
|
|
16
|
+
* only for stage
|
|
17
|
+
*/
|
|
18
|
+
force?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* OnBoardingStepType enum
|
|
22
|
+
*/
|
|
23
|
+
export declare enum OnBoardingStep {
|
|
24
|
+
CONTENTS = 1,
|
|
25
|
+
CATEGORIES = 2,
|
|
26
|
+
APPEARANCE = 3,
|
|
27
|
+
PROFILE = 4,
|
|
28
|
+
INVITE = 5,
|
|
29
|
+
APP = 6
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* StartStepParams interface
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.OnBoardingStep = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* OnBoardingStepType enum
|
|
9
|
+
*/
|
|
10
|
+
var OnBoardingStep;
|
|
11
|
+
(function (OnBoardingStep) {
|
|
12
|
+
OnBoardingStep[OnBoardingStep["CONTENTS"] = 1] = "CONTENTS";
|
|
13
|
+
OnBoardingStep[OnBoardingStep["CATEGORIES"] = 2] = "CATEGORIES";
|
|
14
|
+
OnBoardingStep[OnBoardingStep["APPEARANCE"] = 3] = "APPEARANCE";
|
|
15
|
+
OnBoardingStep[OnBoardingStep["PROFILE"] = 4] = "PROFILE";
|
|
16
|
+
OnBoardingStep[OnBoardingStep["INVITE"] = 5] = "INVITE";
|
|
17
|
+
OnBoardingStep[OnBoardingStep["APP"] = 6] = "APP";
|
|
18
|
+
})(OnBoardingStep = exports.OnBoardingStep || (exports.OnBoardingStep = {}));
|
|
@@ -59,6 +59,10 @@ const Endpoints = {
|
|
|
59
59
|
url: urlReplacer('/api/v2/dynamic_preference/$(id)/'),
|
|
60
60
|
method: 'GET'
|
|
61
61
|
},
|
|
62
|
+
UpdatePreferences: {
|
|
63
|
+
url: urlReplacer('/api/v2/dynamic_preference/'),
|
|
64
|
+
method: 'PATCH'
|
|
65
|
+
},
|
|
62
66
|
/**
|
|
63
67
|
* SSO Endpoints
|
|
64
68
|
*/
|
|
@@ -584,6 +588,10 @@ const Endpoints = {
|
|
|
584
588
|
url: urlReplacer('/api/v2/suggestion/user/'),
|
|
585
589
|
method: 'GET'
|
|
586
590
|
},
|
|
591
|
+
EventSuggestion: {
|
|
592
|
+
url: urlReplacer('/api/v2/suggestion/event/'),
|
|
593
|
+
method: 'GET'
|
|
594
|
+
},
|
|
587
595
|
SearchSuggestion: {
|
|
588
596
|
url: urlReplacer('/api/v2/suggestion/'),
|
|
589
597
|
method: 'GET'
|
|
@@ -1194,6 +1202,144 @@ const Endpoints = {
|
|
|
1194
1202
|
GetUserSubscribedGroups: {
|
|
1195
1203
|
url: urlReplacer('/api/v2/user/$(id)/groups/'),
|
|
1196
1204
|
method: 'GET'
|
|
1205
|
+
},
|
|
1206
|
+
/**
|
|
1207
|
+
* Events
|
|
1208
|
+
*/
|
|
1209
|
+
GetUserEvents: {
|
|
1210
|
+
url: urlReplacer('/api/v2/event/'),
|
|
1211
|
+
method: 'GET'
|
|
1212
|
+
},
|
|
1213
|
+
GetEventInfo: {
|
|
1214
|
+
url: urlReplacer('/api/v2/event/$(id)/'),
|
|
1215
|
+
method: 'GET'
|
|
1216
|
+
},
|
|
1217
|
+
GetEventFeed: {
|
|
1218
|
+
url: urlReplacer('/api/v2/event/$(id)/feed/'),
|
|
1219
|
+
method: 'GET'
|
|
1220
|
+
},
|
|
1221
|
+
SearchEvents: {
|
|
1222
|
+
url: urlReplacer('/api/v2/event/search/'),
|
|
1223
|
+
method: 'GET'
|
|
1224
|
+
},
|
|
1225
|
+
CreateEvent: {
|
|
1226
|
+
url: urlReplacer('/api/v2/event/'),
|
|
1227
|
+
method: 'POST'
|
|
1228
|
+
},
|
|
1229
|
+
UpdateEvent: {
|
|
1230
|
+
url: urlReplacer('/api/v2/event/$(id)/'),
|
|
1231
|
+
method: 'PUT'
|
|
1232
|
+
},
|
|
1233
|
+
DeleteEvent: {
|
|
1234
|
+
url: urlReplacer('/api/v2/event/$(id)/'),
|
|
1235
|
+
method: 'DELETE'
|
|
1236
|
+
},
|
|
1237
|
+
PatchEvent: {
|
|
1238
|
+
url: urlReplacer('/api/v2/event/$(id)/'),
|
|
1239
|
+
method: 'PATCH'
|
|
1240
|
+
},
|
|
1241
|
+
GetEventSuggestedUsers: {
|
|
1242
|
+
url: urlReplacer('/api/v2/event/$(id)/user/?search=$(search)'),
|
|
1243
|
+
method: 'GET'
|
|
1244
|
+
},
|
|
1245
|
+
GetUsersGoingToEvent: {
|
|
1246
|
+
url: urlReplacer('/api/v2/event/$(id)/going/'),
|
|
1247
|
+
method: 'GET'
|
|
1248
|
+
},
|
|
1249
|
+
GetUsersNotGoingToEvent: {
|
|
1250
|
+
url: urlReplacer('/api/v2/event/$(id)/not_going/'),
|
|
1251
|
+
method: 'GET'
|
|
1252
|
+
},
|
|
1253
|
+
GoToEvent: {
|
|
1254
|
+
url: urlReplacer('/api/v2/event/$(id)/going/'),
|
|
1255
|
+
method: 'POST'
|
|
1256
|
+
},
|
|
1257
|
+
RemoveGoingToEvent: {
|
|
1258
|
+
url: urlReplacer('/api/v2/event/$(id)/going/'),
|
|
1259
|
+
method: 'DELETE'
|
|
1260
|
+
},
|
|
1261
|
+
NotGoingToEvent: {
|
|
1262
|
+
url: urlReplacer('/api/v2/event/$(id)/not_going/'),
|
|
1263
|
+
method: 'POST'
|
|
1264
|
+
},
|
|
1265
|
+
RemoveNotGoingToEvent: {
|
|
1266
|
+
url: urlReplacer('/api/v2/event/$(id)/not_going/'),
|
|
1267
|
+
method: 'DELETE'
|
|
1268
|
+
},
|
|
1269
|
+
GetEventsSuggestedUsers: {
|
|
1270
|
+
url: urlReplacer('/api/v2/event/user/?search=$(search)'),
|
|
1271
|
+
method: 'GET'
|
|
1272
|
+
},
|
|
1273
|
+
InviteOrAcceptEventRequest: {
|
|
1274
|
+
url: urlReplacer('/api/v2/event/$(id)/invite/'),
|
|
1275
|
+
method: 'POST'
|
|
1276
|
+
},
|
|
1277
|
+
RemoveInviteEvent: {
|
|
1278
|
+
url: urlReplacer('/api/v2/event/$(id)/invite/'),
|
|
1279
|
+
method: 'DELETE'
|
|
1280
|
+
},
|
|
1281
|
+
GetEventInvitedUsers: {
|
|
1282
|
+
url: urlReplacer('/api/v2/event/$(id)/invite/'),
|
|
1283
|
+
method: 'GET'
|
|
1284
|
+
},
|
|
1285
|
+
GetEventSubscriptionStatus: {
|
|
1286
|
+
url: urlReplacer('/api/v2/event/$(id)/status/'),
|
|
1287
|
+
method: 'GET'
|
|
1288
|
+
},
|
|
1289
|
+
SubscribeToEvent: {
|
|
1290
|
+
url: urlReplacer('/api/v2/event/$(id)/subscribe/'),
|
|
1291
|
+
method: 'POST'
|
|
1292
|
+
},
|
|
1293
|
+
GetEventSubscribers: {
|
|
1294
|
+
url: urlReplacer('/api/v2/event/$(id)/subscribe/'),
|
|
1295
|
+
method: 'GET'
|
|
1296
|
+
},
|
|
1297
|
+
GetEventWaitingApprovalSubscribers: {
|
|
1298
|
+
url: urlReplacer('/api/v2/event/$(id)/request_subscribe/'),
|
|
1299
|
+
method: 'GET'
|
|
1300
|
+
},
|
|
1301
|
+
UnsubscribeFromEvent: {
|
|
1302
|
+
url: urlReplacer('/api/v2/event/$(id)/subscribe/'),
|
|
1303
|
+
method: 'DELETE'
|
|
1304
|
+
},
|
|
1305
|
+
GetUserSubscribedEvents: {
|
|
1306
|
+
url: urlReplacer('/api/v2/user/$(id)/events/'),
|
|
1307
|
+
method: 'GET'
|
|
1308
|
+
},
|
|
1309
|
+
GetEventRelated: {
|
|
1310
|
+
url: urlReplacer('/api/v2/event/$(id)/related/'),
|
|
1311
|
+
method: 'GET'
|
|
1312
|
+
},
|
|
1313
|
+
GetUserCreatedEvents: {
|
|
1314
|
+
url: urlReplacer('/api/v2/event/created/'),
|
|
1315
|
+
method: 'GET'
|
|
1316
|
+
},
|
|
1317
|
+
ShowEvent: {
|
|
1318
|
+
url: urlReplacer('/api/v2/event/$(id)/show/'),
|
|
1319
|
+
method: 'POST'
|
|
1320
|
+
},
|
|
1321
|
+
HideEvent: {
|
|
1322
|
+
url: urlReplacer('/api/v2/event/$(id)/hide/'),
|
|
1323
|
+
method: 'POST'
|
|
1324
|
+
},
|
|
1325
|
+
/**
|
|
1326
|
+
* OnBoarding
|
|
1327
|
+
*/
|
|
1328
|
+
GetAllSteps: {
|
|
1329
|
+
url: urlReplacer('/api/v2/onboarding/'),
|
|
1330
|
+
method: 'GET'
|
|
1331
|
+
},
|
|
1332
|
+
GetAStep: {
|
|
1333
|
+
url: urlReplacer('/api/v2/onboarding/$(step)/'),
|
|
1334
|
+
method: 'GET'
|
|
1335
|
+
},
|
|
1336
|
+
StartAStep: {
|
|
1337
|
+
url: urlReplacer('/api/v2/onboarding/$(step)/start/'),
|
|
1338
|
+
method: 'POST'
|
|
1339
|
+
},
|
|
1340
|
+
CompleteAStep: {
|
|
1341
|
+
url: urlReplacer('/api/v2/onboarding/$(step)/complete/'),
|
|
1342
|
+
method: 'POST'
|
|
1197
1343
|
}
|
|
1198
1344
|
};
|
|
1199
1345
|
export default Endpoints;
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -47,11 +47,13 @@ import UserService, { UserApiClient, UserApiClientInterface } from './services/u
|
|
|
47
47
|
import WebhookService, { WebhookApiClient, WebhookApiClientInterface } from './services/webhook';
|
|
48
48
|
import ReactionService, { ReactionApiClient, ReactionApiClientInterface } from './services/reactions';
|
|
49
49
|
import GroupService, { GroupApiClient, GroupApiClientInterface } from './services/group';
|
|
50
|
+
import EventService, { EventApiClient, EventApiClientInterface } from './services/event';
|
|
51
|
+
import OnBoardingService, { OnBoardingApiClient, OnBoardingApiClientInterface } from './services/onboarding';
|
|
50
52
|
/**
|
|
51
53
|
* Types
|
|
52
54
|
*/
|
|
53
|
-
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 } from './types';
|
|
55
|
+
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, StartStepParams, OnBoardingStep } from './types';
|
|
54
56
|
/**
|
|
55
57
|
* Export all
|
|
56
58
|
*/
|
|
57
|
-
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 };
|
|
59
|
+
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, OnBoardingService, OnBoardingApiClientInterface, OnBoardingApiClient, StartStepParams, OnBoardingStep };
|
package/lib/esm/index.js
CHANGED
|
@@ -47,11 +47,13 @@ import UserService, { UserApiClient } from './services/user';
|
|
|
47
47
|
import WebhookService, { WebhookApiClient } from './services/webhook';
|
|
48
48
|
import ReactionService, { ReactionApiClient } from './services/reactions';
|
|
49
49
|
import GroupService, { GroupApiClient } from './services/group';
|
|
50
|
+
import EventService, { EventApiClient } from './services/event';
|
|
51
|
+
import OnBoardingService, { OnBoardingApiClient } from './services/onboarding';
|
|
50
52
|
/**
|
|
51
53
|
* Types
|
|
52
54
|
*/
|
|
53
|
-
import { MediaTypes } from './types';
|
|
55
|
+
import { MediaTypes, OnBoardingStep } from './types';
|
|
54
56
|
/**
|
|
55
57
|
* Export all
|
|
56
58
|
*/
|
|
57
|
-
export { http, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, AccountService, AccountApiClient, PreferenceService, PreferenceApiClient, UserService, UserApiClient, FeatureService, FeatureApiClient, CategoryService, CategoryApiClient, CommentService, CommentApiClient, CustomAdvService, CustomAdvApiClient, CustomMenuService, CustomMenuApiClient, CustomPageService, CustomPageApiClient, DataPortabilityService, DataPortabilityApiClient, EmbedService, EmbedApiClient, FeedService, FeedApiClient, FeedObjectService, FeedObjectApiClient, IncubatorService, IncubatorApiClient, InsightService, InsightApiClient, InviteService, InviteApiClient, LegalPageService, LegalPageApiClient, LocalityService, LocalityApiClient, LoyaltyService, LoyaltyApiClient, MediaService, MediaApiClient, ModerationService, ModerationApiClient, NotificationService, NotificationApiClient, PrivateMessageService, PrivateMessageApiClient, PromoService, PromoApiClient, ScoreService, ScoreApiClient, SSOService, SSOApiClient, SuggestionService, SuggestionApiClient, TagService, TagApiClient, WebhookService, WebhookApiClient, MediaTypes, ReactionService, ReactionApiClient, GroupService, GroupApiClient };
|
|
59
|
+
export { http, apiRequest, formatHttpError, formatHttpErrorCode, getCancelTokenSourceRequest, generateJWTToken, parseJwt, urlParams, Endpoints, AccountService, AccountApiClient, PreferenceService, PreferenceApiClient, UserService, UserApiClient, FeatureService, FeatureApiClient, CategoryService, CategoryApiClient, CommentService, CommentApiClient, CustomAdvService, CustomAdvApiClient, CustomMenuService, CustomMenuApiClient, CustomPageService, CustomPageApiClient, DataPortabilityService, DataPortabilityApiClient, EmbedService, EmbedApiClient, FeedService, FeedApiClient, FeedObjectService, FeedObjectApiClient, IncubatorService, IncubatorApiClient, InsightService, InsightApiClient, InviteService, InviteApiClient, LegalPageService, LegalPageApiClient, LocalityService, LocalityApiClient, LoyaltyService, LoyaltyApiClient, MediaService, MediaApiClient, ModerationService, ModerationApiClient, NotificationService, NotificationApiClient, PrivateMessageService, PrivateMessageApiClient, PromoService, PromoApiClient, ScoreService, ScoreApiClient, SSOService, SSOApiClient, SuggestionService, SuggestionApiClient, TagService, TagApiClient, WebhookService, WebhookApiClient, MediaTypes, ReactionService, ReactionApiClient, GroupService, GroupApiClient, EventService, EventApiClient, OnBoardingService, OnBoardingApiClient, OnBoardingStep };
|