@proxima-nexus/sdk-typescript 2.1.0 → 2.1.1
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 +12 -0
- package/README.md +0 -2
- package/dist/api/group-api.d.ts +1 -2
- package/dist/api/group-api.js +1 -2
- package/dist/api/user-api.d.ts +3 -4
- package/dist/api/user-api.js +2 -3
- package/dist/enhanced/enhanced-group-api.js +5 -1
- package/dist/enhanced/enhanced-user-api.js +5 -2
- package/dist/models/entity-connection-dto.d.ts +11 -12
- package/dist/models/entity-connection-dto.js +9 -10
- package/dist/models/event-entity-connection-dto.d.ts +11 -12
- package/dist/models/event-entity-connection-dto.js +9 -10
- package/dist/models/group-entity-connection-dto.d.ts +11 -12
- package/dist/models/group-entity-connection-dto.js +9 -10
- package/dist/models/user-entity-connection-dto.d.ts +11 -12
- package/dist/models/user-entity-connection-dto.js +9 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.1.1] - 2026-02-04
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Updated `@proxima-nexus/openapi` to `^2.0.1` and regenerated connection DTOs to match the latest API schema for connection states (including `incoming_request`, `outgoing_request`, and `invited`).
|
|
13
|
+
- Made `state` optional on connection DTOs and cleaned up enum values to better reflect the underlying API.
|
|
14
|
+
- Updated `UserApi` and `GroupApi` connection state enums to use the new state names.
|
|
15
|
+
- Adjusted enhanced client helpers so that:
|
|
16
|
+
- `getPendingFriendRequests` returns both incoming and outgoing friend requests using the new state values.
|
|
17
|
+
- `getBlockedUsers` filters on connection type `blocked` while keeping state `active`.
|
|
18
|
+
- `getMembers` for groups returns active members, admins, and the owner.
|
|
19
|
+
|
|
8
20
|
## [2.1.0] - 2025-01-30
|
|
9
21
|
|
|
10
22
|
### Added
|
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
TypeScript SDK for the Proxima Nexus Data Plane API.
|
|
4
4
|
|
|
5
|
-
> **Note:** Version 2.0.0 introduced breaking changes. See [CHANGELOG.md](./CHANGELOG.md) for migration details. Version 2.1.0 adds an **Enhanced Client** with a simplified, domain-driven API.
|
|
6
|
-
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
9
7
|
```bash
|
package/dist/api/group-api.d.ts
CHANGED
|
@@ -573,8 +573,7 @@ export declare class GroupApi extends BaseAPI implements GroupApiInterface {
|
|
|
573
573
|
export declare enum GroupControllerGetConnectionsStateEnum {
|
|
574
574
|
requested = "requested",
|
|
575
575
|
active = "active",
|
|
576
|
-
|
|
577
|
-
blocked = "blocked"
|
|
576
|
+
invited = "invited"
|
|
578
577
|
}
|
|
579
578
|
export declare enum GroupControllerGetConnectionsTypeEnum {
|
|
580
579
|
member = "member",
|
package/dist/api/group-api.js
CHANGED
|
@@ -897,8 +897,7 @@ var GroupControllerGetConnectionsStateEnum;
|
|
|
897
897
|
(function (GroupControllerGetConnectionsStateEnum) {
|
|
898
898
|
GroupControllerGetConnectionsStateEnum["requested"] = "requested";
|
|
899
899
|
GroupControllerGetConnectionsStateEnum["active"] = "active";
|
|
900
|
-
GroupControllerGetConnectionsStateEnum["
|
|
901
|
-
GroupControllerGetConnectionsStateEnum["blocked"] = "blocked";
|
|
900
|
+
GroupControllerGetConnectionsStateEnum["invited"] = "invited";
|
|
902
901
|
})(GroupControllerGetConnectionsStateEnum || (exports.GroupControllerGetConnectionsStateEnum = GroupControllerGetConnectionsStateEnum = {}));
|
|
903
902
|
var GroupControllerGetConnectionsTypeEnum;
|
|
904
903
|
(function (GroupControllerGetConnectionsTypeEnum) {
|
package/dist/api/user-api.d.ts
CHANGED
|
@@ -617,10 +617,9 @@ export declare enum UserControllerDeleteConnectionTypeEnum {
|
|
|
617
617
|
blocked = "blocked"
|
|
618
618
|
}
|
|
619
619
|
export declare enum UserControllerGetConnectionsStateEnum {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
blocked = "blocked"
|
|
620
|
+
incoming_request = "incoming_request",
|
|
621
|
+
outgoing_request = "outgoing_request",
|
|
622
|
+
active = "active"
|
|
624
623
|
}
|
|
625
624
|
export declare enum UserControllerGetConnectionsTypeEnum {
|
|
626
625
|
friend = "friend",
|
package/dist/api/user-api.js
CHANGED
|
@@ -964,10 +964,9 @@ var UserControllerDeleteConnectionTypeEnum;
|
|
|
964
964
|
})(UserControllerDeleteConnectionTypeEnum || (exports.UserControllerDeleteConnectionTypeEnum = UserControllerDeleteConnectionTypeEnum = {}));
|
|
965
965
|
var UserControllerGetConnectionsStateEnum;
|
|
966
966
|
(function (UserControllerGetConnectionsStateEnum) {
|
|
967
|
-
UserControllerGetConnectionsStateEnum["
|
|
967
|
+
UserControllerGetConnectionsStateEnum["incoming_request"] = "incoming_request";
|
|
968
|
+
UserControllerGetConnectionsStateEnum["outgoing_request"] = "outgoing_request";
|
|
968
969
|
UserControllerGetConnectionsStateEnum["active"] = "active";
|
|
969
|
-
UserControllerGetConnectionsStateEnum["rejected"] = "rejected";
|
|
970
|
-
UserControllerGetConnectionsStateEnum["blocked"] = "blocked";
|
|
971
970
|
})(UserControllerGetConnectionsStateEnum || (exports.UserControllerGetConnectionsStateEnum = UserControllerGetConnectionsStateEnum = {}));
|
|
972
971
|
var UserControllerGetConnectionsTypeEnum;
|
|
973
972
|
(function (UserControllerGetConnectionsTypeEnum) {
|
|
@@ -48,7 +48,11 @@ class EnhancedGroupApi {
|
|
|
48
48
|
return (0, errors_1.unwrap)(this.api.removeConnection(groupId, userId, requesterUserId, { type: mutate_group_entity_connection_dto_1.MutateGroupEntityConnectionDtoTypeEnum.member }));
|
|
49
49
|
}
|
|
50
50
|
async getMembers(groupId, requesterUserId) {
|
|
51
|
-
return (0, errors_1.unwrap)(this.api.getConnections(groupId, [group_api_1.GroupControllerGetConnectionsStateEnum.active], [
|
|
51
|
+
return (0, errors_1.unwrap)(this.api.getConnections(groupId, [group_api_1.GroupControllerGetConnectionsStateEnum.active], [
|
|
52
|
+
group_api_1.GroupControllerGetConnectionsTypeEnum.member,
|
|
53
|
+
group_api_1.GroupControllerGetConnectionsTypeEnum.admin,
|
|
54
|
+
group_api_1.GroupControllerGetConnectionsTypeEnum.owner,
|
|
55
|
+
], requesterUserId));
|
|
52
56
|
}
|
|
53
57
|
async getPendingMembers(groupId, requesterUserId) {
|
|
54
58
|
return (0, errors_1.unwrap)(this.api.getConnections(groupId, [group_api_1.GroupControllerGetConnectionsStateEnum.requested], [group_api_1.GroupControllerGetConnectionsTypeEnum.member], requesterUserId));
|
|
@@ -50,7 +50,10 @@ class EnhancedUserApi {
|
|
|
50
50
|
return (0, errors_1.unwrap)(this.api.getConnections(userId, [user_api_1.UserControllerGetConnectionsStateEnum.active], [user_api_1.UserControllerGetConnectionsTypeEnum.friend], requesterUserId ?? userId));
|
|
51
51
|
}
|
|
52
52
|
async getPendingFriendRequests(userId) {
|
|
53
|
-
return (0, errors_1.unwrap)(this.api.getConnections(userId, [
|
|
53
|
+
return (0, errors_1.unwrap)(this.api.getConnections(userId, [
|
|
54
|
+
user_api_1.UserControllerGetConnectionsStateEnum.outgoing_request,
|
|
55
|
+
user_api_1.UserControllerGetConnectionsStateEnum.incoming_request,
|
|
56
|
+
], [user_api_1.UserControllerGetConnectionsTypeEnum.friend], userId));
|
|
54
57
|
}
|
|
55
58
|
async blockUser(blockingUserId, blockedUserId) {
|
|
56
59
|
return (0, errors_1.unwrap)(this.api.putConnection(blockingUserId, blockedUserId, blockingUserId, { type: mutate_user_connection_dto_1.MutateUserConnectionDtoTypeEnum.blocked }));
|
|
@@ -59,7 +62,7 @@ class EnhancedUserApi {
|
|
|
59
62
|
return (0, errors_1.unwrap)(this.api.deleteConnection(blockingUserId, blockedUserId, user_api_1.UserControllerDeleteConnectionTypeEnum.blocked, blockingUserId));
|
|
60
63
|
}
|
|
61
64
|
async getBlockedUsers(userId) {
|
|
62
|
-
return (0, errors_1.unwrap)(this.api.getConnections(userId, [user_api_1.UserControllerGetConnectionsStateEnum.
|
|
65
|
+
return (0, errors_1.unwrap)(this.api.getConnections(userId, [user_api_1.UserControllerGetConnectionsStateEnum.active], [user_api_1.UserControllerGetConnectionsTypeEnum.blocked], userId));
|
|
63
66
|
}
|
|
64
67
|
async getEvents(userId, requesterUserId) {
|
|
65
68
|
return (0, errors_1.unwrap)(this.api.getEvents(userId, requesterUserId));
|
|
@@ -18,29 +18,28 @@ export interface EntityConnectionDto {
|
|
|
18
18
|
* Date/time the connection was last updated (ISO string)
|
|
19
19
|
*/
|
|
20
20
|
'updatedAt'?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Connection state
|
|
23
|
-
*/
|
|
24
|
-
'state': EntityConnectionDtoStateEnum;
|
|
25
21
|
/**
|
|
26
22
|
* Connection type
|
|
27
23
|
*/
|
|
28
24
|
'type': EntityConnectionDtoTypeEnum;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
rejected = "rejected",
|
|
34
|
-
blocked = "blocked"
|
|
25
|
+
/**
|
|
26
|
+
* Connection state
|
|
27
|
+
*/
|
|
28
|
+
'state'?: EntityConnectionDtoStateEnum;
|
|
35
29
|
}
|
|
36
30
|
export declare enum EntityConnectionDtoTypeEnum {
|
|
37
31
|
attendee = "attendee",
|
|
38
32
|
admin = "admin",
|
|
39
33
|
owner = "owner",
|
|
40
34
|
member = "member",
|
|
41
|
-
admin2 = "admin",
|
|
42
|
-
owner2 = "owner",
|
|
43
35
|
friend = "friend",
|
|
44
36
|
blocked = "blocked",
|
|
45
37
|
none = "none"
|
|
46
38
|
}
|
|
39
|
+
export declare enum EntityConnectionDtoStateEnum {
|
|
40
|
+
incoming_request = "incoming_request",
|
|
41
|
+
outgoing_request = "outgoing_request",
|
|
42
|
+
active = "active",
|
|
43
|
+
requested = "requested",
|
|
44
|
+
invited = "invited"
|
|
45
|
+
}
|
|
@@ -13,23 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
var EntityConnectionDtoStateEnum;
|
|
18
|
-
(function (EntityConnectionDtoStateEnum) {
|
|
19
|
-
EntityConnectionDtoStateEnum["requested"] = "requested";
|
|
20
|
-
EntityConnectionDtoStateEnum["active"] = "active";
|
|
21
|
-
EntityConnectionDtoStateEnum["rejected"] = "rejected";
|
|
22
|
-
EntityConnectionDtoStateEnum["blocked"] = "blocked";
|
|
23
|
-
})(EntityConnectionDtoStateEnum || (exports.EntityConnectionDtoStateEnum = EntityConnectionDtoStateEnum = {}));
|
|
16
|
+
exports.EntityConnectionDtoStateEnum = exports.EntityConnectionDtoTypeEnum = void 0;
|
|
24
17
|
var EntityConnectionDtoTypeEnum;
|
|
25
18
|
(function (EntityConnectionDtoTypeEnum) {
|
|
26
19
|
EntityConnectionDtoTypeEnum["attendee"] = "attendee";
|
|
27
20
|
EntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
28
21
|
EntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
29
22
|
EntityConnectionDtoTypeEnum["member"] = "member";
|
|
30
|
-
EntityConnectionDtoTypeEnum["admin2"] = "admin";
|
|
31
|
-
EntityConnectionDtoTypeEnum["owner2"] = "owner";
|
|
32
23
|
EntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
33
24
|
EntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
34
25
|
EntityConnectionDtoTypeEnum["none"] = "none";
|
|
35
26
|
})(EntityConnectionDtoTypeEnum || (exports.EntityConnectionDtoTypeEnum = EntityConnectionDtoTypeEnum = {}));
|
|
27
|
+
var EntityConnectionDtoStateEnum;
|
|
28
|
+
(function (EntityConnectionDtoStateEnum) {
|
|
29
|
+
EntityConnectionDtoStateEnum["incoming_request"] = "incoming_request";
|
|
30
|
+
EntityConnectionDtoStateEnum["outgoing_request"] = "outgoing_request";
|
|
31
|
+
EntityConnectionDtoStateEnum["active"] = "active";
|
|
32
|
+
EntityConnectionDtoStateEnum["requested"] = "requested";
|
|
33
|
+
EntityConnectionDtoStateEnum["invited"] = "invited";
|
|
34
|
+
})(EntityConnectionDtoStateEnum || (exports.EntityConnectionDtoStateEnum = EntityConnectionDtoStateEnum = {}));
|
|
@@ -18,33 +18,32 @@ export interface EventEntityConnectionDto {
|
|
|
18
18
|
* Date/time the connection was last updated (ISO string)
|
|
19
19
|
*/
|
|
20
20
|
'updatedAt'?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Connection state
|
|
23
|
-
*/
|
|
24
|
-
'state': EventEntityConnectionDtoStateEnum;
|
|
25
21
|
/**
|
|
26
22
|
* Connection type
|
|
27
23
|
*/
|
|
28
24
|
'type': EventEntityConnectionDtoTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Connection state
|
|
27
|
+
*/
|
|
28
|
+
'state'?: EventEntityConnectionDtoStateEnum;
|
|
29
29
|
/**
|
|
30
30
|
* Event ID
|
|
31
31
|
*/
|
|
32
32
|
'eventId': string;
|
|
33
33
|
}
|
|
34
|
-
export declare enum EventEntityConnectionDtoStateEnum {
|
|
35
|
-
requested = "requested",
|
|
36
|
-
active = "active",
|
|
37
|
-
rejected = "rejected",
|
|
38
|
-
blocked = "blocked"
|
|
39
|
-
}
|
|
40
34
|
export declare enum EventEntityConnectionDtoTypeEnum {
|
|
41
35
|
attendee = "attendee",
|
|
42
36
|
admin = "admin",
|
|
43
37
|
owner = "owner",
|
|
44
38
|
member = "member",
|
|
45
|
-
admin2 = "admin",
|
|
46
|
-
owner2 = "owner",
|
|
47
39
|
friend = "friend",
|
|
48
40
|
blocked = "blocked",
|
|
49
41
|
none = "none"
|
|
50
42
|
}
|
|
43
|
+
export declare enum EventEntityConnectionDtoStateEnum {
|
|
44
|
+
incoming_request = "incoming_request",
|
|
45
|
+
outgoing_request = "outgoing_request",
|
|
46
|
+
active = "active",
|
|
47
|
+
requested = "requested",
|
|
48
|
+
invited = "invited"
|
|
49
|
+
}
|
|
@@ -13,23 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
var EventEntityConnectionDtoStateEnum;
|
|
18
|
-
(function (EventEntityConnectionDtoStateEnum) {
|
|
19
|
-
EventEntityConnectionDtoStateEnum["requested"] = "requested";
|
|
20
|
-
EventEntityConnectionDtoStateEnum["active"] = "active";
|
|
21
|
-
EventEntityConnectionDtoStateEnum["rejected"] = "rejected";
|
|
22
|
-
EventEntityConnectionDtoStateEnum["blocked"] = "blocked";
|
|
23
|
-
})(EventEntityConnectionDtoStateEnum || (exports.EventEntityConnectionDtoStateEnum = EventEntityConnectionDtoStateEnum = {}));
|
|
16
|
+
exports.EventEntityConnectionDtoStateEnum = exports.EventEntityConnectionDtoTypeEnum = void 0;
|
|
24
17
|
var EventEntityConnectionDtoTypeEnum;
|
|
25
18
|
(function (EventEntityConnectionDtoTypeEnum) {
|
|
26
19
|
EventEntityConnectionDtoTypeEnum["attendee"] = "attendee";
|
|
27
20
|
EventEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
28
21
|
EventEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
29
22
|
EventEntityConnectionDtoTypeEnum["member"] = "member";
|
|
30
|
-
EventEntityConnectionDtoTypeEnum["admin2"] = "admin";
|
|
31
|
-
EventEntityConnectionDtoTypeEnum["owner2"] = "owner";
|
|
32
23
|
EventEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
33
24
|
EventEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
34
25
|
EventEntityConnectionDtoTypeEnum["none"] = "none";
|
|
35
26
|
})(EventEntityConnectionDtoTypeEnum || (exports.EventEntityConnectionDtoTypeEnum = EventEntityConnectionDtoTypeEnum = {}));
|
|
27
|
+
var EventEntityConnectionDtoStateEnum;
|
|
28
|
+
(function (EventEntityConnectionDtoStateEnum) {
|
|
29
|
+
EventEntityConnectionDtoStateEnum["incoming_request"] = "incoming_request";
|
|
30
|
+
EventEntityConnectionDtoStateEnum["outgoing_request"] = "outgoing_request";
|
|
31
|
+
EventEntityConnectionDtoStateEnum["active"] = "active";
|
|
32
|
+
EventEntityConnectionDtoStateEnum["requested"] = "requested";
|
|
33
|
+
EventEntityConnectionDtoStateEnum["invited"] = "invited";
|
|
34
|
+
})(EventEntityConnectionDtoStateEnum || (exports.EventEntityConnectionDtoStateEnum = EventEntityConnectionDtoStateEnum = {}));
|
|
@@ -18,33 +18,32 @@ export interface GroupEntityConnectionDto {
|
|
|
18
18
|
* Date/time the connection was last updated (ISO string)
|
|
19
19
|
*/
|
|
20
20
|
'updatedAt'?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Connection state
|
|
23
|
-
*/
|
|
24
|
-
'state': GroupEntityConnectionDtoStateEnum;
|
|
25
21
|
/**
|
|
26
22
|
* Connection type
|
|
27
23
|
*/
|
|
28
24
|
'type': GroupEntityConnectionDtoTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Connection state
|
|
27
|
+
*/
|
|
28
|
+
'state'?: GroupEntityConnectionDtoStateEnum;
|
|
29
29
|
/**
|
|
30
30
|
* Group ID
|
|
31
31
|
*/
|
|
32
32
|
'groupId': string;
|
|
33
33
|
}
|
|
34
|
-
export declare enum GroupEntityConnectionDtoStateEnum {
|
|
35
|
-
requested = "requested",
|
|
36
|
-
active = "active",
|
|
37
|
-
rejected = "rejected",
|
|
38
|
-
blocked = "blocked"
|
|
39
|
-
}
|
|
40
34
|
export declare enum GroupEntityConnectionDtoTypeEnum {
|
|
41
35
|
attendee = "attendee",
|
|
42
36
|
admin = "admin",
|
|
43
37
|
owner = "owner",
|
|
44
38
|
member = "member",
|
|
45
|
-
admin2 = "admin",
|
|
46
|
-
owner2 = "owner",
|
|
47
39
|
friend = "friend",
|
|
48
40
|
blocked = "blocked",
|
|
49
41
|
none = "none"
|
|
50
42
|
}
|
|
43
|
+
export declare enum GroupEntityConnectionDtoStateEnum {
|
|
44
|
+
incoming_request = "incoming_request",
|
|
45
|
+
outgoing_request = "outgoing_request",
|
|
46
|
+
active = "active",
|
|
47
|
+
requested = "requested",
|
|
48
|
+
invited = "invited"
|
|
49
|
+
}
|
|
@@ -13,23 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
var GroupEntityConnectionDtoStateEnum;
|
|
18
|
-
(function (GroupEntityConnectionDtoStateEnum) {
|
|
19
|
-
GroupEntityConnectionDtoStateEnum["requested"] = "requested";
|
|
20
|
-
GroupEntityConnectionDtoStateEnum["active"] = "active";
|
|
21
|
-
GroupEntityConnectionDtoStateEnum["rejected"] = "rejected";
|
|
22
|
-
GroupEntityConnectionDtoStateEnum["blocked"] = "blocked";
|
|
23
|
-
})(GroupEntityConnectionDtoStateEnum || (exports.GroupEntityConnectionDtoStateEnum = GroupEntityConnectionDtoStateEnum = {}));
|
|
16
|
+
exports.GroupEntityConnectionDtoStateEnum = exports.GroupEntityConnectionDtoTypeEnum = void 0;
|
|
24
17
|
var GroupEntityConnectionDtoTypeEnum;
|
|
25
18
|
(function (GroupEntityConnectionDtoTypeEnum) {
|
|
26
19
|
GroupEntityConnectionDtoTypeEnum["attendee"] = "attendee";
|
|
27
20
|
GroupEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
28
21
|
GroupEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
29
22
|
GroupEntityConnectionDtoTypeEnum["member"] = "member";
|
|
30
|
-
GroupEntityConnectionDtoTypeEnum["admin2"] = "admin";
|
|
31
|
-
GroupEntityConnectionDtoTypeEnum["owner2"] = "owner";
|
|
32
23
|
GroupEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
33
24
|
GroupEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
34
25
|
GroupEntityConnectionDtoTypeEnum["none"] = "none";
|
|
35
26
|
})(GroupEntityConnectionDtoTypeEnum || (exports.GroupEntityConnectionDtoTypeEnum = GroupEntityConnectionDtoTypeEnum = {}));
|
|
27
|
+
var GroupEntityConnectionDtoStateEnum;
|
|
28
|
+
(function (GroupEntityConnectionDtoStateEnum) {
|
|
29
|
+
GroupEntityConnectionDtoStateEnum["incoming_request"] = "incoming_request";
|
|
30
|
+
GroupEntityConnectionDtoStateEnum["outgoing_request"] = "outgoing_request";
|
|
31
|
+
GroupEntityConnectionDtoStateEnum["active"] = "active";
|
|
32
|
+
GroupEntityConnectionDtoStateEnum["requested"] = "requested";
|
|
33
|
+
GroupEntityConnectionDtoStateEnum["invited"] = "invited";
|
|
34
|
+
})(GroupEntityConnectionDtoStateEnum || (exports.GroupEntityConnectionDtoStateEnum = GroupEntityConnectionDtoStateEnum = {}));
|
|
@@ -18,33 +18,32 @@ export interface UserEntityConnectionDto {
|
|
|
18
18
|
* Date/time the connection was last updated (ISO string)
|
|
19
19
|
*/
|
|
20
20
|
'updatedAt'?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Connection state
|
|
23
|
-
*/
|
|
24
|
-
'state': UserEntityConnectionDtoStateEnum;
|
|
25
21
|
/**
|
|
26
22
|
* Connection type
|
|
27
23
|
*/
|
|
28
24
|
'type': UserEntityConnectionDtoTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Connection state
|
|
27
|
+
*/
|
|
28
|
+
'state'?: UserEntityConnectionDtoStateEnum;
|
|
29
29
|
/**
|
|
30
30
|
* User ID
|
|
31
31
|
*/
|
|
32
32
|
'userId': string;
|
|
33
33
|
}
|
|
34
|
-
export declare enum UserEntityConnectionDtoStateEnum {
|
|
35
|
-
requested = "requested",
|
|
36
|
-
active = "active",
|
|
37
|
-
rejected = "rejected",
|
|
38
|
-
blocked = "blocked"
|
|
39
|
-
}
|
|
40
34
|
export declare enum UserEntityConnectionDtoTypeEnum {
|
|
41
35
|
attendee = "attendee",
|
|
42
36
|
admin = "admin",
|
|
43
37
|
owner = "owner",
|
|
44
38
|
member = "member",
|
|
45
|
-
admin2 = "admin",
|
|
46
|
-
owner2 = "owner",
|
|
47
39
|
friend = "friend",
|
|
48
40
|
blocked = "blocked",
|
|
49
41
|
none = "none"
|
|
50
42
|
}
|
|
43
|
+
export declare enum UserEntityConnectionDtoStateEnum {
|
|
44
|
+
incoming_request = "incoming_request",
|
|
45
|
+
outgoing_request = "outgoing_request",
|
|
46
|
+
active = "active",
|
|
47
|
+
requested = "requested",
|
|
48
|
+
invited = "invited"
|
|
49
|
+
}
|
|
@@ -13,23 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
var UserEntityConnectionDtoStateEnum;
|
|
18
|
-
(function (UserEntityConnectionDtoStateEnum) {
|
|
19
|
-
UserEntityConnectionDtoStateEnum["requested"] = "requested";
|
|
20
|
-
UserEntityConnectionDtoStateEnum["active"] = "active";
|
|
21
|
-
UserEntityConnectionDtoStateEnum["rejected"] = "rejected";
|
|
22
|
-
UserEntityConnectionDtoStateEnum["blocked"] = "blocked";
|
|
23
|
-
})(UserEntityConnectionDtoStateEnum || (exports.UserEntityConnectionDtoStateEnum = UserEntityConnectionDtoStateEnum = {}));
|
|
16
|
+
exports.UserEntityConnectionDtoStateEnum = exports.UserEntityConnectionDtoTypeEnum = void 0;
|
|
24
17
|
var UserEntityConnectionDtoTypeEnum;
|
|
25
18
|
(function (UserEntityConnectionDtoTypeEnum) {
|
|
26
19
|
UserEntityConnectionDtoTypeEnum["attendee"] = "attendee";
|
|
27
20
|
UserEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
28
21
|
UserEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
29
22
|
UserEntityConnectionDtoTypeEnum["member"] = "member";
|
|
30
|
-
UserEntityConnectionDtoTypeEnum["admin2"] = "admin";
|
|
31
|
-
UserEntityConnectionDtoTypeEnum["owner2"] = "owner";
|
|
32
23
|
UserEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
33
24
|
UserEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
34
25
|
UserEntityConnectionDtoTypeEnum["none"] = "none";
|
|
35
26
|
})(UserEntityConnectionDtoTypeEnum || (exports.UserEntityConnectionDtoTypeEnum = UserEntityConnectionDtoTypeEnum = {}));
|
|
27
|
+
var UserEntityConnectionDtoStateEnum;
|
|
28
|
+
(function (UserEntityConnectionDtoStateEnum) {
|
|
29
|
+
UserEntityConnectionDtoStateEnum["incoming_request"] = "incoming_request";
|
|
30
|
+
UserEntityConnectionDtoStateEnum["outgoing_request"] = "outgoing_request";
|
|
31
|
+
UserEntityConnectionDtoStateEnum["active"] = "active";
|
|
32
|
+
UserEntityConnectionDtoStateEnum["requested"] = "requested";
|
|
33
|
+
UserEntityConnectionDtoStateEnum["invited"] = "invited";
|
|
34
|
+
})(UserEntityConnectionDtoStateEnum || (exports.UserEntityConnectionDtoStateEnum = UserEntityConnectionDtoStateEnum = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proxima-nexus/sdk-typescript",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "TypeScript SDK for Proxima Nexus Data Plane API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@openapitools/openapi-generator-cli": "^2.7.0",
|
|
46
|
-
"@proxima-nexus/openapi": "^2.0.
|
|
46
|
+
"@proxima-nexus/openapi": "^2.0.1",
|
|
47
47
|
"@types/node": "^20.10.0",
|
|
48
48
|
"typescript": "^5.3.3",
|
|
49
49
|
"ts-node": "^10.9.2"
|