@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.
Files changed (55) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +349 -0
  3. package/dist/api/event-api.d.ts +420 -0
  4. package/dist/api/event-api.js +642 -0
  5. package/dist/api/group-api.d.ts +506 -0
  6. package/dist/api/group-api.js +775 -0
  7. package/dist/api/user-api.d.ts +543 -0
  8. package/dist/api/user-api.js +850 -0
  9. package/dist/base.d.ts +42 -0
  10. package/dist/base.js +48 -0
  11. package/dist/common.d.ts +31 -0
  12. package/dist/common.js +98 -0
  13. package/dist/configuration.d.ts +98 -0
  14. package/dist/configuration.js +48 -0
  15. package/dist/index.d.ts +38 -0
  16. package/dist/index.js +44 -0
  17. package/dist/models/create-event-dto.d.ts +63 -0
  18. package/dist/models/create-event-dto.js +22 -0
  19. package/dist/models/create-group-dto.d.ts +51 -0
  20. package/dist/models/create-group-dto.js +22 -0
  21. package/dist/models/create-user-dto.d.ts +55 -0
  22. package/dist/models/create-user-dto.js +22 -0
  23. package/dist/models/entity-connection-dto.d.ts +30 -0
  24. package/dist/models/entity-connection-dto.js +22 -0
  25. package/dist/models/event-dto.d.ts +70 -0
  26. package/dist/models/event-dto.js +21 -0
  27. package/dist/models/event-entity-connection-dto.d.ts +34 -0
  28. package/dist/models/event-entity-connection-dto.js +22 -0
  29. package/dist/models/get-events-dto.d.ts +17 -0
  30. package/dist/models/get-events-dto.js +15 -0
  31. package/dist/models/get-groups-dto.d.ts +17 -0
  32. package/dist/models/get-groups-dto.js +15 -0
  33. package/dist/models/get-users-dto.d.ts +17 -0
  34. package/dist/models/get-users-dto.js +15 -0
  35. package/dist/models/group-dto.d.ts +58 -0
  36. package/dist/models/group-dto.js +21 -0
  37. package/dist/models/group-entity-connection-dto.d.ts +34 -0
  38. package/dist/models/group-entity-connection-dto.js +22 -0
  39. package/dist/models/index.d.ts +18 -0
  40. package/dist/models/index.js +34 -0
  41. package/dist/models/location-dto.d.ts +25 -0
  42. package/dist/models/location-dto.js +15 -0
  43. package/dist/models/mutate-user-response-dto.d.ts +17 -0
  44. package/dist/models/mutate-user-response-dto.js +15 -0
  45. package/dist/models/update-event-dto.d.ts +55 -0
  46. package/dist/models/update-event-dto.js +22 -0
  47. package/dist/models/update-group-dto.d.ts +47 -0
  48. package/dist/models/update-group-dto.js +22 -0
  49. package/dist/models/update-user-dto.d.ts +51 -0
  50. package/dist/models/update-user-dto.js +22 -0
  51. package/dist/models/user-dto.d.ts +62 -0
  52. package/dist/models/user-dto.js +21 -0
  53. package/dist/models/user-entity-connection-dto.d.ts +34 -0
  54. package/dist/models/user-entity-connection-dto.js +22 -0
  55. package/package.json +56 -0
