@selfcommunity/types 0.8.0-alpha.0 → 0.8.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 (62) hide show
  1. package/lib/cjs/index.d.ts +4 -4
  2. package/lib/cjs/index.js +10 -1
  3. package/lib/cjs/types/billing.d.ts +86 -0
  4. package/lib/cjs/types/billing.js +2 -0
  5. package/lib/cjs/types/category.d.ts +2 -1
  6. package/lib/cjs/types/community.d.ts +19 -0
  7. package/lib/cjs/types/community.js +2 -0
  8. package/lib/cjs/types/contactUs.d.ts +25 -0
  9. package/lib/cjs/types/contactUs.js +2 -0
  10. package/lib/cjs/types/course.d.ts +8 -2
  11. package/lib/cjs/types/course.js +1 -0
  12. package/lib/cjs/types/customAdv.d.ts +2 -1
  13. package/lib/cjs/types/customAdv.js +1 -0
  14. package/lib/cjs/types/customMenu.d.ts +8 -0
  15. package/lib/cjs/types/customMenu.js +10 -0
  16. package/lib/cjs/types/device.d.ts +1 -1
  17. package/lib/cjs/types/event.d.ts +2 -1
  18. package/lib/cjs/types/feature.d.ts +1 -1
  19. package/lib/cjs/types/feature.js +1 -1
  20. package/lib/cjs/types/feed.d.ts +21 -5
  21. package/lib/cjs/types/group.d.ts +4 -2
  22. package/lib/cjs/types/group.js +1 -0
  23. package/lib/cjs/types/index.d.ts +7 -3
  24. package/lib/cjs/types/index.js +13 -2
  25. package/lib/cjs/types/media.d.ts +56 -2
  26. package/lib/cjs/types/media.js +51 -0
  27. package/lib/cjs/types/payment.d.ts +226 -0
  28. package/lib/cjs/types/payment.js +42 -0
  29. package/lib/cjs/types/preference.d.ts +19 -1
  30. package/lib/cjs/types/preference.js +18 -0
  31. package/lib/esm/index.d.ts +4 -4
  32. package/lib/esm/index.js +2 -2
  33. package/lib/esm/types/billing.d.ts +86 -0
  34. package/lib/esm/types/billing.js +1 -0
  35. package/lib/esm/types/category.d.ts +2 -1
  36. package/lib/esm/types/community.d.ts +19 -0
  37. package/lib/esm/types/community.js +1 -0
  38. package/lib/esm/types/contactUs.d.ts +25 -0
  39. package/lib/esm/types/contactUs.js +1 -0
  40. package/lib/esm/types/course.d.ts +8 -2
  41. package/lib/esm/types/course.js +1 -0
  42. package/lib/esm/types/customAdv.d.ts +2 -1
  43. package/lib/esm/types/customAdv.js +1 -0
  44. package/lib/esm/types/customMenu.d.ts +8 -0
  45. package/lib/esm/types/customMenu.js +9 -1
  46. package/lib/esm/types/device.d.ts +1 -1
  47. package/lib/esm/types/event.d.ts +2 -1
  48. package/lib/esm/types/feature.d.ts +1 -1
  49. package/lib/esm/types/feature.js +1 -1
  50. package/lib/esm/types/feed.d.ts +21 -5
  51. package/lib/esm/types/group.d.ts +4 -2
  52. package/lib/esm/types/group.js +1 -0
  53. package/lib/esm/types/index.d.ts +7 -3
  54. package/lib/esm/types/index.js +4 -1
  55. package/lib/esm/types/media.d.ts +56 -2
  56. package/lib/esm/types/media.js +50 -1
  57. package/lib/esm/types/payment.d.ts +226 -0
  58. package/lib/esm/types/payment.js +39 -0
  59. package/lib/esm/types/preference.d.ts +19 -1
  60. package/lib/esm/types/preference.js +18 -0
  61. package/lib/umd/types.js +1 -1
  62. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ import { SCPaymentOrder, SCPaymentProduct, SCPurchasableContent } from './payment';
