@selfcommunity/types 0.7.7-alpha.3 → 0.7.7-payments.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/cjs/index.d.ts +4 -4
  2. package/lib/cjs/index.js +11 -1
  3. package/lib/cjs/types/category.d.ts +2 -1
  4. package/lib/cjs/types/course.d.ts +374 -0
  5. package/lib/cjs/types/course.js +58 -0
  6. package/lib/cjs/types/device.d.ts +1 -1
  7. package/lib/cjs/types/event.d.ts +2 -1
  8. package/lib/cjs/types/feature.d.ts +3 -1
  9. package/lib/cjs/types/feature.js +2 -0
  10. package/lib/cjs/types/feed.d.ts +1 -1
  11. package/lib/cjs/types/group.d.ts +2 -1
  12. package/lib/cjs/types/index.d.ts +3 -1
  13. package/lib/cjs/types/index.js +13 -1
  14. package/lib/cjs/types/notification.d.ts +5 -1
  15. package/lib/cjs/types/notification.js +4 -0
  16. package/lib/cjs/types/payment.d.ts +100 -0
  17. package/lib/cjs/types/payment.js +25 -0
  18. package/lib/cjs/types/preference.d.ts +8 -1
  19. package/lib/cjs/types/preference.js +7 -0
  20. package/lib/esm/index.d.ts +4 -4
  21. package/lib/esm/index.js +2 -2
  22. package/lib/esm/types/category.d.ts +2 -1
  23. package/lib/esm/types/course.d.ts +374 -0
  24. package/lib/esm/types/course.js +55 -0
  25. package/lib/esm/types/device.d.ts +1 -1
  26. package/lib/esm/types/event.d.ts +2 -1
  27. package/lib/esm/types/feature.d.ts +3 -1
  28. package/lib/esm/types/feature.js +2 -0
  29. package/lib/esm/types/feed.d.ts +1 -1
  30. package/lib/esm/types/group.d.ts +2 -1
  31. package/lib/esm/types/index.d.ts +3 -1
  32. package/lib/esm/types/index.js +3 -1
  33. package/lib/esm/types/notification.d.ts +5 -1
  34. package/lib/esm/types/notification.js +4 -0
  35. package/lib/esm/types/payment.d.ts +100 -0
  36. package/lib/esm/types/payment.js +22 -0
  37. package/lib/esm/types/preference.d.ts +8 -1
  38. package/lib/esm/types/preference.js +7 -0
  39. package/lib/umd/types.js +1 -1
  40. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SCCommunityEnvironment = exports.SCCommunitySubscriptionTier = exports.SCOnBoardingStepIdType = exports.SCLiveStreamViewType = exports.SCLiveStreamConnectionDetailsErrorType = exports.SCOnBoardingStepStatusType = exports.SCOnBoardingStepType = exports.SCEventLocationFilterType = exports.SCEventDateFilterType = exports.SCEventLocationType = exports.SCEventRecurrenceType = exports.SCEventSubscriptionStatusType = exports.SCEventPrivacyType = exports.SCGroupSubscriptionStatusType = exports.SCGroupPrivacyType = exports.SCDeviceTypeEnum = exports.SCDeviceApnsTypeEnum = exports.SCConnectionStatus = exports.SuggestionType = exports.SCContributeStatusType = exports.SCContributionType = exports.SCLegalPagePoliciesType = exports.SCFeatureName = exports.SCPreferenceName = exports.SCPreferenceSection = exports.SCCustomPageTypeEnum = exports.SCFlagModerationStatusType = exports.SCFlagTypeEnum = exports.SCPrizeUserStatusType = exports.SCIncubatorStatusType = exports.SCNotificationTopicType = exports.SCNotificationTypologyType = exports.SCPrivateMessageType = exports.SCMessageFileType = exports.SCPrivateMessageStatusType = exports.SCCommentsOrderBy = exports.SCFeedTypologyType = exports.SCFeedUnitActivityTypologyType = exports.SCCustomAdvPosition = exports.SCCategoryAutoFollowType = exports.SCMetadataTypeFieldType = exports.SCUserReputationType = exports.SCUserStatus = exports.SCLanguageType = exports.SCBroadcastMessageBannerType = void 0;
