@proxima-nexus/sdk-typescript 2.4.0 → 2.4.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to the Proxima Nexus TypeScript SDK are documented in this f
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.4.1] - 2026-03-04
9
+
10
+ ### Added
11
+
12
+ - New `associated_group` connection type across entity connection enums (`EntityConnectionDtoTypeEnum`, `EventEntityConnectionDtoTypeEnum`, `EventSeriesEntityConnectionDtoTypeEnum`, `GroupEntityConnectionDtoTypeEnum`, `UserEntityConnectionDtoTypeEnum`, and `MutateEventEntityConnectionDtoTypeEnum`) to represent events and series associated with a group.
13
+ - Updated `EventControllerGetConnectionsTypeEnum` to include `associated_group`, keeping controller-level connection filters aligned with the DTOs.
14
+
8
15
  ## [2.4.0] - 2026-03-04
9
16
 
10
17
  ### Added
@@ -532,5 +532,6 @@ export declare class EventApi extends BaseAPI implements EventApiInterface {
532
532
  export declare enum EventControllerGetConnectionsTypeEnum {
533
533
  attendee = "attendee",
534
534
  admin = "admin",
535
- owner = "owner"
535
+ owner = "owner",
536
+ associated_group = "associated_group"
536
537
  }
@@ -833,4 +833,5 @@ var EventControllerGetConnectionsTypeEnum;
833
833
  EventControllerGetConnectionsTypeEnum["attendee"] = "attendee";
834
834
  EventControllerGetConnectionsTypeEnum["admin"] = "admin";
835
835
  EventControllerGetConnectionsTypeEnum["owner"] = "owner";
836
+ EventControllerGetConnectionsTypeEnum["associated_group"] = "associated_group";
836
837
  })(EventControllerGetConnectionsTypeEnum || (exports.EventControllerGetConnectionsTypeEnum = EventControllerGetConnectionsTypeEnum = {}));
@@ -58,10 +58,16 @@ class EnhancedGroupApi {
58
58
  return (0, errors_1.unwrap)(this.api.getConnections(groupId, [group_api_1.GroupControllerGetConnectionsStateEnum.requested], [group_api_1.GroupControllerGetConnectionsTypeEnum.member], requesterUserId));
59
59
  }
60
60
  async promoteToAdmin(groupId, userId, requesterUserId) {
61
+ // Remove any existing connection
62
+ await (0, errors_1.unwrap)(this.api.removeConnection(groupId, userId, requesterUserId, { type: mutate_group_entity_connection_dto_1.MutateGroupEntityConnectionDtoTypeEnum.member }));
63
+ // Create a new admin connection
61
64
  return (0, errors_1.unwrap)(this.api.addConnection(groupId, userId, requesterUserId, { type: mutate_group_entity_connection_dto_1.MutateGroupEntityConnectionDtoTypeEnum.admin }));
62
65
  }
63
66
  async demoteToMember(groupId, userId, requesterUserId) {
64
- return (0, errors_1.unwrap)(this.api.addConnection(groupId, userId, requesterUserId, { type: mutate_group_entity_connection_dto_1.MutateGroupEntityConnectionDtoTypeEnum.member }));
67
+ // Remove any existing connection
68
+ await (0, errors_1.unwrap)(this.api.removeConnection(groupId, userId, requesterUserId, { type: mutate_group_entity_connection_dto_1.MutateGroupEntityConnectionDtoTypeEnum.admin }));
69
+ // Create a new member connection
70
+ return await (0, errors_1.unwrap)(this.api.addConnection(groupId, userId, requesterUserId, { type: mutate_group_entity_connection_dto_1.MutateGroupEntityConnectionDtoTypeEnum.member }));
65
71
  }
