@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,850 @@
|
|
|
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.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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
|
+
* UserApi - axios parameter creator
|
|
28
|
+
*/
|
|
29
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Add a friend to a user
|
|
34
|
+
* @param {string} userId
|
|
35
|
+
* @param {string} friendUserId
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
addFriend: async (userId, friendUserId, options = {}) => {
|
|
40
|
+
// verify required parameter 'userId' is not null or undefined
|
|
41
|
+
(0, common_1.assertParamExists)('addFriend', 'userId', userId);
|
|
42
|
+
// verify required parameter 'friendUserId' is not null or undefined
|
|
43
|
+
(0, common_1.assertParamExists)('addFriend', 'friendUserId', friendUserId);
|
|
44
|
+
const localVarPath = `/user/{userId}/friends/{friendUserId}`
|
|
45
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
46
|
+
.replace(`{${"friendUserId"}}`, encodeURIComponent(String(friendUserId)));
|
|
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
|
+
// authentication api_key required
|
|
57
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
58
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
59
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
62
|
+
return {
|
|
63
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary Create a user
|
|
70
|
+
* @param {CreateUserDto} createUserDto
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
create: async (createUserDto, options = {}) => {
|
|
75
|
+
// verify required parameter 'createUserDto' is not null or undefined
|
|
76
|
+
(0, common_1.assertParamExists)('create', 'createUserDto', createUserDto);
|
|
77
|
+
const localVarPath = `/user`;
|
|
78
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
80
|
+
let baseOptions;
|
|
81
|
+
if (configuration) {
|
|
82
|
+
baseOptions = configuration.baseOptions;
|
|
83
|
+
}
|
|
84
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
85
|
+
const localVarHeaderParameter = {};
|
|
86
|
+
const localVarQueryParameter = {};
|
|
87
|
+
// authentication api_key required
|
|
88
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
89
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
90
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
91
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
94
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserDto, localVarRequestOptions, configuration);
|
|
95
|
+
return {
|
|
96
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
97
|
+
options: localVarRequestOptions,
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @summary Get a user by ID
|
|
103
|
+
* @param {string} userId
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
findOne: async (userId, options = {}) => {
|
|
108
|
+
// verify required parameter 'userId' is not null or undefined
|
|
109
|
+
(0, common_1.assertParamExists)('findOne', 'userId', userId);
|
|
110
|
+
const localVarPath = `/user/{userId}`
|
|
111
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
let baseOptions;
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
}
|
|
118
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
119
|
+
const localVarHeaderParameter = {};
|
|
120
|
+
const localVarQueryParameter = {};
|
|
121
|
+
// authentication api_key required
|
|
122
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
123
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
124
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
127
|
+
return {
|
|
128
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @summary Get a batch of users by IDs
|
|
135
|
+
* @param {GetUsersDto} getUsersDto
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
getBatch: async (getUsersDto, options = {}) => {
|
|
140
|
+
// verify required parameter 'getUsersDto' is not null or undefined
|
|
141
|
+
(0, common_1.assertParamExists)('getBatch', 'getUsersDto', getUsersDto);
|
|
142
|
+
const localVarPath = `/user/batch`;
|
|
143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
144
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
145
|
+
let baseOptions;
|
|
146
|
+
if (configuration) {
|
|
147
|
+
baseOptions = configuration.baseOptions;
|
|
148
|
+
}
|
|
149
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
150
|
+
const localVarHeaderParameter = {};
|
|
151
|
+
const localVarQueryParameter = {};
|
|
152
|
+
// authentication api_key required
|
|
153
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
154
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
155
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
156
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
158
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
159
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getUsersDto, localVarRequestOptions, configuration);
|
|
160
|
+
return {
|
|
161
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @summary Get events of a user
|
|
168
|
+
* @param {string} userId
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
getEvents: async (userId, options = {}) => {
|
|
173
|
+
// verify required parameter 'userId' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('getEvents', 'userId', userId);
|
|
175
|
+
const localVarPath = `/user/{userId}/events`
|
|
176
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
178
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
179
|
+
let baseOptions;
|
|
180
|
+
if (configuration) {
|
|
181
|
+
baseOptions = configuration.baseOptions;
|
|
182
|
+
}
|
|
183
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
184
|
+
const localVarHeaderParameter = {};
|
|
185
|
+
const localVarQueryParameter = {};
|
|
186
|
+
// authentication api_key required
|
|
187
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
188
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
189
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
192
|
+
return {
|
|
193
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
194
|
+
options: localVarRequestOptions,
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @summary Get friends of a user
|
|
200
|
+
* @param {string} userId
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
getFriends: async (userId, options = {}) => {
|
|
205
|
+
// verify required parameter 'userId' is not null or undefined
|
|
206
|
+
(0, common_1.assertParamExists)('getFriends', 'userId', userId);
|
|
207
|
+
const localVarPath = `/user/{userId}/friends`
|
|
208
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
209
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
211
|
+
let baseOptions;
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
}
|
|
215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
216
|
+
const localVarHeaderParameter = {};
|
|
217
|
+
const localVarQueryParameter = {};
|
|
218
|
+
// authentication api_key required
|
|
219
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
220
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
221
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
223
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
224
|
+
return {
|
|
225
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
226
|
+
options: localVarRequestOptions,
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @summary Get groups of a user
|
|
232
|
+
* @param {string} userId
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
getGroups: async (userId, options = {}) => {
|
|
237
|
+
// verify required parameter 'userId' is not null or undefined
|
|
238
|
+
(0, common_1.assertParamExists)('getGroups', 'userId', userId);
|
|
239
|
+
const localVarPath = `/user/{userId}/groups`
|
|
240
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
242
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
243
|
+
let baseOptions;
|
|
244
|
+
if (configuration) {
|
|
245
|
+
baseOptions = configuration.baseOptions;
|
|
246
|
+
}
|
|
247
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
248
|
+
const localVarHeaderParameter = {};
|
|
249
|
+
const localVarQueryParameter = {};
|
|
250
|
+
// authentication api_key required
|
|
251
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
252
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
253
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
256
|
+
return {
|
|
257
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
258
|
+
options: localVarRequestOptions,
|
|
259
|
+
};
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @summary Delete a user
|
|
264
|
+
* @param {string} userId
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
remove: async (userId, options = {}) => {
|
|
269
|
+
// verify required parameter 'userId' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('remove', 'userId', userId);
|
|
271
|
+
const localVarPath = `/user/{userId}`
|
|
272
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
274
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
275
|
+
let baseOptions;
|
|
276
|
+
if (configuration) {
|
|
277
|
+
baseOptions = configuration.baseOptions;
|
|
278
|
+
}
|
|
279
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
280
|
+
const localVarHeaderParameter = {};
|
|
281
|
+
const localVarQueryParameter = {};
|
|
282
|
+
// authentication api_key required
|
|
283
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
284
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
285
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
286
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
287
|
+
return {
|
|
288
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
289
|
+
options: localVarRequestOptions,
|
|
290
|
+
};
|
|
291
|
+
},
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @summary Remove a friend from a user
|
|
295
|
+
* @param {string} userId
|
|
296
|
+
* @param {string} friendUserId
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
removeFriend: async (userId, friendUserId, options = {}) => {
|
|
301
|
+
// verify required parameter 'userId' is not null or undefined
|
|
302
|
+
(0, common_1.assertParamExists)('removeFriend', 'userId', userId);
|
|
303
|
+
// verify required parameter 'friendUserId' is not null or undefined
|
|
304
|
+
(0, common_1.assertParamExists)('removeFriend', 'friendUserId', friendUserId);
|
|
305
|
+
const localVarPath = `/user/{userId}/friends/{friendUserId}`
|
|
306
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
307
|
+
.replace(`{${"friendUserId"}}`, encodeURIComponent(String(friendUserId)));
|
|
308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
309
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
310
|
+
let baseOptions;
|
|
311
|
+
if (configuration) {
|
|
312
|
+
baseOptions = configuration.baseOptions;
|
|
313
|
+
}
|
|
314
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
315
|
+
const localVarHeaderParameter = {};
|
|
316
|
+
const localVarQueryParameter = {};
|
|
317
|
+
// authentication api_key required
|
|
318
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
319
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
322
|
+
return {
|
|
323
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
324
|
+
options: localVarRequestOptions,
|
|
325
|
+
};
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @summary Search users
|
|
330
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
331
|
+
* @param {number} [latitude] Latitude for radius search
|
|
332
|
+
* @param {number} [longitude] Longitude for radius search
|
|
333
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
334
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
335
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
336
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
337
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
338
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
search: async (displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options = {}) => {
|
|
343
|
+
const localVarPath = `/user`;
|
|
344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
345
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
346
|
+
let baseOptions;
|
|
347
|
+
if (configuration) {
|
|
348
|
+
baseOptions = configuration.baseOptions;
|
|
349
|
+
}
|
|
350
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
351
|
+
const localVarHeaderParameter = {};
|
|
352
|
+
const localVarQueryParameter = {};
|
|
353
|
+
// authentication api_key required
|
|
354
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
355
|
+
if (displayName !== undefined) {
|
|
356
|
+
localVarQueryParameter['displayName'] = displayName;
|
|
357
|
+
}
|
|
358
|
+
if (latitude !== undefined) {
|
|
359
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
360
|
+
}
|
|
361
|
+
if (longitude !== undefined) {
|
|
362
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
363
|
+
}
|
|
364
|
+
if (radius !== undefined) {
|
|
365
|
+
localVarQueryParameter['radius'] = radius;
|
|
366
|
+
}
|
|
367
|
+
if (minLatitude !== undefined) {
|
|
368
|
+
localVarQueryParameter['minLatitude'] = minLatitude;
|
|
369
|
+
}
|
|
370
|
+
if (maxLatitude !== undefined) {
|
|
371
|
+
localVarQueryParameter['maxLatitude'] = maxLatitude;
|
|
372
|
+
}
|
|
373
|
+
if (minLongitude !== undefined) {
|
|
374
|
+
localVarQueryParameter['minLongitude'] = minLongitude;
|
|
375
|
+
}
|
|
376
|
+
if (maxLongitude !== undefined) {
|
|
377
|
+
localVarQueryParameter['maxLongitude'] = maxLongitude;
|
|
378
|
+
}
|
|
379
|
+
if (limit !== undefined) {
|
|
380
|
+
localVarQueryParameter['limit'] = limit;
|
|
381
|
+
}
|
|
382
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
383
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
386
|
+
return {
|
|
387
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
388
|
+
options: localVarRequestOptions,
|
|
389
|
+
};
|
|
390
|
+
},
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @summary Update a user
|
|
394
|
+
* @param {string} userId
|
|
395
|
+
* @param {UpdateUserDto} updateUserDto
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
update: async (userId, updateUserDto, options = {}) => {
|
|
400
|
+
// verify required parameter 'userId' is not null or undefined
|
|
401
|
+
(0, common_1.assertParamExists)('update', 'userId', userId);
|
|
402
|
+
// verify required parameter 'updateUserDto' is not null or undefined
|
|
403
|
+
(0, common_1.assertParamExists)('update', 'updateUserDto', updateUserDto);
|
|
404
|
+
const localVarPath = `/user/{userId}`
|
|
405
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
406
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
407
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
408
|
+
let baseOptions;
|
|
409
|
+
if (configuration) {
|
|
410
|
+
baseOptions = configuration.baseOptions;
|
|
411
|
+
}
|
|
412
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
413
|
+
const localVarHeaderParameter = {};
|
|
414
|
+
const localVarQueryParameter = {};
|
|
415
|
+
// authentication api_key required
|
|
416
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Proxima-Nexus-Api-Key", configuration);
|
|
417
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
418
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
419
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
421
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
422
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserDto, localVarRequestOptions, configuration);
|
|
423
|
+
return {
|
|
424
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
425
|
+
options: localVarRequestOptions,
|
|
426
|
+
};
|
|
427
|
+
},
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
431
|
+
/**
|
|
432
|
+
* UserApi - functional programming interface
|
|
433
|
+
*/
|
|
434
|
+
const UserApiFp = function (configuration) {
|
|
435
|
+
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
436
|
+
return {
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @summary Add a friend to a user
|
|
440
|
+
* @param {string} userId
|
|
441
|
+
* @param {string} friendUserId
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
async addFriend(userId, friendUserId, options) {
|
|
446
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addFriend(userId, friendUserId, options);
|
|
447
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
448
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.addFriend']?.[localVarOperationServerIndex]?.url;
|
|
449
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
450
|
+
},
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @summary Create a user
|
|
454
|
+
* @param {CreateUserDto} createUserDto
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
async create(createUserDto, options) {
|
|
459
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(createUserDto, options);
|
|
460
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
461
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.create']?.[localVarOperationServerIndex]?.url;
|
|
462
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary Get a user by ID
|
|
467
|
+
* @param {string} userId
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @throws {RequiredError}
|
|
470
|
+
*/
|
|
471
|
+
async findOne(userId, options) {
|
|
472
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(userId, options);
|
|
473
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
474
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.findOne']?.[localVarOperationServerIndex]?.url;
|
|
475
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @summary Get a batch of users by IDs
|
|
480
|
+
* @param {GetUsersDto} getUsersDto
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
async getBatch(getUsersDto, options) {
|
|
485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBatch(getUsersDto, options);
|
|
486
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
487
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getBatch']?.[localVarOperationServerIndex]?.url;
|
|
488
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* @summary Get events of a user
|
|
493
|
+
* @param {string} userId
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
async getEvents(userId, options) {
|
|
498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvents(userId, options);
|
|
499
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
500
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getEvents']?.[localVarOperationServerIndex]?.url;
|
|
501
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
502
|
+
},
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @summary Get friends of a user
|
|
506
|
+
* @param {string} userId
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
async getFriends(userId, options) {
|
|
511
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFriends(userId, options);
|
|
512
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
513
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getFriends']?.[localVarOperationServerIndex]?.url;
|
|
514
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @summary Get groups of a user
|
|
519
|
+
* @param {string} userId
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
async getGroups(userId, options) {
|
|
524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroups(userId, options);
|
|
525
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
526
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getGroups']?.[localVarOperationServerIndex]?.url;
|
|
527
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @summary Delete a user
|
|
532
|
+
* @param {string} userId
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
async remove(userId, options) {
|
|
537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.remove(userId, options);
|
|
538
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
539
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.remove']?.[localVarOperationServerIndex]?.url;
|
|
540
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
541
|
+
},
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @summary Remove a friend from a user
|
|
545
|
+
* @param {string} userId
|
|
546
|
+
* @param {string} friendUserId
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
*/
|
|
550
|
+
async removeFriend(userId, friendUserId, options) {
|
|
551
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeFriend(userId, friendUserId, options);
|
|
552
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
553
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.removeFriend']?.[localVarOperationServerIndex]?.url;
|
|
554
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
555
|
+
},
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @summary Search users
|
|
559
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
560
|
+
* @param {number} [latitude] Latitude for radius search
|
|
561
|
+
* @param {number} [longitude] Longitude for radius search
|
|
562
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
563
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
564
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
565
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
566
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
567
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
async search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
|
|
572
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options);
|
|
573
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
574
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.search']?.[localVarOperationServerIndex]?.url;
|
|
575
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
576
|
+
},
|
|
577
|
+
/**
|
|
578
|
+
*
|
|
579
|
+
* @summary Update a user
|
|
580
|
+
* @param {string} userId
|
|
581
|
+
* @param {UpdateUserDto} updateUserDto
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
async update(userId, updateUserDto, options) {
|
|
586
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.update(userId, updateUserDto, options);
|
|
587
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
588
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.update']?.[localVarOperationServerIndex]?.url;
|
|
589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
+
},
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
exports.UserApiFp = UserApiFp;
|
|
594
|
+
/**
|
|
595
|
+
* UserApi - factory interface
|
|
596
|
+
*/
|
|
597
|
+
const UserApiFactory = function (configuration, basePath, axios) {
|
|
598
|
+
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
599
|
+
return {
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @summary Add a friend to a user
|
|
603
|
+
* @param {string} userId
|
|
604
|
+
* @param {string} friendUserId
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
addFriend(userId, friendUserId, options) {
|
|
609
|
+
return localVarFp.addFriend(userId, friendUserId, options).then((request) => request(axios, basePath));
|
|
610
|
+
},
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @summary Create a user
|
|
614
|
+
* @param {CreateUserDto} createUserDto
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
create(createUserDto, options) {
|
|
619
|
+
return localVarFp.create(createUserDto, options).then((request) => request(axios, basePath));
|
|
620
|
+
},
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @summary Get a user by ID
|
|
624
|
+
* @param {string} userId
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
findOne(userId, options) {
|
|
629
|
+
return localVarFp.findOne(userId, options).then((request) => request(axios, basePath));
|
|
630
|
+
},
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
* @summary Get a batch of users by IDs
|
|
634
|
+
* @param {GetUsersDto} getUsersDto
|
|
635
|
+
* @param {*} [options] Override http request option.
|
|
636
|
+
* @throws {RequiredError}
|
|
637
|
+
*/
|
|
638
|
+
getBatch(getUsersDto, options) {
|
|
639
|
+
return localVarFp.getBatch(getUsersDto, options).then((request) => request(axios, basePath));
|
|
640
|
+
},
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
* @summary Get events of a user
|
|
644
|
+
* @param {string} userId
|
|
645
|
+
* @param {*} [options] Override http request option.
|
|
646
|
+
* @throws {RequiredError}
|
|
647
|
+
*/
|
|
648
|
+
getEvents(userId, options) {
|
|
649
|
+
return localVarFp.getEvents(userId, options).then((request) => request(axios, basePath));
|
|
650
|
+
},
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @summary Get friends of a user
|
|
654
|
+
* @param {string} userId
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
getFriends(userId, options) {
|
|
659
|
+
return localVarFp.getFriends(userId, options).then((request) => request(axios, basePath));
|
|
660
|
+
},
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @summary Get groups of a user
|
|
664
|
+
* @param {string} userId
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
getGroups(userId, options) {
|
|
669
|
+
return localVarFp.getGroups(userId, options).then((request) => request(axios, basePath));
|
|
670
|
+
},
|
|
671
|
+
/**
|
|
672
|
+
*
|
|
673
|
+
* @summary Delete a user
|
|
674
|
+
* @param {string} userId
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
remove(userId, options) {
|
|
679
|
+
return localVarFp.remove(userId, options).then((request) => request(axios, basePath));
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
* @summary Remove a friend from a user
|
|
684
|
+
* @param {string} userId
|
|
685
|
+
* @param {string} friendUserId
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
removeFriend(userId, friendUserId, options) {
|
|
690
|
+
return localVarFp.removeFriend(userId, friendUserId, options).then((request) => request(axios, basePath));
|
|
691
|
+
},
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @summary Search users
|
|
695
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
696
|
+
* @param {number} [latitude] Latitude for radius search
|
|
697
|
+
* @param {number} [longitude] Longitude for radius search
|
|
698
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
699
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
700
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
701
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
702
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
703
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
*/
|
|
707
|
+
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
|
|
708
|
+
return localVarFp.search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options).then((request) => request(axios, basePath));
|
|
709
|
+
},
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @summary Update a user
|
|
713
|
+
* @param {string} userId
|
|
714
|
+
* @param {UpdateUserDto} updateUserDto
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
*/
|
|
718
|
+
update(userId, updateUserDto, options) {
|
|
719
|
+
return localVarFp.update(userId, updateUserDto, options).then((request) => request(axios, basePath));
|
|
720
|
+
},
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
exports.UserApiFactory = UserApiFactory;
|
|
724
|
+
/**
|
|
725
|
+
* UserApi - object-oriented interface
|
|
726
|
+
*/
|
|
727
|
+
class UserApi extends base_1.BaseAPI {
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @summary Add a friend to a user
|
|
731
|
+
* @param {string} userId
|
|
732
|
+
* @param {string} friendUserId
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
addFriend(userId, friendUserId, options) {
|
|
737
|
+
return (0, exports.UserApiFp)(this.configuration).addFriend(userId, friendUserId, options).then((request) => request(this.axios, this.basePath));
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @summary Create a user
|
|
742
|
+
* @param {CreateUserDto} createUserDto
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
create(createUserDto, options) {
|
|
747
|
+
return (0, exports.UserApiFp)(this.configuration).create(createUserDto, options).then((request) => request(this.axios, this.basePath));
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
*
|
|
751
|
+
* @summary Get a user by ID
|
|
752
|
+
* @param {string} userId
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
findOne(userId, options) {
|
|
757
|
+
return (0, exports.UserApiFp)(this.configuration).findOne(userId, options).then((request) => request(this.axios, this.basePath));
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* @summary Get a batch of users by IDs
|
|
762
|
+
* @param {GetUsersDto} getUsersDto
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
*/
|
|
766
|
+
getBatch(getUsersDto, options) {
|
|
767
|
+
return (0, exports.UserApiFp)(this.configuration).getBatch(getUsersDto, options).then((request) => request(this.axios, this.basePath));
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @summary Get events of a user
|
|
772
|
+
* @param {string} userId
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
getEvents(userId, options) {
|
|
777
|
+
return (0, exports.UserApiFp)(this.configuration).getEvents(userId, options).then((request) => request(this.axios, this.basePath));
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @summary Get friends of a user
|
|
782
|
+
* @param {string} userId
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
*/
|
|
786
|
+
getFriends(userId, options) {
|
|
787
|
+
return (0, exports.UserApiFp)(this.configuration).getFriends(userId, options).then((request) => request(this.axios, this.basePath));
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
*
|
|
791
|
+
* @summary Get groups of a user
|
|
792
|
+
* @param {string} userId
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
getGroups(userId, options) {
|
|
797
|
+
return (0, exports.UserApiFp)(this.configuration).getGroups(userId, options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @summary Delete a user
|
|
802
|
+
* @param {string} userId
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
remove(userId, options) {
|
|
807
|
+
return (0, exports.UserApiFp)(this.configuration).remove(userId, options).then((request) => request(this.axios, this.basePath));
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
*
|
|
811
|
+
* @summary Remove a friend from a user
|
|
812
|
+
* @param {string} userId
|
|
813
|
+
* @param {string} friendUserId
|
|
814
|
+
* @param {*} [options] Override http request option.
|
|
815
|
+
* @throws {RequiredError}
|
|
816
|
+
*/
|
|
817
|
+
removeFriend(userId, friendUserId, options) {
|
|
818
|
+
return (0, exports.UserApiFp)(this.configuration).removeFriend(userId, friendUserId, options).then((request) => request(this.axios, this.basePath));
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
* @summary Search users
|
|
823
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
824
|
+
* @param {number} [latitude] Latitude for radius search
|
|
825
|
+
* @param {number} [longitude] Longitude for radius search
|
|
826
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
827
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
828
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
829
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
830
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
831
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options) {
|
|
836
|
+
return (0, exports.UserApiFp)(this.configuration).search(displayName, latitude, longitude, radius, minLatitude, maxLatitude, minLongitude, maxLongitude, limit, options).then((request) => request(this.axios, this.basePath));
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @summary Update a user
|
|
841
|
+
* @param {string} userId
|
|
842
|
+
* @param {UpdateUserDto} updateUserDto
|
|
843
|
+
* @param {*} [options] Override http request option.
|
|
844
|
+
* @throws {RequiredError}
|
|
845
|
+
*/
|
|
846
|
+
update(userId, updateUserDto, options) {
|
|
847
|
+
return (0, exports.UserApiFp)(this.configuration).update(userId, updateUserDto, options).then((request) => request(this.axios, this.basePath));
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
exports.UserApi = UserApi;
|