@xcpcio/core 0.81.0 → 0.82.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/dist/index.cjs +10 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +10 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1061,11 +1061,14 @@ class ContestOptions {
|
|
|
1061
1061
|
submissionEnableActionField;
|
|
1062
1062
|
submissionHasReactionField;
|
|
1063
1063
|
submissionHasExternalUrlField;
|
|
1064
|
+
submissionHasRealtimeReactionStreamField;
|
|
1064
1065
|
reactionVideoUrlTemplate;
|
|
1065
1066
|
submissionExternalUrlTemplate;
|
|
1066
1067
|
teamPhotoTemplate;
|
|
1067
1068
|
teamWebcamStreamUrlTemplate;
|
|
1068
1069
|
teamScreenStreamUrlTemplate;
|
|
1070
|
+
realtimeReactionWebcamStreamUrlTemplate;
|
|
1071
|
+
realtimeReactionScreenStreamUrlTemplate;
|
|
1069
1072
|
constructor() {
|
|
1070
1073
|
this.enableOrganization = false;
|
|
1071
1074
|
this.calculationOfPenalty = "in_minutes";
|
|
@@ -1075,6 +1078,7 @@ class ContestOptions {
|
|
|
1075
1078
|
this.submissionEnableActionField = false;
|
|
1076
1079
|
this.submissionHasReactionField = false;
|
|
1077
1080
|
this.submissionHasExternalUrlField = false;
|
|
1081
|
+
this.submissionHasRealtimeReactionStreamField = false;
|
|
1078
1082
|
}
|
|
1079
1083
|
}
|
|
1080
1084
|
function createContestOptions(contestOptionsJSON = {}) {
|
|
@@ -1094,7 +1098,12 @@ function createContestOptions(contestOptionsJSON = {}) {
|
|
|
1094
1098
|
o.submissionHasExternalUrlField = true;
|
|
1095
1099
|
o.submissionExternalUrlTemplate = j.submission_external_url_template;
|
|
1096
1100
|
}
|
|
1097
|
-
|
|
1101
|
+
if (j.realtime_reaction_webcam_stream_url_template || j.realtime_reaction_screen_stream_url_template) {
|
|
1102
|
+
o.submissionHasRealtimeReactionStreamField = true;
|
|
1103
|
+
o.realtimeReactionWebcamStreamUrlTemplate = j.realtime_reaction_webcam_stream_url_template;
|
|
1104
|
+
o.realtimeReactionScreenStreamUrlTemplate = j.realtime_reaction_screen_stream_url_template;
|
|
1105
|
+
}
|
|
1106
|
+
o.submissionEnableActionField = o.submissionHasReactionField || o.submissionHasExternalUrlField || o.submissionHasRealtimeReactionStreamField;
|
|
1098
1107
|
o.reactionVideoUrlTemplate = j.reaction_video_url_template;
|
|
1099
1108
|
o.teamPhotoTemplate = j.team_photo_url_template;
|
|
1100
1109
|
o.teamWebcamStreamUrlTemplate = j.team_webcam_stream_url_template;
|
package/dist/index.d.cts
CHANGED
|
@@ -28,11 +28,14 @@ declare class ContestOptions {
|
|
|
28
28
|
submissionEnableActionField: boolean;
|
|
29
29
|
submissionHasReactionField: boolean;
|
|
30
30
|
submissionHasExternalUrlField: boolean;
|
|
31
|
+
submissionHasRealtimeReactionStreamField: boolean;
|
|
31
32
|
reactionVideoUrlTemplate?: string;
|
|
32
33
|
submissionExternalUrlTemplate?: string;
|
|
33
34
|
teamPhotoTemplate?: Image;
|
|
34
35
|
teamWebcamStreamUrlTemplate?: string;
|
|
35
36
|
teamScreenStreamUrlTemplate?: string;
|
|
37
|
+
realtimeReactionWebcamStreamUrlTemplate?: string;
|
|
38
|
+
realtimeReactionScreenStreamUrlTemplate?: string;
|
|
36
39
|
constructor();
|
|
37
40
|
}
|
|
38
41
|
|
package/dist/index.d.mts
CHANGED
|
@@ -28,11 +28,14 @@ declare class ContestOptions {
|
|
|
28
28
|
submissionEnableActionField: boolean;
|
|
29
29
|
submissionHasReactionField: boolean;
|
|
30
30
|
submissionHasExternalUrlField: boolean;
|
|
31
|
+
submissionHasRealtimeReactionStreamField: boolean;
|
|
31
32
|
reactionVideoUrlTemplate?: string;
|
|
32
33
|
submissionExternalUrlTemplate?: string;
|
|
33
34
|
teamPhotoTemplate?: Image;
|
|
34
35
|
teamWebcamStreamUrlTemplate?: string;
|
|
35
36
|
teamScreenStreamUrlTemplate?: string;
|
|
37
|
+
realtimeReactionWebcamStreamUrlTemplate?: string;
|
|
38
|
+
realtimeReactionScreenStreamUrlTemplate?: string;
|
|
36
39
|
constructor();
|
|
37
40
|
}
|
|
38
41
|
|
package/dist/index.d.ts
CHANGED
|
@@ -28,11 +28,14 @@ declare class ContestOptions {
|
|
|
28
28
|
submissionEnableActionField: boolean;
|
|
29
29
|
submissionHasReactionField: boolean;
|
|
30
30
|
submissionHasExternalUrlField: boolean;
|
|
31
|
+
submissionHasRealtimeReactionStreamField: boolean;
|
|
31
32
|
reactionVideoUrlTemplate?: string;
|
|
32
33
|
submissionExternalUrlTemplate?: string;
|
|
33
34
|
teamPhotoTemplate?: Image;
|
|
34
35
|
teamWebcamStreamUrlTemplate?: string;
|
|
35
36
|
teamScreenStreamUrlTemplate?: string;
|
|
37
|
+
realtimeReactionWebcamStreamUrlTemplate?: string;
|
|
38
|
+
realtimeReactionScreenStreamUrlTemplate?: string;
|
|
36
39
|
constructor();
|
|
37
40
|
}
|
|
38
41
|
|
package/dist/index.mjs
CHANGED
|
@@ -1030,11 +1030,14 @@ class ContestOptions {
|
|
|
1030
1030
|
submissionEnableActionField;
|
|
1031
1031
|
submissionHasReactionField;
|
|
1032
1032
|
submissionHasExternalUrlField;
|
|
1033
|
+
submissionHasRealtimeReactionStreamField;
|
|
1033
1034
|
reactionVideoUrlTemplate;
|
|
1034
1035
|
submissionExternalUrlTemplate;
|
|
1035
1036
|
teamPhotoTemplate;
|
|
1036
1037
|
teamWebcamStreamUrlTemplate;
|
|
1037
1038
|
teamScreenStreamUrlTemplate;
|
|
1039
|
+
realtimeReactionWebcamStreamUrlTemplate;
|
|
1040
|
+
realtimeReactionScreenStreamUrlTemplate;
|
|
1038
1041
|
constructor() {
|
|
1039
1042
|
this.enableOrganization = false;
|
|
1040
1043
|
this.calculationOfPenalty = "in_minutes";
|
|
@@ -1044,6 +1047,7 @@ class ContestOptions {
|
|
|
1044
1047
|
this.submissionEnableActionField = false;
|
|
1045
1048
|
this.submissionHasReactionField = false;
|
|
1046
1049
|
this.submissionHasExternalUrlField = false;
|
|
1050
|
+
this.submissionHasRealtimeReactionStreamField = false;
|
|
1047
1051
|
}
|
|
1048
1052
|
}
|
|
1049
1053
|
function createContestOptions(contestOptionsJSON = {}) {
|
|
@@ -1063,7 +1067,12 @@ function createContestOptions(contestOptionsJSON = {}) {
|
|
|
1063
1067
|
o.submissionHasExternalUrlField = true;
|
|
1064
1068
|
o.submissionExternalUrlTemplate = j.submission_external_url_template;
|
|
1065
1069
|
}
|
|
1066
|
-
|
|
1070
|
+
if (j.realtime_reaction_webcam_stream_url_template || j.realtime_reaction_screen_stream_url_template) {
|
|
1071
|
+
o.submissionHasRealtimeReactionStreamField = true;
|
|
1072
|
+
o.realtimeReactionWebcamStreamUrlTemplate = j.realtime_reaction_webcam_stream_url_template;
|
|
1073
|
+
o.realtimeReactionScreenStreamUrlTemplate = j.realtime_reaction_screen_stream_url_template;
|
|
1074
|
+
}
|
|
1075
|
+
o.submissionEnableActionField = o.submissionHasReactionField || o.submissionHasExternalUrlField || o.submissionHasRealtimeReactionStreamField;
|
|
1067
1076
|
o.reactionVideoUrlTemplate = j.reaction_video_url_template;
|
|
1068
1077
|
o.teamPhotoTemplate = j.team_photo_url_template;
|
|
1069
1078
|
o.teamWebcamStreamUrlTemplate = j.team_webcam_stream_url_template;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.82.0",
|
|
5
5
|
"description": "The core library for XCPCIO",
|
|
6
6
|
"author": "Dup4 <hi@dup4.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"papaparse": "^5.5.3",
|
|
43
43
|
"string-width": "^8.1.0",
|
|
44
44
|
"xlsx-js-style": "^1.2.0",
|
|
45
|
-
"@xcpcio/types": "0.
|
|
45
|
+
"@xcpcio/types": "0.82.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/types": "^7.28.6",
|