@selfcommunity/api-services 0.4.50-alpha.1 → 0.4.50-event.30

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.
@@ -0,0 +1,82 @@
1
+ /**
2
+ * EventCreateParams interface
3
+ */
4
+ import { SCEventDateFilterType, SCEventPrivacyType, SCEventRecurrenceType } 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
+ * EventFeedParams interface.
72
+ */
73
+ export interface EventSearchParams extends BaseSearchParams {
74
+ /**
75
+ * The events filtered by a specific time frame
76
+ */
77
+ date_filter?: SCEventDateFilterType;
78
+ /**
79
+ * The events created or followed by the users followed
80
+ */
81
+ follows?: boolean | number;
82
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -24,4 +24,5 @@ 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
- 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 };
27
+ import { EventCreateParams, EventFeedParams, EventSearchParams } from './event';
28
+ 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, EventSearchParams };