@proxima-nexus/sdk-typescript 1.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/README.md +173 -159
- package/dist/api/event-api.d.ts +171 -65
- package/dist/api/event-api.js +273 -93
- package/dist/api/group-api.d.ts +147 -70
- package/dist/api/group-api.js +234 -101
- package/dist/api/user-api.d.ts +210 -125
- package/dist/api/user-api.js +297 -171
- package/dist/models/create-event-dto.d.ts +4 -4
- package/dist/models/create-group-dto.d.ts +6 -5
- package/dist/models/create-group-dto.js +7 -1
- package/dist/models/create-user-dto.d.ts +0 -4
- package/dist/models/entity-connection-dto.d.ts +17 -1
- package/dist/models/entity-connection-dto.js +14 -1
- package/dist/models/event-dto.d.ts +13 -4
- package/dist/models/event-entity-connection-dto.d.ts +17 -1
- package/dist/models/event-entity-connection-dto.js +14 -1
- package/dist/models/group-dto.d.ts +15 -5
- package/dist/models/group-dto.js +7 -1
- package/dist/models/group-entity-connection-dto.d.ts +17 -1
- package/dist/models/group-entity-connection-dto.js +14 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/mutate-event-entity-connection-dto.d.ts +22 -0
- package/dist/models/mutate-event-entity-connection-dto.js +22 -0
- package/dist/models/mutate-group-entity-connection-dto.d.ts +22 -0
- package/dist/models/mutate-group-entity-connection-dto.js +22 -0
- package/dist/models/mutate-user-connection-dto.d.ts +21 -0
- package/dist/models/mutate-user-connection-dto.js +21 -0
- package/dist/models/update-event-dto.d.ts +4 -4
- package/dist/models/update-group-dto.d.ts +6 -5
- package/dist/models/update-group-dto.js +7 -1
- package/dist/models/update-user-dto.d.ts +0 -4
- package/dist/models/user-dto.d.ts +5 -4
- package/dist/models/user-entity-connection-dto.d.ts +17 -1
- package/dist/models/user-entity-connection-dto.js +14 -1
- package/package.json +5 -4
package/dist/api/event-api.js
CHANGED
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.EventApi = exports.EventApiFactory = exports.EventApiFp = exports.EventApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.EventControllerGetConnectionsTypeEnum = exports.EventApi = exports.EventApiFactory = exports.EventApiFp = exports.EventApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -33,15 +33,21 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
33
33
|
* @summary Add an attendee to an event
|
|
34
34
|
* @param {string} eventId
|
|
35
35
|
* @param {string} userId
|
|
36
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
37
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
36
38
|
* @param {*} [options] Override http request option.
|
|
37
39
|
* @throws {RequiredError}
|
|
38
40
|
*/
|
|
39
|
-
|
|
41
|
+
addConnection: async (eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options = {}) => {
|
|
40
42
|
// verify required parameter 'eventId' is not null or undefined
|
|
41
|
-
(0, common_1.assertParamExists)('
|
|
43
|
+
(0, common_1.assertParamExists)('addConnection', 'eventId', eventId);
|
|
42
44
|
// verify required parameter 'userId' is not null or undefined
|
|
43
|
-
(0, common_1.assertParamExists)('
|
|
44
|
-
|
|
45
|
+
(0, common_1.assertParamExists)('addConnection', 'userId', userId);
|
|
46
|
+
// verify required parameter 'xProximaNexusRequesterUserId' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('addConnection', 'xProximaNexusRequesterUserId', xProximaNexusRequesterUserId);
|
|
48
|
+
// verify required parameter 'mutateEventEntityConnectionDto' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('addConnection', 'mutateEventEntityConnectionDto', mutateEventEntityConnectionDto);
|
|
50
|
+
const localVarPath = `/event/{eventId}/connection/{userId}`
|
|
45
51
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
46
52
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
47
53
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -53,10 +59,17 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
53
59
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
54
60
|
const localVarHeaderParameter = {};
|
|
55
61
|
const localVarQueryParameter = {};
|
|
62
|
+
// authentication api_key required
|
|
63
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
64
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56
65
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
66
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
67
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
68
|
+
}
|
|
57
69
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
58
70
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
71
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
72
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mutateEventEntityConnectionDto, localVarRequestOptions, configuration);
|
|
60
73
|
return {
|
|
61
74
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
62
75
|
options: localVarRequestOptions,
|
|
@@ -64,12 +77,15 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
64
77
|
},
|
|
65
78
|
/**
|
|
66
79
|
*
|
|
67
|
-
* @summary Create an event
|
|
80
|
+
* @summary Create an event. Owner will be the user creating the event or the group associated with the event (if set)
|
|
81
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user creating the event
|
|
68
82
|
* @param {CreateEventDto} createEventDto
|
|
69
83
|
* @param {*} [options] Override http request option.
|
|
70
84
|
* @throws {RequiredError}
|
|
71
85
|
*/
|
|
72
|
-
create: async (createEventDto, options = {}) => {
|
|
86
|
+
create: async (xProximaNexusRequesterUserId, createEventDto, options = {}) => {
|
|
87
|
+
// verify required parameter 'xProximaNexusRequesterUserId' is not null or undefined
|
|
88
|
+
(0, common_1.assertParamExists)('create', 'xProximaNexusRequesterUserId', xProximaNexusRequesterUserId);
|
|
73
89
|
// verify required parameter 'createEventDto' is not null or undefined
|
|
74
90
|
(0, common_1.assertParamExists)('create', 'createEventDto', createEventDto);
|
|
75
91
|
const localVarPath = `/event`;
|
|
@@ -82,8 +98,13 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
82
98
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
83
99
|
const localVarHeaderParameter = {};
|
|
84
100
|
const localVarQueryParameter = {};
|
|
101
|
+
// authentication api_key required
|
|
102
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
85
103
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
86
104
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
105
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
106
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
107
|
+
}
|
|
87
108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
88
109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
110
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -97,12 +118,13 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
97
118
|
*
|
|
98
119
|
* @summary Get an event by ID
|
|
99
120
|
* @param {string} eventId
|
|
121
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, 401 may be returned if the user cannot view the event, otherwise requesterConnection will be set on the result.
|
|
100
122
|
* @param {*} [options] Override http request option.
|
|
101
123
|
* @throws {RequiredError}
|
|
102
124
|
*/
|
|
103
|
-
|
|
125
|
+
get: async (eventId, xProximaNexusRequesterUserId, options = {}) => {
|
|
104
126
|
// verify required parameter 'eventId' is not null or undefined
|
|
105
|
-
(0, common_1.assertParamExists)('
|
|
127
|
+
(0, common_1.assertParamExists)('get', 'eventId', eventId);
|
|
106
128
|
const localVarPath = `/event/{eventId}`
|
|
107
129
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
108
130
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -114,7 +136,12 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
114
136
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
115
137
|
const localVarHeaderParameter = {};
|
|
116
138
|
const localVarQueryParameter = {};
|
|
139
|
+
// authentication api_key required
|
|
140
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
117
141
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
142
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
143
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
144
|
+
}
|
|
118
145
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
119
146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
147
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -125,29 +152,36 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
125
152
|
},
|
|
126
153
|
/**
|
|
127
154
|
*
|
|
128
|
-
* @summary Get
|
|
129
|
-
* @param {
|
|
155
|
+
* @summary Get a batch of events by IDs
|
|
156
|
+
* @param {GetEventsDto} getEventsDto
|
|
157
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting a batch of events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
130
158
|
* @param {*} [options] Override http request option.
|
|
131
159
|
* @throws {RequiredError}
|
|
132
160
|
*/
|
|
133
|
-
|
|
134
|
-
// verify required parameter '
|
|
135
|
-
(0, common_1.assertParamExists)('
|
|
136
|
-
const localVarPath = `/event/
|
|
137
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
161
|
+
getBatch: async (getEventsDto, xProximaNexusRequesterUserId, options = {}) => {
|
|
162
|
+
// verify required parameter 'getEventsDto' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('getBatch', 'getEventsDto', getEventsDto);
|
|
164
|
+
const localVarPath = `/event/batch`;
|
|
138
165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
166
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
140
167
|
let baseOptions;
|
|
141
168
|
if (configuration) {
|
|
142
169
|
baseOptions = configuration.baseOptions;
|
|
143
170
|
}
|
|
144
|
-
const localVarRequestOptions = { method: '
|
|
171
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
145
172
|
const localVarHeaderParameter = {};
|
|
146
173
|
const localVarQueryParameter = {};
|
|
174
|
+
// authentication api_key required
|
|
175
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
176
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
147
177
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
178
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
179
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
180
|
+
}
|
|
148
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
149
182
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
183
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getEventsDto, localVarRequestOptions, configuration);
|
|
151
185
|
return {
|
|
152
186
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
153
187
|
options: localVarRequestOptions,
|
|
@@ -155,30 +189,39 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
155
189
|
},
|
|
156
190
|
/**
|
|
157
191
|
*
|
|
158
|
-
* @summary Get
|
|
159
|
-
* @param {
|
|
192
|
+
* @summary Get connections of an event
|
|
193
|
+
* @param {string} eventId
|
|
194
|
+
* @param {Array<EventControllerGetConnectionsTypeEnum>} [type] Filter connections by type. Can be a single type or multiple types (comma-separated or array)
|
|
195
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting connections of the event. If set, 401 may be returned if the user cannot view the event connections.
|
|
160
196
|
* @param {*} [options] Override http request option.
|
|
161
197
|
* @throws {RequiredError}
|
|
162
198
|
*/
|
|
163
|
-
|
|
164
|
-
// verify required parameter '
|
|
165
|
-
(0, common_1.assertParamExists)('
|
|
166
|
-
const localVarPath = `/event/
|
|
199
|
+
getConnections: async (eventId, type, xProximaNexusRequesterUserId, options = {}) => {
|
|
200
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
201
|
+
(0, common_1.assertParamExists)('getConnections', 'eventId', eventId);
|
|
202
|
+
const localVarPath = `/event/{eventId}/connections`
|
|
203
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
167
204
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
205
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
206
|
let baseOptions;
|
|
170
207
|
if (configuration) {
|
|
171
208
|
baseOptions = configuration.baseOptions;
|
|
172
209
|
}
|
|
173
|
-
const localVarRequestOptions = { method: '
|
|
210
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
174
211
|
const localVarHeaderParameter = {};
|
|
175
212
|
const localVarQueryParameter = {};
|
|
176
|
-
|
|
213
|
+
// authentication api_key required
|
|
214
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
215
|
+
if (type) {
|
|
216
|
+
localVarQueryParameter['type'] = type;
|
|
217
|
+
}
|
|
177
218
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
219
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
220
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
221
|
+
}
|
|
178
222
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
179
223
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
224
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
181
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getEventsDto, localVarRequestOptions, configuration);
|
|
182
225
|
return {
|
|
183
226
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
184
227
|
options: localVarRequestOptions,
|
|
@@ -188,7 +231,7 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
188
231
|
*
|
|
189
232
|
* @summary Delete an event
|
|
190
233
|
* @param {string} eventId
|
|
191
|
-
* @param {string} xProximaNexusRequesterUserId
|
|
234
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user deleting the event
|
|
192
235
|
* @param {*} [options] Override http request option.
|
|
193
236
|
* @throws {RequiredError}
|
|
194
237
|
*/
|
|
@@ -208,6 +251,8 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
208
251
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
209
252
|
const localVarHeaderParameter = {};
|
|
210
253
|
const localVarQueryParameter = {};
|
|
254
|
+
// authentication api_key required
|
|
255
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
211
256
|
if (xProximaNexusRequesterUserId != null) {
|
|
212
257
|
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
213
258
|
}
|
|
@@ -219,6 +264,52 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
219
264
|
options: localVarRequestOptions,
|
|
220
265
|
};
|
|
221
266
|
},
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @summary Remove an attendee from an event
|
|
270
|
+
* @param {string} eventId
|
|
271
|
+
* @param {string} userId
|
|
272
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
273
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
removeConnection: async (eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options = {}) => {
|
|
278
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
279
|
+
(0, common_1.assertParamExists)('removeConnection', 'eventId', eventId);
|
|
280
|
+
// verify required parameter 'userId' is not null or undefined
|
|
281
|
+
(0, common_1.assertParamExists)('removeConnection', 'userId', userId);
|
|
282
|
+
// verify required parameter 'xProximaNexusRequesterUserId' is not null or undefined
|
|
283
|
+
(0, common_1.assertParamExists)('removeConnection', 'xProximaNexusRequesterUserId', xProximaNexusRequesterUserId);
|
|
284
|
+
// verify required parameter 'mutateEventEntityConnectionDto' is not null or undefined
|
|
285
|
+
(0, common_1.assertParamExists)('removeConnection', 'mutateEventEntityConnectionDto', mutateEventEntityConnectionDto);
|
|
286
|
+
const localVarPath = `/event/{eventId}/connection/{userId}`
|
|
287
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
288
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
291
|
+
let baseOptions;
|
|
292
|
+
if (configuration) {
|
|
293
|
+
baseOptions = configuration.baseOptions;
|
|
294
|
+
}
|
|
295
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
296
|
+
const localVarHeaderParameter = {};
|
|
297
|
+
const localVarQueryParameter = {};
|
|
298
|
+
// authentication api_key required
|
|
299
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
300
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
301
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
302
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
303
|
+
}
|
|
304
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
307
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mutateEventEntityConnectionDto, localVarRequestOptions, configuration);
|
|
308
|
+
return {
|
|
309
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
310
|
+
options: localVarRequestOptions,
|
|
311
|
+
};
|
|
312
|
+
},
|
|
222
313
|
/**
|
|
223
314
|
*
|
|
224
315
|
* @summary Search events
|
|
@@ -231,10 +322,11 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
231
322
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
232
323
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
233
324
|
* @param {number} [limit] Limit results (1-1000)
|
|
325
|
+
* @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.
|
|
234
326
|
* @param {*} [options] Override http request option.
|
|
235
327
|
* @throws {RequiredError}
|
|
236
328
|
*/
|
|
237
|
-
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options = {}) => {
|
|
329
|
+
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, xProximaNexusRequesterUserId, options = {}) => {
|
|
238
330
|
const localVarPath = `/event`;
|
|
239
331
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
332
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -245,6 +337,8 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
245
337
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
246
338
|
const localVarHeaderParameter = {};
|
|
247
339
|
const localVarQueryParameter = {};
|
|
340
|
+
// authentication api_key required
|
|
341
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
248
342
|
if (displayName !== undefined) {
|
|
249
343
|
localVarQueryParameter['displayName'] = displayName;
|
|
250
344
|
}
|
|
@@ -273,6 +367,9 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
273
367
|
localVarQueryParameter['limit'] = limit;
|
|
274
368
|
}
|
|
275
369
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
370
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
371
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
372
|
+
}
|
|
276
373
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
277
374
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
278
375
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -285,13 +382,16 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
285
382
|
*
|
|
286
383
|
* @summary Update an event
|
|
287
384
|
* @param {string} eventId
|
|
385
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user updating the event
|
|
288
386
|
* @param {UpdateEventDto} updateEventDto
|
|
289
387
|
* @param {*} [options] Override http request option.
|
|
290
388
|
* @throws {RequiredError}
|
|
291
389
|
*/
|
|
292
|
-
update: async (eventId, updateEventDto, options = {}) => {
|
|
390
|
+
update: async (eventId, xProximaNexusRequesterUserId, updateEventDto, options = {}) => {
|
|
293
391
|
// verify required parameter 'eventId' is not null or undefined
|
|
294
392
|
(0, common_1.assertParamExists)('update', 'eventId', eventId);
|
|
393
|
+
// verify required parameter 'xProximaNexusRequesterUserId' is not null or undefined
|
|
394
|
+
(0, common_1.assertParamExists)('update', 'xProximaNexusRequesterUserId', xProximaNexusRequesterUserId);
|
|
295
395
|
// verify required parameter 'updateEventDto' is not null or undefined
|
|
296
396
|
(0, common_1.assertParamExists)('update', 'updateEventDto', updateEventDto);
|
|
297
397
|
const localVarPath = `/event/{eventId}`
|
|
@@ -305,8 +405,13 @@ const EventApiAxiosParamCreator = function (configuration) {
|
|
|
305
405
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
306
406
|
const localVarHeaderParameter = {};
|
|
307
407
|
const localVarQueryParameter = {};
|
|
408
|
+
// authentication api_key required
|
|
409
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
308
410
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
309
411
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
412
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
413
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
414
|
+
}
|
|
310
415
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
311
416
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
417
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -330,24 +435,27 @@ const EventApiFp = function (configuration) {
|
|
|
330
435
|
* @summary Add an attendee to an event
|
|
331
436
|
* @param {string} eventId
|
|
332
437
|
* @param {string} userId
|
|
438
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
439
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
333
440
|
* @param {*} [options] Override http request option.
|
|
334
441
|
* @throws {RequiredError}
|
|
335
442
|
*/
|
|
336
|
-
async
|
|
337
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
443
|
+
async addConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options) {
|
|
444
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options);
|
|
338
445
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
339
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.
|
|
446
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.addConnection']?.[localVarOperationServerIndex]?.url;
|
|
340
447
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
341
448
|
},
|
|
342
449
|
/**
|
|
343
450
|
*
|
|
344
|
-
* @summary Create an event
|
|
451
|
+
* @summary Create an event. Owner will be the user creating the event or the group associated with the event (if set)
|
|
452
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user creating the event
|
|
345
453
|
* @param {CreateEventDto} createEventDto
|
|
346
454
|
* @param {*} [options] Override http request option.
|
|
347
455
|
* @throws {RequiredError}
|
|
348
456
|
*/
|
|
349
|
-
async create(createEventDto, options) {
|
|
350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.create(createEventDto, options);
|
|
457
|
+
async create(xProximaNexusRequesterUserId, createEventDto, options) {
|
|
458
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(xProximaNexusRequesterUserId, createEventDto, options);
|
|
351
459
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
352
460
|
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.create']?.[localVarOperationServerIndex]?.url;
|
|
353
461
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -356,46 +464,50 @@ const EventApiFp = function (configuration) {
|
|
|
356
464
|
*
|
|
357
465
|
* @summary Get an event by ID
|
|
358
466
|
* @param {string} eventId
|
|
467
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, 401 may be returned if the user cannot view the event, otherwise requesterConnection will be set on the result.
|
|
359
468
|
* @param {*} [options] Override http request option.
|
|
360
469
|
* @throws {RequiredError}
|
|
361
470
|
*/
|
|
362
|
-
async
|
|
363
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
471
|
+
async get(eventId, xProximaNexusRequesterUserId, options) {
|
|
472
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.get(eventId, xProximaNexusRequesterUserId, options);
|
|
364
473
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
365
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.
|
|
474
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.get']?.[localVarOperationServerIndex]?.url;
|
|
366
475
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
476
|
},
|
|
368
477
|
/**
|
|
369
478
|
*
|
|
370
|
-
* @summary Get
|
|
371
|
-
* @param {
|
|
479
|
+
* @summary Get a batch of events by IDs
|
|
480
|
+
* @param {GetEventsDto} getEventsDto
|
|
481
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting a batch of events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
372
482
|
* @param {*} [options] Override http request option.
|
|
373
483
|
* @throws {RequiredError}
|
|
374
484
|
*/
|
|
375
|
-
async
|
|
376
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
485
|
+
async getBatch(getEventsDto, xProximaNexusRequesterUserId, options) {
|
|
486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBatch(getEventsDto, xProximaNexusRequesterUserId, options);
|
|
377
487
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
378
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.
|
|
488
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.getBatch']?.[localVarOperationServerIndex]?.url;
|
|
379
489
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
380
490
|
},
|
|
381
491
|
/**
|
|
382
492
|
*
|
|
383
|
-
* @summary Get
|
|
384
|
-
* @param {
|
|
493
|
+
* @summary Get connections of an event
|
|
494
|
+
* @param {string} eventId
|
|
495
|
+
* @param {Array<EventControllerGetConnectionsTypeEnum>} [type] Filter connections by type. Can be a single type or multiple types (comma-separated or array)
|
|
496
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting connections of the event. If set, 401 may be returned if the user cannot view the event connections.
|
|
385
497
|
* @param {*} [options] Override http request option.
|
|
386
498
|
* @throws {RequiredError}
|
|
387
499
|
*/
|
|
388
|
-
async
|
|
389
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
500
|
+
async getConnections(eventId, type, xProximaNexusRequesterUserId, options) {
|
|
501
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConnections(eventId, type, xProximaNexusRequesterUserId, options);
|
|
390
502
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
391
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.
|
|
503
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.getConnections']?.[localVarOperationServerIndex]?.url;
|
|
392
504
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
393
505
|
},
|
|
394
506
|
/**
|
|
395
507
|
*
|
|
396
508
|
* @summary Delete an event
|
|
397
509
|
* @param {string} eventId
|
|
398
|
-
* @param {string} xProximaNexusRequesterUserId
|
|
510
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user deleting the event
|
|
399
511
|
* @param {*} [options] Override http request option.
|
|
400
512
|
* @throws {RequiredError}
|
|
401
513
|
*/
|
|
@@ -405,6 +517,22 @@ const EventApiFp = function (configuration) {
|
|
|
405
517
|
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.remove']?.[localVarOperationServerIndex]?.url;
|
|
406
518
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
407
519
|
},
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @summary Remove an attendee from an event
|
|
523
|
+
* @param {string} eventId
|
|
524
|
+
* @param {string} userId
|
|
525
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
526
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
*/
|
|
530
|
+
async removeConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options) {
|
|
531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options);
|
|
532
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
533
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.removeConnection']?.[localVarOperationServerIndex]?.url;
|
|
534
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
535
|
+
},
|
|
408
536
|
/**
|
|
409
537
|
*
|
|
410
538
|
* @summary Search events
|
|
@@ -417,11 +545,12 @@ const EventApiFp = function (configuration) {
|
|
|
417
545
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
418
546
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
419
547
|
* @param {number} [limit] Limit results (1-1000)
|
|
548
|
+
* @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.
|
|
420
549
|
* @param {*} [options] Override http request option.
|
|
421
550
|
* @throws {RequiredError}
|
|
422
551
|
*/
|
|
423
|
-
async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
|
|
424
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options);
|
|
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);
|
|
425
554
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
426
555
|
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.search']?.[localVarOperationServerIndex]?.url;
|
|
427
556
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -430,12 +559,13 @@ const EventApiFp = function (configuration) {
|
|
|
430
559
|
*
|
|
431
560
|
* @summary Update an event
|
|
432
561
|
* @param {string} eventId
|
|
562
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user updating the event
|
|
433
563
|
* @param {UpdateEventDto} updateEventDto
|
|
434
564
|
* @param {*} [options] Override http request option.
|
|
435
565
|
* @throws {RequiredError}
|
|
436
566
|
*/
|
|
437
|
-
async update(eventId, updateEventDto, options) {
|
|
438
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.update(eventId, updateEventDto, options);
|
|
567
|
+
async update(eventId, xProximaNexusRequesterUserId, updateEventDto, options) {
|
|
568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.update(eventId, xProximaNexusRequesterUserId, updateEventDto, options);
|
|
439
569
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
440
570
|
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.update']?.[localVarOperationServerIndex]?.url;
|
|
441
571
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -454,63 +584,83 @@ const EventApiFactory = function (configuration, basePath, axios) {
|
|
|
454
584
|
* @summary Add an attendee to an event
|
|
455
585
|
* @param {string} eventId
|
|
456
586
|
* @param {string} userId
|
|
587
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
588
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
457
589
|
* @param {*} [options] Override http request option.
|
|
458
590
|
* @throws {RequiredError}
|
|
459
591
|
*/
|
|
460
|
-
|
|
461
|
-
return localVarFp.
|
|
592
|
+
addConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options) {
|
|
593
|
+
return localVarFp.addConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options).then((request) => request(axios, basePath));
|
|
462
594
|
},
|
|
463
595
|
/**
|
|
464
596
|
*
|
|
465
|
-
* @summary Create an event
|
|
597
|
+
* @summary Create an event. Owner will be the user creating the event or the group associated with the event (if set)
|
|
598
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user creating the event
|
|
466
599
|
* @param {CreateEventDto} createEventDto
|
|
467
600
|
* @param {*} [options] Override http request option.
|
|
468
601
|
* @throws {RequiredError}
|
|
469
602
|
*/
|
|
470
|
-
create(createEventDto, options) {
|
|
471
|
-
return localVarFp.create(createEventDto, options).then((request) => request(axios, basePath));
|
|
603
|
+
create(xProximaNexusRequesterUserId, createEventDto, options) {
|
|
604
|
+
return localVarFp.create(xProximaNexusRequesterUserId, createEventDto, options).then((request) => request(axios, basePath));
|
|
472
605
|
},
|
|
473
606
|
/**
|
|
474
607
|
*
|
|
475
608
|
* @summary Get an event by ID
|
|
476
609
|
* @param {string} eventId
|
|
610
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, 401 may be returned if the user cannot view the event, otherwise requesterConnection will be set on the result.
|
|
477
611
|
* @param {*} [options] Override http request option.
|
|
478
612
|
* @throws {RequiredError}
|
|
479
613
|
*/
|
|
480
|
-
|
|
481
|
-
return localVarFp.
|
|
614
|
+
get(eventId, xProximaNexusRequesterUserId, options) {
|
|
615
|
+
return localVarFp.get(eventId, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
482
616
|
},
|
|
483
617
|
/**
|
|
484
618
|
*
|
|
485
|
-
* @summary Get
|
|
486
|
-
* @param {
|
|
619
|
+
* @summary Get a batch of events by IDs
|
|
620
|
+
* @param {GetEventsDto} getEventsDto
|
|
621
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting a batch of events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
487
622
|
* @param {*} [options] Override http request option.
|
|
488
623
|
* @throws {RequiredError}
|
|
489
624
|
*/
|
|
490
|
-
|
|
491
|
-
return localVarFp.
|
|
625
|
+
getBatch(getEventsDto, xProximaNexusRequesterUserId, options) {
|
|
626
|
+
return localVarFp.getBatch(getEventsDto, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
492
627
|
},
|
|
493
628
|
/**
|
|
494
629
|
*
|
|
495
|
-
* @summary Get
|
|
496
|
-
* @param {
|
|
630
|
+
* @summary Get connections of an event
|
|
631
|
+
* @param {string} eventId
|
|
632
|
+
* @param {Array<EventControllerGetConnectionsTypeEnum>} [type] Filter connections by type. Can be a single type or multiple types (comma-separated or array)
|
|
633
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting connections of the event. If set, 401 may be returned if the user cannot view the event connections.
|
|
497
634
|
* @param {*} [options] Override http request option.
|
|
498
635
|
* @throws {RequiredError}
|
|
499
636
|
*/
|
|
500
|
-
|
|
501
|
-
return localVarFp.
|
|
637
|
+
getConnections(eventId, type, xProximaNexusRequesterUserId, options) {
|
|
638
|
+
return localVarFp.getConnections(eventId, type, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
502
639
|
},
|
|
503
640
|
/**
|
|
504
641
|
*
|
|
505
642
|
* @summary Delete an event
|
|
506
643
|
* @param {string} eventId
|
|
507
|
-
* @param {string} xProximaNexusRequesterUserId
|
|
644
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user deleting the event
|
|
508
645
|
* @param {*} [options] Override http request option.
|
|
509
646
|
* @throws {RequiredError}
|
|
510
647
|
*/
|
|
511
648
|
remove(eventId, xProximaNexusRequesterUserId, options) {
|
|
512
649
|
return localVarFp.remove(eventId, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
513
650
|
},
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @summary Remove an attendee from an event
|
|
654
|
+
* @param {string} eventId
|
|
655
|
+
* @param {string} userId
|
|
656
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
657
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
658
|
+
* @param {*} [options] Override http request option.
|
|
659
|
+
* @throws {RequiredError}
|
|
660
|
+
*/
|
|
661
|
+
removeConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options) {
|
|
662
|
+
return localVarFp.removeConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options).then((request) => request(axios, basePath));
|
|
663
|
+
},
|
|
514
664
|
/**
|
|
515
665
|
*
|
|
516
666
|
* @summary Search events
|
|
@@ -523,22 +673,24 @@ const EventApiFactory = function (configuration, basePath, axios) {
|
|
|
523
673
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
524
674
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
525
675
|
* @param {number} [limit] Limit results (1-1000)
|
|
676
|
+
* @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.
|
|
526
677
|
* @param {*} [options] Override http request option.
|
|
527
678
|
* @throws {RequiredError}
|
|
528
679
|
*/
|
|
529
|
-
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
|
|
530
|
-
return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options).then((request) => request(axios, basePath));
|
|
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));
|
|
531
682
|
},
|
|
532
683
|
/**
|
|
533
684
|
*
|
|
534
685
|
* @summary Update an event
|
|
535
686
|
* @param {string} eventId
|
|
687
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user updating the event
|
|
536
688
|
* @param {UpdateEventDto} updateEventDto
|
|
537
689
|
* @param {*} [options] Override http request option.
|
|
538
690
|
* @throws {RequiredError}
|
|
539
691
|
*/
|
|
540
|
-
update(eventId, updateEventDto, options) {
|
|
541
|
-
return localVarFp.update(eventId, updateEventDto, options).then((request) => request(axios, basePath));
|
|
692
|
+
update(eventId, xProximaNexusRequesterUserId, updateEventDto, options) {
|
|
693
|
+
return localVarFp.update(eventId, xProximaNexusRequesterUserId, updateEventDto, options).then((request) => request(axios, basePath));
|
|
542
694
|
},
|
|
543
695
|
};
|
|
544
696
|
};
|
|
@@ -552,63 +704,83 @@ class EventApi extends base_1.BaseAPI {
|
|
|
552
704
|
* @summary Add an attendee to an event
|
|
553
705
|
* @param {string} eventId
|
|
554
706
|
* @param {string} userId
|
|
707
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
708
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
555
709
|
* @param {*} [options] Override http request option.
|
|
556
710
|
* @throws {RequiredError}
|
|
557
711
|
*/
|
|
558
|
-
|
|
559
|
-
return (0, exports.EventApiFp)(this.configuration).
|
|
712
|
+
addConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options) {
|
|
713
|
+
return (0, exports.EventApiFp)(this.configuration).addConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options).then((request) => request(this.axios, this.basePath));
|
|
560
714
|
}
|
|
561
715
|
/**
|
|
562
716
|
*
|
|
563
|
-
* @summary Create an event
|
|
717
|
+
* @summary Create an event. Owner will be the user creating the event or the group associated with the event (if set)
|
|
718
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user creating the event
|
|
564
719
|
* @param {CreateEventDto} createEventDto
|
|
565
720
|
* @param {*} [options] Override http request option.
|
|
566
721
|
* @throws {RequiredError}
|
|
567
722
|
*/
|
|
568
|
-
create(createEventDto, options) {
|
|
569
|
-
return (0, exports.EventApiFp)(this.configuration).create(createEventDto, options).then((request) => request(this.axios, this.basePath));
|
|
723
|
+
create(xProximaNexusRequesterUserId, createEventDto, options) {
|
|
724
|
+
return (0, exports.EventApiFp)(this.configuration).create(xProximaNexusRequesterUserId, createEventDto, options).then((request) => request(this.axios, this.basePath));
|
|
570
725
|
}
|
|
571
726
|
/**
|
|
572
727
|
*
|
|
573
728
|
* @summary Get an event by ID
|
|
574
729
|
* @param {string} eventId
|
|
730
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user searching for events. If set, 401 may be returned if the user cannot view the event, otherwise requesterConnection will be set on the result.
|
|
575
731
|
* @param {*} [options] Override http request option.
|
|
576
732
|
* @throws {RequiredError}
|
|
577
733
|
*/
|
|
578
|
-
|
|
579
|
-
return (0, exports.EventApiFp)(this.configuration).
|
|
734
|
+
get(eventId, xProximaNexusRequesterUserId, options) {
|
|
735
|
+
return (0, exports.EventApiFp)(this.configuration).get(eventId, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
580
736
|
}
|
|
581
737
|
/**
|
|
582
738
|
*
|
|
583
|
-
* @summary Get
|
|
584
|
-
* @param {
|
|
739
|
+
* @summary Get a batch of events by IDs
|
|
740
|
+
* @param {GetEventsDto} getEventsDto
|
|
741
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting a batch of events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.
|
|
585
742
|
* @param {*} [options] Override http request option.
|
|
586
743
|
* @throws {RequiredError}
|
|
587
744
|
*/
|
|
588
|
-
|
|
589
|
-
return (0, exports.EventApiFp)(this.configuration).
|
|
745
|
+
getBatch(getEventsDto, xProximaNexusRequesterUserId, options) {
|
|
746
|
+
return (0, exports.EventApiFp)(this.configuration).getBatch(getEventsDto, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
590
747
|
}
|
|
591
748
|
/**
|
|
592
749
|
*
|
|
593
|
-
* @summary Get
|
|
594
|
-
* @param {
|
|
750
|
+
* @summary Get connections of an event
|
|
751
|
+
* @param {string} eventId
|
|
752
|
+
* @param {Array<EventControllerGetConnectionsTypeEnum>} [type] Filter connections by type. Can be a single type or multiple types (comma-separated or array)
|
|
753
|
+
* @param {string} [xProximaNexusRequesterUserId] ID of the user getting connections of the event. If set, 401 may be returned if the user cannot view the event connections.
|
|
595
754
|
* @param {*} [options] Override http request option.
|
|
596
755
|
* @throws {RequiredError}
|
|
597
756
|
*/
|
|
598
|
-
|
|
599
|
-
return (0, exports.EventApiFp)(this.configuration).
|
|
757
|
+
getConnections(eventId, type, xProximaNexusRequesterUserId, options) {
|
|
758
|
+
return (0, exports.EventApiFp)(this.configuration).getConnections(eventId, type, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
600
759
|
}
|
|
601
760
|
/**
|
|
602
761
|
*
|
|
603
762
|
* @summary Delete an event
|
|
604
763
|
* @param {string} eventId
|
|
605
|
-
* @param {string} xProximaNexusRequesterUserId
|
|
764
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user deleting the event
|
|
606
765
|
* @param {*} [options] Override http request option.
|
|
607
766
|
* @throws {RequiredError}
|
|
608
767
|
*/
|
|
609
768
|
remove(eventId, xProximaNexusRequesterUserId, options) {
|
|
610
769
|
return (0, exports.EventApiFp)(this.configuration).remove(eventId, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
611
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
*
|
|
773
|
+
* @summary Remove an attendee from an event
|
|
774
|
+
* @param {string} eventId
|
|
775
|
+
* @param {string} userId
|
|
776
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user removing an attendee from the event
|
|
777
|
+
* @param {MutateEventEntityConnectionDto} mutateEventEntityConnectionDto
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
removeConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options) {
|
|
782
|
+
return (0, exports.EventApiFp)(this.configuration).removeConnection(eventId, userId, xProximaNexusRequesterUserId, mutateEventEntityConnectionDto, options).then((request) => request(this.axios, this.basePath));
|
|
783
|
+
}
|
|
612
784
|
/**
|
|
613
785
|
*
|
|
614
786
|
* @summary Search events
|
|
@@ -621,22 +793,30 @@ class EventApi extends base_1.BaseAPI {
|
|
|
621
793
|
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
622
794
|
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
623
795
|
* @param {number} [limit] Limit results (1-1000)
|
|
796
|
+
* @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.
|
|
624
797
|
* @param {*} [options] Override http request option.
|
|
625
798
|
* @throws {RequiredError}
|
|
626
799
|
*/
|
|
627
|
-
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
|
|
628
|
-
return (0, exports.EventApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
629
802
|
}
|
|
630
803
|
/**
|
|
631
804
|
*
|
|
632
805
|
* @summary Update an event
|
|
633
806
|
* @param {string} eventId
|
|
807
|
+
* @param {string} xProximaNexusRequesterUserId ID of the user updating the event
|
|
634
808
|
* @param {UpdateEventDto} updateEventDto
|
|
635
809
|
* @param {*} [options] Override http request option.
|
|
636
810
|
* @throws {RequiredError}
|
|
637
811
|
*/
|
|
638
|
-
update(eventId, updateEventDto, options) {
|
|
639
|
-
return (0, exports.EventApiFp)(this.configuration).update(eventId, updateEventDto, options).then((request) => request(this.axios, this.basePath));
|
|
812
|
+
update(eventId, xProximaNexusRequesterUserId, updateEventDto, options) {
|
|
813
|
+
return (0, exports.EventApiFp)(this.configuration).update(eventId, xProximaNexusRequesterUserId, updateEventDto, options).then((request) => request(this.axios, this.basePath));
|
|
640
814
|
}
|
|
641
815
|
}
|
|
642
816
|
exports.EventApi = EventApi;
|
|
817
|
+
var EventControllerGetConnectionsTypeEnum;
|
|
818
|
+
(function (EventControllerGetConnectionsTypeEnum) {
|
|
819
|
+
EventControllerGetConnectionsTypeEnum["attendee"] = "attendee";
|
|
820
|
+
EventControllerGetConnectionsTypeEnum["admin"] = "admin";
|
|
821
|
+
EventControllerGetConnectionsTypeEnum["owner"] = "owner";
|
|
822
|
+
})(EventControllerGetConnectionsTypeEnum || (exports.EventControllerGetConnectionsTypeEnum = EventControllerGetConnectionsTypeEnum = {}));
|