3
+ exports.SCCommunitySubscriptionTier = exports.SCLiveStreamViewType = exports.SCLiveStreamConnectionDetailsErrorType = exports.SCCourseLessonCompletionStatusType = exports.SCCourseTypologyType = exports.SCCourseLessonStatusType = exports.SCCourseLessonTypologyType = exports.SCCourseJoinStatusType = exports.SCCoursePrivacyType = exports.SCOnBoardingStepIdType = exports.SCOnBoardingStepStatusType = exports.SCOnBoardingStepType = exports.SCEventLocationFilterType = exports.SCEventDateFilterType = exports.SCEventLocationType = exports.SCEventRecurrenceType = exports.SCEventSubscriptionStatusType = exports.SCEventPrivacyType = exports.SCGroupSubscriptionStatusType = exports.SCGroupPrivacyType = exports.SCDeviceTypeEnum = exports.SCDeviceApnsTypeEnum = exports.SCConnectionStatus = exports.SuggestionType = exports.SCContributeStatusType = exports.SCContributionType = exports.SCLegalPagePoliciesType = exports.SCFeatureName = exports.SCPreferenceName = exports.SCPreferenceSection = exports.SCCustomPageTypeEnum = exports.SCFlagModerationStatusType = exports.SCFlagTypeEnum = exports.SCPrizeUserStatusType = exports.SCIncubatorStatusType = exports.SCNotificationTopicType = exports.SCNotificationTypologyType = exports.SCPrivateMessageType = exports.SCMessageFileType = exports.SCPrivateMessageStatusType = exports.SCCommentsOrderBy = exports.SCFeedTypologyType = exports.SCFeedUnitActivityTypologyType = exports.SCCustomAdvPosition = exports.SCCategoryAutoFollowType = exports.SCMetadataTypeFieldType = exports.SCUserReputationType = exports.SCUserStatus = exports.SCLanguageType = exports.SCBroadcastMessageBannerType = void 0;
4
+ exports.SCCheckoutSessionStatus = exports.SCContentType = exports.SCPaymentPriceCurrencyType = exports.SCCommunityEnvironment = void 0;
4
5
  const broadcastMessage_1 = require("./broadcastMessage");
5
6
  Object.defineProperty(exports, "SCBroadcastMessageBannerType", { enumerable: true, get: function () { return broadcastMessage_1.SCBroadcastMessageBannerType; } });
6
7
  const customAdv_1 = require("./customAdv");
