@factorialco/api-client 4.0.0-beta.2027010112 → 4.0.0-beta.2027010113

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.
@@ -3394,7 +3394,7 @@ export declare const getApi20270101ResourcesTeamsMemberships: <ThrowOnError exte
3394
3394
  /**
3395
3395
  * Creates a Membership
3396
3396
  *
3397
- * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team, the `lead` flag is applied when you send one, and the existing row (with its existing id) is returned instead of a new resource. Omitting `lead` leaves a reused row's leadership as it was, so replaying an addition never demotes a current lead; a genuinely new row is created without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
3397
+ * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team and the existing row (with its existing id) is returned instead of a new resource. On a reused row, `lead: true` promotes the employee, while `lead: false` or omitting `lead` leaves their leadership as it was: an addition never demotes a current lead, so use the update endpoint to demote. A genuinely new row is created with the `lead` you send, or without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
3398
3398
  */
3399
3399
  export declare const postApi20270101ResourcesTeamsMemberships: <ThrowOnError extends boolean = false>(options?: Options<PostApi20270101ResourcesTeamsMembershipsData, ThrowOnError>) => RequestResult<PostApi20270101ResourcesTeamsMembershipsResponses, PostApi20270101ResourcesTeamsMembershipsErrors, ThrowOnError>;
3400
3400
  /**
@@ -6743,7 +6743,7 @@ exports.getApi20270101ResourcesTeamsMemberships = getApi20270101ResourcesTeamsMe
6743
6743
  /**
6744
6744
  * Creates a Membership
6745
6745
  *
6746
- * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team, the `lead` flag is applied when you send one, and the existing row (with its existing id) is returned instead of a new resource. Omitting `lead` leaves a reused row's leadership as it was, so replaying an addition never demotes a current lead; a genuinely new row is created without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
6746
+ * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team and the existing row (with its existing id) is returned instead of a new resource. On a reused row, `lead: true` promotes the employee, while `lead: false` or omitting `lead` leaves their leadership as it was: an addition never demotes a current lead, so use the update endpoint to demote. A genuinely new row is created with the `lead` you send, or without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
6747
6747
  */
6748
6748
  const postApi20270101ResourcesTeamsMemberships = (options) => (options?.client ?? client_gen_js_1.client).post({
6749
6749
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
@@ -3394,7 +3394,7 @@ export declare const getApi20270101ResourcesTeamsMemberships: <ThrowOnError exte
3394
3394
  /**
3395
3395
  * Creates a Membership
3396
3396
  *
3397
- * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team, the `lead` flag is applied when you send one, and the existing row (with its existing id) is returned instead of a new resource. Omitting `lead` leaves a reused row's leadership as it was, so replaying an addition never demotes a current lead; a genuinely new row is created without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
3397
+ * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team and the existing row (with its existing id) is returned instead of a new resource. On a reused row, `lead: true` promotes the employee, while `lead: false` or omitting `lead` leaves their leadership as it was: an addition never demotes a current lead, so use the update endpoint to demote. A genuinely new row is created with the `lead` you send, or without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
3398
3398
  */
3399
3399
  export declare const postApi20270101ResourcesTeamsMemberships: <ThrowOnError extends boolean = false>(options?: Options<PostApi20270101ResourcesTeamsMembershipsData, ThrowOnError>) => RequestResult<PostApi20270101ResourcesTeamsMembershipsResponses, PostApi20270101ResourcesTeamsMembershipsErrors, ThrowOnError>;
3400
3400
  /**
@@ -6221,7 +6221,7 @@ export const getApi20270101ResourcesTeamsMemberships = (options) => (options?.cl
6221
6221
  /**
6222
6222
  * Creates a Membership
6223
6223
  *
6224
- * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team, the `lead` flag is applied when you send one, and the existing row (with its existing id) is returned instead of a new resource. Omitting `lead` leaves a reused row's leadership as it was, so replaying an addition never demotes a current lead; a genuinely new row is created without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
6224
+ * Assign an employee to a team, meaning create a membership. For companies with nested teams, two extra semantics apply. Propagation: memberships are inherited upwards, so after adding an employee to a sub-team, inherited membership rows for its ancestor teams are materialized asynchronously — rows you did not create will appear in later reads. Reuse: if the employee already has a membership row on that team (typically an inherited one), no new row is created — the employee becomes a direct member of the team and the existing row (with its existing id) is returned instead of a new resource. On a reused row, `lead: true` promotes the employee, while `lead: false` or omitting `lead` leaves their leadership as it was: an addition never demotes a current lead, so use the update endpoint to demote. A genuinely new row is created with the `lead` you send, or without it. The response is still `201` when an existing row is reused, so compare the returned `id` against what you already hold to tell the two cases apart.
6225
6225
  */
6226
6226
  export const postApi20270101ResourcesTeamsMemberships = (options) => (options?.client ?? client).post({
6227
6227
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/api-client",
3
- "version": "4.0.0-beta.2027010112",
3
+ "version": "4.0.0-beta.2027010113",
4
4
  "description": "Official TypeScript SDK for the Factorial API",
5
5
  "repository": {
6
6
  "type": "git",