@larisarozin/dodone-shared 1.0.8 → 1.0.9
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.
|
@@ -122,6 +122,7 @@ declare class Users {
|
|
|
122
122
|
create(request: UserCreateRequest): Promise<DataResponse<User>>;
|
|
123
123
|
update(request: UserUpdateRequest): Promise<DataResponse<User>>;
|
|
124
124
|
delete(id: number): Promise<boolean>;
|
|
125
|
+
isLastTeamAdmin(): Promise<boolean>;
|
|
125
126
|
}
|
|
126
127
|
/**
|
|
127
128
|
* Notifications API operations class
|
package/dist/utils/ApiClient.js
CHANGED
|
@@ -371,6 +371,11 @@ class Users {
|
|
|
371
371
|
return this.client.delete(`/api/user/${id}`, {}, false);
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
+
isLastTeamAdmin() {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
return this.client.get(`/api/user/is-last-team-admin`, {}, false);
|
|
377
|
+
});
|
|
378
|
+
}
|
|
374
379
|
}
|
|
375
380
|
/**
|
|
376
381
|
* Notifications API operations class
|