@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 +7 -0
- package/dist/api/event-api.d.ts +2 -1
- package/dist/api/event-api.js +1 -0
- package/dist/enhanced/enhanced-group-api.js +7 -1
- package/dist/models/entity-connection-dto.d.ts +1 -0
- package/dist/models/entity-connection-dto.js +1 -0
- package/dist/models/event-entity-connection-dto.d.ts +1 -0
- package/dist/models/event-entity-connection-dto.js +1 -0
- package/dist/models/event-series-entity-connection-dto.d.ts +1 -0
- package/dist/models/event-series-entity-connection-dto.js +1 -0
- package/dist/models/group-entity-connection-dto.d.ts +1 -0
- package/dist/models/group-entity-connection-dto.js +1 -0
- package/dist/models/mutate-event-entity-connection-dto.d.ts +2 -1
- package/dist/models/mutate-event-entity-connection-dto.js +1 -0
- package/dist/models/user-entity-connection-dto.d.ts +1 -0
- package/dist/models/user-entity-connection-dto.js +1 -0
- package/package.json +1 -1
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
|
package/dist/api/event-api.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/api/event-api.js
CHANGED
|
@@ -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
|
-
|
|
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));
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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 = {}));
|
|
@@ -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";
|