@proxima-nexus/sdk-typescript 2.4.2 → 2.4.3
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/dist/api/event-api.d.ts +2 -1
- package/dist/api/event-api.js +1 -0
- package/dist/api/group-api.d.ts +2 -1
- package/dist/api/group-api.js +1 -0
- package/dist/api/user-api.d.ts +30 -10
- package/dist/api/user-api.js +42 -14
- package/dist/enhanced/enhanced-group-api.js +4 -1
- package/dist/enhanced/enhanced-user-api.d.ts +2 -2
- package/dist/enhanced/enhanced-user-api.js +4 -4
- 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/mutate-group-entity-connection-dto.d.ts +2 -1
- package/dist/models/mutate-group-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,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.4.3] - 2026-03-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Added `nearby` connection type support across connection enums and controller filters (`EventControllerGetConnectionsTypeEnum`, `GroupControllerGetConnectionsTypeEnum`, and related `*EntityConnectionDtoTypeEnum` / mutate enums).
|
|
13
|
+
- Added optional `latitude` and `longitude` query params to `UserApi.getEvents` and `UserApi.getGroups` for nearby event/group discovery.
|
|
14
|
+
- Enhanced user helpers now accept location coordinates and pass them through in `EnhancedUserApi.getEvents` and `EnhancedUserApi.getGroups`.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Updated `EnhancedGroupApi.getMembers` to include both `active` and `requested` connection states when listing group members.
|
|
19
|
+
|
|
8
20
|
## [2.4.1] - 2026-03-04
|
|
9
21
|
|
|
10
22
|
### Added
|
package/dist/api/event-api.d.ts
CHANGED
package/dist/api/event-api.js
CHANGED
|
@@ -834,4 +834,5 @@ var EventControllerGetConnectionsTypeEnum;
|
|
|
834
834
|
EventControllerGetConnectionsTypeEnum["admin"] = "admin";
|
|
835
835
|
EventControllerGetConnectionsTypeEnum["owner"] = "owner";
|
|
836
836
|
EventControllerGetConnectionsTypeEnum["associated_group"] = "associated_group";
|
|
837
|
+
EventControllerGetConnectionsTypeEnum["nearby"] = "nearby";
|
|
837
838
|
})(EventControllerGetConnectionsTypeEnum || (exports.EventControllerGetConnectionsTypeEnum = EventControllerGetConnectionsTypeEnum = {}));
|
package/dist/api/group-api.d.ts
CHANGED
package/dist/api/group-api.js
CHANGED
|
@@ -997,4 +997,5 @@ var GroupControllerGetConnectionsTypeEnum;
|
|
|
997
997
|
GroupControllerGetConnectionsTypeEnum["member"] = "member";
|
|
998
998
|
GroupControllerGetConnectionsTypeEnum["admin"] = "admin";
|
|
999
999
|
GroupControllerGetConnectionsTypeEnum["owner"] = "owner";
|
|
1000
|
+
GroupControllerGetConnectionsTypeEnum["nearby"] = "nearby";
|
|
1000
1001
|
})(GroupControllerGetConnectionsTypeEnum || (exports.GroupControllerGetConnectionsTypeEnum = GroupControllerGetConnectionsTypeEnum = {}));
|
package/dist/api/user-api.d.ts
CHANGED
|
@@ -80,20 +80,24 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
80
80
|
* @param {string} userId
|
|
81
81
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
82
82
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
83
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
84
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
83
85
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
84
86
|
* @param {*} [options] Override http request option.
|
|
85
87
|
* @throws {RequiredError}
|
|
86
88
|
*/
|
|
87
|
-
getEvents: (userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
89
|
+
getEvents: (userId: string, from?: string, to?: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
88
90
|
/**
|
|
89
91
|
*
|
|
90
92
|
* @summary Get groups of a user
|
|
91
93
|
* @param {string} userId
|
|
94
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
95
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
92
96
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
93
97
|
* @param {*} [options] Override http request option.
|
|
94
98
|
* @throws {RequiredError}
|
|
95
99
|
*/
|
|
96
|
-
getGroups: (userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
100
|
+
getGroups: (userId: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
97
101
|
/**
|
|
98
102
|
* Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.
|
|
99
103
|
* @summary Create or update a connection with another user
|
|
@@ -202,20 +206,24 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
202
206
|
* @param {string} userId
|
|
203
207
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
204
208
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
209
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
210
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
205
211
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
206
212
|
* @param {*} [options] Override http request option.
|
|
207
213
|
* @throws {RequiredError}
|
|
208
214
|
*/
|
|
209
|
-
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventEntityConnectionDto>>>;
|
|
215
|
+
getEvents(userId: string, from?: string, to?: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventEntityConnectionDto>>>;
|
|
210
216
|
/**
|
|
211
217
|
*
|
|
212
218
|
* @summary Get groups of a user
|
|
213
219
|
* @param {string} userId
|
|
220
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
221
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
214
222
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
215
223
|
* @param {*} [options] Override http request option.
|
|
216
224
|
* @throws {RequiredError}
|
|
217
225
|
*/
|
|
218
|
-
getGroups(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupEntityConnectionDto>>>;
|
|
226
|
+
getGroups(userId: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupEntityConnectionDto>>>;
|
|
219
227
|
/**
|
|
220
228
|
* Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.
|
|
221
229
|
* @summary Create or update a connection with another user
|
|
@@ -324,20 +332,24 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
324
332
|
* @param {string} userId
|
|
325
333
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
326
334
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
335
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
336
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
327
337
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
328
338
|
* @param {*} [options] Override http request option.
|
|
329
339
|
* @throws {RequiredError}
|
|
330
340
|
*/
|
|
331
|
-
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
341
|
+
getEvents(userId: string, from?: string, to?: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
332
342
|
/**
|
|
333
343
|
*
|
|
334
344
|
* @summary Get groups of a user
|
|
335
345
|
* @param {string} userId
|
|
346
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
347
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
336
348
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
337
349
|
* @param {*} [options] Override http request option.
|
|
338
350
|
* @throws {RequiredError}
|
|
339
351
|
*/
|
|
340
|
-
getGroups(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GroupEntityConnectionDto>>;
|
|
352
|
+
getGroups(userId: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GroupEntityConnectionDto>>;
|
|
341
353
|
/**
|
|
342
354
|
* Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.
|
|
343
355
|
* @summary Create or update a connection with another user
|
|
@@ -446,20 +458,24 @@ export interface UserApiInterface {
|
|
|
446
458
|
* @param {string} userId
|
|
447
459
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
448
460
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
461
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
462
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
449
463
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
450
464
|
* @param {*} [options] Override http request option.
|
|
451
465
|
* @throws {RequiredError}
|
|
452
466
|
*/
|
|
453
|
-
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
467
|
+
getEvents(userId: string, from?: string, to?: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
454
468
|
/**
|
|
455
469
|
*
|
|
456
470
|
* @summary Get groups of a user
|
|
457
471
|
* @param {string} userId
|
|
472
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
473
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
458
474
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
459
475
|
* @param {*} [options] Override http request option.
|
|
460
476
|
* @throws {RequiredError}
|
|
461
477
|
*/
|
|
462
|
-
getGroups(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GroupEntityConnectionDto>>;
|
|
478
|
+
getGroups(userId: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GroupEntityConnectionDto>>;
|
|
463
479
|
/**
|
|
464
480
|
* Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.
|
|
465
481
|
* @summary Create or update a connection with another user
|
|
@@ -568,20 +584,24 @@ export declare class UserApi extends BaseAPI implements UserApiInterface {
|
|
|
568
584
|
* @param {string} userId
|
|
569
585
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
570
586
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
587
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
588
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
571
589
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
572
590
|
* @param {*} [options] Override http request option.
|
|
573
591
|
* @throws {RequiredError}
|
|
574
592
|
*/
|
|
575
|
-
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventEntityConnectionDto[], any, {}>>;
|
|
593
|
+
getEvents(userId: string, from?: string, to?: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventEntityConnectionDto[], any, {}>>;
|
|
576
594
|
/**
|
|
577
595
|
*
|
|
578
596
|
* @summary Get groups of a user
|
|
579
597
|
* @param {string} userId
|
|
598
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
599
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
580
600
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
581
601
|
* @param {*} [options] Override http request option.
|
|
582
602
|
* @throws {RequiredError}
|
|
583
603
|
*/
|
|
584
|
-
getGroups(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupEntityConnectionDto[], any, {}>>;
|
|
604
|
+
getGroups(userId: string, latitude?: string, longitude?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupEntityConnectionDto[], any, {}>>;
|
|
585
605
|
/**
|
|
586
606
|
* Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.
|
|
587
607
|
* @summary Create or update a connection with another user
|
package/dist/api/user-api.js
CHANGED
|
@@ -231,11 +231,13 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
231
231
|
* @param {string} userId
|
|
232
232
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
233
233
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
234
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
235
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
234
236
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
235
237
|
* @param {*} [options] Override http request option.
|
|
236
238
|
* @throws {RequiredError}
|
|
237
239
|
*/
|
|
238
|
-
getEvents: async (userId, from, to, xProximaNexusRequesterUserId, options = {}) => {
|
|
240
|
+
getEvents: async (userId, from, to, latitude, longitude, xProximaNexusRequesterUserId, options = {}) => {
|
|
239
241
|
// verify required parameter 'userId' is not null or undefined
|
|
240
242
|
(0, common_1.assertParamExists)('getEvents', 'userId', userId);
|
|
241
243
|
const localVarPath = `/user/{userId}/events`
|
|
@@ -257,6 +259,12 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
257
259
|
if (to !== undefined) {
|
|
258
260
|
localVarQueryParameter['to'] = to;
|
|
259
261
|
}
|
|
262
|
+
if (latitude !== undefined) {
|
|
263
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
264
|
+
}
|
|
265
|
+
if (longitude !== undefined) {
|
|
266
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
267
|
+
}
|
|
260
268
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
261
269
|
if (xProximaNexusRequesterUserId != null) {
|
|
262
270
|
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
@@ -273,11 +281,13 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
273
281
|
*
|
|
274
282
|
* @summary Get groups of a user
|
|
275
283
|
* @param {string} userId
|
|
284
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
285
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
276
286
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
277
287
|
* @param {*} [options] Override http request option.
|
|
278
288
|
* @throws {RequiredError}
|
|
279
289
|
*/
|
|
280
|
-
getGroups: async (userId, xProximaNexusRequesterUserId, options = {}) => {
|
|
290
|
+
getGroups: async (userId, latitude, longitude, xProximaNexusRequesterUserId, options = {}) => {
|
|
281
291
|
// verify required parameter 'userId' is not null or undefined
|
|
282
292
|
(0, common_1.assertParamExists)('getGroups', 'userId', userId);
|
|
283
293
|
const localVarPath = `/user/{userId}/groups`
|
|
@@ -293,6 +303,12 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
293
303
|
const localVarQueryParameter = {};
|
|
294
304
|
// authentication api_key required
|
|
295
305
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
306
|
+
if (latitude !== undefined) {
|
|
307
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
308
|
+
}
|
|
309
|
+
if (longitude !== undefined) {
|
|
310
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
311
|
+
}
|
|
296
312
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
297
313
|
if (xProximaNexusRequesterUserId != null) {
|
|
298
314
|
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
@@ -596,12 +612,14 @@ const UserApiFp = function (configuration) {
|
|
|
596
612
|
* @param {string} userId
|
|
597
613
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
598
614
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
615
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
616
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
599
617
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
600
618
|
* @param {*} [options] Override http request option.
|
|
601
619
|
* @throws {RequiredError}
|
|
602
620
|
*/
|
|
603
|
-
async getEvents(userId, from, to, xProximaNexusRequesterUserId, options) {
|
|
604
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(userId, from, to, xProximaNexusRequesterUserId, options);
|
|
621
|
+
async getEvents(userId, from, to, latitude, longitude, xProximaNexusRequesterUserId, options) {
|
|
622
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(userId, from, to, latitude, longitude, xProximaNexusRequesterUserId, options);
|
|
605
623
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
606
624
|
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getEvents']?.[localVarOperationServerIndex]?.url;
|
|
607
625
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -610,12 +628,14 @@ const UserApiFp = function (configuration) {
|
|
|
610
628
|
*
|
|
611
629
|
* @summary Get groups of a user
|
|
612
630
|
* @param {string} userId
|
|
631
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
632
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
613
633
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
614
634
|
* @param {*} [options] Override http request option.
|
|
615
635
|
* @throws {RequiredError}
|
|
616
636
|
*/
|
|
617
|
-
async getGroups(userId, xProximaNexusRequesterUserId, options) {
|
|
618
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroups(userId, xProximaNexusRequesterUserId, options);
|
|
637
|
+
async getGroups(userId, latitude, longitude, xProximaNexusRequesterUserId, options) {
|
|
638
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroups(userId, latitude, longitude, xProximaNexusRequesterUserId, options);
|
|
619
639
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
620
640
|
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getGroups']?.[localVarOperationServerIndex]?.url;
|
|
621
641
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -762,23 +782,27 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
762
782
|
* @param {string} userId
|
|
763
783
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
764
784
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
785
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
786
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
765
787
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
766
788
|
* @param {*} [options] Override http request option.
|
|
767
789
|
* @throws {RequiredError}
|
|
768
790
|
*/
|
|
769
|
-
getEvents(userId, from, to, xProximaNexusRequesterUserId, options) {
|
|
770
|
-
return localVarFp.getEvents(userId, from, to, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
791
|
+
getEvents(userId, from, to, latitude, longitude, xProximaNexusRequesterUserId, options) {
|
|
792
|
+
return localVarFp.getEvents(userId, from, to, latitude, longitude, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
771
793
|
},
|
|
772
794
|
/**
|
|
773
795
|
*
|
|
774
796
|
* @summary Get groups of a user
|
|
775
797
|
* @param {string} userId
|
|
798
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
799
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
776
800
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
777
801
|
* @param {*} [options] Override http request option.
|
|
778
802
|
* @throws {RequiredError}
|
|
779
803
|
*/
|
|
780
|
-
getGroups(userId, xProximaNexusRequesterUserId, options) {
|
|
781
|
-
return localVarFp.getGroups(userId, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
804
|
+
getGroups(userId, latitude, longitude, xProximaNexusRequesterUserId, options) {
|
|
805
|
+
return localVarFp.getGroups(userId, latitude, longitude, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
782
806
|
},
|
|
783
807
|
/**
|
|
784
808
|
* Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.
|
|
@@ -908,23 +932,27 @@ class UserApi extends base_1.BaseAPI {
|
|
|
908
932
|
* @param {string} userId
|
|
909
933
|
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
910
934
|
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
935
|
+
* @param {string} [latitude] Requester latitude for nearby event discovery
|
|
936
|
+
* @param {string} [longitude] Requester longitude for nearby event discovery
|
|
911
937
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
912
938
|
* @param {*} [options] Override http request option.
|
|
913
939
|
* @throws {RequiredError}
|
|
914
940
|
*/
|
|
915
|
-
getEvents(userId, from, to, xProximaNexusRequesterUserId, options) {
|
|
916
|
-
return (0, exports.UserApiFp)(this.configuration).getEvents(userId, from, to, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
941
|
+
getEvents(userId, from, to, latitude, longitude, xProximaNexusRequesterUserId, options) {
|
|
942
|
+
return (0, exports.UserApiFp)(this.configuration).getEvents(userId, from, to, latitude, longitude, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
917
943
|
}
|
|
918
944
|
/**
|
|
919
945
|
*
|
|
920
946
|
* @summary Get groups of a user
|
|
921
947
|
* @param {string} userId
|
|
948
|
+
* @param {string} [latitude] Requester latitude for nearby group discovery
|
|
949
|
+
* @param {string} [longitude] Requester longitude for nearby group discovery
|
|
922
950
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
923
951
|
* @param {*} [options] Override http request option.
|
|
924
952
|
* @throws {RequiredError}
|
|
925
953
|
*/
|
|
926
|
-
getGroups(userId, xProximaNexusRequesterUserId, options) {
|
|
927
|
-
return (0, exports.UserApiFp)(this.configuration).getGroups(userId, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
954
|
+
getGroups(userId, latitude, longitude, xProximaNexusRequesterUserId, options) {
|
|
955
|
+
return (0, exports.UserApiFp)(this.configuration).getGroups(userId, latitude, longitude, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
928
956
|
}
|
|
929
957
|
/**
|
|
930
958
|
* Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.
|
|
@@ -48,7 +48,10 @@ 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, [
|
|
51
|
+
return (0, errors_1.unwrap)(this.api.getConnections(groupId, [
|
|
52
|
+
group_api_1.GroupControllerGetConnectionsStateEnum.active,
|
|
53
|
+
group_api_1.GroupControllerGetConnectionsStateEnum.requested,
|
|
54
|
+
], [
|
|
52
55
|
group_api_1.GroupControllerGetConnectionsTypeEnum.member,
|
|
53
56
|
group_api_1.GroupControllerGetConnectionsTypeEnum.admin,
|
|
54
57
|
group_api_1.GroupControllerGetConnectionsTypeEnum.owner,
|
|
@@ -20,6 +20,6 @@ export declare class EnhancedUserApi {
|
|
|
20
20
|
blockUser(blockingUserId: string, blockedUserId: string): Promise<EntityConnectionDto>;
|
|
21
21
|
unblockUser(blockingUserId: string, blockedUserId: string): Promise<void>;
|
|
22
22
|
getBlockedUsers(userId: string): Promise<UserEntityConnectionDto[]>;
|
|
23
|
-
getEvents(userId: string, from?: string, to?: string, requesterUserId?: string): Promise<EventEntityConnectionDto[]>;
|
|
24
|
-
getGroups(userId: string, requesterUserId?: string): Promise<GroupEntityConnectionDto[]>;
|
|
23
|
+
getEvents(userId: string, from?: string, to?: string, requesterUserId?: string, latitude?: number, longitude?: number): Promise<EventEntityConnectionDto[]>;
|
|
24
|
+
getGroups(userId: string, requesterUserId?: string, latitude?: number, longitude?: number): Promise<GroupEntityConnectionDto[]>;
|
|
25
25
|
}
|
|
@@ -64,11 +64,11 @@ class EnhancedUserApi {
|
|
|
64
64
|
async getBlockedUsers(userId) {
|
|
65
65
|
return (0, errors_1.unwrap)(this.api.getConnections(userId, [user_api_1.UserControllerGetConnectionsStateEnum.active], [user_api_1.UserControllerGetConnectionsTypeEnum.blocked], userId));
|
|
66
66
|
}
|
|
67
|
-
async getEvents(userId, from, to, requesterUserId) {
|
|
68
|
-
return (0, errors_1.unwrap)(this.api.getEvents(userId, from, to, requesterUserId));
|
|
67
|
+
async getEvents(userId, from, to, requesterUserId, latitude, longitude) {
|
|
68
|
+
return (0, errors_1.unwrap)(this.api.getEvents(userId, from, to, latitude !== undefined ? String(latitude) : undefined, longitude !== undefined ? String(longitude) : undefined, requesterUserId));
|
|
69
69
|
}
|
|
70
|
-
async getGroups(userId, requesterUserId) {
|
|
71
|
-
return (0, errors_1.unwrap)(this.api.getGroups(userId, requesterUserId));
|
|
70
|
+
async getGroups(userId, requesterUserId, latitude, longitude) {
|
|
71
|
+
return (0, errors_1.unwrap)(this.api.getGroups(userId, latitude !== undefined ? String(latitude) : undefined, longitude !== undefined ? String(longitude) : undefined, requesterUserId));
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
exports.EnhancedUserApi = EnhancedUserApi;
|
|
@@ -20,6 +20,7 @@ var EntityConnectionDtoTypeEnum;
|
|
|
20
20
|
EntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
21
|
EntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
22
|
EntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
|
|
23
|
+
EntityConnectionDtoTypeEnum["nearby"] = "nearby";
|
|
23
24
|
EntityConnectionDtoTypeEnum["member"] = "member";
|
|
24
25
|
EntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
25
26
|
EntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
@@ -20,6 +20,7 @@ var EventEntityConnectionDtoTypeEnum;
|
|
|
20
20
|
EventEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
21
|
EventEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
22
|
EventEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
|
|
23
|
+
EventEntityConnectionDtoTypeEnum["nearby"] = "nearby";
|
|
23
24
|
EventEntityConnectionDtoTypeEnum["member"] = "member";
|
|
24
25
|
EventEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
25
26
|
EventEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
@@ -20,6 +20,7 @@ var EventSeriesEntityConnectionDtoTypeEnum;
|
|
|
20
20
|
EventSeriesEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
21
|
EventSeriesEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
22
|
EventSeriesEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
|
|
23
|
+
EventSeriesEntityConnectionDtoTypeEnum["nearby"] = "nearby";
|
|
23
24
|
EventSeriesEntityConnectionDtoTypeEnum["member"] = "member";
|
|
24
25
|
EventSeriesEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
25
26
|
EventSeriesEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
@@ -20,6 +20,7 @@ var GroupEntityConnectionDtoTypeEnum;
|
|
|
20
20
|
GroupEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
21
|
GroupEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
22
|
GroupEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
|
|
23
|
+
GroupEntityConnectionDtoTypeEnum["nearby"] = "nearby";
|
|
23
24
|
GroupEntityConnectionDtoTypeEnum["member"] = "member";
|
|
24
25
|
GroupEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
25
26
|
GroupEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
@@ -20,4 +20,5 @@ var MutateEventEntityConnectionDtoTypeEnum;
|
|
|
20
20
|
MutateEventEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
21
|
MutateEventEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
22
|
MutateEventEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
|
|
23
|
+
MutateEventEntityConnectionDtoTypeEnum["nearby"] = "nearby";
|
|
23
24
|
})(MutateEventEntityConnectionDtoTypeEnum || (exports.MutateEventEntityConnectionDtoTypeEnum = MutateEventEntityConnectionDtoTypeEnum = {}));
|
|
@@ -19,4 +19,5 @@ var MutateGroupEntityConnectionDtoTypeEnum;
|
|
|
19
19
|
MutateGroupEntityConnectionDtoTypeEnum["member"] = "member";
|
|
20
20
|
MutateGroupEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
21
|
MutateGroupEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
|
+
MutateGroupEntityConnectionDtoTypeEnum["nearby"] = "nearby";
|
|
22
23
|
})(MutateGroupEntityConnectionDtoTypeEnum || (exports.MutateGroupEntityConnectionDtoTypeEnum = MutateGroupEntityConnectionDtoTypeEnum = {}));
|
|
@@ -20,6 +20,7 @@ var UserEntityConnectionDtoTypeEnum;
|
|
|
20
20
|
UserEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
21
|
UserEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
22
|
UserEntityConnectionDtoTypeEnum["associated_group"] = "associated_group";
|
|
23
|
+
UserEntityConnectionDtoTypeEnum["nearby"] = "nearby";
|
|
23
24
|
UserEntityConnectionDtoTypeEnum["member"] = "member";
|
|
24
25
|
UserEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
25
26
|
UserEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|