@sparted/shared-library 1.7.18 → 1.7.19
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.
|
@@ -23,7 +23,7 @@ export type SharedActivityMetadata = {
|
|
|
23
23
|
};
|
|
24
24
|
export type CampaignActivity = SharedActivityMetadata & Campaign;
|
|
25
25
|
export type Activity = CampaignActivity | BreakingNewsActivity;
|
|
26
|
-
export declare const ACTIVITY_STATUS: readonly ["inactive", "archived", "upcoming", "live", "finished"];
|
|
26
|
+
export declare const ACTIVITY_STATUS: readonly ["draft", "inactive", "archived", "upcoming", "live", "finished"];
|
|
27
27
|
export declare const isActivityCampaign: (activity: CampaignActivity | BreakingNewsActivity) => activity is CampaignActivity;
|
|
28
28
|
export declare const isActivityBreakingNews: (activity: CampaignActivity | BreakingNewsActivity) => activity is BreakingNewsActivity;
|
|
29
29
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const ACTIVITY_STATUS = ['inactive', 'archived', 'upcoming', 'live', 'finished'];
|
|
5
|
+
const ACTIVITY_STATUS = ['draft', 'inactive', 'archived', 'upcoming', 'live', 'finished'];
|
|
6
6
|
const isActivityCampaign = (activity) => activity.type === 'campaign';
|
|
7
7
|
const isActivityBreakingNews = (activity) => activity.type === 'breaking-news';
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.js","sources":["../../../src/business/types/activity.ts"],"sourcesContent":["import { BreakingNewsActivity } from './breaking-news';\nimport type { Campaign } from './campaign';\nimport type { LanguageCode } from './multilingual';\n\ntype Segment = {\n id: number;\n label: string;\n dimensionId: number;\n};\n\nexport type ActivityAudience = {\n groupId: number;\n type: 'all' | 'segmentation' | 'magic-code' | 'email-list';\n segments: Segment[];\n};\n\nexport type ActivityStatus = (typeof ACTIVITY_STATUS)[number];\n\nexport type SharedActivityMetadata = {\n status: ActivityStatus;\n languages?: LanguageCode[];\n audiences?: ActivityAudience[];\n userEngagement?: {\n viewCount?: number;\n likeCount?: number;\n };\n};\n\nexport type CampaignActivity = SharedActivityMetadata & Campaign;\n\nexport type Activity = CampaignActivity | BreakingNewsActivity;\n\nexport const ACTIVITY_STATUS = ['inactive', 'archived', 'upcoming', 'live', 'finished'] as const;\n\nexport const isActivityCampaign = (activity: CampaignActivity | BreakingNewsActivity): activity is CampaignActivity =>\n activity.type === 'campaign';\n\nexport const isActivityBreakingNews = (\n activity: CampaignActivity | BreakingNewsActivity,\n): activity is BreakingNewsActivity => activity.type === 'breaking-news';\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"activity.js","sources":["../../../src/business/types/activity.ts"],"sourcesContent":["import { BreakingNewsActivity } from './breaking-news';\nimport type { Campaign } from './campaign';\nimport type { LanguageCode } from './multilingual';\n\ntype Segment = {\n id: number;\n label: string;\n dimensionId: number;\n};\n\nexport type ActivityAudience = {\n groupId: number;\n type: 'all' | 'segmentation' | 'magic-code' | 'email-list';\n segments: Segment[];\n};\n\nexport type ActivityStatus = (typeof ACTIVITY_STATUS)[number];\n\nexport type SharedActivityMetadata = {\n status: ActivityStatus;\n languages?: LanguageCode[];\n audiences?: ActivityAudience[];\n userEngagement?: {\n viewCount?: number;\n likeCount?: number;\n };\n};\n\nexport type CampaignActivity = SharedActivityMetadata & Campaign;\n\nexport type Activity = CampaignActivity | BreakingNewsActivity;\n\nexport const ACTIVITY_STATUS = ['draft', 'inactive', 'archived', 'upcoming', 'live', 'finished'] as const;\n\nexport const isActivityCampaign = (activity: CampaignActivity | BreakingNewsActivity): activity is CampaignActivity =>\n activity.type === 'campaign';\n\nexport const isActivityBreakingNews = (\n activity: CampaignActivity | BreakingNewsActivity,\n): activity is BreakingNewsActivity => activity.type === 'breaking-news';\n"],"names":[],"mappings":";;;;AAgCa,MAAA,eAAe,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAW;AAEnG,MAAM,kBAAkB,GAAG,CAAC,QAAiD,KAClF,QAAQ,CAAC,IAAI,KAAK,WAAW;AAExB,MAAM,sBAAsB,GAAG,CACpC,QAAiD,KACZ,QAAQ,CAAC,IAAI,KAAK;;;;;;"}
|
|
@@ -125,7 +125,7 @@ export declare const isPartialGameMultipleChoiceQuestion: (game: DeepPartial<Gam
|
|
|
125
125
|
video?: {
|
|
126
126
|
id?: number | undefined;
|
|
127
127
|
url?: string | undefined;
|
|
128
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
128
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
129
129
|
} | undefined;
|
|
130
130
|
} | undefined;
|
|
131
131
|
question?: {
|
|
@@ -214,7 +214,7 @@ export declare const isPartialGameMultipleChoiceQuestion: (game: DeepPartial<Gam
|
|
|
214
214
|
video?: {
|
|
215
215
|
id?: number | undefined;
|
|
216
216
|
url?: string | undefined;
|
|
217
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
217
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
218
218
|
} | undefined;
|
|
219
219
|
} | undefined;
|
|
220
220
|
explanation?: {
|
|
@@ -268,7 +268,7 @@ export declare const isPartialGameErrorText: (game: DeepPartial<Game>) => game i
|
|
|
268
268
|
video?: {
|
|
269
269
|
id?: number | undefined;
|
|
270
270
|
url?: string | undefined;
|
|
271
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
271
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
272
272
|
} | undefined;
|
|
273
273
|
} | undefined;
|
|
274
274
|
wrongText?: {
|
|
@@ -354,7 +354,7 @@ export declare const isPartialGameErrorText: (game: DeepPartial<Game>) => game i
|
|
|
354
354
|
video?: {
|
|
355
355
|
id?: number | undefined;
|
|
356
356
|
url?: string | undefined;
|
|
357
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
357
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
358
358
|
} | undefined;
|
|
359
359
|
} | undefined;
|
|
360
360
|
explanation?: {
|
|
@@ -408,7 +408,7 @@ export declare const isPartialGameOpenQuestion: (game: DeepPartial<Game>) => gam
|
|
|
408
408
|
video?: {
|
|
409
409
|
id?: number | undefined;
|
|
410
410
|
url?: string | undefined;
|
|
411
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
411
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
412
412
|
} | undefined;
|
|
413
413
|
} | undefined;
|
|
414
414
|
question?: {
|
|
@@ -495,7 +495,7 @@ export declare const isPartialGameOpenQuestion: (game: DeepPartial<Game>) => gam
|
|
|
495
495
|
video?: {
|
|
496
496
|
id?: number | undefined;
|
|
497
497
|
url?: string | undefined;
|
|
498
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
498
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
499
499
|
} | undefined;
|
|
500
500
|
} | undefined;
|
|
501
501
|
explanation?: {
|
|
@@ -549,7 +549,7 @@ export declare const isPartialGameNoInteraction: (game: DeepPartial<Game>) => ga
|
|
|
549
549
|
video?: {
|
|
550
550
|
id?: number | undefined;
|
|
551
551
|
url?: string | undefined;
|
|
552
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
552
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
553
553
|
} | undefined;
|
|
554
554
|
} | undefined;
|
|
555
555
|
title?: {
|
|
@@ -635,7 +635,7 @@ export declare const isPartialGameNoInteraction: (game: DeepPartial<Game>) => ga
|
|
|
635
635
|
video?: {
|
|
636
636
|
id?: number | undefined;
|
|
637
637
|
url?: string | undefined;
|
|
638
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
638
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
639
639
|
} | undefined;
|
|
640
640
|
} | undefined;
|
|
641
641
|
};
|