chofex-cli 0.1.2 → 0.1.4
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.js +10 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30860,6 +30860,15 @@ var RequirementSchema = exports_Schema.Struct({
|
|
|
30860
30860
|
field: exports_Schema.String,
|
|
30861
30861
|
reason: exports_Schema.String
|
|
30862
30862
|
});
|
|
30863
|
+
var inPersonShirtSizeRequirement = {
|
|
30864
|
+
field: "shirtSize",
|
|
30865
|
+
reason: "Required for in-person participants"
|
|
30866
|
+
};
|
|
30867
|
+
var addShirtSizeRequirement = (requirements, participationMode, shirtSize) => {
|
|
30868
|
+
if (participationMode === "in_person" && !shirtSize) {
|
|
30869
|
+
requirements.push(inPersonShirtSizeRequirement);
|
|
30870
|
+
}
|
|
30871
|
+
};
|
|
30863
30872
|
var applicationSemanticRequirements = (input) => {
|
|
30864
30873
|
if (input.teamPreference === "have_team" && !input.teamName) {
|
|
30865
30874
|
return [
|
|
@@ -30870,12 +30879,7 @@ var applicationSemanticRequirements = (input) => {
|
|
|
30870
30879
|
};
|
|
30871
30880
|
var acceptedDetailsSemanticRequirements = (input, participationMode) => {
|
|
30872
30881
|
const requirements = [];
|
|
30873
|
-
|
|
30874
|
-
requirements.push({
|
|
30875
|
-
field: "shirtSize",
|
|
30876
|
-
reason: "Required for in-person participants"
|
|
30877
|
-
});
|
|
30878
|
-
}
|
|
30882
|
+
addShirtSizeRequirement(requirements, participationMode, input.shirtSize);
|
|
30879
30883
|
const birthDate = exports_DateTime.make(`${input.dateOfBirth}T00:00:00.000Z`);
|
|
30880
30884
|
if (exports_Option.isNone(birthDate) || exports_DateTime.formatIsoDateUtc(birthDate.value) !== input.dateOfBirth || !exports_DateTime.isPastUnsafe(birthDate.value)) {
|
|
30881
30885
|
requirements.push({
|