@proxima-nexus/sdk-typescript 2.2.0 → 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 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.3.0] - 2026-03-02
9
+
10
+ ### Added
11
+
12
+ - Time range filters (`from`, `to`) to event, user, group, and series APIs so you can easily query only ongoing or upcoming events.
13
+ - Enhanced client helpers for events now support passing `from`/`to` and include a new `searchByDateRange` method for date-only queries.
14
+ - Enhanced user and group helpers for `getEvents` now accept optional `from`/`to` parameters for consistent time-bounded queries across the SDK.
15
+
16
+ ### Changed
17
+
18
+ - Default behavior for series instance listing now returns only ongoing and upcoming events (instead of all past and future instances), matching typical calendar UX expectations.
19
+
8
20
  ## [2.2.0] - 2026-03-02
9
21
 
10
22
  ### Added
@@ -103,11 +103,13 @@ export declare const EventApiAxiosParamCreator: (configuration?: Configuration)
103
103
  * @param {number} [minLongitude] Minimum longitude for bounding box
104
104
  * @param {number} [maxLongitude] Maximum longitude for bounding box
105
105
  * @param {number} [limit] Limit results (1-1000)
106
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
107
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
106
108
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
107
109
  * @param {*} [options] Override http request option.
108
110
  * @throws {RequiredError}
109
111
  */
110
- 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>;
112
+ 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>;
111
113
  /**
112
114
  *
113
115
  * @summary Update an event. For series instances, only the fields provided in the request body will be marked as overridden and will no longer be propagated by series-level updates.
@@ -203,11 +205,13 @@ export declare const EventApiFp: (configuration?: Configuration) => {
203
205
  * @param {number} [minLongitude] Minimum longitude for bounding box
204
206
  * @param {number} [maxLongitude] Maximum longitude for bounding box
205
207
  * @param {number} [limit] Limit results (1-1000)
208
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
209
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
206
210
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
207
211
  * @param {*} [options] Override http request option.
208
212
  * @throws {RequiredError}
209
213
  */
210
- 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<EventDto>>>;
214
+ 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<EventDto>>>;
211
215
  /**
212
216
  *
213
217
  * @summary Update an event. For series instances, only the fields provided in the request body will be marked as overridden and will no longer be propagated by series-level updates.
@@ -303,11 +307,13 @@ export declare const EventApiFactory: (configuration?: Configuration, basePath?:
303
307
  * @param {number} [minLongitude] Minimum longitude for bounding box
304
308
  * @param {number} [maxLongitude] Maximum longitude for bounding box
305
309
  * @param {number} [limit] Limit results (1-1000)
310
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
311
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
306
312
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
307
313
  * @param {*} [options] Override http request option.
308
314
  * @throws {RequiredError}
309
315
  */
310
- 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<EventDto>>;
316
+ 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<EventDto>>;
311
317
  /**
312
318
  *
313
319
  * @summary Update an event. For series instances, only the fields provided in the request body will be marked as overridden and will no longer be propagated by series-level updates.
@@ -403,11 +409,13 @@ export interface EventApiInterface {
403
409
  * @param {number} [minLongitude] Minimum longitude for bounding box
404
410
  * @param {number} [maxLongitude] Maximum longitude for bounding box
405
411
  * @param {number} [limit] Limit results (1-1000)
412
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
413
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
406
414
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
407
415
  * @param {*} [options] Override http request option.
408
416
  * @throws {RequiredError}
409
417
  */
410
- 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<EventDto>>;
418
+ 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<EventDto>>;
411
419
  /**
412
420
  *
413
421
  * @summary Update an event. For series instances, only the fields provided in the request body will be marked as overridden and will no longer be propagated by series-level updates.
@@ -503,11 +511,13 @@ export declare class EventApi extends BaseAPI implements EventApiInterface {
503
511
  * @param {number} [minLongitude] Minimum longitude for bounding box
504
512
  * @param {number} [maxLongitude] Maximum longitude for bounding box
505
513
  * @param {number} [limit] Limit results (1-1000)
514
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
515
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
506
516
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
507
517
  * @param {*} [options] Override http request option.
508
518
  * @throws {RequiredError}
509
519
  */
