@colearn/microservices-kit
Advanced tools
Comparing version 0.0.31 to 0.0.32
@@ -15,2 +15,6 @@ "use strict"; | ||
} | ||
if ((m === null || m === void 0 ? void 0 : m.membershipType) === types_1.PersonMembershipType.Homeroom) { | ||
const hm = m; | ||
parts.push(m.membershipType, hm.hoomeroomId, hm.role); | ||
} | ||
if ((m === null || m === void 0 ? void 0 : m.membershipType) === types_1.PersonMembershipType.School) { | ||
@@ -17,0 +21,0 @@ const sm = m; |
@@ -19,3 +19,4 @@ export declare type Maybe<T> = T | null; | ||
Family = "family", | ||
School = "school" | ||
School = "school", | ||
Homeroom = "homeroom" | ||
} | ||
@@ -76,2 +77,9 @@ export declare type PersonMembership = { | ||
}; | ||
export declare type HomeroomMember = { | ||
hoomeroomId: string; | ||
id: string; | ||
membershipType?: Maybe<PersonMembershipType>; | ||
personId: string; | ||
role?: Maybe<HomeroomMembershipRole>; | ||
}; | ||
export declare type Child = FamilyMember & PersonMembership & { | ||
@@ -91,1 +99,21 @@ id: string; | ||
}; | ||
export declare enum HomeroomMembershipRole { | ||
Student = "student", | ||
Teacher = "teacher" | ||
} | ||
export declare type HomeroomStudent = HomeroomMember & PersonMembership & { | ||
age?: string; | ||
grade?: string; | ||
hoomeroomId: string; | ||
id: string; | ||
membershipType?: Maybe<PersonMembershipType>; | ||
personId: string; | ||
role?: Maybe<HomeroomMembershipRole>; | ||
}; | ||
export declare type HomeroomTeacher = HomeroomMember & PersonMembership & { | ||
hoomeroomId: string; | ||
id: string; | ||
membershipType?: Maybe<PersonMembershipType>; | ||
personId: string; | ||
role?: Maybe<HomeroomMembershipRole>; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FamilyRole = exports.SchoolStaffPosition = exports.SchoolMembershipRole = exports.PersonMembershipType = exports.SystemRole = void 0; | ||
exports.HomeroomMembershipRole = exports.FamilyRole = exports.SchoolStaffPosition = exports.SchoolMembershipRole = exports.PersonMembershipType = exports.SystemRole = void 0; | ||
var SystemRole; | ||
@@ -14,2 +14,3 @@ (function (SystemRole) { | ||
PersonMembershipType["School"] = "school"; | ||
PersonMembershipType["Homeroom"] = "homeroom"; | ||
})(PersonMembershipType = exports.PersonMembershipType || (exports.PersonMembershipType = {})); | ||
@@ -32,2 +33,7 @@ var SchoolMembershipRole; | ||
})(FamilyRole = exports.FamilyRole || (exports.FamilyRole = {})); | ||
var HomeroomMembershipRole; | ||
(function (HomeroomMembershipRole) { | ||
HomeroomMembershipRole["Student"] = "student"; | ||
HomeroomMembershipRole["Teacher"] = "teacher"; | ||
})(HomeroomMembershipRole = exports.HomeroomMembershipRole || (exports.HomeroomMembershipRole = {})); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@colearn/microservices-kit", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"description": "colearn microservice kit", | ||
@@ -5,0 +5,0 @@ "author": "Colearn", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51471
854