@noatgnu/cupcake-core 1.2.15 → 1.2.16

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
@@ -1148,6 +1148,18 @@ declare class LabGroupService extends BaseApiService {
1148
1148
  removeMemberFromLabGroup(id: number, userId: number): Observable<{
1149
1149
  message: string;
1150
1150
  }>;
1151
+ /**
1152
+ * Check if a user is a member of a lab group
1153
+ * @param id Lab group ID
1154
+ * @param userId User ID to check (optional, defaults to current user)
1155
+ * @returns Membership status including direct and indirect membership
1156
+ */
1157
+ checkMembership(id: number, userId?: number): Observable<{
1158
+ isMember: boolean;
1159
+ isDirectMember: boolean;
1160
+ userId: number;
1161
+ userUsername: string;
1162
+ }>;
1151
1163
  getRootLabGroups(params?: Omit<LabGroupQueryParams, 'parentGroup'>): Observable<LabGroupQueryResponse>;
1152
1164
  getSubGroups(parentGroupId: number, params?: Omit<LabGroupQueryParams, 'parentGroup'>): Observable<LabGroupQueryResponse>;
1153
1165
  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.16",
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",