@proxima-nexus/sdk-typescript 2.2.0 → 2.4.0
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 +20 -0
- package/dist/api/event-api.d.ts +15 -5
- package/dist/api/event-api.js +21 -7
- package/dist/api/event-series-api.d.ts +66 -15
- package/dist/api/event-series-api.js +95 -15
- package/dist/api/group-api.d.ts +71 -10
- package/dist/api/group-api.js +107 -14
- package/dist/api/user-api.d.ts +30 -10
- package/dist/api/user-api.js +42 -14
- package/dist/enhanced/enhanced-event-api.d.ts +4 -3
- package/dist/enhanced/enhanced-event-api.js +9 -6
- package/dist/enhanced/enhanced-event-series-api.d.ts +2 -1
- package/dist/enhanced/enhanced-event-series-api.js +5 -2
- package/dist/enhanced/enhanced-group-api.d.ts +3 -2
- package/dist/enhanced/enhanced-group-api.js +8 -5
- package/dist/enhanced/enhanced-user-api.d.ts +1 -1
- package/dist/enhanced/enhanced-user-api.js +5 -5
- package/dist/models/event-series-entity-connection-dto.d.ts +49 -0
- package/dist/models/event-series-entity-connection-dto.js +34 -0
- package/dist/models/get-event-series-dto.d.ts +17 -0
- package/dist/models/get-event-series-dto.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
package/dist/api/user-api.js
CHANGED
|
@@ -229,11 +229,13 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
229
229
|
*
|
|
230
230
|
* @summary Get events of a user
|
|
231
231
|
* @param {string} userId
|
|
232
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
233
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
232
234
|
* @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.
|
|
233
235
|
* @param {*} [options] Override http request option.
|
|
234
236
|
* @throws {RequiredError}
|
|
235
237
|
*/
|
|
236
|
-
getEvents: async (userId, xProximaNexusRequesterUserId, options = {}) => {
|
|
238
|
+
getEvents: async (userId, from, to, xProximaNexusRequesterUserId, options = {}) => {
|
|
237
239
|
// verify required parameter 'userId' is not null or undefined
|
|
238
240
|
(0, common_1.assertParamExists)('getEvents', 'userId', userId);
|
|
239
241
|
const localVarPath = `/user/{userId}/events`
|
|
@@ -249,6 +251,12 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
249
251
|
const localVarQueryParameter = {};
|
|
250
252
|
// authentication api_key required
|
|
251
253
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
254
|
+
if (from !== undefined) {
|
|
255
|
+
localVarQueryParameter['from'] = from;
|
|
256
|
+
}
|
|
257
|
+
if (to !== undefined) {
|
|
258
|
+
localVarQueryParameter['to'] = to;
|
|
259
|
+
}
|
|
252
260
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
253
261
|
if (xProximaNexusRequesterUserId != null) {
|
|
254
262
|
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
@@ -393,11 +401,13 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
393
401
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
394
402
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
395
403
|
* @param {number} [limit] Limit results (1-1000)
|
|
404
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
405
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
396
406
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for users. If set, users will be filtered to only include users that the user can see, and requesterConnection will be set on the results.
|
|
397
407
|
* @param {*} [options] Override http request option.
|
|
398
408
|
* @throws {RequiredError}
|
|
399
409
|
*/
|
|
400
|
-
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options = {}) => {
|
|
410
|
+
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options = {}) => {
|
|
401
411
|
const localVarPath = `/user`;
|
|
402
412
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
403
413
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -437,6 +447,12 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
437
447
|
if (limit !== undefined) {
|
|
438
448
|
localVarQueryParameter['limit'] = limit;
|
|
439
449
|
}
|
|
450
|
+
if (from !== undefined) {
|
|
451
|
+
localVarQueryParameter['from'] = from;
|
|
452
|
+
}
|
|
453
|
+
if (to !== undefined) {
|
|
454
|
+
localVarQueryParameter['to'] = to;
|
|
455
|
+
}
|
|
440
456
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
441
457
|
if (xProximaNexusRequesterUserId != null) {
|
|
442
458
|
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
@@ -578,12 +594,14 @@ const UserApiFp = function (configuration) {
|
|
|
578
594
|
*
|
|
579
595
|
* @summary Get events of a user
|
|
580
596
|
* @param {string} userId
|
|
597
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
598
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
581
599
|
* @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.
|
|
582
600
|
* @param {*} [options] Override http request option.
|
|
583
601
|
* @throws {RequiredError}
|
|
584
602
|
*/
|
|
585
|
-
async getEvents(userId, xProximaNexusRequesterUserId, options) {
|
|
586
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(userId, xProximaNexusRequesterUserId, options);
|
|
603
|
+
async getEvents(userId, from, to, xProximaNexusRequesterUserId, options) {
|
|
604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(userId, from, to, xProximaNexusRequesterUserId, options);
|
|
587
605
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
588
606
|
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getEvents']?.[localVarOperationServerIndex]?.url;
|
|
589
607
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -644,12 +662,14 @@ const UserApiFp = function (configuration) {
|
|
|
644
662
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
645
663
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
646
664
|
* @param {number} [limit] Limit results (1-1000)
|
|
665
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
666
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
647
667
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for users. If set, users will be filtered to only include users that the user can see, and requesterConnection will be set on the results.
|
|
648
668
|
* @param {*} [options] Override http request option.
|
|
649
669
|
* @throws {RequiredError}
|
|
650
670
|
*/
|
|
651
|
-
async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
|
|
652
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options);
|
|
671
|
+
async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
|
|
672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options);
|
|
653
673
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
654
674
|
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.search']?.[localVarOperationServerIndex]?.url;
|
|
655
675
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -740,12 +760,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
740
760
|
*
|
|
741
761
|
* @summary Get events of a user
|
|
742
762
|
* @param {string} userId
|
|
763
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
764
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
743
765
|
* @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.
|
|
744
766
|
* @param {*} [options] Override http request option.
|
|
745
767
|
* @throws {RequiredError}
|
|
746
768
|
*/
|
|
747
|
-
getEvents(userId, xProximaNexusRequesterUserId, options) {
|
|
748
|
-
return localVarFp.getEvents(userId, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
769
|
+
getEvents(userId, from, to, xProximaNexusRequesterUserId, options) {
|
|
770
|
+
return localVarFp.getEvents(userId, from, to, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
749
771
|
},
|
|
750
772
|
/**
|
|
751
773
|
*
|
|
@@ -794,12 +816,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
794
816
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
795
817
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
796
818
|
* @param {number} [limit] Limit results (1-1000)
|
|
819
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
820
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
797
821
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for users. If set, users will be filtered to only include users that the user can see, and requesterConnection will be set on the results.
|
|
798
822
|
* @param {*} [options] Override http request option.
|
|
799
823
|
* @throws {RequiredError}
|
|
800
824
|
*/
|
|
801
|
-
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
|
|
802
|
-
return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
825
|
+
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
|
|
826
|
+
return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
803
827
|
},
|
|
804
828
|
/**
|
|
805
829
|
*
|
|
@@ -882,12 +906,14 @@ class UserApi extends base_1.BaseAPI {
|
|
|
882
906
|
*
|
|
883
907
|
* @summary Get events of a user
|
|
884
908
|
* @param {string} userId
|
|
909
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
910
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
885
911
|
* @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.
|
|
886
912
|
* @param {*} [options] Override http request option.
|
|
887
913
|
* @throws {RequiredError}
|
|
888
914
|
*/
|
|
889
|
-
getEvents(userId, xProximaNexusRequesterUserId, options) {
|
|
890
|
-
return (0, exports.UserApiFp)(this.configuration).getEvents(userId, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
891
917
|
}
|
|
892
918
|
/**
|
|
893
919
|
*
|
|
@@ -936,12 +962,14 @@ class UserApi extends base_1.BaseAPI {
|
|
|
936
962
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
937
963
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
938
964
|
* @param {number} [limit] Limit results (1-1000)
|
|
965
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
966
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
939
967
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for users. If set, users will be filtered to only include users that the user can see, and requesterConnection will be set on the results.
|
|
940
968
|
* @param {*} [options] Override http request option.
|
|
941
969
|
* @throws {RequiredError}
|
|
942
970
|
*/
|
|
943
|
-
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
|
|
944
|
-
return (0, exports.UserApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
971
|
+
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
|
|
972
|
+
return (0, exports.UserApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
945
973
|
}
|
|
946
974
|
/**
|
|
947
975
|
*
|
|
@@ -8,9 +8,10 @@ export declare class EnhancedEventApi {
|
|
|
8
8
|
createEvent(creatorUserId: string, data: CreateEventDto): Promise<string>;
|
|
9
9
|
updateEvent(eventId: string, requesterUserId: string, data: UpdateEventDto): Promise<string>;
|
|
10
10
|
deleteEvent(eventId: string, requesterUserId: string): Promise<void>;
|
|
11
|
-
searchByDisplayName(displayName: string, requesterUserId?: string, limit?: number): Promise<EventDto[]>;
|
|
12
|
-
searchByRadius(latitude: number, longitude: number, radiusMeters: number, requesterUserId?: string, limit?: number): Promise<EventDto[]>;
|
|
13
|
-
searchByBoundingBox(minLat: number, maxLat: number, minLng: number, maxLng: number, requesterUserId?: string, limit?: number): Promise<EventDto[]>;
|
|
11
|
+
searchByDisplayName(displayName: string, requesterUserId?: string, limit?: number, from?: string, to?: string): Promise<EventDto[]>;
|
|
12
|
+
searchByRadius(latitude: number, longitude: number, radiusMeters: number, requesterUserId?: string, limit?: number, from?: string, to?: string): Promise<EventDto[]>;
|
|
13
|
+
searchByBoundingBox(minLat: number, maxLat: number, minLng: number, maxLng: number, requesterUserId?: string, limit?: number, from?: string, to?: string): Promise<EventDto[]>;
|
|
14
|
+
searchByDateRange(from: string, to: string, requesterUserId?: string, limit?: number): Promise<EventDto[]>;
|
|
14
15
|
addAttendee(eventId: string, userId: string, requesterUserId: string): Promise<EntityConnectionDto>;
|
|
15
16
|
removeAttendee(eventId: string, userId: string, requesterUserId: string): Promise<void>;
|
|
16
17
|
getAttendees(eventId: string, requesterUserId?: string): Promise<UserEntityConnectionDto[]>;
|
|
@@ -23,14 +23,17 @@ class EnhancedEventApi {
|
|
|
23
23
|
async deleteEvent(eventId, requesterUserId) {
|
|
24
24
|
return (0, errors_1.unwrap)(this.api.remove(eventId, requesterUserId));
|
|
25
25
|
}
|
|
26
|
-
async searchByDisplayName(displayName, requesterUserId, limit) {
|
|
27
|
-
return (0, errors_1.unwrap)(this.api.search(displayName, undefined, undefined, undefined, undefined, undefined, undefined, undefined, limit, requesterUserId));
|
|
26
|
+
async searchByDisplayName(displayName, requesterUserId, limit, from, to) {
|
|
27
|
+
return (0, errors_1.unwrap)(this.api.search(displayName, undefined, undefined, undefined, undefined, undefined, undefined, undefined, limit, from, to, requesterUserId));
|
|
28
28
|
}
|
|
29
|
-
async searchByRadius(latitude, longitude, radiusMeters, requesterUserId, limit) {
|
|
30
|
-
return (0, errors_1.unwrap)(this.api.search(undefined, latitude, longitude, radiusMeters, undefined, undefined, undefined, undefined, limit, requesterUserId));
|
|
29
|
+
async searchByRadius(latitude, longitude, radiusMeters, requesterUserId, limit, from, to) {
|
|
30
|
+
return (0, errors_1.unwrap)(this.api.search(undefined, latitude, longitude, radiusMeters, undefined, undefined, undefined, undefined, limit, from, to, requesterUserId));
|
|
31
31
|
}
|
|
32
|
-
async searchByBoundingBox(minLat, maxLat, minLng, maxLng, requesterUserId, limit) {
|
|
33
|
-
return (0, errors_1.unwrap)(this.api.search(undefined, undefined, undefined, undefined, minLat, maxLat, minLng, maxLng, limit, requesterUserId));
|
|
32
|
+
async searchByBoundingBox(minLat, maxLat, minLng, maxLng, requesterUserId, limit, from, to) {
|
|
33
|
+
return (0, errors_1.unwrap)(this.api.search(undefined, undefined, undefined, undefined, minLat, maxLat, minLng, maxLng, limit, from, to, requesterUserId));
|
|
34
|
+
}
|
|
35
|
+
async searchByDateRange(from, to, requesterUserId, limit) {
|
|
36
|
+
return (0, errors_1.unwrap)(this.api.search(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, limit, from, to, requesterUserId));
|
|
34
37
|
}
|
|
35
38
|
async addAttendee(eventId, userId, requesterUserId) {
|
|
36
39
|
return (0, errors_1.unwrap)(this.api.addConnection(eventId, userId, requesterUserId, { type: mutate_event_entity_connection_dto_1.MutateEventEntityConnectionDtoTypeEnum.attendee }));
|
|
@@ -7,5 +7,6 @@ export declare class EnhancedEventSeriesApi {
|
|
|
7
7
|
getSeries(seriesId: string): Promise<EventSeriesDto>;
|
|
8
8
|
updateSeries(seriesId: string, requesterUserId: string, data: UpdateEventSeriesDto): Promise<string>;
|
|
9
9
|
deleteSeries(seriesId: string, requesterUserId: string): Promise<void>;
|
|
10
|
-
getInstances(seriesId: string): Promise<EventDto[]>;
|
|
10
|
+
getInstances(seriesId: string, from?: string, to?: string): Promise<EventDto[]>;
|
|
11
|
+
getBatch(seriesIds: string[]): Promise<EventSeriesDto[]>;
|
|
11
12
|
}
|
|
@@ -18,8 +18,11 @@ class EnhancedEventSeriesApi {
|
|
|
18
18
|
async deleteSeries(seriesId, requesterUserId) {
|
|
19
19
|
return (0, errors_1.unwrap)(this.api.remove(seriesId, requesterUserId));
|
|
20
20
|
}
|
|
21
|
-
async getInstances(seriesId) {
|
|
22
|
-
return (0, errors_1.unwrap)(this.api.getInstances(seriesId));
|
|
21
|
+
async getInstances(seriesId, from, to) {
|
|
22
|
+
return (0, errors_1.unwrap)(this.api.getInstances(seriesId, from, to));
|
|
23
|
+
}
|
|
24
|
+
async getBatch(seriesIds) {
|
|
25
|
+
return (0, errors_1.unwrap)(this.api.getBatch({ seriesIds }));
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
exports.EnhancedEventSeriesApi = EnhancedEventSeriesApi;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GroupApi } from '../api/group-api';
|
|
2
|
-
import type { CreateGroupDto, EntityConnectionDto, EventEntityConnectionDto, GroupDto, UpdateGroupDto, UserEntityConnectionDto } from '../models';
|
|
2
|
+
import type { CreateGroupDto, EntityConnectionDto, EventEntityConnectionDto, EventSeriesEntityConnectionDto, GroupDto, UpdateGroupDto, UserEntityConnectionDto } from '../models';
|
|
3
3
|
export declare class EnhancedGroupApi {
|
|
4
4
|
private readonly api;
|
|
5
5
|
constructor(api: GroupApi);
|
|
@@ -22,5 +22,6 @@ export declare class EnhancedGroupApi {
|
|
|
22
22
|
demoteToMember(groupId: string, userId: string, requesterUserId: string): Promise<EntityConnectionDto>;
|
|
23
23
|
getAdmins(groupId: string, requesterUserId?: string): Promise<UserEntityConnectionDto[]>;
|
|
24
24
|
getOwner(groupId: string, requesterUserId?: string): Promise<UserEntityConnectionDto | undefined>;
|
|
25
|
-
getEvents(groupId: string, requesterUserId?: string): Promise<EventEntityConnectionDto[]>;
|
|
25
|
+
getEvents(groupId: string, from?: string, to?: string, requesterUserId?: string): Promise<EventEntityConnectionDto[]>;
|
|
26
|
+
getGroupEventSeries(groupId: string): Promise<EventSeriesEntityConnectionDto[]>;
|
|
26
27
|
}
|
|
@@ -24,13 +24,13 @@ class EnhancedGroupApi {
|
|
|
24
24
|
return (0, errors_1.unwrap)(this.api.remove(groupId, requesterUserId));
|
|
25
25
|
}
|
|
26
26
|
async searchByDisplayName(displayName, requesterUserId, limit) {
|
|
27
|
-
return (0, errors_1.unwrap)(this.api.search(displayName, undefined, undefined, undefined, undefined, undefined, undefined, undefined, limit, requesterUserId));
|
|
27
|
+
return (0, errors_1.unwrap)(this.api.search(displayName, undefined, undefined, undefined, undefined, undefined, undefined, undefined, limit, undefined, undefined, requesterUserId));
|
|
28
28
|
}
|
|
29
29
|
async searchByRadius(latitude, longitude, radiusMeters, requesterUserId, limit) {
|
|
30
|
-
return (0, errors_1.unwrap)(this.api.search(undefined, latitude, longitude, radiusMeters, undefined, undefined, undefined, undefined, limit, requesterUserId));
|
|
30
|
+
return (0, errors_1.unwrap)(this.api.search(undefined, latitude, longitude, radiusMeters, undefined, undefined, undefined, undefined, limit, undefined, undefined, requesterUserId));
|
|
31
31
|
}
|
|
32
32
|
async searchByBoundingBox(minLat, maxLat, minLng, maxLng, requesterUserId, limit) {
|
|
33
|
-
return (0, errors_1.unwrap)(this.api.search(undefined, undefined, undefined, undefined, minLat, maxLat, minLng, maxLng, limit, requesterUserId));
|
|
33
|
+
return (0, errors_1.unwrap)(this.api.search(undefined, undefined, undefined, undefined, minLat, maxLat, minLng, maxLng, limit, undefined, undefined, requesterUserId));
|
|
34
34
|
}
|
|
35
35
|
async joinGroup(groupId, userId) {
|
|
36
36
|
return (0, errors_1.unwrap)(this.api.addConnection(groupId, userId, userId, { type: mutate_group_entity_connection_dto_1.MutateGroupEntityConnectionDtoTypeEnum.member }));
|
|
@@ -70,8 +70,11 @@ class EnhancedGroupApi {
|
|
|
70
70
|
const connections = await (0, errors_1.unwrap)(this.api.getConnections(groupId, [group_api_1.GroupControllerGetConnectionsStateEnum.active], [group_api_1.GroupControllerGetConnectionsTypeEnum.owner], requesterUserId));
|
|
71
71
|
return connections[0];
|
|
72
72
|
}
|
|
73
|
-
async getEvents(groupId, requesterUserId) {
|
|
74
|
-
return (0, errors_1.unwrap)(this.api.getEvents(groupId, requesterUserId));
|
|
73
|
+
async getEvents(groupId, from, to, requesterUserId) {
|
|
74
|
+
return (0, errors_1.unwrap)(this.api.getEvents(groupId, from, to, requesterUserId));
|
|
75
|
+
}
|
|
76
|
+
async getGroupEventSeries(groupId) {
|
|
77
|
+
return (0, errors_1.unwrap)(this.api.getEventSeries(groupId));
|
|
75
78
|
}
|
|
76
79
|
}
|
|
77
80
|
exports.EnhancedGroupApi = EnhancedGroupApi;
|
|
@@ -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, requesterUserId?: string): Promise<EventEntityConnectionDto[]>;
|
|
23
|
+
getEvents(userId: string, from?: string, to?: string, requesterUserId?: string): Promise<EventEntityConnectionDto[]>;
|
|
24
24
|
getGroups(userId: string, requesterUserId?: string): Promise<GroupEntityConnectionDto[]>;
|
|
25
25
|
}
|
|
@@ -26,13 +26,13 @@ class EnhancedUserApi {
|
|
|
26
26
|
return (0, errors_1.unwrap)(this.api.remove(userId, requester));
|
|
27
27
|
}
|
|
28
28
|
async searchByDisplayName(displayName, requesterUserId, limit) {
|
|
29
|
-
return (0, errors_1.unwrap)(this.api.search(displayName, undefined, undefined, undefined, undefined, undefined, undefined, undefined, limit, requesterUserId));
|
|
29
|
+
return (0, errors_1.unwrap)(this.api.search(displayName, undefined, undefined, undefined, undefined, undefined, undefined, undefined, limit, undefined, undefined, requesterUserId));
|
|
30
30
|
}
|
|
31
31
|
async searchByRadius(latitude, longitude, radiusMeters, requesterUserId, limit) {
|
|
32
|
-
return (0, errors_1.unwrap)(this.api.search(undefined, latitude, longitude, radiusMeters, undefined, undefined, undefined, undefined, limit, requesterUserId));
|
|
32
|
+
return (0, errors_1.unwrap)(this.api.search(undefined, latitude, longitude, radiusMeters, undefined, undefined, undefined, undefined, limit, undefined, undefined, requesterUserId));
|
|
33
33
|
}
|
|
34
34
|
async searchByBoundingBox(minLat, maxLat, minLng, maxLng, requesterUserId, limit) {
|
|
35
|
-
return (0, errors_1.unwrap)(this.api.search(undefined, undefined, undefined, undefined, minLat, maxLat, minLng, maxLng, limit, requesterUserId));
|
|
35
|
+
return (0, errors_1.unwrap)(this.api.search(undefined, undefined, undefined, undefined, minLat, maxLat, minLng, maxLng, limit, undefined, undefined, requesterUserId));
|
|
36
36
|
}
|
|
37
37
|
async sendFriendRequest(fromUserId, toUserId) {
|
|
38
38
|
return (0, errors_1.unwrap)(this.api.putConnection(fromUserId, toUserId, fromUserId, { type: mutate_user_connection_dto_1.MutateUserConnectionDtoTypeEnum.friend }));
|
|
@@ -64,8 +64,8 @@ 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, requesterUserId) {
|
|
68
|
-
return (0, errors_1.unwrap)(this.api.getEvents(userId, requesterUserId));
|
|
67
|
+
async getEvents(userId, from, to, requesterUserId) {
|
|
68
|
+
return (0, errors_1.unwrap)(this.api.getEvents(userId, from, to, requesterUserId));
|
|
69
69
|
}
|
|
70
70
|
async getGroups(userId, requesterUserId) {
|
|
71
71
|
return (0, errors_1.unwrap)(this.api.getGroups(userId, requesterUserId));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface EventSeriesEntityConnectionDto {
|
|
13
|
+
/**
|
|
14
|
+
* Date/time the connection was created (ISO string)
|
|
15
|
+
*/
|
|
16
|
+
'createdAt'?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Date/time the connection was last updated (ISO string)
|
|
19
|
+
*/
|
|
20
|
+
'updatedAt'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Connection type
|
|
23
|
+
*/
|
|
24
|
+
'type': EventSeriesEntityConnectionDtoTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Connection state
|
|
27
|
+
*/
|
|
28
|
+
'state'?: EventSeriesEntityConnectionDtoStateEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Event series ID
|
|
31
|
+
*/
|
|
32
|
+
'seriesId': string;
|
|
33
|
+
}
|
|
34
|
+
export declare enum EventSeriesEntityConnectionDtoTypeEnum {
|
|
35
|
+
attendee = "attendee",
|
|
36
|
+
admin = "admin",
|
|
37
|
+
owner = "owner",
|
|
38
|
+
member = "member",
|
|
39
|
+
friend = "friend",
|
|
40
|
+
blocked = "blocked",
|
|
41
|
+
none = "none"
|
|
42
|
+
}
|
|
43
|
+
export declare enum EventSeriesEntityConnectionDtoStateEnum {
|
|
44
|
+
incoming_request = "incoming_request",
|
|
45
|
+
outgoing_request = "outgoing_request",
|
|
46
|
+
active = "active",
|
|
47
|
+
requested = "requested",
|
|
48
|
+
invited = "invited"
|
|
49
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* proxima-nexus-data-plane-api
|
|
6
|
+
* Proxima Nexus Data Plane API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EventSeriesEntityConnectionDtoStateEnum = exports.EventSeriesEntityConnectionDtoTypeEnum = void 0;
|
|
17
|
+
var EventSeriesEntityConnectionDtoTypeEnum;
|
|
18
|
+
(function (EventSeriesEntityConnectionDtoTypeEnum) {
|
|
19
|
+
EventSeriesEntityConnectionDtoTypeEnum["attendee"] = "attendee";
|
|
20
|
+
EventSeriesEntityConnectionDtoTypeEnum["admin"] = "admin";
|
|
21
|
+
EventSeriesEntityConnectionDtoTypeEnum["owner"] = "owner";
|
|
22
|
+
EventSeriesEntityConnectionDtoTypeEnum["member"] = "member";
|
|
23
|
+
EventSeriesEntityConnectionDtoTypeEnum["friend"] = "friend";
|
|
24
|
+
EventSeriesEntityConnectionDtoTypeEnum["blocked"] = "blocked";
|
|
25
|
+
EventSeriesEntityConnectionDtoTypeEnum["none"] = "none";
|
|
26
|
+
})(EventSeriesEntityConnectionDtoTypeEnum || (exports.EventSeriesEntityConnectionDtoTypeEnum = EventSeriesEntityConnectionDtoTypeEnum = {}));
|
|
27
|
+
var EventSeriesEntityConnectionDtoStateEnum;
|
|
28
|
+
(function (EventSeriesEntityConnectionDtoStateEnum) {
|
|
29
|
+
EventSeriesEntityConnectionDtoStateEnum["incoming_request"] = "incoming_request";
|
|
30
|
+
EventSeriesEntityConnectionDtoStateEnum["outgoing_request"] = "outgoing_request";
|
|
31
|
+
EventSeriesEntityConnectionDtoStateEnum["active"] = "active";
|
|
32
|
+
EventSeriesEntityConnectionDtoStateEnum["requested"] = "requested";
|
|
33
|
+
EventSeriesEntityConnectionDtoStateEnum["invited"] = "invited";
|
|
34
|
+
})(EventSeriesEntityConnectionDtoStateEnum || (exports.EventSeriesEntityConnectionDtoStateEnum = EventSeriesEntityConnectionDtoStateEnum = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetEventSeriesDto {
|
|
13
|
+
/**
|
|
14
|
+
* The IDs of the event series
|
|
15
|
+
*/
|
|
16
|
+
'seriesIds': Array<string>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* proxima-nexus-data-plane-api
|
|
6
|
+
* Proxima Nexus Data Plane API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './entity-connection-dto';
|
|
|
6
6
|
export * from './event-dto';
|
|
7
7
|
export * from './event-entity-connection-dto';
|
|
8
8
|
export * from './event-series-dto';
|
|
9
|
+
export * from './event-series-entity-connection-dto';
|
|
10
|
+
export * from './get-event-series-dto';
|
|
9
11
|
export * from './get-events-dto';
|
|
10
12
|
export * from './get-groups-dto';
|
|
11
13
|
export * from './get-users-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -22,6 +22,8 @@ __exportStar(require("./entity-connection-dto"), exports);
|
|
|
22
22
|
__exportStar(require("./event-dto"), exports);
|
|
23
23
|
__exportStar(require("./event-entity-connection-dto"), exports);
|
|
24
24
|
__exportStar(require("./event-series-dto"), exports);
|
|
25
|
+
__exportStar(require("./event-series-entity-connection-dto"), exports);
|
|
26
|
+
__exportStar(require("./get-event-series-dto"), exports);
|
|
25
27
|
__exportStar(require("./get-events-dto"), exports);
|
|
26
28
|
__exportStar(require("./get-groups-dto"), exports);
|
|
27
29
|
__exportStar(require("./get-users-dto"), exports);
|