@proxima-nexus/sdk-typescript 2.1.1 → 2.3.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 +25 -0
- package/dist/api/event-api.d.ts +20 -10
- package/dist/api/event-api.js +25 -11
- package/dist/api/event-series-api.d.ts +273 -0
- package/dist/api/event-series-api.js +431 -0
- package/dist/api/group-api.d.ts +30 -10
- package/dist/api/group-api.js +42 -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 +11 -0
- package/dist/enhanced/enhanced-event-series-api.js +25 -0
- package/dist/enhanced/enhanced-group-api.d.ts +1 -1
- package/dist/enhanced/enhanced-group-api.js +5 -5
- package/dist/enhanced/enhanced-user-api.d.ts +1 -1
- package/dist/enhanced/enhanced-user-api.js +5 -5
- package/dist/enhanced/index.d.ts +3 -0
- package/dist/enhanced/index.js +6 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -1
- package/dist/models/create-event-series-dto.d.ts +75 -0
- package/dist/models/create-event-series-dto.js +22 -0
- package/dist/models/event-dto.d.ts +4 -0
- package/dist/models/event-series-dto.d.ts +87 -0
- package/dist/models/event-series-dto.js +21 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/update-event-dto.d.ts +4 -4
- package/dist/models/update-event-series-dto.d.ts +47 -0
- package/dist/models/update-event-series-dto.js +22 -0
- package/dist/models/update-group-dto.d.ts +1 -1
- package/dist/models/update-user-dto.d.ts +1 -1
- package/package.json +1 -1
package/dist/api/group-api.js
CHANGED
|
@@ -235,11 +235,13 @@ const GroupApiAxiosParamCreator = function (configuration) {
|
|
|
235
235
|
*
|
|
236
236
|
* @summary Get events of a group
|
|
237
237
|
* @param {string} groupId
|
|
238
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
239
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
238
240
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of the group. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
239
241
|
* @param {*} [options] Override http request option.
|
|
240
242
|
* @throws {RequiredError}
|
|
241
243
|
*/
|
|
242
|
-
getEvents: async (groupId, xProximaNexusRequesterUserId, options = {}) => {
|
|
244
|
+
getEvents: async (groupId, from, to, xProximaNexusRequesterUserId, options = {}) => {
|
|
243
245
|
// verify required parameter 'groupId' is not null or undefined
|
|
244
246
|
(0, common_1.assertParamExists)('getEvents', 'groupId', groupId);
|
|
245
247
|
const localVarPath = `/group/{groupId}/events`
|
|
@@ -255,6 +257,12 @@ const GroupApiAxiosParamCreator = function (configuration) {
|
|
|
255
257
|
const localVarQueryParameter = {};
|
|
256
258
|
// authentication api_key required
|
|
257
259
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
260
|
+
if (from !== undefined) {
|
|
261
|
+
localVarQueryParameter['from'] = from;
|
|
262
|
+
}
|
|
263
|
+
if (to !== undefined) {
|
|
264
|
+
localVarQueryParameter['to'] = to;
|
|
265
|
+
}
|
|
258
266
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
259
267
|
if (xProximaNexusRequesterUserId != null) {
|
|
260
268
|
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
@@ -362,11 +370,13 @@ const GroupApiAxiosParamCreator = function (configuration) {
|
|
|
362
370
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
363
371
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
364
372
|
* @param {number} [limit] Limit results (1-1000)
|
|
373
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
374
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
365
375
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for groups. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
366
376
|
* @param {*} [options] Override http request option.
|
|
367
377
|
* @throws {RequiredError}
|
|
368
378
|
*/
|
|
369
|
-
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options = {}) => {
|
|
379
|
+
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options = {}) => {
|
|
370
380
|
const localVarPath = `/group`;
|
|
371
381
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
372
382
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -406,6 +416,12 @@ const GroupApiAxiosParamCreator = function (configuration) {
|
|
|
406
416
|
if (limit !== undefined) {
|
|
407
417
|
localVarQueryParameter['limit'] = limit;
|
|
408
418
|
}
|
|
419
|
+
if (from !== undefined) {
|
|
420
|
+
localVarQueryParameter['from'] = from;
|
|
421
|
+
}
|
|
422
|
+
if (to !== undefined) {
|
|
423
|
+
localVarQueryParameter['to'] = to;
|
|
424
|
+
}
|
|
409
425
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
410
426
|
if (xProximaNexusRequesterUserId != null) {
|
|
411
427
|
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
@@ -548,12 +564,14 @@ const GroupApiFp = function (configuration) {
|
|
|
548
564
|
*
|
|
549
565
|
* @summary Get events of a group
|
|
550
566
|
* @param {string} groupId
|
|
567
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
568
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
551
569
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of the group. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
552
570
|
* @param {*} [options] Override http request option.
|
|
553
571
|
* @throws {RequiredError}
|
|
554
572
|
*/
|
|
555
|
-
async getEvents(groupId, xProximaNexusRequesterUserId, options) {
|
|
556
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(groupId, xProximaNexusRequesterUserId, options);
|
|
573
|
+
async getEvents(groupId, from, to, xProximaNexusRequesterUserId, options) {
|
|
574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(groupId, from, to, xProximaNexusRequesterUserId, options);
|
|
557
575
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
558
576
|
const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.getEvents']?.[localVarOperationServerIndex]?.url;
|
|
559
577
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -600,12 +618,14 @@ const GroupApiFp = function (configuration) {
|
|
|
600
618
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
601
619
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
602
620
|
* @param {number} [limit] Limit results (1-1000)
|
|
621
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
622
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
603
623
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for groups. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
604
624
|
* @param {*} [options] Override http request option.
|
|
605
625
|
* @throws {RequiredError}
|
|
606
626
|
*/
|
|
607
|
-
async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
|
|
608
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options);
|
|
627
|
+
async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options);
|
|
609
629
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
610
630
|
const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.search']?.[localVarOperationServerIndex]?.url;
|
|
611
631
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -697,12 +717,14 @@ const GroupApiFactory = function (configuration, basePath, axios) {
|
|
|
697
717
|
*
|
|
698
718
|
* @summary Get events of a group
|
|
699
719
|
* @param {string} groupId
|
|
720
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
721
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
700
722
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of the group. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
701
723
|
* @param {*} [options] Override http request option.
|
|
702
724
|
* @throws {RequiredError}
|
|
703
725
|
*/
|
|
704
|
-
getEvents(groupId, xProximaNexusRequesterUserId, options) {
|
|
705
|
-
return localVarFp.getEvents(groupId, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
726
|
+
getEvents(groupId, from, to, xProximaNexusRequesterUserId, options) {
|
|
727
|
+
return localVarFp.getEvents(groupId, from, to, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
706
728
|
},
|
|
707
729
|
/**
|
|
708
730
|
*
|
|
@@ -740,12 +762,14 @@ const GroupApiFactory = function (configuration, basePath, axios) {
|
|
|
740
762
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
741
763
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
742
764
|
* @param {number} [limit] Limit results (1-1000)
|
|
765
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
766
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
743
767
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for groups. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
744
768
|
* @param {*} [options] Override http request option.
|
|
745
769
|
* @throws {RequiredError}
|
|
746
770
|
*/
|
|
747
|
-
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
|
|
748
|
-
return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
771
|
+
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
|
|
772
|
+
return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
749
773
|
},
|
|
750
774
|
/**
|
|
751
775
|
*
|
|
@@ -829,12 +853,14 @@ class GroupApi extends base_1.BaseAPI {
|
|
|
829
853
|
*
|
|
830
854
|
* @summary Get events of a group
|
|
831
855
|
* @param {string} groupId
|
|
856
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
857
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
832
858
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting events of the group. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
833
859
|
* @param {*} [options] Override http request option.
|
|
834
860
|
* @throws {RequiredError}
|
|
835
861
|
*/
|
|
836
|
-
getEvents(groupId, xProximaNexusRequesterUserId, options) {
|
|
837
|
-
return (0, exports.GroupApiFp)(this.configuration).getEvents(groupId, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
862
|
+
getEvents(groupId, from, to, xProximaNexusRequesterUserId, options) {
|
|
863
|
+
return (0, exports.GroupApiFp)(this.configuration).getEvents(groupId, from, to, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
838
864
|
}
|
|
839
865
|
/**
|
|
840
866
|
*
|
|
@@ -872,12 +898,14 @@ class GroupApi extends base_1.BaseAPI {
|
|
|
872
898
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
873
899
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
874
900
|
* @param {number} [limit] Limit results (1-1000)
|
|
901
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
902
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
875
903
|
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for groups. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.
|
|
876
904
|
* @param {*} [options] Override http request option.
|
|
877
905
|
* @throws {RequiredError}
|
|
878
906
|
*/
|
|
879
|
-
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
|
|
880
|
-
return (0, exports.GroupApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
907
|
+
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
|
|
908
|
+
return (0, exports.GroupApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
881
909
|
}
|
|
882
910
|
/**
|
|
883
911
|
*
|
package/dist/api/user-api.d.ts
CHANGED
|
@@ -78,11 +78,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
78
78
|
*
|
|
79
79
|
* @summary Get events of a user
|
|
80
80
|
* @param {string} userId
|
|
81
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
82
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
81
83
|
* @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.
|
|
82
84
|
* @param {*} [options] Override http request option.
|
|
83
85
|
* @throws {RequiredError}
|
|
84
86
|
*/
|
|
85
|
-
getEvents: (userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
87
|
+
getEvents: (userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
86
88
|
/**
|
|
87
89
|
*
|
|
88
90
|
* @summary Get groups of a user
|
|
@@ -124,11 +126,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
124
126
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
125
127
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
126
128
|
* @param {number} [limit] Limit results (1-1000)
|
|
129
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
130
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
127
131
|
* @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.
|
|
128
132
|
* @param {*} [options] Override http request option.
|
|
129
133
|
* @throws {RequiredError}
|
|
130
134
|
*/
|
|
131
|
-
search: (displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
135
|
+
search: (displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
132
136
|
/**
|
|
133
137
|
*
|
|
134
138
|
* @summary Update a user
|
|
@@ -196,11 +200,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
196
200
|
*
|
|
197
201
|
* @summary Get events of a user
|
|
198
202
|
* @param {string} userId
|
|
203
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
204
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
199
205
|
* @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.
|
|
200
206
|
* @param {*} [options] Override http request option.
|
|
201
207
|
* @throws {RequiredError}
|
|
202
208
|
*/
|
|
203
|
-
getEvents(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventEntityConnectionDto>>>;
|
|
209
|
+
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventEntityConnectionDto>>>;
|
|
204
210
|
/**
|
|
205
211
|
*
|
|
206
212
|
* @summary Get groups of a user
|
|
@@ -242,11 +248,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
242
248
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
243
249
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
244
250
|
* @param {number} [limit] Limit results (1-1000)
|
|
251
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
252
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
245
253
|
* @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.
|
|
246
254
|
* @param {*} [options] Override http request option.
|
|
247
255
|
* @throws {RequiredError}
|
|
248
256
|
*/
|
|
249
|
-
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserDto>>>;
|
|
257
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserDto>>>;
|
|
250
258
|
/**
|
|
251
259
|
*
|
|
252
260
|
* @summary Update a user
|
|
@@ -314,11 +322,13 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
314
322
|
*
|
|
315
323
|
* @summary Get events of a user
|
|
316
324
|
* @param {string} userId
|
|
325
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
326
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
317
327
|
* @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.
|
|
318
328
|
* @param {*} [options] Override http request option.
|
|
319
329
|
* @throws {RequiredError}
|
|
320
330
|
*/
|
|
321
|
-
getEvents(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
331
|
+
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
322
332
|
/**
|
|
323
333
|
*
|
|
324
334
|
* @summary Get groups of a user
|
|
@@ -360,11 +370,13 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
360
370
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
361
371
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
362
372
|
* @param {number} [limit] Limit results (1-1000)
|
|
373
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
374
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
363
375
|
* @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.
|
|
364
376
|
* @param {*} [options] Override http request option.
|
|
365
377
|
* @throws {RequiredError}
|
|
366
378
|
*/
|
|
367
|
-
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
379
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
368
380
|
/**
|
|
369
381
|
*
|
|
370
382
|
* @summary Update a user
|
|
@@ -432,11 +444,13 @@ export interface UserApiInterface {
|
|
|
432
444
|
*
|
|
433
445
|
* @summary Get events of a user
|
|
434
446
|
* @param {string} userId
|
|
447
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
448
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
435
449
|
* @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.
|
|
436
450
|
* @param {*} [options] Override http request option.
|
|
437
451
|
* @throws {RequiredError}
|
|
438
452
|
*/
|
|
439
|
-
getEvents(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
453
|
+
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
440
454
|
/**
|
|
441
455
|
*
|
|
442
456
|
* @summary Get groups of a user
|
|
@@ -478,11 +492,13 @@ export interface UserApiInterface {
|
|
|
478
492
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
479
493
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
480
494
|
* @param {number} [limit] Limit results (1-1000)
|
|
495
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
496
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
481
497
|
* @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.
|
|
482
498
|
* @param {*} [options] Override http request option.
|
|
483
499
|
* @throws {RequiredError}
|
|
484
500
|
*/
|
|
485
|
-
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
501
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
486
502
|
/**
|
|
487
503
|
*
|
|
488
504
|
* @summary Update a user
|
|
@@ -550,11 +566,13 @@ export declare class UserApi extends BaseAPI implements UserApiInterface {
|
|
|
550
566
|
*
|
|
551
567
|
* @summary Get events of a user
|
|
552
568
|
* @param {string} userId
|
|
569
|
+
* @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
|
|
570
|
+
* @param {string} [to] ISO 8601 end of range (events starting before this time)
|
|
553
571
|
* @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.
|
|
554
572
|
* @param {*} [options] Override http request option.
|
|
555
573
|
* @throws {RequiredError}
|
|
556
574
|
*/
|
|
557
|
-
getEvents(userId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventEntityConnectionDto[], any, {}>>;
|
|
575
|
+
getEvents(userId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventEntityConnectionDto[], any, {}>>;
|
|
558
576
|
/**
|
|
559
577
|
*
|
|
560
578
|
* @summary Get groups of a user
|
|
@@ -596,11 +614,13 @@ export declare class UserApi extends BaseAPI implements UserApiInterface {
|
|
|
596
614
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
597
615
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
598
616
|
* @param {number} [limit] Limit results (1-1000)
|
|
617
|
+
* @param {string} [from] ISO 8601 date — filter events ending after this time
|
|
618
|
+
* @param {string} [to] ISO 8601 date — filter events starting before this time
|
|
599
619
|
* @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.
|
|
600
620
|
* @param {*} [options] Override http request option.
|
|
601
621
|
* @throws {RequiredError}
|
|
602
622
|
*/
|
|
603
|
-
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserDto[], any, {}>>;
|
|
623
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserDto[], any, {}>>;
|
|
604
624
|
/**
|
|
605
625
|
*
|
|
606
626
|
* @summary Update a user
|
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 }));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EventSeriesApi } from '../api/event-series-api';
|
|
2
|
+
import type { CreateEventSeriesDto, EventSeriesDto, EventDto, UpdateEventSeriesDto } from '../models';
|
|
3
|
+
export declare class EnhancedEventSeriesApi {
|
|
4
|
+
private readonly api;
|
|
5
|
+
constructor(api: EventSeriesApi);
|
|
6
|
+
createSeries(requesterUserId: string, data: CreateEventSeriesDto): Promise<string>;
|
|
7
|
+
getSeries(seriesId: string): Promise<EventSeriesDto>;
|
|
8
|
+
updateSeries(seriesId: string, requesterUserId: string, data: UpdateEventSeriesDto): Promise<string>;
|
|
9
|
+
deleteSeries(seriesId: string, requesterUserId: string): Promise<void>;
|
|
10
|
+
getInstances(seriesId: string, from?: string, to?: string): Promise<EventDto[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnhancedEventSeriesApi = void 0;
|
|
4
|
+
const errors_1 = require("./errors");
|
|
5
|
+
class EnhancedEventSeriesApi {
|
|
6
|
+
constructor(api) {
|
|
7
|
+
this.api = api;
|
|
8
|
+
}
|
|
9
|
+
async createSeries(requesterUserId, data) {
|
|
10
|
+
return (0, errors_1.unwrap)(this.api.create(requesterUserId, data));
|
|
11
|
+
}
|
|
12
|
+
async getSeries(seriesId) {
|
|
13
|
+
return (0, errors_1.unwrap)(this.api.get(seriesId));
|
|
14
|
+
}
|
|
15
|
+
async updateSeries(seriesId, requesterUserId, data) {
|
|
16
|
+
return (0, errors_1.unwrap)(this.api.update(seriesId, requesterUserId, data));
|
|
17
|
+
}
|
|
18
|
+
async deleteSeries(seriesId, requesterUserId) {
|
|
19
|
+
return (0, errors_1.unwrap)(this.api.remove(seriesId, requesterUserId));
|
|
20
|
+
}
|
|
21
|
+
async getInstances(seriesId, from, to) {
|
|
22
|
+
return (0, errors_1.unwrap)(this.api.getInstances(seriesId, from, to));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.EnhancedEventSeriesApi = EnhancedEventSeriesApi;
|
|
@@ -22,5 +22,5 @@ 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
26
|
}
|
|
@@ -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,8 @@ 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
75
|
}
|
|
76
76
|
}
|
|
77
77
|
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));
|