@streamlayer/sdk-web-types 1.10.18 → 1.11.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/sl-types.d.ts +17 -5
- package/lib/sl-types.js +3 -3
- package/package.json +3 -3
package/lib/sl-types.d.ts
CHANGED
|
@@ -1,21 +1,33 @@
|
|
|
1
|
-
import { PlainMessage } from '@bufbuild/protobuf';
|
|
2
1
|
import type { StreamSettings as SLStreamSettings, SdkOverlay, Advertising, OrganizationSettings as SLOrganizationSettings } from '@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb';
|
|
3
2
|
import type { GameSettings as IGameSettings } from '@streamlayer/sl-eslib/sdkSettings/game/common/game_common_pb';
|
|
4
3
|
import type { ClientSettings } from '@streamlayer/sl-eslib/sdkSettings/client/client_pb';
|
|
5
4
|
import type { User as ProtoUser } from '@streamlayer/sl-eslib/users/users_common_pb';
|
|
6
5
|
import type { SummaryResponse_ResponseData_SummaryResponseAttributes } from '@streamlayer/sl-eslib/sports/events/events_pb';
|
|
7
|
-
export { QuestionType, QuestionStatus, QuestionImages, NotificationPromotionImagePosition, ImagePosition, SilenceSetting, QuestionOptions, PromotionType, PromotionButtonType, PromotionWallet, PromotionLogoMode, CtaIconMode, NotificationSponsorLogoMode, NotificationEnabled, CloseTimerAuto, NotificationPromotionMode, AutoPlayVideo, UseAsNotification, } from '@streamlayer/sl-eslib/interactive/interactive.common_pb';
|
|
8
6
|
import type { PickHistory as IPickHistory, InsightHistory as IInsightHistory, TweetHistory as ITweetHistory, FeedItem as IFeedItem, FeedItemAttributes as IFeedItemAttributes, InstantView as IInstantView, PromotionHistory as IPromotionHistory } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
9
|
-
export { PickHistoryStatus, SubscriptionResponse } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
10
7
|
import type { LeaderboardItem as ILeaderboardItem } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
|
|
11
8
|
import { type ExtendedQuestionAnswer as IExtendedQuestionAnswer, type Question as IQuestion, type ExtendedQuestion as IExtendedQuestion, type QuestionOptions_PromotionOptions, type QuestionOptions_AdCampaigns, type QuestionNotification as IQuestionNotification, type PromotionNotification as IPromotionNotification, type CloseTimer as ICloseTimer, QuestionOptions_GamOptions } from '@streamlayer/sl-eslib/interactive/interactive.common_pb';
|
|
9
|
+
export type UnionOmit<T, K extends string | number | symbol> = T extends unknown ? Omit<T, K> : never;
|
|
10
|
+
export type NullUnionOmit<T, K extends string | number | symbol> = null extends T ? UnionOmit<NonNullable<T>, K> : UnionOmit<T, K>;
|
|
11
|
+
export type RecursiveOmitHelper<T, K extends string | number | symbol> = {
|
|
12
|
+
[P in keyof T]: RecursiveOmit<T[P], K>;
|
|
13
|
+
};
|
|
14
|
+
export type RecursiveOmit<T, K extends string | number | symbol> = T extends {
|
|
15
|
+
[P in K]: any;
|
|
16
|
+
} ? NullUnionOmit<RecursiveOmitHelper<T, K>, K> : RecursiveOmitHelper<T, K>;
|
|
17
|
+
export type RecursivePartial<T> = T extends object ? {
|
|
18
|
+
[P in keyof T]?: RecursivePartial<T[P]> | null;
|
|
19
|
+
} : T;
|
|
20
|
+
export type PlainMessage<T> = RecursiveOmit<T, '$typeName'>;
|
|
21
|
+
export type PartialMessage<T> = RecursivePartial<RecursiveOmit<T, '$typeName'>>;
|
|
22
|
+
export { QuestionType, QuestionStatus, QuestionImages, NotificationPromotionImagePosition, ImagePosition, SilenceSetting, type QuestionOptions, PromotionType, PromotionButtonType, PromotionWallet, PromotionLogoMode, CtaIconMode, NotificationSponsorLogoMode, NotificationEnabled, CloseTimerAuto, NotificationPromotionMode, AutoPlayVideo, UseAsNotification, } from '@streamlayer/sl-eslib/interactive/interactive.common_pb';
|
|
23
|
+
export { PickHistoryStatus, type SubscriptionResponse, } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
12
24
|
export type PickHistory = PlainMessage<IPickHistory>;
|
|
13
25
|
export type ExtendedQuestionAnswer = PlainMessage<IExtendedQuestionAnswer>;
|
|
14
26
|
export type InsightHistory = PlainMessage<IInsightHistory>;
|
|
15
27
|
export type TweetHistory = PlainMessage<ITweetHistory>;
|
|
16
28
|
export type OrganizationSettings = SLOrganizationSettings;
|
|
17
29
|
export type OrganizationAdvertising = Advertising;
|
|
18
|
-
export type FeatureConfig = SdkOverlay
|
|
30
|
+
export type FeatureConfig = PlainMessage<SdkOverlay>;
|
|
19
31
|
export type StreamSettings = SLStreamSettings;
|
|
20
32
|
export type User = {
|
|
21
33
|
data: ProtoUser | undefined;
|
|
@@ -36,7 +48,7 @@ export type PromotionNotification = PlainMessage<IPromotionNotification>;
|
|
|
36
48
|
export type EventSummary = PlainMessage<SummaryResponse_ResponseData_SummaryResponseAttributes>;
|
|
37
49
|
export type GamOptions = PlainMessage<QuestionOptions_GamOptions>;
|
|
38
50
|
export type AdCampaigns = PlainMessage<QuestionOptions_AdCampaigns>;
|
|
39
|
-
export { SdkOverlayType as FeatureType, SdkOverlaySettings, GamesOverlaySettings, } from '@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb';
|
|
51
|
+
export { SdkOverlayType as FeatureType, type SdkOverlaySettings, type GamesOverlaySettings, } from '@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb';
|
|
40
52
|
export { InvitationFrom } from '@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb';
|
|
41
53
|
export declare enum NotificationType {
|
|
42
54
|
ONBOARDING = 1,
|
package/lib/sl-types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { QuestionType, QuestionStatus, QuestionImages, NotificationPromotionImagePosition, ImagePosition, SilenceSetting,
|
|
2
|
-
export { PickHistoryStatus,
|
|
3
|
-
export { SdkOverlayType as FeatureType,
|
|
1
|
+
export { QuestionType, QuestionStatus, QuestionImages, NotificationPromotionImagePosition, ImagePosition, SilenceSetting, PromotionType, PromotionButtonType, PromotionWallet, PromotionLogoMode, CtaIconMode, NotificationSponsorLogoMode, NotificationEnabled, CloseTimerAuto, NotificationPromotionMode, AutoPlayVideo, UseAsNotification, } from '@streamlayer/sl-eslib/interactive/interactive.common_pb';
|
|
2
|
+
export { PickHistoryStatus, } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
3
|
+
export { SdkOverlayType as FeatureType, } from '@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb';
|
|
4
4
|
export { InvitationFrom } from '@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb';
|
|
5
5
|
export var NotificationType;
|
|
6
6
|
(function (NotificationType) {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/sdk-web-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@bufbuild/protobuf": "^
|
|
6
|
-
"@streamlayer/sl-eslib": "^5.
|
|
5
|
+
"@bufbuild/protobuf": "^2.2.2",
|
|
6
|
+
"@streamlayer/sl-eslib": "^5.163.2"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"tslib": "^2.7.0"
|