66
72
  async getAdmins(groupId, requesterUserId) {
67
73
  return (0, errors_1.unwrap)(this.api.getConnections(groupId, [group_api_1.GroupControllerGetConnectionsStateEnum.active], [group_api_1.GroupControllerGetConnectionsTypeEnum.admin], requesterUserId));
@@ -31,6 +31,7 @@ export declare enum EntityConnectionDtoTypeEnum {
31
31
  attendee = "attendee",
32
32
  admin = "admin",
33
33
  owner = "owner",
34
+ associated_group = "associated_group",
34
35
  member = "member",
35
36
  friend = "friend",
36
37
  blocked = "blocked",
@@ -19,6 +19,7 @@ var EntityConnectionDtoTypeEnum;
19
19
  EntityConnectionDtoTypeEnum["attendee"] = "attendee";
20
20
  EntityConnectionDtoTypeEnum["admin"] = "admin";
21
21
  EntityConnectionDtoTypeEnum["owner"] = "owner";
22
+ EntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
22
23
  EntityConnectionDtoTypeEnum["member"] = "member";
23
24
  EntityConnectionDtoTypeEnum["friend"] = "friend";
24
25
  EntityConnectionDtoTypeEnum["blocked"] = "blocked";
@@ -35,6 +35,7 @@ export declare enum EventEntityConnectionDtoTypeEnum {
35
35
  attendee = "attendee",
36
36
  admin = "admin",
37
37
  owner = "owner",
38
+ associated_group = "associated_group",
38
39
  member = "member",
39
40
  friend = "friend",
40
41
  blocked = "blocked",
@@ -19,6 +19,7 @@ var EventEntityConnectionDtoTypeEnum;
19
19
  EventEntityConnectionDtoTypeEnum["attendee"] = "attendee";
20
20
  EventEntityConnectionDtoTypeEnum["admin"] = "admin";
21
21
  EventEntityConnectionDtoTypeEnum["owner"] = "owner";
22
+ EventEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
22
23
  EventEntityConnectionDtoTypeEnum["member"] = "member";
23
24
  EventEntityConnectionDtoTypeEnum["friend"] = "friend";
24
25
  EventEntityConnectionDtoTypeEnum["blocked"] = "blocked";
@@ -35,6 +35,7 @@ export declare enum EventSeriesEntityConnectionDtoTypeEnum {
35
35
  attendee = "attendee",
36
36
  admin = "admin",
37
37
  owner = "owner",
38
+ associated_group = "associated_group",
38
39
  member = "member",
39
40
  friend = "friend",
40
41
  blocked = "blocked",
@@ -19,6 +19,7 @@ var EventSeriesEntityConnectionDtoTypeEnum;
19
19
  EventSeriesEntityConnectionDtoTypeEnum["attendee"] = "attendee";
20
20
  EventSeriesEntityConnectionDtoTypeEnum["admin"] = "admin";
21
21
  EventSeriesEntityConnectionDtoTypeEnum["owner"] = "owner";
22
+ EventSeriesEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
22
23
  EventSeriesEntityConnectionDtoTypeEnum["member"] = "member";
23
24
  EventSeriesEntityConnectionDtoTypeEnum["friend"] = "friend";
24
25
  EventSeriesEntityConnectionDtoTypeEnum["blocked"] = "blocked";
@@ -35,6 +35,7 @@ export declare enum GroupEntityConnectionDtoTypeEnum {
35
35
  attendee = "attendee",
36
36
  admin = "admin",
37
37
  owner = "owner",
38
+ associated_group = "associated_group",
38
39
  member = "member",
39
40
  friend = "friend",
40
41
  blocked = "blocked",
@@ -19,6 +19,7 @@ var GroupEntityConnectionDtoTypeEnum;
19
19
  GroupEntityConnectionDtoTypeEnum["attendee"] = "attendee";
20
20
  GroupEntityConnectionDtoTypeEnum["admin"] = "admin";
21
21
  GroupEntityConnectionDtoTypeEnum["owner"] = "owner";
22
+ GroupEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
22
23
  GroupEntityConnectionDtoTypeEnum["member"] = "member";
23
24
  GroupEntityConnectionDtoTypeEnum["friend"] = "friend";
24
25
  GroupEntityConnectionDtoTypeEnum["blocked"] = "blocked";
@@ -18,5 +18,6 @@ export interface MutateEventEntityConnectionDto {
18
18
  export declare enum MutateEventEntityConnectionDtoTypeEnum {
19
19
  attendee = "attendee",
20
20
  admin = "admin",
21
- owner = "owner"
21
+ owner = "owner",
22
+ associated_group = "associated_group"
22
23
  }
@@ -19,4 +19,5 @@ var MutateEventEntityConnectionDtoTypeEnum;
19
19
  MutateEventEntityConnectionDtoTypeEnum["attendee"] = "attendee";
20
20
  MutateEventEntityConnectionDtoTypeEnum["admin"] = "admin";
21
21
  MutateEventEntityConnectionDtoTypeEnum["owner"] = "owner";
22
+ MutateEventEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
22
23
  })(MutateEventEntityConnectionDtoTypeEnum || (exports.MutateEventEntityConnectionDtoTypeEnum = MutateEventEntityConnectionDtoTypeEnum = {}));
@@ -35,6 +35,7 @@ export declare enum UserEntityConnectionDtoTypeEnum {
35
35
  attendee = "attendee",
36
36
  admin = "admin",
37
37
  owner = "owner",
38
+ associated_group = "associated_group",
38
39
  member = "member",
39
40
  friend = "friend",
40
41
  blocked = "blocked",
@@ -19,6 +19,7 @@ var UserEntityConnectionDtoTypeEnum;
19
19
  UserEntityConnectionDtoTypeEnum["attendee"] = "attendee";
20
20
  UserEntityConnectionDtoTypeEnum["admin"] = "admin";
21
21
  UserEntityConnectionDtoTypeEnum["owner"] = "owner";
22
+ UserEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
22
23
  UserEntityConnectionDtoTypeEnum["member"] = "member";
23
24
  UserEntityConnectionDtoTypeEnum["friend"] = "friend";
24
25
  UserEntityConnectionDtoTypeEnum["blocked"] = "blocked";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proxima-nexus/sdk-typescript",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "TypeScript SDK for Proxima Nexus Data Plane API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",