510
- 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<EventDto[], any, {}>>;
520
+ 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<EventDto[], any, {}>>;
511
521
  /**
512
522
  *
513
523
  * @summary Update an event. For series instances, only the fields provided in the request body will be marked as overridden and will no longer be propagated by series-level updates.
@@ -322,11 +322,13 @@ const EventApiAxiosParamCreator = function (configuration) {
322
322
  * @param {number} [minLongitude] Minimum longitude for bounding box
323
323
  * @param {number} [maxLongitude] Maximum longitude for bounding box
324
324
  * @param {number} [limit] Limit results (1-1000)
325
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
326
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
325
327
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
326
328
  * @param {*} [options] Override http request option.
327
329
  * @throws {RequiredError}
328
330
  */
329
- search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options = {}) => {
331
+ search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options = {}) => {
330
332
  const localVarPath = `/event`;
331
333
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
332
334
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -366,6 +368,12 @@ const EventApiAxiosParamCreator = function (configuration) {
366
368
  if (limit !== undefined) {
367
369
  localVarQueryParameter['limit'] = limit;
368
370
  }
371
+ if (from !== undefined) {
372
+ localVarQueryParameter['from'] = from;
373
+ }
374
+ if (to !== undefined) {
375
+ localVarQueryParameter['to'] = to;
376
+ }
369
377
  localVarHeaderParameter['Accept'] = 'application/json';
370
378
  if (xProximaNexusRequesterUserId != null) {
371
379
  localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
@@ -545,12 +553,14 @@ const EventApiFp = function (configuration) {
545
553
  * @param {number} [minLongitude] Minimum longitude for bounding box
546
554
  * @param {number} [maxLongitude] Maximum longitude for bounding box
547
555
  * @param {number} [limit] Limit results (1-1000)
556
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
557
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
548
558
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
549
559
  * @param {*} [options] Override http request option.
550
560
  * @throws {RequiredError}
551
561
  */
552
- async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
553
- const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options);
562
+ async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options);
554
564
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
555
565
  const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.search']?.[localVarOperationServerIndex]?.url;
556
566
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -673,12 +683,14 @@ const EventApiFactory = function (configuration, basePath, axios) {
673
683
  * @param {number} [minLongitude] Minimum longitude for bounding box
674
684
  * @param {number} [maxLongitude] Maximum longitude for bounding box
675
685
  * @param {number} [limit] Limit results (1-1000)
686
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
687
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
676
688
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
677
689
  * @param {*} [options] Override http request option.
678
690
  * @throws {RequiredError}
679
691
  */
680
- search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
681
- return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
692
+ search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
693
+ return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
682
694
  },
683
695
  /**
684
696
  *
@@ -793,12 +805,14 @@ class EventApi extends base_1.BaseAPI {
793
805
  * @param {number} [minLongitude] Minimum longitude for bounding box
794
806
  * @param {number} [maxLongitude] Maximum longitude for bounding box
795
807
  * @param {number} [limit] Limit results (1-1000)
808
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
809
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
796
810
  * @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
797
811
  * @param {*} [options] Override http request option.
798
812
  * @throws {RequiredError}
799
813
  */
800
- search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options) {
801
- return (0, exports.EventApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
814
+ search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options) {
815
+ return (0, exports.EventApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, from, to, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
802
816
  }
803
817
  /**
804
818
  *
@@ -38,13 +38,15 @@ export declare const EventSeriesApiAxiosParamCreator: (configuration?: Configura
38
38
  */
39
39
  get: (seriesId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40
40
  /**
41
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
42
- * @summary List all event instances in a series
41
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
42
+ * @summary List event instances in a series
43
43
  * @param {string} seriesId
44
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
45
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
44
46
  * @param {*} [options] Override http request option.
45
47
  * @throws {RequiredError}
46
48
  */
47
- getInstances: (seriesId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
+ getInstances: (seriesId: string, from?: string, to?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
50
  /**
49
51
  * Deletes the series and all upcoming event instances. Past instances (already started) are preserved.
50
52
  * @summary Delete an event series
@@ -87,13 +89,15 @@ export declare const EventSeriesApiFp: (configuration?: Configuration) => {
87
89
  */
88
90
  get(seriesId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventSeriesDto>>;
89
91
  /**
90
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
91
- * @summary List all event instances in a series
92
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
93
+ * @summary List event instances in a series
92
94
  * @param {string} seriesId
95
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
96
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
93
97
  * @param {*} [options] Override http request option.
94
98
  * @throws {RequiredError}
95
99
  */
96
- getInstances(seriesId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventDto>>>;
100
+ getInstances(seriesId: string, from?: string, to?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventDto>>>;
97
101
  /**
98
102
  * Deletes the series and all upcoming event instances. Past instances (already started) are preserved.
99
103
  * @summary Delete an event series
@@ -136,13 +140,15 @@ export declare const EventSeriesApiFactory: (configuration?: Configuration, base
136
140
  */
137
141
  get(seriesId: string, options?: RawAxiosRequestConfig): AxiosPromise<EventSeriesDto>;
138
142
  /**
139
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
140
- * @summary List all event instances in a series
143
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
144
+ * @summary List event instances in a series
141
145
  * @param {string} seriesId
146
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
147
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
142
148
  * @param {*} [options] Override http request option.
143
149
  * @throws {RequiredError}
144
150
  */
145
- getInstances(seriesId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventDto>>;
151
+ getInstances(seriesId: string, from?: string, to?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventDto>>;
146
152
  /**
147
153
  * Deletes the series and all upcoming event instances. Past instances (already started) are preserved.
148
154
  * @summary Delete an event series
@@ -185,13 +191,15 @@ export interface EventSeriesApiInterface {
185
191
  */
186
192
  get(seriesId: string, options?: RawAxiosRequestConfig): AxiosPromise<EventSeriesDto>;
187
193
  /**
188
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
189
- * @summary List all event instances in a series
194
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
195
+ * @summary List event instances in a series
190
196
  * @param {string} seriesId
197
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
198
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
191
199
  * @param {*} [options] Override http request option.
192
200
  * @throws {RequiredError}
193
201
  */
194
- getInstances(seriesId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventDto>>;
202
+ getInstances(seriesId: string, from?: string, to?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventDto>>;
195
203
  /**
196
204
  * Deletes the series and all upcoming event instances. Past instances (already started) are preserved.
197
205
  * @summary Delete an event series
@@ -234,13 +242,15 @@ export declare class EventSeriesApi extends BaseAPI implements EventSeriesApiInt
234
242
  */
235
243
  get(seriesId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventSeriesDto, any, {}>>;
236
244
  /**
237
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
238
- * @summary List all event instances in a series
245
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
246
+ * @summary List event instances in a series
239
247
  * @param {string} seriesId
248
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
249
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
240
250
  * @param {*} [options] Override http request option.
241
251
  * @throws {RequiredError}
242
252
  */
243
- getInstances(seriesId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventDto[], any, {}>>;
253
+ getInstances(seriesId: string, from?: string, to?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventDto[], any, {}>>;
244
254
  /**
245
255
  * Deletes the series and all upcoming event instances. Past instances (already started) are preserved.
246
256
  * @summary Delete an event series
@@ -100,13 +100,15 @@ const EventSeriesApiAxiosParamCreator = function (configuration) {
100
100
  };
101
101
  },
102
102
  /**
103
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
104
- * @summary List all event instances in a series
103
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
104
+ * @summary List event instances in a series
105
105
  * @param {string} seriesId
106
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
107
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
106
108
  * @param {*} [options] Override http request option.
107
109
  * @throws {RequiredError}
108
110
  */
109
- getInstances: async (seriesId, options = {}) => {
111
+ getInstances: async (seriesId, from, to, options = {}) => {
110
112
  // verify required parameter 'seriesId' is not null or undefined
111
113
  (0, common_1.assertParamExists)('getInstances', 'seriesId', seriesId);
112
114
  const localVarPath = `/event-series/{seriesId}/events`
@@ -122,6 +124,12 @@ const EventSeriesApiAxiosParamCreator = function (configuration) {
122
124
  const localVarQueryParameter = {};
123
125
  // authentication api_key required
124
126
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
127
+ if (from !== undefined) {
128
+ localVarQueryParameter['from'] = from;
129
+ }
130
+ if (to !== undefined) {
131
+ localVarQueryParameter['to'] = to;
132
+ }
125
133
  localVarHeaderParameter['Accept'] = 'application/json';
126
134
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
127
135
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -248,14 +256,16 @@ const EventSeriesApiFp = function (configuration) {
248
256
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
249
257
  },
250
258
  /**
251
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
252
- * @summary List all event instances in a series
259
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
260
+ * @summary List event instances in a series
253
261
  * @param {string} seriesId
262
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
263
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
254
264
  * @param {*} [options] Override http request option.
255
265
  * @throws {RequiredError}
256
266
  */
257
- async getInstances(seriesId, options) {
258
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInstances(seriesId, options);
267
+ async getInstances(seriesId, from, to, options) {
268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInstances(seriesId, from, to, options);
259
269
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
260
270
  const localVarOperationServerBasePath = base_1.operationServerMap['EventSeriesApi.getInstances']?.[localVarOperationServerIndex]?.url;
261
271
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -320,14 +330,16 @@ const EventSeriesApiFactory = function (configuration, basePath, axios) {
320
330
  return localVarFp.get(seriesId, options).then((request) => request(axios, basePath));
321
331
  },
322
332
  /**
323
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
324
- * @summary List all event instances in a series
333
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
334
+ * @summary List event instances in a series
325
335
  * @param {string} seriesId
336
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
337
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
326
338
  * @param {*} [options] Override http request option.
327
339
  * @throws {RequiredError}
328
340
  */
329
- getInstances(seriesId, options) {
330
- return localVarFp.getInstances(seriesId, options).then((request) => request(axios, basePath));
341
+ getInstances(seriesId, from, to, options) {
342
+ return localVarFp.getInstances(seriesId, from, to, options).then((request) => request(axios, basePath));
331
343
  },
332
344
  /**
333
345
  * Deletes the series and all upcoming event instances. Past instances (already started) are preserved.
@@ -381,14 +393,16 @@ class EventSeriesApi extends base_1.BaseAPI {
381
393
  return (0, exports.EventSeriesApiFp)(this.configuration).get(seriesId, options).then((request) => request(this.axios, this.basePath));
382
394
  }
383
395
  /**
384
- * Returns all event instances (past and upcoming) belonging to this series, ordered by start time.
385
- * @summary List all event instances in a series
396
+ * Returns event instances belonging to this series, ordered by start time. Defaults to only ongoing/upcoming instances.
397
+ * @summary List event instances in a series
386
398
  * @param {string} seriesId
399
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
400
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
387
401
  * @param {*} [options] Override http request option.
388
402
  * @throws {RequiredError}
389
403
  */
390
- getInstances(seriesId, options) {
391
- return (0, exports.EventSeriesApiFp)(this.configuration).getInstances(seriesId, options).then((request) => request(this.axios, this.basePath));
404
+ getInstances(seriesId, from, to, options) {
405
+ return (0, exports.EventSeriesApiFp)(this.configuration).getInstances(seriesId, from, to, options).then((request) => request(this.axios, this.basePath));
392
406
  }
393
407
  /**
394
408
  * Deletes the series and all upcoming event instances. Past instances (already started) are preserved.
@@ -77,11 +77,13 @@ export declare const GroupApiAxiosParamCreator: (configuration?: Configuration)
77
77
  *
78
78
  * @summary Get events of a group
79
79
  * @param {string} groupId
80
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
81
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
80
82
  * @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.
81
83
  * @param {*} [options] Override http request option.
82
84
  * @throws {RequiredError}
83
85
  */
84
- getEvents: (groupId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
86
+ getEvents: (groupId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
85
87
  /**
86
88
  *
87
89
  * @summary Delete a group
@@ -114,11 +116,13 @@ export declare const GroupApiAxiosParamCreator: (configuration?: Configuration)
114
116
  * @param {number} [minLongitude] Minimum longitude for bounding box
115
117
  * @param {number} [maxLongitude] Maximum longitude for bounding box
116
118
  * @param {number} [limit] Limit results (1-1000)
119
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
120
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
117
121
  * @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.
118
122
  * @param {*} [options] Override http request option.
119
123
  * @throws {RequiredError}
120
124
  */
121
- 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>;
125
+ 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>;
122
126
  /**
123
127
  *
124
128
  * @summary Update a group
@@ -187,11 +191,13 @@ export declare const GroupApiFp: (configuration?: Configuration) => {
187
191
  *
188
192
  * @summary Get events of a group
189
193
  * @param {string} groupId
194
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
195
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
190
196
  * @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.
191
197
  * @param {*} [options] Override http request option.
192
198
  * @throws {RequiredError}
193
199
  */
194
- getEvents(groupId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventEntityConnectionDto>>>;
200
+ getEvents(groupId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventEntityConnectionDto>>>;
195
201
  /**
196
202
  *
197
203
  * @summary Delete a group
@@ -224,11 +230,13 @@ export declare const GroupApiFp: (configuration?: Configuration) => {
224
230
  * @param {number} [minLongitude] Minimum longitude for bounding box
225
231
  * @param {number} [maxLongitude] Maximum longitude for bounding box
226
232
  * @param {number} [limit] Limit results (1-1000)
233
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
234
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
227
235
  * @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.
228
236
  * @param {*} [options] Override http request option.
229
237
  * @throws {RequiredError}
230
238
  */
231
- 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<GroupDto>>>;
239
+ 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<GroupDto>>>;
232
240
  /**
233
241
  *
234
242
  * @summary Update a group
@@ -297,11 +305,13 @@ export declare const GroupApiFactory: (configuration?: Configuration, basePath?:
297
305
  *
298
306
  * @summary Get events of a group
299
307
  * @param {string} groupId
308
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
309
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
300
310
  * @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.
301
311
  * @param {*} [options] Override http request option.
302
312
  * @throws {RequiredError}
303
313
  */
304
- getEvents(groupId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
314
+ getEvents(groupId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
305
315
  /**
306
316
  *
307
317
  * @summary Delete a group
@@ -334,11 +344,13 @@ export declare const GroupApiFactory: (configuration?: Configuration, basePath?:
334
344
  * @param {number} [minLongitude] Minimum longitude for bounding box
335
345
  * @param {number} [maxLongitude] Maximum longitude for bounding box
336
346
  * @param {number} [limit] Limit results (1-1000)
347
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
348
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
337
349
  * @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.
338
350
  * @param {*} [options] Override http request option.
339
351
  * @throws {RequiredError}
340
352
  */
341
- 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<GroupDto>>;
353
+ 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<GroupDto>>;
342
354
  /**
343
355
  *
344
356
  * @summary Update a group
@@ -407,11 +419,13 @@ export interface GroupApiInterface {
407
419
  *
408
420
  * @summary Get events of a group
409
421
  * @param {string} groupId
422
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
423
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
410
424
  * @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.
411
425
  * @param {*} [options] Override http request option.
412
426
  * @throws {RequiredError}
413
427
  */
414
- getEvents(groupId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
428
+ getEvents(groupId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
415
429
  /**
416
430
  *
417
431
  * @summary Delete a group
@@ -444,11 +458,13 @@ export interface GroupApiInterface {
444
458
  * @param {number} [minLongitude] Minimum longitude for bounding box
445
459
  * @param {number} [maxLongitude] Maximum longitude for bounding box
446
460
  * @param {number} [limit] Limit results (1-1000)
461
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
462
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
447
463
  * @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.
448
464
  * @param {*} [options] Override http request option.
449
465
  * @throws {RequiredError}
450
466
  */
451
- 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<GroupDto>>;
467
+ 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<GroupDto>>;
452
468
  /**
453
469
  *
454
470
  * @summary Update a group
@@ -517,11 +533,13 @@ export declare class GroupApi extends BaseAPI implements GroupApiInterface {
517
533
  *
518
534
  * @summary Get events of a group
519
535
  * @param {string} groupId
536
+ * @param {string} [from] ISO 8601 start of range (events ending after this time). Default: NOW()
537
+ * @param {string} [to] ISO 8601 end of range (events starting before this time)
520
538
  * @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.
521
539
  * @param {*} [options] Override http request option.
522
540
  * @throws {RequiredError}
523
541
  */
524
- getEvents(groupId: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventEntityConnectionDto[], any, {}>>;
542
+ getEvents(groupId: string, from?: string, to?: string, xProximaNexusRequesterUserId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventEntityConnectionDto[], any, {}>>;
525
543
  /**
526
544
  *
527
545
  * @summary Delete a group
@@ -554,11 +572,13 @@ export declare class GroupApi extends BaseAPI implements GroupApiInterface {
554
572
  * @param {number} [minLongitude] Minimum longitude for bounding box
555
573
  * @param {number} [maxLongitude] Maximum longitude for bounding box
556
574
  * @param {number} [limit] Limit results (1-1000)
575
+ * @param {string} [from] ISO 8601 date — filter events ending after this time
576
+ * @param {string} [to] ISO 8601 date — filter events starting before this time
557
577
  * @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.
558
578
  * @param {*} [options] Override http request option.
559
579
  * @throws {RequiredError}
560
580
  */
561
- 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<GroupDto[], any, {}>>;
581
+ 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<GroupDto[], any, {}>>;
562
582
  /**
563
583
  *
564
584
  * @summary Update a group
@@ -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
  *
@@ -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
@@ -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,5 @@ 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
11
  }
@@ -18,8 +18,8 @@ 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
23
  }
24
24
  }
25
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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proxima-nexus/sdk-typescript",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "TypeScript SDK for Proxima Nexus Data Plane API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",