@proxima-nexus/sdk-typescript 1.0.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/LICENSE +15 -0
- package/README.md +349 -0
- package/dist/api/event-api.d.ts +420 -0
- package/dist/api/event-api.js +642 -0
- package/dist/api/group-api.d.ts +506 -0
- package/dist/api/group-api.js +775 -0
- package/dist/api/user-api.d.ts +543 -0
- package/dist/api/user-api.js +850 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +48 -0
- package/dist/common.d.ts +31 -0
- package/dist/common.js +98 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +48 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +44 -0
- package/dist/models/create-event-dto.d.ts +63 -0
- package/dist/models/create-event-dto.js +22 -0
- package/dist/models/create-group-dto.d.ts +51 -0
- package/dist/models/create-group-dto.js +22 -0
- package/dist/models/create-user-dto.d.ts +55 -0
- package/dist/models/create-user-dto.js +22 -0
- package/dist/models/entity-connection-dto.d.ts +30 -0
- package/dist/models/entity-connection-dto.js +22 -0
- package/dist/models/event-dto.d.ts +70 -0
- package/dist/models/event-dto.js +21 -0
- package/dist/models/event-entity-connection-dto.d.ts +34 -0
- package/dist/models/event-entity-connection-dto.js +22 -0
- package/dist/models/get-events-dto.d.ts +17 -0
- package/dist/models/get-events-dto.js +15 -0
- package/dist/models/get-groups-dto.d.ts +17 -0
- package/dist/models/get-groups-dto.js +15 -0
- package/dist/models/get-users-dto.d.ts +17 -0
- package/dist/models/get-users-dto.js +15 -0
- package/dist/models/group-dto.d.ts +58 -0
- package/dist/models/group-dto.js +21 -0
- package/dist/models/group-entity-connection-dto.d.ts +34 -0
- package/dist/models/group-entity-connection-dto.js +22 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +34 -0
- package/dist/models/location-dto.d.ts +25 -0
- package/dist/models/location-dto.js +15 -0
- package/dist/models/mutate-user-response-dto.d.ts +17 -0
- package/dist/models/mutate-user-response-dto.js +15 -0
- package/dist/models/update-event-dto.d.ts +55 -0
- package/dist/models/update-event-dto.js +22 -0
- package/dist/models/update-group-dto.d.ts +47 -0
- package/dist/models/update-group-dto.js +22 -0
- package/dist/models/update-user-dto.d.ts +51 -0
- package/dist/models/update-user-dto.js +22 -0
- package/dist/models/user-dto.d.ts +62 -0
- package/dist/models/user-dto.js +21 -0
- package/dist/models/user-entity-connection-dto.d.ts +34 -0
- package/dist/models/user-entity-connection-dto.js +22 -0
- package/package.json +56 -0
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* proxima-nexus-data-plane-api
|
|
6
|
+
* Proxima Nexus Data Plane API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.EventApi = exports.EventApiFactory = exports.EventApiFp = exports.EventApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* EventApi - axios parameter creator
|
|
28
|
+
*/
|
|
29
|
+
const EventApiAxiosParamCreator = function (configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Add an attendee to an event
|
|
34
|
+
* @param {string} eventId
|
|
35
|
+
* @param {string} userId
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
addAttendee: async (eventId, userId, options = {}) => {
|
|
40
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
41
|
+
(0, common_1.assertParamExists)('addAttendee', 'eventId', eventId);
|
|
42
|
+
// verify required parameter 'userId' is not null or undefined
|
|
43
|
+
(0, common_1.assertParamExists)('addAttendee', 'userId', userId);
|
|
44
|
+
const localVarPath = `/event/{eventId}/attendees/{userId}`
|
|
45
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
46
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
55
|
+
const localVarQueryParameter = {};
|
|
56
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
57
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
58
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
60
|
+
return {
|
|
61
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Create an event
|
|
68
|
+
* @param {CreateEventDto} createEventDto
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
create: async (createEventDto, options = {}) => {
|
|
73
|
+
// verify required parameter 'createEventDto' is not null or undefined
|
|
74
|
+
(0, common_1.assertParamExists)('create', 'createEventDto', createEventDto);
|
|
75
|
+
const localVarPath = `/event`;
|
|
76
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
|
+
let baseOptions;
|
|
79
|
+
if (configuration) {
|
|
80
|
+
baseOptions = configuration.baseOptions;
|
|
81
|
+
}
|
|
82
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
83
|
+
const localVarHeaderParameter = {};
|
|
84
|
+
const localVarQueryParameter = {};
|
|
85
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
86
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
87
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
90
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEventDto, localVarRequestOptions, configuration);
|
|
91
|
+
return {
|
|
92
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Get an event by ID
|
|
99
|
+
* @param {string} eventId
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
findOne: async (eventId, options = {}) => {
|
|
104
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
105
|
+
(0, common_1.assertParamExists)('findOne', 'eventId', eventId);
|
|
106
|
+
const localVarPath = `/event/{eventId}`
|
|
107
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
if (configuration) {
|
|
112
|
+
baseOptions = configuration.baseOptions;
|
|
113
|
+
}
|
|
114
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
115
|
+
const localVarHeaderParameter = {};
|
|
116
|
+
const localVarQueryParameter = {};
|
|
117
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
118
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
121
|
+
return {
|
|
122
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
123
|
+
options: localVarRequestOptions,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @summary Get attendees of an event
|
|
129
|
+
* @param {string} eventId
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
getAttendees: async (eventId, options = {}) => {
|
|
134
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
135
|
+
(0, common_1.assertParamExists)('getAttendees', 'eventId', eventId);
|
|
136
|
+
const localVarPath = `/event/{eventId}/attendees`
|
|
137
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
140
|
+
let baseOptions;
|
|
141
|
+
if (configuration) {
|
|
142
|
+
baseOptions = configuration.baseOptions;
|
|
143
|
+
}
|
|
144
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
145
|
+
const localVarHeaderParameter = {};
|
|
146
|
+
const localVarQueryParameter = {};
|
|
147
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
148
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
151
|
+
return {
|
|
152
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
153
|
+
options: localVarRequestOptions,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @summary Get a batch of events by IDs
|
|
159
|
+
* @param {GetEventsDto} getEventsDto
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
getBatch: async (getEventsDto, options = {}) => {
|
|
164
|
+
// verify required parameter 'getEventsDto' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('getBatch', 'getEventsDto', getEventsDto);
|
|
166
|
+
const localVarPath = `/event/batch`;
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
}
|
|
173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
174
|
+
const localVarHeaderParameter = {};
|
|
175
|
+
const localVarQueryParameter = {};
|
|
176
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
177
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
178
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
181
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getEventsDto, localVarRequestOptions, configuration);
|
|
182
|
+
return {
|
|
183
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
184
|
+
options: localVarRequestOptions,
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Delete an event
|
|
190
|
+
* @param {string} eventId
|
|
191
|
+
* @param {string} xProximaNexusRequesterUserId Requester user ID
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
remove: async (eventId, xProximaNexusRequesterUserId, options = {}) => {
|
|
196
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
197
|
+
(0, common_1.assertParamExists)('remove', 'eventId', eventId);
|
|
198
|
+
// verify required parameter 'xProximaNexusRequesterUserId' is not null or undefined
|
|
199
|
+
(0, common_1.assertParamExists)('remove', 'xProximaNexusRequesterUserId', xProximaNexusRequesterUserId);
|
|
200
|
+
const localVarPath = `/event/{eventId}`
|
|
201
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
203
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
204
|
+
let baseOptions;
|
|
205
|
+
if (configuration) {
|
|
206
|
+
baseOptions = configuration.baseOptions;
|
|
207
|
+
}
|
|
208
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
209
|
+
const localVarHeaderParameter = {};
|
|
210
|
+
const localVarQueryParameter = {};
|
|
211
|
+
if (xProximaNexusRequesterUserId != null) {
|
|
212
|
+
localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
|
|
213
|
+
}
|
|
214
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
217
|
+
return {
|
|
218
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
219
|
+
options: localVarRequestOptions,
|
|
220
|
+
};
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Search events
|
|
225
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
226
|
+
* @param {number} [latitude] Latitude for radius search
|
|
227
|
+
* @param {number} [longitude] Longitude for radius search
|
|
228
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
229
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
230
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
231
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
232
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
233
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options = {}) => {
|
|
238
|
+
const localVarPath = `/event`;
|
|
239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
241
|
+
let baseOptions;
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
}
|
|
245
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
246
|
+
const localVarHeaderParameter = {};
|
|
247
|
+
const localVarQueryParameter = {};
|
|
248
|
+
if (displayName !== undefined) {
|
|
249
|
+
localVarQueryParameter['displayName'] = displayName;
|
|
250
|
+
}
|
|
251
|
+
if (latitude !== undefined) {
|
|
252
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
253
|
+
}
|
|
254
|
+
if (longitude !== undefined) {
|
|
255
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
256
|
+
}
|
|
257
|
+
if (radius !== undefined) {
|
|
258
|
+
localVarQueryParameter['radius'] = radius;
|
|
259
|
+
}
|
|
260
|
+
if (minLatitude !== undefined) {
|
|
261
|
+
localVarQueryParameter['minLatitude'] = minLatitude;
|
|
262
|
+
}
|
|
263
|
+
if (maxLatitude !== undefined) {
|
|
264
|
+
localVarQueryParameter['maxLatitude'] = maxLatitude;
|
|
265
|
+
}
|
|
266
|
+
if (minLongitude !== undefined) {
|
|
267
|
+
localVarQueryParameter['minLongitude'] = minLongitude;
|
|
268
|
+
}
|
|
269
|
+
if (maxLongitude !== undefined) {
|
|
270
|
+
localVarQueryParameter['maxLongitude'] = maxLongitude;
|
|
271
|
+
}
|
|
272
|
+
if (limit !== undefined) {
|
|
273
|
+
localVarQueryParameter['limit'] = limit;
|
|
274
|
+
}
|
|
275
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
276
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
278
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
279
|
+
return {
|
|
280
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
281
|
+
options: localVarRequestOptions,
|
|
282
|
+
};
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @summary Update an event
|
|
287
|
+
* @param {string} eventId
|
|
288
|
+
* @param {UpdateEventDto} updateEventDto
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
update: async (eventId, updateEventDto, options = {}) => {
|
|
293
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
294
|
+
(0, common_1.assertParamExists)('update', 'eventId', eventId);
|
|
295
|
+
// verify required parameter 'updateEventDto' is not null or undefined
|
|
296
|
+
(0, common_1.assertParamExists)('update', 'updateEventDto', updateEventDto);
|
|
297
|
+
const localVarPath = `/event/{eventId}`
|
|
298
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
300
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
301
|
+
let baseOptions;
|
|
302
|
+
if (configuration) {
|
|
303
|
+
baseOptions = configuration.baseOptions;
|
|
304
|
+
}
|
|
305
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
306
|
+
const localVarHeaderParameter = {};
|
|
307
|
+
const localVarQueryParameter = {};
|
|
308
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
309
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
310
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
313
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEventDto, localVarRequestOptions, configuration);
|
|
314
|
+
return {
|
|
315
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
316
|
+
options: localVarRequestOptions,
|
|
317
|
+
};
|
|
318
|
+
},
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
exports.EventApiAxiosParamCreator = EventApiAxiosParamCreator;
|
|
322
|
+
/**
|
|
323
|
+
* EventApi - functional programming interface
|
|
324
|
+
*/
|
|
325
|
+
const EventApiFp = function (configuration) {
|
|
326
|
+
const localVarAxiosParamCreator = (0, exports.EventApiAxiosParamCreator)(configuration);
|
|
327
|
+
return {
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @summary Add an attendee to an event
|
|
331
|
+
* @param {string} eventId
|
|
332
|
+
* @param {string} userId
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
async addAttendee(eventId, userId, options) {
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addAttendee(eventId, userId, options);
|
|
338
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
339
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.addAttendee']?.[localVarOperationServerIndex]?.url;
|
|
340
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @summary Create an event
|
|
345
|
+
* @param {CreateEventDto} createEventDto
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
async create(createEventDto, options) {
|
|
350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(createEventDto, options);
|
|
351
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
352
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.create']?.[localVarOperationServerIndex]?.url;
|
|
353
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @summary Get an event by ID
|
|
358
|
+
* @param {string} eventId
|
|
359
|
+
* @param {*} [options] Override http request option.
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
async findOne(eventId, options) {
|
|
363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(eventId, options);
|
|
364
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
365
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.findOne']?.[localVarOperationServerIndex]?.url;
|
|
366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @summary Get attendees of an event
|
|
371
|
+
* @param {string} eventId
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
async getAttendees(eventId, options) {
|
|
376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAttendees(eventId, options);
|
|
377
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
378
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.getAttendees']?.[localVarOperationServerIndex]?.url;
|
|
379
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
380
|
+
},
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @summary Get a batch of events by IDs
|
|
384
|
+
* @param {GetEventsDto} getEventsDto
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
async getBatch(getEventsDto, options) {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBatch(getEventsDto, options);
|
|
390
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
391
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.getBatch']?.[localVarOperationServerIndex]?.url;
|
|
392
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
393
|
+
},
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @summary Delete an event
|
|
397
|
+
* @param {string} eventId
|
|
398
|
+
* @param {string} xProximaNexusRequesterUserId Requester user ID
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
async remove(eventId, xProximaNexusRequesterUserId, options) {
|
|
403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.remove(eventId, xProximaNexusRequesterUserId, options);
|
|
404
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
405
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.remove']?.[localVarOperationServerIndex]?.url;
|
|
406
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @summary Search events
|
|
411
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
412
|
+
* @param {number} [latitude] Latitude for radius search
|
|
413
|
+
* @param {number} [longitude] Longitude for radius search
|
|
414
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
415
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
416
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
417
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
418
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
419
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
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);
|
|
425
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
426
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.search']?.[localVarOperationServerIndex]?.url;
|
|
427
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @summary Update an event
|
|
432
|
+
* @param {string} eventId
|
|
433
|
+
* @param {UpdateEventDto} updateEventDto
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
async update(eventId, updateEventDto, options) {
|
|
438
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.update(eventId, updateEventDto, options);
|
|
439
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
440
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventApi.update']?.[localVarOperationServerIndex]?.url;
|
|
441
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
442
|
+
},
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
exports.EventApiFp = EventApiFp;
|
|
446
|
+
/**
|
|
447
|
+
* EventApi - factory interface
|
|
448
|
+
*/
|
|
449
|
+
const EventApiFactory = function (configuration, basePath, axios) {
|
|
450
|
+
const localVarFp = (0, exports.EventApiFp)(configuration);
|
|
451
|
+
return {
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @summary Add an attendee to an event
|
|
455
|
+
* @param {string} eventId
|
|
456
|
+
* @param {string} userId
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
addAttendee(eventId, userId, options) {
|
|
461
|
+
return localVarFp.addAttendee(eventId, userId, options).then((request) => request(axios, basePath));
|
|
462
|
+
},
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @summary Create an event
|
|
466
|
+
* @param {CreateEventDto} createEventDto
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
create(createEventDto, options) {
|
|
471
|
+
return localVarFp.create(createEventDto, options).then((request) => request(axios, basePath));
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @summary Get an event by ID
|
|
476
|
+
* @param {string} eventId
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
findOne(eventId, options) {
|
|
481
|
+
return localVarFp.findOne(eventId, options).then((request) => request(axios, basePath));
|
|
482
|
+
},
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @summary Get attendees of an event
|
|
486
|
+
* @param {string} eventId
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
getAttendees(eventId, options) {
|
|
491
|
+
return localVarFp.getAttendees(eventId, options).then((request) => request(axios, basePath));
|
|
492
|
+
},
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Get a batch of events by IDs
|
|
496
|
+
* @param {GetEventsDto} getEventsDto
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
getBatch(getEventsDto, options) {
|
|
501
|
+
return localVarFp.getBatch(getEventsDto, options).then((request) => request(axios, basePath));
|
|
502
|
+
},
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @summary Delete an event
|
|
506
|
+
* @param {string} eventId
|
|
507
|
+
* @param {string} xProximaNexusRequesterUserId Requester user ID
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
remove(eventId, xProximaNexusRequesterUserId, options) {
|
|
512
|
+
return localVarFp.remove(eventId, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
|
|
513
|
+
},
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @summary Search events
|
|
517
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
518
|
+
* @param {number} [latitude] Latitude for radius search
|
|
519
|
+
* @param {number} [longitude] Longitude for radius search
|
|
520
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
521
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
522
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
523
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
524
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
525
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
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));
|
|
531
|
+
},
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @summary Update an event
|
|
535
|
+
* @param {string} eventId
|
|
536
|
+
* @param {UpdateEventDto} updateEventDto
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
update(eventId, updateEventDto, options) {
|
|
541
|
+
return localVarFp.update(eventId, updateEventDto, options).then((request) => request(axios, basePath));
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
exports.EventApiFactory = EventApiFactory;
|
|
546
|
+
/**
|
|
547
|
+
* EventApi - object-oriented interface
|
|
548
|
+
*/
|
|
549
|
+
class EventApi extends base_1.BaseAPI {
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @summary Add an attendee to an event
|
|
553
|
+
* @param {string} eventId
|
|
554
|
+
* @param {string} userId
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
addAttendee(eventId, userId, options) {
|
|
559
|
+
return (0, exports.EventApiFp)(this.configuration).addAttendee(eventId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @summary Create an event
|
|
564
|
+
* @param {CreateEventDto} createEventDto
|
|
565
|
+
* @param {*} [options] Override http request option.
|
|
566
|
+
* @throws {RequiredError}
|
|
567
|
+
*/
|
|
568
|
+
create(createEventDto, options) {
|
|
569
|
+
return (0, exports.EventApiFp)(this.configuration).create(createEventDto, options).then((request) => request(this.axios, this.basePath));
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Get an event by ID
|
|
574
|
+
* @param {string} eventId
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
findOne(eventId, options) {
|
|
579
|
+
return (0, exports.EventApiFp)(this.configuration).findOne(eventId, options).then((request) => request(this.axios, this.basePath));
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @summary Get attendees of an event
|
|
584
|
+
* @param {string} eventId
|
|
585
|
+
* @param {*} [options] Override http request option.
|
|
586
|
+
* @throws {RequiredError}
|
|
587
|
+
*/
|
|
588
|
+
getAttendees(eventId, options) {
|
|
589
|
+
return (0, exports.EventApiFp)(this.configuration).getAttendees(eventId, options).then((request) => request(this.axios, this.basePath));
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @summary Get a batch of events by IDs
|
|
594
|
+
* @param {GetEventsDto} getEventsDto
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
getBatch(getEventsDto, options) {
|
|
599
|
+
return (0, exports.EventApiFp)(this.configuration).getBatch(getEventsDto, options).then((request) => request(this.axios, this.basePath));
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @summary Delete an event
|
|
604
|
+
* @param {string} eventId
|
|
605
|
+
* @param {string} xProximaNexusRequesterUserId Requester user ID
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
remove(eventId, xProximaNexusRequesterUserId, options) {
|
|
610
|
+
return (0, exports.EventApiFp)(this.configuration).remove(eventId, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @summary Search events
|
|
615
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
616
|
+
* @param {number} [latitude] Latitude for radius search
|
|
617
|
+
* @param {number} [longitude] Longitude for radius search
|
|
618
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
619
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
620
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
621
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
622
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
623
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
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));
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @summary Update an event
|
|
633
|
+
* @param {string} eventId
|
|
634
|
+
* @param {UpdateEventDto} updateEventDto
|
|
635
|
+
* @param {*} [options] Override http request option.
|
|
636
|
+
* @throws {RequiredError}
|
|
637
|
+
*/
|
|
638
|
+
update(eventId, updateEventDto, options) {
|
|
639
|
+
return (0, exports.EventApiFp)(this.configuration).update(eventId, updateEventDto, options).then((request) => request(this.axios, this.basePath));
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
exports.EventApi = EventApi;
|