@@ -62,6 +63,13 @@ Object.defineProperty(exports, "SCEventLocationType", { enumerable: true, get: f
62
63
  Object.defineProperty(exports, "SCEventDateFilterType", { enumerable: true, get: function () { return event_1.SCEventDateFilterType; } });
63
64
  Object.defineProperty(exports, "SCEventLocationFilterType", { enumerable: true, get: function () { return event_1.SCEventLocationFilterType; } });
64
65
  Object.defineProperty(exports, "SCEventSubscriptionStatusType", { enumerable: true, get: function () { return event_1.SCEventSubscriptionStatusType; } });
66
+ const course_1 = require("./course");
67
+ Object.defineProperty(exports, "SCCoursePrivacyType", { enumerable: true, get: function () { return course_1.SCCoursePrivacyType; } });
68
+ Object.defineProperty(exports, "SCCourseJoinStatusType", { enumerable: true, get: function () { return course_1.SCCourseJoinStatusType; } });
69
+ Object.defineProperty(exports, "SCCourseLessonTypologyType", { enumerable: true, get: function () { return course_1.SCCourseLessonTypologyType; } });
70
+ Object.defineProperty(exports, "SCCourseLessonStatusType", { enumerable: true, get: function () { return course_1.SCCourseLessonStatusType; } });
71
+ Object.defineProperty(exports, "SCCourseTypologyType", { enumerable: true, get: function () { return course_1.SCCourseTypologyType; } });
72
+ Object.defineProperty(exports, "SCCourseLessonCompletionStatusType", { enumerable: true, get: function () { return course_1.SCCourseLessonCompletionStatusType; } });
65
73
  const liveStream_1 = require("./liveStream");
66
74
  Object.defineProperty(exports, "SCLiveStreamViewType", { enumerable: true, get: function () { return liveStream_1.SCLiveStreamViewType; } });
67
75
  Object.defineProperty(exports, "SCLiveStreamConnectionDetailsErrorType", { enumerable: true, get: function () { return liveStream_1.SCLiveStreamConnectionDetailsErrorType; } });
@@ -73,3 +81,7 @@ const tier_1 = require("./tier");
73
81
  Object.defineProperty(exports, "SCCommunitySubscriptionTier", { enumerable: true, get: function () { return tier_1.SCCommunitySubscriptionTier; } });
74
82
  const environment_1 = require("./environment");
75
83
  Object.defineProperty(exports, "SCCommunityEnvironment", { enumerable: true, get: function () { return environment_1.SCCommunityEnvironment; } });
84
+ const payment_1 = require("./payment");
85
+ Object.defineProperty(exports, "SCPaymentPriceCurrencyType", { enumerable: true, get: function () { return payment_1.SCPaymentPriceCurrencyType; } });
86
+ Object.defineProperty(exports, "SCContentType", { enumerable: true, get: function () { return payment_1.SCContentType; } });
87
+ Object.defineProperty(exports, "SCCheckoutSessionStatus", { enumerable: true, get: function () { return payment_1.SCCheckoutSessionStatus; } });
@@ -53,7 +53,11 @@ export declare enum SCNotificationTypologyType {
53
53
  USER_REQUESTED_TO_JOIN_EVENT = "user_requested_to_join_event",
54
54
  USER_ACCEPTED_TO_JOIN_EVENT = "user_accepted_to_join_event",
55
55
  USER_ADDED_TO_EVENT = "user_added_to_event",
56
- LIVE_STREAM_STARTED = "live_stream_started"
56
+ LIVE_STREAM_STARTED = "live_stream_started",
57
+ USER_INVITED_TO_JOIN_COURSE = "user_invited_to_join_course",
58
+ USER_REQUESTED_TO_JOIN_COURSE = "user_requested_to_join_course",
59
+ USER_ACCEPTED_TO_JOIN_COURSE = "user_accepted_to_join_course",
60
+ USER_ADDED_TO_COURSE = "user_added_to_course"
57
61
  }
58
62
  /**
59
63
  * Define topic for notifications
@@ -53,6 +53,10 @@ var SCNotificationTypologyType;
53
53
  SCNotificationTypologyType["USER_ACCEPTED_TO_JOIN_EVENT"] = "user_accepted_to_join_event";
54
54
  SCNotificationTypologyType["USER_ADDED_TO_EVENT"] = "user_added_to_event";
55
55
  SCNotificationTypologyType["LIVE_STREAM_STARTED"] = "live_stream_started";
56
+ SCNotificationTypologyType["USER_INVITED_TO_JOIN_COURSE"] = "user_invited_to_join_course";
57
+ SCNotificationTypologyType["USER_REQUESTED_TO_JOIN_COURSE"] = "user_requested_to_join_course";
58
+ SCNotificationTypologyType["USER_ACCEPTED_TO_JOIN_COURSE"] = "user_accepted_to_join_course";
59
+ SCNotificationTypologyType["USER_ADDED_TO_COURSE"] = "user_added_to_course";
56
60
  })(SCNotificationTypologyType = exports.SCNotificationTypologyType || (exports.SCNotificationTypologyType = {}));
57
61
  /**
58
62
  * Define topic for notifications
@@ -0,0 +1,100 @@
1
+ export interface SCPaymentProduct {
2
+ /**
3
+ * Id product
4
+ */
5
+ id: number;
6
+ /**
7
+ * Product name
8
+ */
9
+ name: string;
10
+ /**
11
+ * Description name
12
+ */
13
+ description?: string;
14
+ /**
15
+ * Active or not
16
+ */
17
+ active?: boolean;
18
+ /**
19
+ * Stripe product id
20
+ */
21
+ stripe_product_id: string;
22
+ /**
23
+ * Stripe default price id
24
+ */
25
+ stripe_default_price_id?: string;
26
+ /**
27
+ * Stripe prices
28
+ */
29
+ payment_prices: SCPaymentPrice[];
30
+ }
31
+ export interface SCPaymentPrice {
32
+ /**
33
+ * Id product
34
+ */
35
+ id: number;
36
+ /**
37
+ * Description name
38
+ */
39
+ description?: string;
40
+ /**
41
+ * Active or not
42
+ */
43
+ active?: boolean;
44
+ /**
45
+ * Stripe price id
46
+ */
47
+ stripe_price_id: string;
48
+ /**
49
+ * Price
50
+ */
51
+ unit_amount?: number;
52
+ /**
53
+ * Currency
54
+ */
55
+ currency?: SCPaymentPriceCurrencyType;
56
+ /**
57
+ * Recurring interval
58
+ */
59
+ recurring_interval?: string;
60
+ }
61
+ /**
62
+ * SCCurrencyPriceType enum
63
+ */
64
+ export declare enum SCPaymentPriceCurrencyType {
65
+ EUR = "EUR"
66
+ }
67
+ /**
68
+ * Paywalls Content types
69
+ */
70
+ export declare enum SCContentType {
71
+ EVENT = "event",
72
+ COURSE = "course",
73
+ CATEGORY = "category",
74
+ GROUP = "group"
75
+ }
76
+ export interface SCPurchasableContent {
77
+ id?: number;
78
+ paywalls?: SCPaymentProduct[];
79
+ }
80
+ export interface SCCheckoutSessionDetail {
81
+ status?: string;
82
+ metadata?: {
83
+ content_id: string;
84
+ content_type: SCContentType;
85
+ };
86
+ }
87
+ export interface SCCheckoutSession {
88
+ /**
89
+ * Session id
90
+ */
91
+ id?: string;
92
+ /**
93
+ * Client secret
94
+ */
95
+ client_secret: string;
96
+ }
97
+ export declare enum SCCheckoutSessionStatus {
98
+ COMPLETE = "complete",
99
+ OPEN = "open"
100
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SCCheckoutSessionStatus = exports.SCContentType = exports.SCPaymentPriceCurrencyType = void 0;
4
+ /**
5
+ * SCCurrencyPriceType enum
6
+ */
7
+ var SCPaymentPriceCurrencyType;
8
+ (function (SCPaymentPriceCurrencyType) {
9
+ SCPaymentPriceCurrencyType["EUR"] = "EUR";
10
+ })(SCPaymentPriceCurrencyType = exports.SCPaymentPriceCurrencyType || (exports.SCPaymentPriceCurrencyType = {}));
11
+ /**
12
+ * Paywalls Content types
13
+ */
14
+ var SCContentType;
15
+ (function (SCContentType) {
16
+ SCContentType["EVENT"] = "event";
17
+ SCContentType["COURSE"] = "course";
18
+ SCContentType["CATEGORY"] = "category";
19
+ SCContentType["GROUP"] = "group";
20
+ })(SCContentType = exports.SCContentType || (exports.SCContentType = {}));
21
+ var SCCheckoutSessionStatus;
22
+ (function (SCCheckoutSessionStatus) {
23
+ SCCheckoutSessionStatus["COMPLETE"] = "complete";
24
+ SCCheckoutSessionStatus["OPEN"] = "open";
25
+ })(SCCheckoutSessionStatus = exports.SCCheckoutSessionStatus || (exports.SCCheckoutSessionStatus = {}));
@@ -138,14 +138,21 @@ export declare enum SCPreferenceName {
138
138
  EVENTS_VISIBILITY_ENABLED = "events_visibility_enabled",
139
139
  EVENTS_PRIVATE_ENABLED = "events_private_enabled",
140
140
  EVENTS_ONLY_STAFF_ENABLED = "events_only_staff_enabled",
141
+ COURSES_ENABLED = "courses_enabled",
142
+ COURSES_VISIBILITY_ENABLED = "courses_visibility_enabled",
143
+ COURSES_PRIVATE_ENABLED = "courses_private_enabled",
144
+ COURSES_ONLY_STAFF_ENABLED = "courses_only_staff_enabled",
141
145
  LIVE_STREAM_ENABLED = "live_stream_enabled",
142
146
  LIVE_STREAM_ONLY_STAFF_ENABLED = "live_stream_only_staff_enabled",
143
147
  LIVE_STREAM_VIDEO_CONFERENCE_ENABLED = "live_stream_video_conference_enabled",
144
148
  ONBOARDING_ENABLED = "onboarding_enabled",
145
149
  ONBOARDING_HIDDEN = "onboarding_hidden",
146
150
  SUBSCRIPTION_TIER = "subscription_tier",
151
+ PAYMENTS_ENABLED = "payments_enabled",
152
+ STRIPE_CONNECTED_ACCOUNT_ID = "stripe_connected_account_id",
147
153
  ENVIRONMENT = "env",
148
- STACK_ID = "stackid"
154
+ STACK_ID = "stackid",
155
+ STRIPE_PUBLIC_KEY = "stripe_public_key"
149
156
  }
150
157
  /**
151
158
  * SCPreferenceType interface
@@ -143,12 +143,19 @@ var SCPreferenceName;
143
143
  SCPreferenceName["EVENTS_VISIBILITY_ENABLED"] = "events_visibility_enabled";
144
144
  SCPreferenceName["EVENTS_PRIVATE_ENABLED"] = "events_private_enabled";
145
145
  SCPreferenceName["EVENTS_ONLY_STAFF_ENABLED"] = "events_only_staff_enabled";
146
+ SCPreferenceName["COURSES_ENABLED"] = "courses_enabled";
147
+ SCPreferenceName["COURSES_VISIBILITY_ENABLED"] = "courses_visibility_enabled";
148
+ SCPreferenceName["COURSES_PRIVATE_ENABLED"] = "courses_private_enabled";
149
+ SCPreferenceName["COURSES_ONLY_STAFF_ENABLED"] = "courses_only_staff_enabled";
146
150
  SCPreferenceName["LIVE_STREAM_ENABLED"] = "live_stream_enabled";
147
151
  SCPreferenceName["LIVE_STREAM_ONLY_STAFF_ENABLED"] = "live_stream_only_staff_enabled";
148
152
  SCPreferenceName["LIVE_STREAM_VIDEO_CONFERENCE_ENABLED"] = "live_stream_video_conference_enabled";
149
153
  SCPreferenceName["ONBOARDING_ENABLED"] = "onboarding_enabled";
150
154
  SCPreferenceName["ONBOARDING_HIDDEN"] = "onboarding_hidden";
151
155
  SCPreferenceName["SUBSCRIPTION_TIER"] = "subscription_tier";
156
+ SCPreferenceName["PAYMENTS_ENABLED"] = "payments_enabled";
157
+ SCPreferenceName["STRIPE_CONNECTED_ACCOUNT_ID"] = "stripe_connected_account_id";
152
158
  SCPreferenceName["ENVIRONMENT"] = "env";
153
159
  SCPreferenceName["STACK_ID"] = "stackid";
160
+ SCPreferenceName["STRIPE_PUBLIC_KEY"] = "stripe_public_key";
154
161
  })(SCPreferenceName = exports.SCPreferenceName || (exports.SCPreferenceName = {}));
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Types
3
3
  */
4
- import { type SCBannerType, type SCBroadcastMessageType, type SCAuthTokenType, type SCCustomAdvType, type SCCustomMenuItemType, type SCCustomMenuType, type SCUserType, type SCUserSettingsType, type SCUserBlockedSettingsType, type SCUserModerationType, type SCUserScoreVariation, type SCUserScoreType, type 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, type SCMetadataType, type SCTagType, type SCCategoryType, type SCCategoryAudienceType, type SCCategoryFollowedStatusType, 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, type SCFeedUnseenCountType, type SCFeedObjectSuspendedStatusType, type SCFeedObjectHideStatusType, type SCFeedObjectFollowingStatusType, type SCCommentType, type SCPrivateMessageThreadType, type SCPrivateMessageSnippetType, type SCPrivateMessageFileType, type SCPrivateMessageUploadMediaType, type SCPrivateMessageUploadThumbnailType, type SCPrivateMessageUploadMediaChunkType, 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, type SCNotificationUnseenCountType, type SCNotificationContributionType, type SCNotificationGroupActivityType, type SCNotificationEventActivityType, type SCNotificationLiveStreamActivityType, type SCIncubatorType, type SCIncubatorSubscriptionType, type SCInviteType, type SCNotificationIncubatorType, type SCPrizeType, type SCPrizeUserType, type SCPromoType, type SCUserLoyaltyPointsType, type SCWebhookEndpointType, type SCWebhookEndpointAttemptType, type SCWebhookEndpointSecretType, type SCWebhookEventsType, type SCVoteType, type SCFlagType, type SCCustomPageType, type SCDataPortabilityType, type SCPreferenceType, type SCFeatureType, type SSOSignInType, type SSOSignUpType, type SCLegalPageType, type SCLegalPageAckType, type SCContributionInsightCountersType, type SCContributionInsightType, type SCEmbedInsightType, type SCEmbedInsightCountersType, type SCUsersInsightType, type SCUsersInsightCountersType, type SCFlaggedContributionType, type SCPlatformType, type SCAvatarType, type SCReactionType, type SCDeviceType, type SCApnsDeviceType, type SCGcmDeviceType, type SCSuggestionType, type SCContributionStatus, type SCGroupType, type SCEventType, type SCStepType, type SCLiveStreamType, type SCLiveStreamConnectionDetailsType, type SCLiveStreamMonthlyDurationType, type SCLiveStreamSettingsType, type SCLiveStreamConnectionDetailsResponseErrorType } from './types';
4
+ import { type SCBannerType, type SCBroadcastMessageType, type SCAuthTokenType, type SCCustomAdvType, type SCCustomMenuItemType, type SCCustomMenuType, type SCUserType, type SCUserSettingsType, type SCUserBlockedSettingsType, type SCUserModerationType, type SCUserScoreVariation, type SCUserScoreType, type 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, type SCMetadataType, type SCTagType, type SCCategoryType, type SCCategoryAudienceType, type SCCategoryFollowedStatusType, 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, type SCFeedUnseenCountType, type SCFeedObjectSuspendedStatusType, type SCFeedObjectHideStatusType, type SCFeedObjectFollowingStatusType, type SCCommentType, type SCPrivateMessageThreadType, type SCPrivateMessageSnippetType, type SCPrivateMessageFileType, type SCPrivateMessageUploadMediaType, type SCPrivateMessageUploadThumbnailType, type SCPrivateMessageUploadMediaChunkType, 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, type SCNotificationUnseenCountType, type SCNotificationContributionType, type SCNotificationGroupActivityType, type SCNotificationEventActivityType, type SCNotificationLiveStreamActivityType, type SCIncubatorType, type SCIncubatorSubscriptionType, type SCInviteType, type SCNotificationIncubatorType, type SCPrizeType, type SCPrizeUserType, type SCPromoType, type SCUserLoyaltyPointsType, type SCWebhookEndpointType, type SCWebhookEndpointAttemptType, type SCWebhookEndpointSecretType, type SCWebhookEventsType, type SCVoteType, type SCFlagType, type SCCustomPageType, type SCDataPortabilityType, type SCPreferenceType, type SCFeatureType, type SSOSignInType, type SSOSignUpType, type SCLegalPageType, type SCLegalPageAckType, type SCContributionInsightCountersType, type SCContributionInsightType, type SCEmbedInsightType, type SCEmbedInsightCountersType, type SCUsersInsightType, type SCUsersInsightCountersType, type SCFlaggedContributionType, type SCPlatformType, type SCAvatarType, type SCReactionType, type SCDeviceType, type SCApnsDeviceType, type SCGcmDeviceType, type SCSuggestionType, type SCContributionStatus, type SCGroupType, type SCEventType, type SCStepType, type SCCourseType, type SCCourseCommentType, type SCCourseLessonType, type SCCourseSectionType, type SCLiveStreamType, type SCLiveStreamConnectionDetailsType, type SCLiveStreamMonthlyDurationType, type SCLiveStreamSettingsType, type SCLiveStreamConnectionDetailsResponseErrorType, type SCPaymentProduct, type SCPaymentPrice, type SCCheckoutSession, type SCPurchasableContent, type SCCheckoutSessionDetail } from './types';
5
5
  /**
6
6
  * Import enums
7
7
  */
8
- import { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment } from './types';
8
+ import { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseTypologyType, SCCourseLessonStatusType, SCCourseLessonCompletionStatusType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment, SCPaymentPriceCurrencyType, SCContentType, SCCheckoutSessionStatus } from './types';
9
9
  /**
10
10
  * List all exports enums and types
11
11
  */
12
- export { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment };
13
- export { type SCBannerType, type SCBroadcastMessageType, type SCCustomAdvType, type SCCustomMenuItemType, type SCCustomMenuType, type SCAuthTokenType, type SCUserType, type SCUserSettingsType, type SCUserBlockedSettingsType, type SCUserModerationType, type SCUserScoreVariation, type SCUserScoreType, type SCUserReputationType, type SCUserAutocompleteType, type SCUserCounterType, type SCUserAvatarType, type SCUserChangeEmailType, type SCUserPermissionType, type SCUserFollowedStatusType, type SCUserFollowerStatusType, type SCUserConnectionStatusType, type SCUserHiddenStatusType, type SCUserHiddenByStatusType, type SCUserConnectionRequestType, type SCUserEmailTokenType, type SCUserProviderAssociationType, type SCMetadataType, type SCTagType, type SCCategoryType, type SCCategoryAudienceType, type SCCategoryFollowedStatusType, 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, type SCFeedUnseenCountType, type SCFeedObjectSuspendedStatusType, type SCFeedObjectHideStatusType, type SCFeedObjectFollowingStatusType, type SCCommentType, type SCPrivateMessageThreadType, type SCPrivateMessageSnippetType, type SCPrivateMessageFileType, type SCPrivateMessageUploadMediaType, type SCPrivateMessageUploadThumbnailType, type SCPrivateMessageUploadMediaChunkType, type SCPromoType, 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, type SCNotificationContributionType, type SCNotificationGroupActivityType, type SCNotificationEventActivityType, type SCNotificationLiveStreamActivityType, type SCIncubatorType, type SCIncubatorSubscriptionType, type SCInviteType, type SCNotificationIncubatorType, type SCNotificationUnseenCountType, type SCPrizeType, type SCPrizeUserType, type SCUserLoyaltyPointsType, type SCWebhookEndpointType, type SCWebhookEndpointAttemptType, type SCWebhookEndpointSecretType, type SCWebhookEventsType, type SCContributionStatus, type SCVoteType, type SCFlagType, type SCCustomPageType, type SCDataPortabilityType, type SCPreferenceType, type SCFeatureType, type SSOSignInType, type SSOSignUpType, type SCLegalPageType, type SCLegalPageAckType, type SCContributionInsightCountersType, type SCContributionInsightType, type SCEmbedInsightType, type SCEmbedInsightCountersType, type SCUsersInsightType, type SCUsersInsightCountersType, type SCFlaggedContributionType, type SCPlatformType, type SCAvatarType, type SCReactionType, type SCDeviceType, type SCApnsDeviceType, type SCGcmDeviceType, type SCSuggestionType, type SCGroupType, type SCEventType, type SCStepType, type SCLiveStreamType, type SCLiveStreamConnectionDetailsType, type SCLiveStreamMonthlyDurationType, type SCLiveStreamSettingsType, type SCLiveStreamConnectionDetailsResponseErrorType };
12
+ export { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseTypologyType, SCCourseLessonCompletionStatusType, SCCourseLessonStatusType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment, SCPaymentPriceCurrencyType, SCContentType, SCCheckoutSessionStatus };
13
+ export { type SCBannerType, type SCBroadcastMessageType, type SCCustomAdvType, type SCCustomMenuItemType, type SCCustomMenuType, type SCAuthTokenType, type SCUserType, type SCUserSettingsType, type SCUserBlockedSettingsType, type SCUserModerationType, type SCUserScoreVariation, type SCUserScoreType, type SCUserReputationType, type SCUserAutocompleteType, type SCUserCounterType, type SCUserAvatarType, type SCUserChangeEmailType, type SCUserPermissionType, type SCUserFollowedStatusType, type SCUserFollowerStatusType, type SCUserConnectionStatusType, type SCUserHiddenStatusType, type SCUserHiddenByStatusType, type SCUserConnectionRequestType, type SCUserEmailTokenType, type SCUserProviderAssociationType, type SCMetadataType, type SCTagType, type SCCategoryType, type SCCategoryAudienceType, type SCCategoryFollowedStatusType, 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, type SCFeedUnseenCountType, type SCFeedObjectSuspendedStatusType, type SCFeedObjectHideStatusType, type SCFeedObjectFollowingStatusType, type SCCommentType, type SCPrivateMessageThreadType, type SCPrivateMessageSnippetType, type SCPrivateMessageFileType, type SCPrivateMessageUploadMediaType, type SCPrivateMessageUploadThumbnailType, type SCPrivateMessageUploadMediaChunkType, type SCPromoType, 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, type SCNotificationContributionType, type SCNotificationGroupActivityType, type SCNotificationEventActivityType, type SCNotificationLiveStreamActivityType, type SCIncubatorType, type SCIncubatorSubscriptionType, type SCInviteType, type SCNotificationIncubatorType, type SCNotificationUnseenCountType, type SCPrizeType, type SCPrizeUserType, type SCUserLoyaltyPointsType, type SCWebhookEndpointType, type SCWebhookEndpointAttemptType, type SCWebhookEndpointSecretType, type SCWebhookEventsType, type SCContributionStatus, type SCVoteType, type SCFlagType, type SCCustomPageType, type SCDataPortabilityType, type SCPreferenceType, type SCFeatureType, type SSOSignInType, type SSOSignUpType, type SCLegalPageType, type SCLegalPageAckType, type SCContributionInsightCountersType, type SCContributionInsightType, type SCEmbedInsightType, type SCEmbedInsightCountersType, type SCUsersInsightType, type SCUsersInsightCountersType, type SCFlaggedContributionType, type SCPlatformType, type SCAvatarType, type SCReactionType, type SCDeviceType, type SCApnsDeviceType, type SCGcmDeviceType, type SCSuggestionType, type SCGroupType, type SCEventType, type SCStepType, type SCCourseType, type SCCourseCommentType, type SCCourseSectionType, type SCCourseLessonType, type SCLiveStreamType, type SCLiveStreamConnectionDetailsType, type SCLiveStreamMonthlyDurationType, type SCLiveStreamSettingsType, type SCLiveStreamConnectionDetailsResponseErrorType, type SCPaymentProduct, type SCPaymentPrice, type SCCheckoutSession, type SCPurchasableContent, type SCCheckoutSessionDetail };
package/lib/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Import enums
3
3
  */
4
- import { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment } from './types';
4
+ import { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseTypologyType, SCCourseLessonStatusType, SCCourseLessonCompletionStatusType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment, SCPaymentPriceCurrencyType, SCContentType, SCCheckoutSessionStatus } from './types';
5
5
  /**
6
6
  * List all exports enums and types
7
7
  */
8
- export { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment };
8
+ export { SCContributionType, SCBroadcastMessageBannerType, SCCategoryAutoFollowType, SCCommentsOrderBy, SCCustomAdvPosition, SCCustomPageTypeEnum, SCDeviceTypeEnum, SCDeviceApnsTypeEnum, SCFeatureName, SCFeedTypologyType, SCFeedUnitActivityTypologyType, SCFlagTypeEnum, SCFlagModerationStatusType, SCConnectionStatus, SCIncubatorStatusType, SCLegalPagePoliciesType, SCLanguageType, SCNotificationTypologyType, SCNotificationTopicType, SCPreferenceSection, SCPreferenceName, SCMessageFileType, SCPrizeUserStatusType, SCUserStatus, SuggestionType, SCPrivateMessageStatusType, SCMetadataTypeFieldType, SCGroupPrivacyType, SCGroupSubscriptionStatusType, SCPrivateMessageType, SCEventPrivacyType, SCEventSubscriptionStatusType, SCEventRecurrenceType, SCEventLocationType, SCEventLocationFilterType, SCEventDateFilterType, SCOnBoardingStepType, SCOnBoardingStepStatusType, SCOnBoardingStepIdType, SCCoursePrivacyType, SCCourseJoinStatusType, SCCourseLessonTypologyType, SCCourseTypologyType, SCCourseLessonCompletionStatusType, SCCourseLessonStatusType, SCLiveStreamConnectionDetailsErrorType, SCLiveStreamViewType, SCCommunitySubscriptionTier, SCCommunityEnvironment, SCPaymentPriceCurrencyType, SCContentType, SCCheckoutSessionStatus };
@@ -1,9 +1,10 @@
1
1
  import { SCTagType } from './tag';
2
+ import { SCPurchasableContent } from './payment';
2
3
  /**
3
4
  * Interface SCCategoryType.
4
5
  * Category Schema.
5
6
  */
6
- export interface SCCategoryType {
7
+ export interface SCCategoryType extends SCPurchasableContent {
7
8
  /**
8
9
  * The ID of the category.
9
10
  */