@sparted/shared-library 1.7.92 → 1.7.93
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/business/course/index.d.ts +1 -0
- package/business/course/index.js +10 -0
- package/business/course/index.js.map +1 -0
- package/business/course/microknowledge-max-lengths.d.ts +12 -0
- package/business/course/microknowledge-max-lengths.js +19 -0
- package/business/course/microknowledge-max-lengths.js.map +1 -0
- package/business/index.d.ts +4 -0
- package/business/index.js +52 -0
- package/business/index.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +44 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './microknowledge-max-lengths';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var microknowledgeMaxLengths = require('./microknowledge-max-lengths.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.MICROKNOWLEDGE_MAX_LENGTHS = microknowledgeMaxLengths.MICROKNOWLEDGE_MAX_LENGTHS;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const MICROKNOWLEDGE_MAX_LENGTHS = {
|
|
6
|
+
IMAGE: {
|
|
7
|
+
MAX_TITLE_LENGTH: 40,
|
|
8
|
+
MAX_CONTENT_LENGTH: 500,
|
|
9
|
+
},
|
|
10
|
+
VIDEO: {
|
|
11
|
+
MAX_TITLE_LENGTH: 40,
|
|
12
|
+
},
|
|
13
|
+
CHAPTER: {
|
|
14
|
+
MAX_TITLE_LENGTH: 40,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.MICROKNOWLEDGE_MAX_LENGTHS = MICROKNOWLEDGE_MAX_LENGTHS;
|
|
19
|
+
//# sourceMappingURL=microknowledge-max-lengths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microknowledge-max-lengths.js","sources":["../../../src/business/course/microknowledge-max-lengths.ts"],"sourcesContent":["export const MICROKNOWLEDGE_MAX_LENGTHS = {\n IMAGE: {\n MAX_TITLE_LENGTH: 40,\n MAX_CONTENT_LENGTH: 500,\n },\n VIDEO: {\n MAX_TITLE_LENGTH: 40,\n },\n CHAPTER: {\n MAX_TITLE_LENGTH: 40,\n },\n};\n"],"names":[],"mappings":";;;;AAAa,MAAA,0BAA0B,GAAG;AACxC,IAAA,KAAK,EAAE;AACL,QAAA,gBAAgB,EAAE,EAAE;AACpB,QAAA,kBAAkB,EAAE,GAAG;AACxB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,gBAAgB,EAAE,EAAE;AACrB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,gBAAgB,EAAE,EAAE;AACrB,KAAA;;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var liveCampaign = require('./campaign/live-campaign.js');
|
|
6
|
+
var microknowledgeMaxLengths = require('./course/microknowledge-max-lengths.js');
|
|
7
|
+
var index = require('./picture-spot/index.js');
|
|
8
|
+
var activity = require('./types/activity.js');
|
|
9
|
+
var campaign = require('./types/campaign.js');
|
|
10
|
+
var content = require('./types/content.js');
|
|
11
|
+
var multilingual = require('./types/multilingual.js');
|
|
12
|
+
var score = require('./types/score.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.checkTodayPlayable = liveCampaign.checkTodayPlayable;
|
|
17
|
+
exports.computeCurrentSession = liveCampaign.computeCurrentSession;
|
|
18
|
+
exports.computeIntenseCalendar = liveCampaign.computeIntenseCalendar;
|
|
19
|
+
exports.findNextAvailableDate = liveCampaign.findNextAvailableDate;
|
|
20
|
+
exports.getCalendarSessionDatesFromCampaign = liveCampaign.getCalendarSessionDatesFromCampaign;
|
|
21
|
+
exports.MICROKNOWLEDGE_MAX_LENGTHS = microknowledgeMaxLengths.MICROKNOWLEDGE_MAX_LENGTHS;
|
|
22
|
+
exports.getQuestions = index.getQuestions;
|
|
23
|
+
exports.ACTIVITY_STATUS = activity.ACTIVITY_STATUS;
|
|
24
|
+
exports.isActivityBreakingNews = activity.isActivityBreakingNews;
|
|
25
|
+
exports.isActivityCampaign = activity.isActivityCampaign;
|
|
26
|
+
exports.isCampaignSchedulingManual = campaign.isCampaignSchedulingManual;
|
|
27
|
+
exports.isCampaignSchedulingRandom = campaign.isCampaignSchedulingRandom;
|
|
28
|
+
exports.isWikiCard = campaign.isWikiCard;
|
|
29
|
+
exports.GAME_TYPE = content.GAME_TYPE;
|
|
30
|
+
exports.extractExplanation = content.extractExplanation;
|
|
31
|
+
exports.extractGameExplanation = content.extractGameExplanation;
|
|
32
|
+
exports.extractImages = content.extractImages;
|
|
33
|
+
exports.isGameErrorText = content.isGameErrorText;
|
|
34
|
+
exports.isGameMultipleChoiceQuestion = content.isGameMultipleChoiceQuestion;
|
|
35
|
+
exports.isGameNoInteraction = content.isGameNoInteraction;
|
|
36
|
+
exports.isGameOpenQuestion = content.isGameOpenQuestion;
|
|
37
|
+
exports.isGameOrderingCards = content.isGameOrderingCards;
|
|
38
|
+
exports.isGamePictureSpot = content.isGamePictureSpot;
|
|
39
|
+
exports.isGameSwipingCards = content.isGameSwipingCards;
|
|
40
|
+
exports.isPartialGameErrorText = content.isPartialGameErrorText;
|
|
41
|
+
exports.isPartialGameMultipleChoiceQuestion = content.isPartialGameMultipleChoiceQuestion;
|
|
42
|
+
exports.isPartialGameNoInteraction = content.isPartialGameNoInteraction;
|
|
43
|
+
exports.isPartialGameOpenQuestion = content.isPartialGameOpenQuestion;
|
|
44
|
+
exports.isPartialGameOrderingCards = content.isPartialGameOrderingCards;
|
|
45
|
+
exports.isPartialGamePictureSpot = content.isPartialGamePictureSpot;
|
|
46
|
+
exports.isPartialGameSwipingCards = content.isPartialGameSwipingCards;
|
|
47
|
+
exports.Languages = multilingual.Languages;
|
|
48
|
+
exports.isLanguageCode = multilingual.isLanguageCode;
|
|
49
|
+
exports.isBattleScore = score.isBattleScore;
|
|
50
|
+
exports.isCampaignScore = score.isCampaignScore;
|
|
51
|
+
exports.isWikiScore = score.isWikiScore;
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,6 +6,14 @@ var arrayToMap = require('./array/array-to-map.js');
|
|
|
6
6
|
var getValuesFromKeys = require('./array/get-values-from-keys.js');
|
|
7
7
|
var leftOutterJoin = require('./array/left-outter-join.js');
|
|
8
8
|
var innerJoin = require('./array/inner-join.js');
|
|
9
|
+
var liveCampaign = require('./business/campaign/live-campaign.js');
|
|
10
|
+
var microknowledgeMaxLengths = require('./business/course/microknowledge-max-lengths.js');
|
|
11
|
+
var index = require('./business/picture-spot/index.js');
|
|
12
|
+
var activity = require('./business/types/activity.js');
|
|
13
|
+
var campaign = require('./business/types/campaign.js');
|
|
14
|
+
var content = require('./business/types/content.js');
|
|
15
|
+
var multilingual = require('./business/types/multilingual.js');
|
|
16
|
+
var score = require('./business/types/score.js');
|
|
9
17
|
var cdn_factory = require('./cdn/cdn.factory.js');
|
|
10
18
|
var getApproximatedSessionTime = require('./chrono/get-approximated-session-time.js');
|
|
11
19
|
var constants = require('./time/constants.js');
|
|
@@ -56,6 +64,42 @@ exports.arrayToMap = arrayToMap.arrayToMap;
|
|
|
56
64
|
exports.valuesFromKeys = getValuesFromKeys.valuesFromKeys;
|
|
57
65
|
exports.leftOutterJoin = leftOutterJoin.leftOutterJoin;
|
|
58
66
|
exports.innerJoin = innerJoin.innerJoin;
|
|
67
|
+
exports.checkTodayPlayable = liveCampaign.checkTodayPlayable;
|
|
68
|
+
exports.computeCurrentSession = liveCampaign.computeCurrentSession;
|
|
69
|
+
exports.computeIntenseCalendar = liveCampaign.computeIntenseCalendar;
|
|
70
|
+
exports.findNextAvailableDate = liveCampaign.findNextAvailableDate;
|
|
71
|
+
exports.getCalendarSessionDatesFromCampaign = liveCampaign.getCalendarSessionDatesFromCampaign;
|
|
72
|
+
exports.MICROKNOWLEDGE_MAX_LENGTHS = microknowledgeMaxLengths.MICROKNOWLEDGE_MAX_LENGTHS;
|
|
73
|
+
exports.getQuestions = index.getQuestions;
|
|
74
|
+
exports.ACTIVITY_STATUS = activity.ACTIVITY_STATUS;
|
|
75
|
+
exports.isActivityBreakingNews = activity.isActivityBreakingNews;
|
|
76
|
+
exports.isActivityCampaign = activity.isActivityCampaign;
|
|
77
|
+
exports.isCampaignSchedulingManual = campaign.isCampaignSchedulingManual;
|
|
78
|
+
exports.isCampaignSchedulingRandom = campaign.isCampaignSchedulingRandom;
|
|
79
|
+
exports.isWikiCard = campaign.isWikiCard;
|
|
80
|
+
exports.GAME_TYPE = content.GAME_TYPE;
|
|
81
|
+
exports.extractExplanation = content.extractExplanation;
|
|
82
|
+
exports.extractGameExplanation = content.extractGameExplanation;
|
|
83
|
+
exports.extractImages = content.extractImages;
|
|
84
|
+
exports.isGameErrorText = content.isGameErrorText;
|
|
85
|
+
exports.isGameMultipleChoiceQuestion = content.isGameMultipleChoiceQuestion;
|
|
86
|
+
exports.isGameNoInteraction = content.isGameNoInteraction;
|
|
87
|
+
exports.isGameOpenQuestion = content.isGameOpenQuestion;
|
|
88
|
+
exports.isGameOrderingCards = content.isGameOrderingCards;
|
|
89
|
+
exports.isGamePictureSpot = content.isGamePictureSpot;
|
|
90
|
+
exports.isGameSwipingCards = content.isGameSwipingCards;
|
|
91
|
+
exports.isPartialGameErrorText = content.isPartialGameErrorText;
|
|
92
|
+
exports.isPartialGameMultipleChoiceQuestion = content.isPartialGameMultipleChoiceQuestion;
|
|
93
|
+
exports.isPartialGameNoInteraction = content.isPartialGameNoInteraction;
|
|
94
|
+
exports.isPartialGameOpenQuestion = content.isPartialGameOpenQuestion;
|
|
95
|
+
exports.isPartialGameOrderingCards = content.isPartialGameOrderingCards;
|
|
96
|
+
exports.isPartialGamePictureSpot = content.isPartialGamePictureSpot;
|
|
97
|
+
exports.isPartialGameSwipingCards = content.isPartialGameSwipingCards;
|
|
98
|
+
exports.Languages = multilingual.Languages;
|
|
99
|
+
exports.isLanguageCode = multilingual.isLanguageCode;
|
|
100
|
+
exports.isBattleScore = score.isBattleScore;
|
|
101
|
+
exports.isCampaignScore = score.isCampaignScore;
|
|
102
|
+
exports.isWikiScore = score.isWikiScore;
|
|
59
103
|
exports.createCdn = cdn_factory.createCdn;
|
|
60
104
|
exports.DOLPHIN_AVERAGE_CHRONO_GAMEPLAY = getApproximatedSessionTime.DOLPHIN_AVERAGE_CHRONO_GAMEPLAY;
|
|
61
105
|
exports.getApproximatedSessionTime = getApproximatedSessionTime.getApproximatedSessionTime;
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|