@communecter/cocolight-api-client 1.0.80 → 1.0.82

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.
@@ -562,6 +562,8 @@ export declare class User extends BaseEntity<UserItemNormalized> {
562
562
  * vers l'organisation ou le projet parent. Si l'utilisateur n'a pas encore de lien,
563
563
  * une demande de connexion est créée.
564
564
  *
565
+ * @param {Object} [options] - Options de la méthode
566
+ * @param {boolean} [options.admin=false] - Si true, utilise "admin" comme connectType au lieu du type par défaut (connectTypeConnect)
565
567
  * @returns {Promise<unknown>} La réponse de l'API après création de la demande
566
568
  * @throws {ApiError} Si l'utilisateur n'est pas connecté, pas admin, ou si le parent n'est pas défini
567
569
  * @throws {ApiError} Si l'utilisateur est déjà en attente de validation
@@ -569,14 +571,19 @@ export declare class User extends BaseEntity<UserItemNormalized> {
569
571
  *
570
572
  * @example
571
573
  * ```typescript
572
- * // Un admin récupère les membres et envoie une invitation
574
+ * // Un admin récupère les membres et envoie une invitation (type par défaut)
573
575
  * const org = await me.organization({ slug: "myOrg" });
574
576
  * const users = await org.getMembers();
575
577
  * const user = users.results[0];
576
578
  * await user.sendRequestToJoinParent();
579
+ *
580
+ * // Avec le type admin explicite
581
+ * await user.sendRequestToJoinParent({ admin: true });
577
582
  * ```
578
583
  */
579
- sendRequestToJoinParent(): Promise<unknown>;
584
+ sendRequestToJoinParent({ admin }?: {
585
+ admin: boolean;
586
+ }): Promise<unknown>;
580
587
  /**
581
588
  * Valide une demande de membre en attente de validation.
582
589
  *
@@ -11030,6 +11030,9 @@ declare const endpoints: {
11030
11030
  minProperties?: undefined;
11031
11031
  oneOf?: undefined;
11032
11032
  };
11033
+ indexMax: {
11034
+ type: string;
11035
+ };
11033
11036
  indexMin: {
11034
11037
  default: number;
11035
11038
  minimum: number;
@@ -11057,6 +11060,25 @@ declare const endpoints: {
11057
11060
  default: boolean;
11058
11061
  type: string;
11059
11062
  };
11063
+ ranges: {
11064
+ additionalProperties: boolean;
11065
+ patternProperties: {
11066
+ "^[^\\s]+$": {
11067
+ additionalProperties: boolean;
11068
+ properties: {
11069
+ indexMax: {
11070
+ type: string;
11071
+ };
11072
+ indexMin: {
11073
+ type: string;
11074
+ };
11075
+ };
11076
+ required: string[];
11077
+ type: string;
11078
+ };
11079
+ };
11080
+ type: string;
11081
+ };
11060
11082
  searchType: {
11061
11083
  const: string[];
11062
11084
  default: string[];
@@ -11139,8 +11161,6 @@ declare const endpoints: {
11139
11161
  parentCommentId?: undefined;
11140
11162
  path?: undefined;
11141
11163
  params?: undefined;
11142
- indexMax?: undefined;
11143
- ranges?: undefined;
11144
11164
  searchBy?: undefined;
11145
11165
  searchTags?: undefined;
11146
11166
  countryCode?: undefined;