2
+ export interface SCCommunityType extends SCPurchasableContent {
3
+ /**
4
+ * Id community
5
+ */
6
+ id: number;
7
+ /**
8
+ * Payment Order
9
+ */
10
+ payment_order?: SCPaymentOrder;
11
+ /**
12
+ * Paywalls
13
+ */
14
+ paywalls?: SCPaymentProduct[];
15
+ /**
16
+ * User paywall community status
17
+ */
18
+ paywall_community_passed?: boolean;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Interface SCContactUsRequestType
3
+ */
4
+ export interface SCContactUsRequestType {
5
+ /**
6
+ * Id of the request
7
+ */
8
+ id?: number;
9
+ /**
10
+ * Message of the request
11
+ */
12
+ message?: string;
13
+ /**
14
+ * Created at
15
+ */
16
+ created_at?: Date | string;
17
+ /**
18
+ * Updated at
19
+ */
20
+ updated_at?: Date | string | null;
21
+ /**
22
+ * Any other properties
23
+ */
24
+ [p: string]: any;
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { SCUserType } from './user';
2
2
  import { SCCategoryType } from './category';
3
3
  import { SCMediaType } from './media';
4
+ import { SCPaymentProduct, SCPurchasableContent } from './payment';
4
5
  /**
5
6
  * SCCoursePrivacyType enum
6
7
  */
@@ -26,7 +27,8 @@ export declare enum SCCourseJoinStatusType {
26
27
  REQUESTED = "requested",
27
28
  INVITED = "invited",
28
29
  MANAGER = "manager",
29
- CREATOR = "creator"
30
+ CREATOR = "creator",
31
+ PAYMENT_WAITING = "payment_waiting"
30
32
  }
31
33
  /**
32
34
  * SCCourseOrderingUsersType enum
@@ -39,7 +41,7 @@ export declare enum SCCourseOrderingUsersType {
39
41
  * Interface SCCourseType.
40
42
  * Course Schema.
41
43
  */
42
- export interface SCCourseType {
44
+ export interface SCCourseType extends SCPurchasableContent {
43
45
  /**
44
46
  * The ID of the course.
45
47
  */
@@ -245,6 +247,10 @@ export interface SCCourseCommentType {
245
247
  name: string;
246
248
  };
247
249
  };
250
+ /**
251
+ * Paywalls
252
+ */
253
+ paywalls?: SCPaymentProduct[];
248
254
  }
249
255
  /**
250
256
  * Interface SCCourseSectionType.
@@ -27,6 +27,7 @@ export var SCCourseJoinStatusType;
27
27
  SCCourseJoinStatusType["INVITED"] = "invited";
28
28
  SCCourseJoinStatusType["MANAGER"] = "manager";
29
29
  SCCourseJoinStatusType["CREATOR"] = "creator";
30
+ SCCourseJoinStatusType["PAYMENT_WAITING"] = "payment_waiting";
30
31
  })(SCCourseJoinStatusType || (SCCourseJoinStatusType = {}));
31
32
  /**
32
33
  * SCCourseOrderingUsersType enum
@@ -4,7 +4,8 @@ export declare enum SCCustomAdvPosition {
4
4
  POSITION_IN_COMMENTS = "IN_POST_COMMENTS",
5
5
  POSITION_RELATED_POSTS_COLUMN = "RELATED_POSTS_COLUMN",
6
6
  POSITION_FEED_SIDEBAR = "TOOLS_COLUMN",
7
- POSITION_FEED = "IN_STREAM"
7
+ POSITION_FEED = "IN_STREAM",
8
+ POSITION_ABOVE_FEED = "ABOVE_THE_STREAM"
8
9
  }
9
10
  export interface SCCustomAdvType {
10
11
  /**
@@ -6,4 +6,5 @@ export var SCCustomAdvPosition;
6
6
  SCCustomAdvPosition["POSITION_RELATED_POSTS_COLUMN"] = "RELATED_POSTS_COLUMN";
7
7
  SCCustomAdvPosition["POSITION_FEED_SIDEBAR"] = "TOOLS_COLUMN";
8
8
  SCCustomAdvPosition["POSITION_FEED"] = "IN_STREAM";
9
+ SCCustomAdvPosition["POSITION_ABOVE_FEED"] = "ABOVE_THE_STREAM";
9
10
  })(SCCustomAdvPosition || (SCCustomAdvPosition = {}));
@@ -1,3 +1,11 @@
1
+ /**
2
+ * SCCustomMenu enum
3
+ */
4
+ export declare enum SCCustomMenu {
5
+ BASE = "base",
6
+ NOT_LOGGED = "not_logged",
7
+ USER = "user"
8
+ }
1
9
  /**
2
10
  * SCCustomMenuItemType interface
3
11
  */
@@ -1 +1,9 @@
1
- export {};
1
+ /**
2
+ * SCCustomMenu enum
3
+ */
4
+ export var SCCustomMenu;
5
+ (function (SCCustomMenu) {
6
+ SCCustomMenu["BASE"] = "base";
7
+ SCCustomMenu["NOT_LOGGED"] = "not_logged";
8
+ SCCustomMenu["USER"] = "user";
9
+ })(SCCustomMenu || (SCCustomMenu = {}));
@@ -77,4 +77,4 @@ export interface SCGcmDeviceType extends SCDeviceType {
77
77
  * Interface SCApnsDeviceType
78
78
  * APNSDevice Schema.
79
79
  */
80
- export type SCApnsDeviceType = SCDeviceType;
80
+ export declare type SCApnsDeviceType = SCDeviceType;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { SCUserType } from './user';
6
6
  import { SCLiveStreamType } from './liveStream';
7
+ import { SCPurchasableContent } from './payment';
7
8
  /**
8
9
  * SCEventPrivacyType enum
9
10
  */
@@ -59,7 +60,7 @@ export declare enum SCEventDateFilterType {
59
60
  NOT_PAST = "not_past",
60
61
  PAST = "past"
61
62
  }
62
- export interface SCEventType {
63
+ export interface SCEventType extends SCPurchasableContent {
63
64
  /**
64
65
  * The ID of the event.
65
66
  */
@@ -40,10 +40,10 @@ export declare enum SCFeatureName {
40
40
  CUSTOMIZE_HEADLESS = "customize_headless",
41
41
  SYSTEM_PAGES = "system_pages",
42
42
  REACTION = "reaction",
43
- PRIVATE_MESSAGING = "private_messaging",
44
43
  GROUPING = "grouping",
45
44
  EVENT = "event",
46
45
  LIVE_STREAM = "live_stream",
46
+ PAYMENTS = "payments",
47
47
  COURSE = "course"
48
48
  }
49
49
  /**
@@ -41,9 +41,9 @@ export var SCFeatureName;
41
41
  SCFeatureName["CUSTOMIZE_HEADLESS"] = "customize_headless";
42
42
  SCFeatureName["SYSTEM_PAGES"] = "system_pages";
43
43
  SCFeatureName["REACTION"] = "reaction";
44
- SCFeatureName["PRIVATE_MESSAGING"] = "private_messaging";
45
44
  SCFeatureName["GROUPING"] = "grouping";
46
45
  SCFeatureName["EVENT"] = "event";
47
46
  SCFeatureName["LIVE_STREAM"] = "live_stream";
47
+ SCFeatureName["PAYMENTS"] = "payments";
48
48
  SCFeatureName["COURSE"] = "course";
49
49
  })(SCFeatureName || (SCFeatureName = {}));
@@ -1,4 +1,4 @@
1
- import { SCUserType } from './user';
1
+ import { SCUserAutocompleteType, SCUserType } from './user';
2
2
  import { SCCategoryType } from './category';
3
3
  import { SCContributionLocation } from './location';
4
4
  import { SCPollType } from './poll';
@@ -42,7 +42,7 @@ export interface SCFeedUnitType {
42
42
  /**
43
43
  * Id of User that have seen this object
44
44
  */
45
- seen_by_id?: number[];
45
+ seen?: boolean;
46
46
  /**
47
47
  * True if this object has the visibility boost
48
48
  */
@@ -82,7 +82,7 @@ export interface SCFeedUnitActivityType {
82
82
  /**
83
83
  * Id of Users that have seen this activity
84
84
  */
85
- seen_by_id?: number[];
85
+ seen?: boolean;
86
86
  }
87
87
  /**
88
88
  * Interface SCFeedObjectType.
@@ -122,10 +122,18 @@ export interface SCFeedObjectType {
122
122
  * Last activity at
123
123
  */
124
124
  last_activity_at: Date;
125
+ /**
126
+ * Last edited at
127
+ */
128
+ last_edited_at: Date;
125
129
  /**
126
130
  * Added at
127
131
  */
128
132
  added_at: Date;
133
+ /**
134
+ * Scheduled at
135
+ */
136
+ scheduled_at?: Date;
129
137
  /**
130
138
  * Slug
131
139
  */
@@ -195,7 +203,7 @@ export interface SCFeedObjectType {
195
203
  */
196
204
  flag_count: number;
197
205
  /**
198
- * Tags adderssing
206
+ * Tags addressing
199
207
  */
200
208
  addressing: SCTagType[];
201
209
  /**
@@ -206,6 +214,14 @@ export interface SCFeedObjectType {
206
214
  * Suspended notification
207
215
  */
208
216
  suspended?: boolean;
217
+ /**
218
+ * True if scheduled_posts ddp is enabled and if the feed object is not published yet
219
+ */
220
+ draft?: boolean;
221
+ /**
222
+ * Users addressing
223
+ */
224
+ recipients?: SCUserAutocompleteType[];
209
225
  }
210
226
  /**
211
227
  * Interface SCFeedDiscussionType.
@@ -235,7 +251,7 @@ export interface SCFeedPostType extends SCFeedObjectType {
235
251
  * Interface SCFeedStatusType.
236
252
  * Status Schema.
237
253
  */
238
- export type SCFeedStatusType = SCFeedObjectType;
254
+ export declare type SCFeedStatusType = SCFeedObjectType;
239
255
  /**
240
256
  * SCFeedUnseenCountType interface
241
257
  */
@@ -3,6 +3,7 @@
3
3
  * Group Schema.
4
4
  */
5
5
  import { SCUserType } from './user';
6
+ import { SCPurchasableContent } from './payment';
6
7
  /**
7
8
  * SCGroupPrivacyType enum
8
9
  */
@@ -16,9 +17,10 @@ export declare enum SCGroupPrivacyType {
16
17
  export declare enum SCGroupSubscriptionStatusType {
17
18
  SUBSCRIBED = "subscribed",
18
19
  REQUESTED = "requested",
19
- INVITED = "invited"
20
+ INVITED = "invited",
21
+ PAYMENT_WAITING = "payment_waiting"
20
22
  }
21
- export interface SCGroupType {
23
+ export interface SCGroupType extends SCPurchasableContent {
22
24
  /**
23
25
  * The ID of the group.
24
26
  */
@@ -14,4 +14,5 @@ export var SCGroupSubscriptionStatusType;
14
14
  SCGroupSubscriptionStatusType["SUBSCRIBED"] = "subscribed";
15
15
  SCGroupSubscriptionStatusType["REQUESTED"] = "requested";
16
16
  SCGroupSubscriptionStatusType["INVITED"] = "invited";
17
+ SCGroupSubscriptionStatusType["PAYMENT_WAITING"] = "payment_waiting";
17
18
  })(SCGroupSubscriptionStatusType || (SCGroupSubscriptionStatusType = {}));
@@ -1,13 +1,13 @@
1
1
  import { type SCAuthTokenType } from './auth';
2
2
  import { type SCBannerType, SCBroadcastMessageBannerType, type SCBroadcastMessageType } from './broadcastMessage';
3
3
  import { SCCustomAdvPosition, type SCCustomAdvType } from './customAdv';
4
- import { type SCCustomMenuItemType, type SCCustomMenuType } from './customMenu';
4
+ import { SCCustomMenu, type SCCustomMenuItemType, type SCCustomMenuType } from './customMenu';
5
5
  import { SCLanguageType } from './locale';
6
6
  import { type SCUserAutocompleteType, type SCUserAvatarType, type SCUserBlockedSettingsType, type SCUserChangeEmailType, type SCUserConnectionRequestType, type SCUserConnectionStatusType, type SCUserCounterType, type SCUserEmailTokenType, type SCUserFollowedStatusType, type SCUserFollowerStatusType, type SCUserHiddenByStatusType, type SCUserHiddenStatusType, type SCUserModerationType, type SCUserPermissionType, SCUserReputationType, type SCUserScoreType, type SCUserScoreVariation, type SCUserSettingsType, SCUserStatus, type SCUserType, type SCUserProviderAssociationType } from './user';
7
7
  import { type SCTagType } from './tag';
8
8
  import { type SCCategoryAudienceType, type SCCategoryFollowedStatusType, type SCCategoryType, SCCategoryAutoFollowType } from './category';
9
9
  import { type SCEmbedType } from './embed';
10
- import { type SCChunkMediaType, type SCMediaType } from './media';
10
+ import { type SCChunkMediaType, type SCMediaType, SCMimeTypes } from './media';
11
11
  import { SCMetadataTypeFieldType, type SCMetadataType } from './metadata';
12
12
  import { type SCContributionLocation, type SCLocalityType } from './location';
13
13
  import { type SCPollChoiceType, type SCPollType, type SCPollVoteType } from './poll';
@@ -44,7 +44,11 @@ import { type SCLiveStreamType, SCLiveStreamViewType, SCLiveStreamConnectionDeta
44
44
  import { type SCStepType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType } from './onboarding';
45
45
  import { SCCommunitySubscriptionTier } from './tier';
46
46
  import { SCCommunityEnvironment } from './environment';
47
+ import { type SCPaymentProduct, type SCPaymentPrice, SCPaymentPriceCurrencyType, SCContentType, type SCCheckoutSession, type SCPurchasableContent, SCCheckoutSessionStatus, type SCCheckoutSessionDetail, type SCCheckoutSessionComplete, type SCPaymentOrder, type SCPaymentsCustomerPortalSession, SCPaymentProductTemplateType, SCCheckoutSessionUIMode, type SCPaywall, SCPaymentRecurringInterval } from './payment';
48
+ import { type SCCustomerBillingInfo, type SCCountryType } from './billing';
49
+ import { type SCCommunityType } from './community';
50
+ import { type SCContactUsRequestType } from './contactUs';
47
51
  /**
48
52
  * Exports all types
49
53
  */
50
- export { type SCBannerType, SCBroadcastMessageBannerType, type SCBroadcastMessageType, type SCAuthTokenType, SCLanguageType, type SCUserType, type SCUserSettingsType, SCUserStatus, type SCUserBlockedSettingsType, type SCUserModerationType, type SCUserScoreVariation, type SCUserScoreType, SCUserReputationType, type SCUserAutocompleteType, type SCUserCounterType, type SCUserChangeEmailType, type SCUserAvatarType, type SCUserPermissionType, type SCUserFollowedStatusType, type SCUserFollowerStatusType, type SCUserConnectionStatusType, type SCUserHiddenStatusType, type SCUserHiddenByStatusType, type SCUserConnectionRequestType, type SCUserEmailTokenType, type SCUserProviderAssociationType, SCMetadataTypeFieldType, type SCMetadataType, type SCTagType, type SCCategoryType, SCCategoryAutoFollowType, type SCCategoryAudienceType, type SCCategoryFollowedStatusType, SCCustomAdvPosition, type SCCustomAdvType, type SCCustomMenuItemType, type SCCustomMenuType, type SCEmbedType, type SCMediaType, type SCChunkMediaType, type SCContributionLocation, type SCLocalityType, type SCPollChoiceType, type SCPollType, type SCPollVoteType, type SCFeedUnitType, type SCFeedUnitActivityType, type SCFeedObjectType, type SCFeedPostType, type SCFeedDiscussionType, type SCFeedStatusType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, type SCFeedUnseenCountType, type SCFeedObjectSuspendedStatusType, type SCFeedObjectHideStatusType, type SCFeedObjectFollowingStatusType, type SCCountByCategoryType, SCCommentsOrderBy, type SCCommentType, type SCPrivateMessageThreadType, type SCPrivateMessageSnippetType, SCPrivateMessageStatusType, type SCPrivateMessageFileType, SCMessageFileType, type SCPrivateMessageUploadMediaType, type SCPrivateMessageUploadThumbnailType, type SCPrivateMessageUploadMediaChunkType, SCPrivateMessageType, type SCPromoType, SCNotificationTypologyType, type SCNotificationAggregatedType, type SCNotificationCommentType, type SCNotificationConnectionAcceptType, type SCNotificationConnectionRequestType, type SCNotificationPrivateMessageType, type SCNotificationMentionType, type SCNotificationType, type SCNotificationBlockedUserType, type SCNotificationCollapsedForType, type SCNotificationCustomNotificationType, type SCNotificationDeletedForType, type SCNotificationFollowType, type SCNotificationKindlyNoticeType, type SCNotificationUnBlockedUserType, type SCNotificationUnDeletedForType, type SCNotificationUserFollowType, type SCNotificationVoteUpType, type SCCustomNotificationType, SCNotificationTopicType, type SCNotificationUnseenCountType, type SCIncubatorType, type SCIncubatorSubscriptionType, SCIncubatorStatusType, type SCInviteType, type SCNotificationIncubatorType, type SCNotificationContributionType, type SCNotificationGroupActivityType, type SCNotificationEventActivityType, type SCNotificationCourseActivityType, type SCNotificationLiveStreamActivityType, type SCPrizeType, type SCPrizeUserType, SCPrizeUserStatusType, type SCUserLoyaltyPointsType, type SCWebhookEndpointType, type SCWebhookEndpointAttemptType, type SCWebhookEndpointSecretType, type SCWebhookEventsType, type SCVoteType, type SCFlagType, SCFlagTypeEnum, SCFlagModerationStatusType, SCCustomPageTypeEnum, type SCCustomPageType, type SCDataPortabilityType, SCPreferenceSection, SCPreferenceName, type SCPreferenceType, SCFeatureName, type SCFeatureType, type SSOSignInType, type SSOSignUpType, type SCLegalPageType, SCLegalPagePoliciesType, type SCLegalPageAckType, type SCContributionInsightCountersType, type SCContributionInsightType, type SCEmbedInsightType, type SCEmbedInsightCountersType, type SCUsersInsightType, type SCUsersInsightCountersType, type SCFlaggedContributionType, SCContributionType, type SCContributionStatus, SCContributeStatusType, type SCPlatformType, type SCAvatarType, type SCReactionType, type SCSuggestionType, SuggestionType, SCConnectionStatus, type SCDeviceType, type SCApnsDeviceType, type SCGcmDeviceType, SCDeviceApnsTypeEnum, type SCDeviceGcmTypeEnum, SCDeviceTypeEnum, type SCGroupType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, type SCEventType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventDateFilterType, SCEventLocationFilterType, type SCStepType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, type SCCourseType, type SCCourseCommentType, type SCCourseSectionType, type SCCourseLessonType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseLessonStatusType, SCCourseTypologyType, SCCourseLessonCompletionStatusType, SCCourseOrderingUsersType, type SCLiveStreamType, type SCLiveStreamConnectionDetailsType, type SCLiveStreamSettingsType, type SCLiveStreamConnectionDetailsResponseErrorType, type SCLiveStreamMonthlyDurationType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment };
54
+ export { type SCBannerType, SCBroadcastMessageBannerType, type SCBroadcastMessageType, type SCAuthTokenType, SCLanguageType, type SCUserType, type SCUserSettingsType, SCUserStatus, type SCUserBlockedSettingsType, type SCUserModerationType, type SCUserScoreVariation, type SCUserScoreType, SCUserReputationType, type SCUserAutocompleteType, type SCUserCounterType, type SCUserChangeEmailType, type SCUserAvatarType, type SCUserPermissionType, type SCUserFollowedStatusType, type SCUserFollowerStatusType, type SCUserConnectionStatusType, type SCUserHiddenStatusType, type SCUserHiddenByStatusType, type SCUserConnectionRequestType, type SCUserEmailTokenType, type SCUserProviderAssociationType, SCMetadataTypeFieldType, type SCMetadataType, type SCTagType, type SCCategoryType, SCCategoryAutoFollowType, type SCCategoryAudienceType, type SCCategoryFollowedStatusType, SCCustomAdvPosition, type SCCustomAdvType, SCCustomMenu, type SCCustomMenuItemType, type SCCustomMenuType, type SCEmbedType, type SCMediaType, type SCChunkMediaType, SCMimeTypes, type SCContributionLocation, type SCLocalityType, type SCPollChoiceType, type SCPollType, type SCPollVoteType, type SCFeedUnitType, type SCFeedUnitActivityType, type SCFeedObjectType, type SCFeedPostType, type SCFeedDiscussionType, type SCFeedStatusType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, type SCFeedUnseenCountType, type SCFeedObjectSuspendedStatusType, type SCFeedObjectHideStatusType, type SCFeedObjectFollowingStatusType, type SCCountByCategoryType, SCCommentsOrderBy, type SCCommentType, type SCPrivateMessageThreadType, type SCPrivateMessageSnippetType, SCPrivateMessageStatusType, type SCPrivateMessageFileType, SCMessageFileType, type SCPrivateMessageUploadMediaType, type SCPrivateMessageUploadThumbnailType, type SCPrivateMessageUploadMediaChunkType, SCPrivateMessageType, type SCPromoType, SCNotificationTypologyType, type SCNotificationAggregatedType, type SCNotificationCommentType, type SCNotificationConnectionAcceptType, type SCNotificationConnectionRequestType, type SCNotificationPrivateMessageType, type SCNotificationMentionType, type SCNotificationType, type SCNotificationBlockedUserType, type SCNotificationCollapsedForType, type SCNotificationCustomNotificationType, type SCNotificationDeletedForType, type SCNotificationFollowType, type SCNotificationKindlyNoticeType, type SCNotificationUnBlockedUserType, type SCNotificationUnDeletedForType, type SCNotificationUserFollowType, type SCNotificationVoteUpType, type SCCustomNotificationType, SCNotificationTopicType, type SCNotificationUnseenCountType, type SCIncubatorType, type SCIncubatorSubscriptionType, SCIncubatorStatusType, type SCInviteType, type SCNotificationIncubatorType, type SCNotificationContributionType, type SCNotificationGroupActivityType, type SCNotificationEventActivityType, type SCNotificationCourseActivityType, type SCNotificationLiveStreamActivityType, type SCPrizeType, type SCPrizeUserType, SCPrizeUserStatusType, type SCUserLoyaltyPointsType, type SCWebhookEndpointType, type SCWebhookEndpointAttemptType, type SCWebhookEndpointSecretType, type SCWebhookEventsType, type SCVoteType, type SCFlagType, SCFlagTypeEnum, SCFlagModerationStatusType, SCCustomPageTypeEnum, type SCCustomPageType, type SCDataPortabilityType, SCPreferenceSection, SCPreferenceName, type SCPreferenceType, SCFeatureName, type SCFeatureType, type SSOSignInType, type SSOSignUpType, type SCLegalPageType, SCLegalPagePoliciesType, type SCLegalPageAckType, type SCContributionInsightCountersType, type SCContributionInsightType, type SCEmbedInsightType, type SCEmbedInsightCountersType, type SCUsersInsightType, type SCUsersInsightCountersType, type SCFlaggedContributionType, SCContributionType, type SCContributionStatus, SCContributeStatusType, type SCPlatformType, type SCAvatarType, type SCReactionType, type SCSuggestionType, SuggestionType, SCConnectionStatus, type SCDeviceType, type SCApnsDeviceType, type SCGcmDeviceType, SCDeviceApnsTypeEnum, type SCDeviceGcmTypeEnum, SCDeviceTypeEnum, type SCGroupType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, type SCEventType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventDateFilterType, SCEventLocationFilterType, type SCStepType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, type SCCourseType, type SCCourseCommentType, type SCCourseSectionType, type SCCourseLessonType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseLessonStatusType, SCCourseTypologyType, SCCourseLessonCompletionStatusType, SCCourseOrderingUsersType, type SCLiveStreamType, type SCLiveStreamConnectionDetailsType, type SCLiveStreamSettingsType, type SCLiveStreamConnectionDetailsResponseErrorType, type SCLiveStreamMonthlyDurationType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment, type SCPaywall, type SCPaymentProduct, type SCPaymentPrice, SCPaymentPriceCurrencyType, SCContentType, type SCCheckoutSession, type SCPurchasableContent, SCCheckoutSessionStatus, type SCCheckoutSessionDetail, type SCCheckoutSessionComplete, type SCPaymentOrder, type SCPaymentsCustomerPortalSession, SCPaymentProductTemplateType, SCCheckoutSessionUIMode, SCPaymentRecurringInterval, type SCCommunityType, type SCCustomerBillingInfo, type SCCountryType, type SCContactUsRequestType };
@@ -1,8 +1,10 @@
1
1
  import { SCBroadcastMessageBannerType } from './broadcastMessage';
2
2
  import { SCCustomAdvPosition } from './customAdv';
3
+ import { SCCustomMenu } from './customMenu';
3
4
  import { SCLanguageType } from './locale';
4
5
  import { SCUserReputationType, SCUserStatus } from './user';
5
6
  import { SCCategoryAutoFollowType } from './category';
7
+ import { SCMimeTypes } from './media';
6
8
  import { SCMetadataTypeFieldType } from './metadata';
7
9
  import { SCCommentsOrderBy } from './comment';
8
10
  import { SCMessageFileType, SCPrivateMessageStatusType, SCPrivateMessageType } from './privateMessage';
@@ -26,7 +28,8 @@ import { SCLiveStreamViewType, SCLiveStreamConnectionDetailsErrorType } from './
26
28
  import { SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType } from './onboarding';
27
29
  import { SCCommunitySubscriptionTier } from './tier';
28
30
  import { SCCommunityEnvironment } from './environment';
31
+ import { SCPaymentPriceCurrencyType, SCContentType, SCCheckoutSessionStatus, SCPaymentProductTemplateType, SCCheckoutSessionUIMode, SCPaymentRecurringInterval } from './payment';
29
32
  /**
30
33
  * Exports all types
31
34
  */
32
- export { SCBroadcastMessageBannerType, SCLanguageType, SCUserStatus, SCUserReputationType, SCMetadataTypeFieldType, SCCategoryAutoFollowType, SCCustomAdvPosition, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentsOrderBy, SCPrivateMessageStatusType, SCMessageFileType, SCPrivateMessageType, SCNotificationTypologyType, SCNotificationTopicType, SCIncubatorStatusType, SCPrizeUserStatusType, SCFlagTypeEnum, SCFlagModerationStatusType, SCCustomPageTypeEnum, SCPreferenceSection, SCPreferenceName, SCFeatureName, SCLegalPagePoliciesType, SCContributionType, SCContributeStatusType, SuggestionType, SCConnectionStatus, SCDeviceApnsTypeEnum, SCDeviceTypeEnum, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventDateFilterType, SCEventLocationFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseLessonStatusType, SCCourseTypologyType, SCCourseLessonCompletionStatusType, SCCourseOrderingUsersType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment };
35
+ export { SCBroadcastMessageBannerType, SCLanguageType, SCUserStatus, SCUserReputationType, SCMetadataTypeFieldType, SCCategoryAutoFollowType, SCCustomAdvPosition, SCCustomMenu, SCMimeTypes, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentsOrderBy, SCPrivateMessageStatusType, SCMessageFileType, SCPrivateMessageType, SCNotificationTypologyType, SCNotificationTopicType, SCIncubatorStatusType, SCPrizeUserStatusType, SCFlagTypeEnum, SCFlagModerationStatusType, SCCustomPageTypeEnum, SCPreferenceSection, SCPreferenceName, SCFeatureName, SCLegalPagePoliciesType, SCContributionType, SCContributeStatusType, SuggestionType, SCConnectionStatus, SCDeviceApnsTypeEnum, SCDeviceTypeEnum, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventDateFilterType, SCEventLocationFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseLessonStatusType, SCCourseTypologyType, SCCourseLessonCompletionStatusType, SCCourseOrderingUsersType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment, SCPaymentPriceCurrencyType, SCContentType, SCCheckoutSessionStatus, SCPaymentProductTemplateType, SCCheckoutSessionUIMode, SCPaymentRecurringInterval };
@@ -1,4 +1,46 @@
1
1
  import { SCEmbedType } from './embed';
2
+ /**
3
+ * SCMimeTypes
4
+ */
5
+ export declare enum SCMimeTypes {
6
+ JPEG = "image/jpeg",
7
+ PNG = "image/png",
8
+ GIF = "image/gif",
9
+ WEBP = "image/webp",
10
+ PLAIN_TEXT = "text/plain",
11
+ CSV = "text/csv",
12
+ PDF = "application/pdf",
13
+ DOC = "application/msword",
14
+ DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
15
+ DOTX = "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
16
+ DOCM = "application/vnd.ms-word.document.macroEnabled.12",
17
+ DOTM = "application/vnd.ms-word.template.macroEnabled.12",
18
+ XLS = "application/vnd.ms-excel",
19
+ XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
20
+ XLTX = "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
21
+ XLSM = "application/vnd.ms-excel.sheet.macroEnabled.12",
22
+ XLTM = "application/vnd.ms-excel.template.macroEnabled.12",
23
+ XLAM = "application/vnd.ms-excel.addin.macroEnabled.12",
24
+ XLSB = "application/vnd.ms-excel.sheet.binary.macroEnabled.12",
25
+ PPT = "application/vnd.ms-powerpoint",
26
+ PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
27
+ POTX = "application/vnd.openxmlformats-officedocument.presentationml.template",
28
+ PPSX = "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
29
+ PPAM = "application/vnd.ms-powerpoint.addin.macroEnabled.12",
30
+ PPTM = "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
31
+ POTM = "application/vnd.ms-powerpoint.template.macroEnabled.12",
32
+ PPSM = "application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
33
+ ODT = "application/vnd.oasis.opendocument.text",
34
+ ODS = "application/vnd.oasis.opendocument.spreadsheet",
35
+ ODP = "application/vnd.oasis.opendocument.presentation",
36
+ ODG = "application/vnd.oasis.opendocument.graphics",
37
+ ODB = "application/vnd.oasis.opendocument.database",
38
+ ODF = "application/vnd.oasis.opendocument.formula",
39
+ OTT = "application/vnd.oasis.opendocument.text-template",
40
+ OTS = "application/vnd.oasis.opendocument.spreadsheet-template",
41
+ OTP = "application/vnd.oasis.opendocument.presentation-template",
42
+ OTG = "application/vnd.oasis.opendocument.graphics-template"
43
+ }
2
44
  /**
3
45
  * Interface SCMediaType.
4
46
  * Media Schema.
@@ -40,14 +82,18 @@ export interface SCMediaType {
40
82
  * Media image height
41
83
  */
42
84
  image_height?: number;
85
+ /**
86
+ * Mimetype image
87
+ */
88
+ image_mimetype?: SCMimeTypes;
43
89
  /**
44
90
  * Media image thumbnail
45
91
  */
46
92
  image_thumbnail?: {
47
- color?: string | null;
93
+ url: string;
48
94
  width: number;
49
95
  height: number;
50
- url: string;
96
+ color?: string | null;
51
97
  };
52
98
  /**
53
99
  * Order in the list of medias
@@ -57,6 +103,14 @@ export interface SCMediaType {
57
103
  * Embed associated
58
104
  */
59
105
  embed?: SCEmbedType;
106
+ /**
107
+ * File size
108
+ */
109
+ size?: number | null;
110
+ /**
111
+ * Mimetype
112
+ */
113
+ mimetype?: SCMimeTypes;
60
114
  }
61
115
  /**
62
116
  * SCChunkMediaType interface
@@ -1 +1,50 @@
1
- export {};
1
+ /**
2
+ * SCMimeTypes
3
+ */
4
+ export var SCMimeTypes;
5
+ (function (SCMimeTypes) {
6
+ // Images
7
+ SCMimeTypes["JPEG"] = "image/jpeg";
8
+ SCMimeTypes["PNG"] = "image/png";
9
+ SCMimeTypes["GIF"] = "image/gif";
10
+ SCMimeTypes["WEBP"] = "image/webp";
11
+ // TEXTS
12
+ SCMimeTypes["PLAIN_TEXT"] = "text/plain";
13
+ SCMimeTypes["CSV"] = "text/csv";
14
+ // PDF
15
+ SCMimeTypes["PDF"] = "application/pdf";
16
+ // Microsoft Word
17
+ SCMimeTypes["DOC"] = "application/msword";
18
+ SCMimeTypes["DOCX"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
19
+ SCMimeTypes["DOTX"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.template";
20
+ SCMimeTypes["DOCM"] = "application/vnd.ms-word.document.macroEnabled.12";
21
+ SCMimeTypes["DOTM"] = "application/vnd.ms-word.template.macroEnabled.12";
22
+ // Microsoft Excel
23
+ SCMimeTypes["XLS"] = "application/vnd.ms-excel";
24
+ SCMimeTypes["XLSX"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
25
+ SCMimeTypes["XLTX"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.template";
26
+ SCMimeTypes["XLSM"] = "application/vnd.ms-excel.sheet.macroEnabled.12";
27
+ SCMimeTypes["XLTM"] = "application/vnd.ms-excel.template.macroEnabled.12";
28
+ SCMimeTypes["XLAM"] = "application/vnd.ms-excel.addin.macroEnabled.12";
29
+ SCMimeTypes["XLSB"] = "application/vnd.ms-excel.sheet.binary.macroEnabled.12";
30
+ // Microsoft PowerPoint
31
+ SCMimeTypes["PPT"] = "application/vnd.ms-powerpoint";
32
+ SCMimeTypes["PPTX"] = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
33
+ SCMimeTypes["POTX"] = "application/vnd.openxmlformats-officedocument.presentationml.template";
34
+ SCMimeTypes["PPSX"] = "application/vnd.openxmlformats-officedocument.presentationml.slideshow";
35
+ SCMimeTypes["PPAM"] = "application/vnd.ms-powerpoint.addin.macroEnabled.12";
36
+ SCMimeTypes["PPTM"] = "application/vnd.ms-powerpoint.presentation.macroEnabled.12";
37
+ SCMimeTypes["POTM"] = "application/vnd.ms-powerpoint.template.macroEnabled.12";
38
+ SCMimeTypes["PPSM"] = "application/vnd.ms-powerpoint.slideshow.macroEnabled.12";
39
+ // OpenDocument
40
+ SCMimeTypes["ODT"] = "application/vnd.oasis.opendocument.text";
41
+ SCMimeTypes["ODS"] = "application/vnd.oasis.opendocument.spreadsheet";
42
+ SCMimeTypes["ODP"] = "application/vnd.oasis.opendocument.presentation";
43
+ SCMimeTypes["ODG"] = "application/vnd.oasis.opendocument.graphics";
44
+ SCMimeTypes["ODB"] = "application/vnd.oasis.opendocument.database";
45
+ SCMimeTypes["ODF"] = "application/vnd.oasis.opendocument.formula";
46
+ SCMimeTypes["OTT"] = "application/vnd.oasis.opendocument.text-template";
47
+ SCMimeTypes["OTS"] = "application/vnd.oasis.opendocument.spreadsheet-template";
48
+ SCMimeTypes["OTP"] = "application/vnd.oasis.opendocument.presentation-template";
49
+ SCMimeTypes["OTG"] = "application/vnd.oasis.opendocument.graphics-template";
50
+ })(SCMimeTypes || (SCMimeTypes = {}));