@checkcourt/sdk 0.6.0 → 0.7.0
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.
|
@@ -242,11 +242,11 @@ export interface paths {
|
|
|
242
242
|
* @description **Required scope:** `members:invite`
|
|
243
243
|
*
|
|
244
244
|
* Adds a member to the club. Three flows, decided by the input:
|
|
245
|
-
* 1. **Email already has an account** (in no other club): the
|
|
245
|
+
* 1. **Email already has an account** (in no other club): the account owner is invited. The membership stays pending (`awaitingAcceptance: true`) until they accept after their next login; until then the club cannot change the account's name, email, phone or password, and deleting the member only withdraws the invitation. `sendEmail` controls the invitation mail.
|
|
246
246
|
* 2. **New email**: a new account is created and, unless `sendEmail=false`, a welcome mail with a claim link is sent.
|
|
247
247
|
* 3. **`noOwnEmail=true`**: for members without their own mailbox. Creates an account with a synthetic address, stores the given email as forwarding address and requires a `password` (min 8 chars) the member uses to log in.
|
|
248
248
|
*
|
|
249
|
-
* `roleIds` (optional) assigns roles besides the base role Mitglied
|
|
249
|
+
* `roleIds` (optional) assigns roles besides the base role Mitglied and requires `roles:manage`, which only personal keys can hold: the caller must outrank each role and hold all of its scopes (403). Unknown ids fail with 404 before anything is created.
|
|
250
250
|
*
|
|
251
251
|
* Fails with 422 when the club's member limit is reached, the member number is taken, the email already belongs to this club, or the data processing agreement (AVV) has not been signed yet.
|
|
252
252
|
*/
|
|
@@ -302,7 +302,7 @@ export interface paths {
|
|
|
302
302
|
* End a membership
|
|
303
303
|
* @description **Required scope:** `members:delete`
|
|
304
304
|
*
|
|
305
|
-
* Removes the member from the club with a full cascade: future bookings are cancelled (with email notification), open guest fees are resolved according to `orphanedFeeAction`, and if this was the user's only club the account is anonymized. Members who lead a team cannot be deleted until leadership is handed over, and the club's last administrator cannot be deleted (422). The response summarizes what happened.
|
|
305
|
+
* Removes the member from the club with a full cascade: future bookings are cancelled (with email notification), open guest fees are resolved according to `orphanedFeeAction`, and if this was the user's only club the account is anonymized (not for a pending invitation, which only withdraws the invitation). The caller must outrank the member (403): only administrators may delete members holding an equal or higher role; management keys act with their creator's rank but never on administrators. Members who lead a team cannot be deleted until leadership is handed over, and the club's last administrator cannot be deleted (422). The response summarizes what happened.
|
|
306
306
|
*/
|
|
307
307
|
delete: operations["deleteMember"];
|
|
308
308
|
options?: never;
|
|
@@ -311,7 +311,7 @@ export interface paths {
|
|
|
311
311
|
* Update a member
|
|
312
312
|
* @description **Required scope:** `members:write`
|
|
313
313
|
*
|
|
314
|
-
* `name` and `email` are required (send the current values to keep them); `phone` and `memberNumber` are optional. For forwarding-only accounts the email update changes the forwarding address, not the login address. If the user is also a member of another club, name/email/phone are left untouched (they are account-level) and only the member number changes. Sessions cannot edit their own account; management keys are exempt from that rule. Member numbers are unique per club (422 on collision). Roles are not part of this endpoint: use `PUT /members/{id}/roles`. Sending `role` fails with 400.
|
|
314
|
+
* `name` and `email` are required (send the current values to keep them); `phone` and `memberNumber` are optional. For forwarding-only accounts the email update changes the forwarding address, not the login address. If the user is also a member of another club, name/email/phone are left untouched (they are account-level) and only the member number changes. Sessions cannot edit their own account; management keys are exempt from that rule. Changing the email requires outranking the member (403): only administrators may change the email of members holding an equal or higher role; management keys act with their creator's rank but never on administrators. While the member's invitation is pending, changing name, email or phone fails with 422. Member numbers are unique per club (422 on collision). Roles are not part of this endpoint: use `PUT /members/{id}/roles`. Sending `role` fails with 400.
|
|
315
315
|
*/
|
|
316
316
|
patch: operations["updateMember"];
|
|
317
317
|
trace?: never;
|
|
@@ -3586,7 +3586,12 @@ export interface operations {
|
|
|
3586
3586
|
[name: string]: unknown;
|
|
3587
3587
|
};
|
|
3588
3588
|
content: {
|
|
3589
|
-
"application/json":
|
|
3589
|
+
"application/json": {
|
|
3590
|
+
/** @constant */
|
|
3591
|
+
success: true;
|
|
3592
|
+
/** @description True when an existing account was invited and its owner still has to accept */
|
|
3593
|
+
awaitingAcceptance: boolean;
|
|
3594
|
+
};
|
|
3590
3595
|
};
|
|
3591
3596
|
};
|
|
3592
3597
|
400: components["responses"]["ValidationError"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OPENAPI_SPEC_SHA256 = "
|
|
1
|
+
export declare const OPENAPI_SPEC_SHA256 = "838f8beb1f933593ea8eea8ea14eb78b12e0e8d61109254f5e72bec10b57e58a";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs from the CheckCourt OpenAPI spec. Do not edit.
|
|
2
|
-
export const OPENAPI_SPEC_SHA256 = "
|
|
2
|
+
export const OPENAPI_SPEC_SHA256 = "838f8beb1f933593ea8eea8ea14eb78b12e0e8d61109254f5e72bec10b57e58a";
|