@@ -0,0 +1,775 @@
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.GroupApi = exports.GroupApiFactory = exports.GroupApiFp = exports.GroupApiAxiosParamCreator = 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
+ * GroupApi - axios parameter creator
28
+ */
29
+ const GroupApiAxiosParamCreator = function (configuration) {
30
+ return {
31
+ /**
32
+ *
33
+ * @summary Add a member to a group
34
+ * @param {string} groupId
35
+ * @param {string} userId
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ addMember: async (groupId, userId, options = {}) => {
40
+ // verify required parameter 'groupId' is not null or undefined
41
+ (0, common_1.assertParamExists)('addMember', 'groupId', groupId);
42
+ // verify required parameter 'userId' is not null or undefined
43
+ (0, common_1.assertParamExists)('addMember', 'userId', userId);
44
+ const localVarPath = `/group/{groupId}/members/{userId}`
45
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
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 a group
68
+ * @param {CreateGroupDto} createGroupDto
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ */
72
+ create: async (createGroupDto, options = {}) => {
73
+ // verify required parameter 'createGroupDto' is not null or undefined
74
+ (0, common_1.assertParamExists)('create', 'createGroupDto', createGroupDto);
75
+ const localVarPath = `/group`;
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)(createGroupDto, localVarRequestOptions, configuration);
91
+ return {
92
+ url: (0, common_1.toPathString)(localVarUrlObj),
93
+ options: localVarRequestOptions,
94
+ };
95
+ },
96
+ /**
97
+ *
98
+ * @summary Get a group by ID
99
+ * @param {string} groupId
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ findOne: async (groupId, options = {}) => {
104
+ // verify required parameter 'groupId' is not null or undefined
105
+ (0, common_1.assertParamExists)('findOne', 'groupId', groupId);
106
+ const localVarPath = `/group/{groupId}`
107
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
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 a batch of groups by IDs
129
+ * @param {GetGroupsDto} getGroupsDto
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ */
133
+ getBatch: async (getGroupsDto, options = {}) => {
134
+ // verify required parameter 'getGroupsDto' is not null or undefined
135
+ (0, common_1.assertParamExists)('getBatch', 'getGroupsDto', getGroupsDto);
136
+ const localVarPath = `/group/batch`;
137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
139
+ let baseOptions;
140
+ if (configuration) {
141
+ baseOptions = configuration.baseOptions;
142
+ }
143
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
144
+ const localVarHeaderParameter = {};
145
+ const localVarQueryParameter = {};
146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
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
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getGroupsDto, localVarRequestOptions, configuration);
152
+ return {
153
+ url: (0, common_1.toPathString)(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ },
157
+ /**
158
+ *
159
+ * @summary Get events of a group
160
+ * @param {string} groupId
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ getEvents: async (groupId, options = {}) => {
165
+ // verify required parameter 'groupId' is not null or undefined
166
+ (0, common_1.assertParamExists)('getEvents', 'groupId', groupId);
167
+ const localVarPath = `/group/{groupId}/events`
168
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ let baseOptions;
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ }
175
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
176
+ const localVarHeaderParameter = {};
177
+ const localVarQueryParameter = {};
178
+ localVarHeaderParameter['Accept'] = 'application/json';
179
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
182
+ return {
183
+ url: (0, common_1.toPathString)(localVarUrlObj),
184
+ options: localVarRequestOptions,
185
+ };
186
+ },
187
+ /**
188
+ *
189
+ * @summary Get members of a group
190
+ * @param {string} groupId
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ getMembers: async (groupId, options = {}) => {
195
+ // verify required parameter 'groupId' is not null or undefined
196
+ (0, common_1.assertParamExists)('getMembers', 'groupId', groupId);
197
+ const localVarPath = `/group/{groupId}/members`
198
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
201
+ let baseOptions;
202
+ if (configuration) {
203
+ baseOptions = configuration.baseOptions;
204
+ }
205
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
206
+ const localVarHeaderParameter = {};
207
+ const localVarQueryParameter = {};
208
+ localVarHeaderParameter['Accept'] = 'application/json';
209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
212
+ return {
213
+ url: (0, common_1.toPathString)(localVarUrlObj),
214
+ options: localVarRequestOptions,
215
+ };
216
+ },
217
+ /**
218
+ *
219
+ * @summary Delete a group
220
+ * @param {string} groupId
221
+ * @param {string} xProximaNexusRequesterUserId Requester user ID
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ remove: async (groupId, xProximaNexusRequesterUserId, options = {}) => {
226
+ // verify required parameter 'groupId' is not null or undefined
227
+ (0, common_1.assertParamExists)('remove', 'groupId', groupId);
228
+ // verify required parameter 'xProximaNexusRequesterUserId' is not null or undefined
229
+ (0, common_1.assertParamExists)('remove', 'xProximaNexusRequesterUserId', xProximaNexusRequesterUserId);
230
+ const localVarPath = `/group/{groupId}`
231
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
234
+ let baseOptions;
235
+ if (configuration) {
236
+ baseOptions = configuration.baseOptions;
237
+ }
238
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
239
+ const localVarHeaderParameter = {};
240
+ const localVarQueryParameter = {};
241
+ if (xProximaNexusRequesterUserId != null) {
242
+ localVarHeaderParameter['X-Proxima-Nexus-Requester-User-Id'] = String(xProximaNexusRequesterUserId);
243
+ }
244
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
246
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
247
+ return {
248
+ url: (0, common_1.toPathString)(localVarUrlObj),
249
+ options: localVarRequestOptions,
250
+ };
251
+ },
252
+ /**
253
+ *
254
+ * @summary Remove a member from a group
255
+ * @param {string} groupId
256
+ * @param {string} userId
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ removeMember: async (groupId, userId, options = {}) => {
261
+ // verify required parameter 'groupId' is not null or undefined
262
+ (0, common_1.assertParamExists)('removeMember', 'groupId', groupId);
263
+ // verify required parameter 'userId' is not null or undefined
264
+ (0, common_1.assertParamExists)('removeMember', 'userId', userId);
265
+ const localVarPath = `/group/{groupId}/members/{userId}`
266
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
267
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
269
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
270
+ let baseOptions;
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ }
274
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
275
+ const localVarHeaderParameter = {};
276
+ const localVarQueryParameter = {};
277
+ localVarHeaderParameter['Accept'] = 'application/json';
278
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
281
+ return {
282
+ url: (0, common_1.toPathString)(localVarUrlObj),
283
+ options: localVarRequestOptions,
284
+ };
285
+ },
286
+ /**
287
+ *
288
+ * @summary Search groups
289
+ * @param {string} [displayName] Display name search (ILIKE)
290
+ * @param {number} [latitude] Latitude for radius search
291
+ * @param {number} [longitude] Longitude for radius search
292
+ * @param {number} [radius] Radius in meters for radius search
293
+ * @param {number} [minLatitude] Minimum latitude for bounding box
294
+ * @param {number} [maxLatitude] Maximum latitude for bounding box
295
+ * @param {number} [minLongitude] Minimum longitude for bounding box
296
+ * @param {number} [maxLongitude] Maximum longitude for bounding box
297
+ * @param {number} [limit] Limit results (1-1000)
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options = {}) => {
302
+ const localVarPath = `/group`;
303
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
304
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
305
+ let baseOptions;
306
+ if (configuration) {
307
+ baseOptions = configuration.baseOptions;
308
+ }
309
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
310
+ const localVarHeaderParameter = {};
311
+ const localVarQueryParameter = {};
312
+ if (displayName !== undefined) {
313
+ localVarQueryParameter['displayName'] = displayName;
314
+ }
315
+ if (latitude !== undefined) {
316
+ localVarQueryParameter['latitude'] = latitude;
317
+ }
318
+ if (longitude !== undefined) {
319
+ localVarQueryParameter['longitude'] = longitude;
320
+ }
321
+ if (radius !== undefined) {
322
+ localVarQueryParameter['radius'] = radius;
323
+ }
324
+ if (minLatitude !== undefined) {
325
+ localVarQueryParameter['minLatitude'] = minLatitude;
326
+ }
327
+ if (maxLatitude !== undefined) {
328
+ localVarQueryParameter['maxLatitude'] = maxLatitude;
329
+ }
330
+ if (minLongitude !== undefined) {
331
+ localVarQueryParameter['minLongitude'] = minLongitude;
332
+ }
333
+ if (maxLongitude !== undefined) {
334
+ localVarQueryParameter['maxLongitude'] = maxLongitude;
335
+ }
336
+ if (limit !== undefined) {
337
+ localVarQueryParameter['limit'] = limit;
338
+ }
339
+ localVarHeaderParameter['Accept'] = 'application/json';
340
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
342
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
343
+ return {
344
+ url: (0, common_1.toPathString)(localVarUrlObj),
345
+ options: localVarRequestOptions,
346
+ };
347
+ },
348
+ /**
349
+ *
350
+ * @summary Update a group
351
+ * @param {string} groupId
352
+ * @param {UpdateGroupDto} updateGroupDto
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ update: async (groupId, updateGroupDto, options = {}) => {
357
+ // verify required parameter 'groupId' is not null or undefined
358
+ (0, common_1.assertParamExists)('update', 'groupId', groupId);
359
+ // verify required parameter 'updateGroupDto' is not null or undefined
360
+ (0, common_1.assertParamExists)('update', 'updateGroupDto', updateGroupDto);
361
+ const localVarPath = `/group/{groupId}`
362
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
364
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
365
+ let baseOptions;
366
+ if (configuration) {
367
+ baseOptions = configuration.baseOptions;
368
+ }
369
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
370
+ const localVarHeaderParameter = {};
371
+ const localVarQueryParameter = {};
372
+ localVarHeaderParameter['Content-Type'] = 'application/json';
373
+ localVarHeaderParameter['Accept'] = 'application/json';
374
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
375
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
376
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
377
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateGroupDto, localVarRequestOptions, configuration);
378
+ return {
379
+ url: (0, common_1.toPathString)(localVarUrlObj),
380
+ options: localVarRequestOptions,
381
+ };
382
+ },
383
+ };
384
+ };
385
+ exports.GroupApiAxiosParamCreator = GroupApiAxiosParamCreator;
386
+ /**
387
+ * GroupApi - functional programming interface
388
+ */
389
+ const GroupApiFp = function (configuration) {
390
+ const localVarAxiosParamCreator = (0, exports.GroupApiAxiosParamCreator)(configuration);
391
+ return {
392
+ /**
393
+ *
394
+ * @summary Add a member to a group
395
+ * @param {string} groupId
396
+ * @param {string} userId
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ async addMember(groupId, userId, options) {
401
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addMember(groupId, userId, options);
402
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
403
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.addMember']?.[localVarOperationServerIndex]?.url;
404
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
405
+ },
406
+ /**
407
+ *
408
+ * @summary Create a group
409
+ * @param {CreateGroupDto} createGroupDto
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ async create(createGroupDto, options) {
414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.create(createGroupDto, options);
415
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
416
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.create']?.[localVarOperationServerIndex]?.url;
417
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
418
+ },
419
+ /**
420
+ *
421
+ * @summary Get a group by ID
422
+ * @param {string} groupId
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ async findOne(groupId, options) {
427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(groupId, options);
428
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
429
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.findOne']?.[localVarOperationServerIndex]?.url;
430
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
431
+ },
432
+ /**
433
+ *
434
+ * @summary Get a batch of groups by IDs
435
+ * @param {GetGroupsDto} getGroupsDto
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ async getBatch(getGroupsDto, options) {
440
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBatch(getGroupsDto, options);
441
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
442
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.getBatch']?.[localVarOperationServerIndex]?.url;
443
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
444
+ },
445
+ /**
446
+ *
447
+ * @summary Get events of a group
448
+ * @param {string} groupId
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ async getEvents(groupId, options) {
453
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(groupId, options);
454
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
455
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.getEvents']?.[localVarOperationServerIndex]?.url;
456
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
457
+ },
458
+ /**
459
+ *
460
+ * @summary Get members of a group
461
+ * @param {string} groupId
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ async getMembers(groupId, options) {
466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMembers(groupId, options);
467
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
468
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.getMembers']?.[localVarOperationServerIndex]?.url;
469
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
470
+ },
471
+ /**
472
+ *
473
+ * @summary Delete a group
474
+ * @param {string} groupId
475
+ * @param {string} xProximaNexusRequesterUserId Requester user ID
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ async remove(groupId, xProximaNexusRequesterUserId, options) {
480
+ const localVarAxiosArgs = await localVarAxiosParamCreator.remove(groupId, xProximaNexusRequesterUserId, options);
481
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
482
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.remove']?.[localVarOperationServerIndex]?.url;
483
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
484
+ },
485
+ /**
486
+ *
487
+ * @summary Remove a member from a group
488
+ * @param {string} groupId
489
+ * @param {string} userId
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ async removeMember(groupId, userId, options) {
494
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeMember(groupId, userId, options);
495
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
496
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.removeMember']?.[localVarOperationServerIndex]?.url;
497
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
498
+ },
499
+ /**
500
+ *
501
+ * @summary Search groups
502
+ * @param {string} [displayName] Display name search (ILIKE)
503
+ * @param {number} [latitude] Latitude for radius search
504
+ * @param {number} [longitude] Longitude for radius search
505
+ * @param {number} [radius] Radius in meters for radius search
506
+ * @param {number} [minLatitude] Minimum latitude for bounding box
507
+ * @param {number} [maxLatitude] Maximum latitude for bounding box
508
+ * @param {number} [minLongitude] Minimum longitude for bounding box
509
+ * @param {number} [maxLongitude] Maximum longitude for bounding box
510
+ * @param {number} [limit] Limit results (1-1000)
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
515
+ const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options);
516
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
517
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.search']?.[localVarOperationServerIndex]?.url;
518
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
519
+ },
520
+ /**
521
+ *
522
+ * @summary Update a group
523
+ * @param {string} groupId
524
+ * @param {UpdateGroupDto} updateGroupDto
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ async update(groupId, updateGroupDto, options) {
529
+ const localVarAxiosArgs = await localVarAxiosParamCreator.update(groupId, updateGroupDto, options);
530
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
531
+ const localVarOperationServerBasePath = base_1.operationServerMap['GroupApi.update']?.[localVarOperationServerIndex]?.url;
532
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
533
+ },
534
+ };
535
+ };
536
+ exports.GroupApiFp = GroupApiFp;
537
+ /**
538
+ * GroupApi - factory interface
539
+ */
540
+ const GroupApiFactory = function (configuration, basePath, axios) {
541
+ const localVarFp = (0, exports.GroupApiFp)(configuration);
542
+ return {
543
+ /**
544
+ *
545
+ * @summary Add a member to a group
546
+ * @param {string} groupId
547
+ * @param {string} userId
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ addMember(groupId, userId, options) {
552
+ return localVarFp.addMember(groupId, userId, options).then((request) => request(axios, basePath));
553
+ },
554
+ /**
555
+ *
556
+ * @summary Create a group
557
+ * @param {CreateGroupDto} createGroupDto
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ create(createGroupDto, options) {
562
+ return localVarFp.create(createGroupDto, options).then((request) => request(axios, basePath));
563
+ },
564
+ /**
565
+ *
566
+ * @summary Get a group by ID
567
+ * @param {string} groupId
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ findOne(groupId, options) {
572
+ return localVarFp.findOne(groupId, options).then((request) => request(axios, basePath));
573
+ },
574
+ /**
575
+ *
576
+ * @summary Get a batch of groups by IDs
577
+ * @param {GetGroupsDto} getGroupsDto
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ getBatch(getGroupsDto, options) {
582
+ return localVarFp.getBatch(getGroupsDto, options).then((request) => request(axios, basePath));
583
+ },
584
+ /**
585
+ *
586
+ * @summary Get events of a group
587
+ * @param {string} groupId
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ getEvents(groupId, options) {
592
+ return localVarFp.getEvents(groupId, options).then((request) => request(axios, basePath));
593
+ },
594
+ /**
595
+ *
596
+ * @summary Get members of a group
597
+ * @param {string} groupId
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ */
601
+ getMembers(groupId, options) {
602
+ return localVarFp.getMembers(groupId, options).then((request) => request(axios, basePath));
603
+ },
604
+ /**
605
+ *
606
+ * @summary Delete a group
607
+ * @param {string} groupId
608
+ * @param {string} xProximaNexusRequesterUserId Requester user ID
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ remove(groupId, xProximaNexusRequesterUserId, options) {
613
+ return localVarFp.remove(groupId, xProximaNexusRequesterUserId, options).then((request) => request(axios, basePath));
614
+ },
615
+ /**
616
+ *
617
+ * @summary Remove a member from a group
618
+ * @param {string} groupId
619
+ * @param {string} userId
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ removeMember(groupId, userId, options) {
624
+ return localVarFp.removeMember(groupId, userId, options).then((request) => request(axios, basePath));
625
+ },
626
+ /**
627
+ *
628
+ * @summary Search groups
629
+ * @param {string} [displayName] Display name search (ILIKE)
630
+ * @param {number} [latitude] Latitude for radius search
631
+ * @param {number} [longitude] Longitude for radius search
632
+ * @param {number} [radius] Radius in meters for radius search
633
+ * @param {number} [minLatitude] Minimum latitude for bounding box
634
+ * @param {number} [maxLatitude] Maximum latitude for bounding box
635
+ * @param {number} [minLongitude] Minimum longitude for bounding box
636
+ * @param {number} [maxLongitude] Maximum longitude for bounding box
637
+ * @param {number} [limit] Limit results (1-1000)
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
642
+ return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options).then((request) => request(axios, basePath));
643
+ },
644
+ /**
645
+ *
646
+ * @summary Update a group
647
+ * @param {string} groupId
648
+ * @param {UpdateGroupDto} updateGroupDto
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ update(groupId, updateGroupDto, options) {
653
+ return localVarFp.update(groupId, updateGroupDto, options).then((request) => request(axios, basePath));
654
+ },
655
+ };
656
+ };
657
+ exports.GroupApiFactory = GroupApiFactory;
658
+ /**
659
+ * GroupApi - object-oriented interface
660
+ */
661
+ class GroupApi extends base_1.BaseAPI {
662
+ /**
663
+ *
664
+ * @summary Add a member to a group
665
+ * @param {string} groupId
666
+ * @param {string} userId
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ addMember(groupId, userId, options) {
671
+ return (0, exports.GroupApiFp)(this.configuration).addMember(groupId, userId, options).then((request) => request(this.axios, this.basePath));
672
+ }
673
+ /**
674
+ *
675
+ * @summary Create a group
676
+ * @param {CreateGroupDto} createGroupDto
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ */
680
+ create(createGroupDto, options) {
681
+ return (0, exports.GroupApiFp)(this.configuration).create(createGroupDto, options).then((request) => request(this.axios, this.basePath));
682
+ }
683
+ /**
684
+ *
685
+ * @summary Get a group by ID
686
+ * @param {string} groupId
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ findOne(groupId, options) {
691
+ return (0, exports.GroupApiFp)(this.configuration).findOne(groupId, options).then((request) => request(this.axios, this.basePath));
692
+ }
693
+ /**
694
+ *
695
+ * @summary Get a batch of groups by IDs
696
+ * @param {GetGroupsDto} getGroupsDto
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ getBatch(getGroupsDto, options) {
701
+ return (0, exports.GroupApiFp)(this.configuration).getBatch(getGroupsDto, options).then((request) => request(this.axios, this.basePath));
702
+ }
703
+ /**
704
+ *
705
+ * @summary Get events of a group
706
+ * @param {string} groupId
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ */
710
+ getEvents(groupId, options) {
711
+ return (0, exports.GroupApiFp)(this.configuration).getEvents(groupId, options).then((request) => request(this.axios, this.basePath));
712
+ }
713
+ /**
714
+ *
715
+ * @summary Get members of a group
716
+ * @param {string} groupId
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ getMembers(groupId, options) {
721
+ return (0, exports.GroupApiFp)(this.configuration).getMembers(groupId, options).then((request) => request(this.axios, this.basePath));
722
+ }
723
+ /**
724
+ *
725
+ * @summary Delete a group
726
+ * @param {string} groupId
727
+ * @param {string} xProximaNexusRequesterUserId Requester user ID
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ remove(groupId, xProximaNexusRequesterUserId, options) {
732
+ return (0, exports.GroupApiFp)(this.configuration).remove(groupId, xProximaNexusRequesterUserId, options).then((request) => request(this.axios, this.basePath));
733
+ }
734
+ /**
735
+ *
736
+ * @summary Remove a member from a group
737
+ * @param {string} groupId
738
+ * @param {string} userId
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ removeMember(groupId, userId, options) {
743
+ return (0, exports.GroupApiFp)(this.configuration).removeMember(groupId, userId, options).then((request) => request(this.axios, this.basePath));
744
+ }
745
+ /**
746
+ *
747
+ * @summary Search groups
748
+ * @param {string} [displayName] Display name search (ILIKE)
749
+ * @param {number} [latitude] Latitude for radius search
750
+ * @param {number} [longitude] Longitude for radius search
751
+ * @param {number} [radius] Radius in meters for radius search
752
+ * @param {number} [minLatitude] Minimum latitude for bounding box
753
+ * @param {number} [maxLatitude] Maximum latitude for bounding box
754
+ * @param {number} [minLongitude] Minimum longitude for bounding box
755
+ * @param {number} [maxLongitude] Maximum longitude for bounding box
756
+ * @param {number} [limit] Limit results (1-1000)
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ */
760
+ search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
761
+ return (0, exports.GroupApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options).then((request) => request(this.axios, this.basePath));
762
+ }
763
+ /**
764
+ *
765
+ * @summary Update a group
766
+ * @param {string} groupId
767
+ * @param {UpdateGroupDto} updateGroupDto
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ update(groupId, updateGroupDto, options) {
772
+ return (0, exports.GroupApiFp)(this.configuration).update(groupId, updateGroupDto, options).then((request) => request(this.axios, this.basePath));
773
+ }
774
+ }
775
+ exports.GroupApi = GroupApi;