@noatgnu/cupcake-core 1.2.15 → 1.2.17

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/index.d.ts CHANGED
@@ -369,7 +369,6 @@ declare enum AnnotationType {
369
369
  Calculator = "calculator",
370
370
  MolarityCalculator = "mcalculator",
371
371
  Randomization = "randomization",
372
- Instrument = "instrument",
373
372
  Metadata = "metadata",
374
373
  Booking = "booking"
375
374
  }
@@ -1148,6 +1147,18 @@ declare class LabGroupService extends BaseApiService {
1148
1147
  removeMemberFromLabGroup(id: number, userId: number): Observable<{
1149
1148
  message: string;
1150
1149
  }>;
1150
+ /**
1151
+ * Check if a user is a member of a lab group
1152
+ * @param id Lab group ID
1153
+ * @param userId User ID to check (optional, defaults to current user)
1154
+ * @returns Membership status including direct and indirect membership
1155
+ */
1156
+ checkMembership(id: number, userId?: number): Observable<{
1157
+ isMember: boolean;
1158
+ isDirectMember: boolean;
1159
+ userId: number;
1160
+ userUsername: string;
1161
+ }>;
1151
1162
  getRootLabGroups(params?: Omit<LabGroupQueryParams, 'parentGroup'>): Observable<LabGroupQueryResponse>;
1152
1163
  getSubGroups(parentGroupId: number, params?: Omit<LabGroupQueryParams, 'parentGroup'>): Observable<LabGroupQueryResponse>;
1153
1164
  getLabGroupInvitations(params?: LabGroupInvitationQueryParams): Observable<LabGroupInvitationQueryResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noatgnu/cupcake-core",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "A reusable Angular library that provides user management, authentication, and site configuration functionality for cupcake applications.",
5
5
  "keywords": [
6
6
  "angular",