@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,543 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateUserDto } from '../models';
|
|
16
|
+
import type { EntityConnectionDto } from '../models';
|
|
17
|
+
import type { EventEntityConnectionDto } from '../models';
|
|
18
|
+
import type { GetUsersDto } from '../models';
|
|
19
|
+
import type { GroupEntityConnectionDto } from '../models';
|
|
20
|
+
import type { MutateUserResponseDto } from '../models';
|
|
21
|
+
import type { UpdateUserDto } from '../models';
|
|
22
|
+
import type { UserDto } from '../models';
|
|
23
|
+
import type { UserEntityConnectionDto } from '../models';
|
|
24
|
+
/**
|
|
25
|
+
* UserApi - axios parameter creator
|
|
26
|
+
*/
|
|
27
|
+
export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Add a friend to a user
|
|
31
|
+
* @param {string} userId
|
|
32
|
+
* @param {string} friendUserId
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
addFriend: (userId: string, friendUserId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Create a user
|
|
40
|
+
* @param {CreateUserDto} createUserDto
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
create: (createUserDto: CreateUserDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Get a user by ID
|
|
48
|
+
* @param {string} userId
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
findOne: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary Get a batch of users by IDs
|
|
56
|
+
* @param {GetUsersDto} getUsersDto
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
getBatch: (getUsersDto: GetUsersDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @summary Get events of a user
|
|
64
|
+
* @param {string} userId
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
getEvents: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @summary Get friends of a user
|
|
72
|
+
* @param {string} userId
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
getFriends: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @summary Get groups of a user
|
|
80
|
+
* @param {string} userId
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
getGroups: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Delete a user
|
|
88
|
+
* @param {string} userId
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
remove: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @summary Remove a friend from a user
|
|
96
|
+
* @param {string} userId
|
|
97
|
+
* @param {string} friendUserId
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
removeFriend: (userId: string, friendUserId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @summary Search users
|
|
105
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
106
|
+
* @param {number} [latitude] Latitude for radius search
|
|
107
|
+
* @param {number} [longitude] Longitude for radius search
|
|
108
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
109
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
110
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
111
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
112
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
113
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
search: (displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @summary Update a user
|
|
121
|
+
* @param {string} userId
|
|
122
|
+
* @param {UpdateUserDto} updateUserDto
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
update: (userId: string, updateUserDto: UpdateUserDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* UserApi - functional programming interface
|
|
130
|
+
*/
|
|
131
|
+
export declare const UserApiFp: (configuration?: Configuration) => {
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @summary Add a friend to a user
|
|
135
|
+
* @param {string} userId
|
|
136
|
+
* @param {string} friendUserId
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
addFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EntityConnectionDto>>;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @summary Create a user
|
|
144
|
+
* @param {CreateUserDto} createUserDto
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
create(createUserDto: CreateUserDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MutateUserResponseDto>>;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @summary Get a user by ID
|
|
152
|
+
* @param {string} userId
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
findOne(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto>>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @summary Get a batch of users by IDs
|
|
160
|
+
* @param {GetUsersDto} getUsersDto
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
getBatch(getUsersDto: GetUsersDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserDto>>>;
|
|
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(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EventEntityConnectionDto>>>;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Get friends of a user
|
|
176
|
+
* @param {string} userId
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
getFriends(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserEntityConnectionDto>>>;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @summary Get groups of a user
|
|
184
|
+
* @param {string} userId
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
getGroups(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupEntityConnectionDto>>>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary Delete a user
|
|
192
|
+
* @param {string} userId
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
remove(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @summary Remove a friend from a user
|
|
200
|
+
* @param {string} userId
|
|
201
|
+
* @param {string} friendUserId
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
removeFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary Search users
|
|
209
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
210
|
+
* @param {number} [latitude] Latitude for radius search
|
|
211
|
+
* @param {number} [longitude] Longitude for radius search
|
|
212
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
213
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
214
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
215
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
216
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
217
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserDto>>>;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Update a user
|
|
225
|
+
* @param {string} userId
|
|
226
|
+
* @param {UpdateUserDto} updateUserDto
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
update(userId: string, updateUserDto: UpdateUserDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MutateUserResponseDto>>;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* UserApi - factory interface
|
|
234
|
+
*/
|
|
235
|
+
export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @summary Add a friend to a user
|
|
239
|
+
* @param {string} userId
|
|
240
|
+
* @param {string} friendUserId
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
addFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): AxiosPromise<EntityConnectionDto>;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @summary Create a user
|
|
248
|
+
* @param {CreateUserDto} createUserDto
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
create(createUserDto: CreateUserDto, options?: RawAxiosRequestConfig): AxiosPromise<MutateUserResponseDto>;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @summary Get a user by ID
|
|
256
|
+
* @param {string} userId
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
findOne(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<UserDto>;
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @summary Get a batch of users by IDs
|
|
264
|
+
* @param {GetUsersDto} getUsersDto
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
getBatch(getUsersDto: GetUsersDto, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @summary Get events of a user
|
|
272
|
+
* @param {string} userId
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
getEvents(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @summary Get friends of a user
|
|
280
|
+
* @param {string} userId
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
getFriends(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserEntityConnectionDto>>;
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @summary Get groups of a user
|
|
288
|
+
* @param {string} userId
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
getGroups(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GroupEntityConnectionDto>>;
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @summary Delete a user
|
|
296
|
+
* @param {string} userId
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
remove(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary Remove a friend from a user
|
|
304
|
+
* @param {string} userId
|
|
305
|
+
* @param {string} friendUserId
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
removeFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
* @summary Search users
|
|
313
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
314
|
+
* @param {number} [latitude] Latitude for radius search
|
|
315
|
+
* @param {number} [longitude] Longitude for radius search
|
|
316
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
317
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
318
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
319
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
320
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
321
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @summary Update a user
|
|
329
|
+
* @param {string} userId
|
|
330
|
+
* @param {UpdateUserDto} updateUserDto
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
update(userId: string, updateUserDto: UpdateUserDto, options?: RawAxiosRequestConfig): AxiosPromise<MutateUserResponseDto>;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* UserApi - interface
|
|
338
|
+
*/
|
|
339
|
+
export interface UserApiInterface {
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @summary Add a friend to a user
|
|
343
|
+
* @param {string} userId
|
|
344
|
+
* @param {string} friendUserId
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
addFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): AxiosPromise<EntityConnectionDto>;
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @summary Create a user
|
|
352
|
+
* @param {CreateUserDto} createUserDto
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
*/
|
|
356
|
+
create(createUserDto: CreateUserDto, options?: RawAxiosRequestConfig): AxiosPromise<MutateUserResponseDto>;
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @summary Get a user by ID
|
|
360
|
+
* @param {string} userId
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
findOne(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<UserDto>;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @summary Get a batch of users by IDs
|
|
368
|
+
* @param {GetUsersDto} getUsersDto
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
getBatch(getUsersDto: GetUsersDto, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @summary Get events of a user
|
|
376
|
+
* @param {string} userId
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
getEvents(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EventEntityConnectionDto>>;
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @summary Get friends of a user
|
|
384
|
+
* @param {string} userId
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
getFriends(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserEntityConnectionDto>>;
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @summary Get groups of a user
|
|
392
|
+
* @param {string} userId
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
getGroups(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GroupEntityConnectionDto>>;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @summary Delete a user
|
|
400
|
+
* @param {string} userId
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
remove(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* @summary Remove a friend from a user
|
|
408
|
+
* @param {string} userId
|
|
409
|
+
* @param {string} friendUserId
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
removeFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @summary Search users
|
|
417
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
418
|
+
* @param {number} [latitude] Latitude for radius search
|
|
419
|
+
* @param {number} [longitude] Longitude for radius search
|
|
420
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
421
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
422
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
423
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
424
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
425
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserDto>>;
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @summary Update a user
|
|
433
|
+
* @param {string} userId
|
|
434
|
+
* @param {UpdateUserDto} updateUserDto
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
update(userId: string, updateUserDto: UpdateUserDto, options?: RawAxiosRequestConfig): AxiosPromise<MutateUserResponseDto>;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* UserApi - object-oriented interface
|
|
442
|
+
*/
|
|
443
|
+
export declare class UserApi extends BaseAPI implements UserApiInterface {
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @summary Add a friend to a user
|
|
447
|
+
* @param {string} userId
|
|
448
|
+
* @param {string} friendUserId
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
addFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EntityConnectionDto, any, {}>>;
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
* @summary Create a user
|
|
456
|
+
* @param {CreateUserDto} createUserDto
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
create(createUserDto: CreateUserDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MutateUserResponseDto, any, {}>>;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @summary Get a user by ID
|
|
464
|
+
* @param {string} userId
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
findOne(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserDto, any, {}>>;
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @summary Get a batch of users by IDs
|
|
472
|
+
* @param {GetUsersDto} getUsersDto
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
getBatch(getUsersDto: GetUsersDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserDto[], any, {}>>;
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @summary Get events of a user
|
|
480
|
+
* @param {string} userId
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
getEvents(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventEntityConnectionDto[], any, {}>>;
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @summary Get friends of a user
|
|
488
|
+
* @param {string} userId
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
*/
|
|
492
|
+
getFriends(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserEntityConnectionDto[], any, {}>>;
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Get groups of a user
|
|
496
|
+
* @param {string} userId
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
getGroups(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupEntityConnectionDto[], any, {}>>;
|
|
501
|
+
/**
|
|
502
|
+
*
|
|
503
|
+
* @summary Delete a user
|
|
504
|
+
* @param {string} userId
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
remove(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @summary Remove a friend from a user
|
|
512
|
+
* @param {string} userId
|
|
513
|
+
* @param {string} friendUserId
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
removeFriend(userId: string, friendUserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @summary Search users
|
|
521
|
+
* @param {string} [displayName] Display name search (ILIKE)
|
|
522
|
+
* @param {number} [latitude] Latitude for radius search
|
|
523
|
+
* @param {number} [longitude] Longitude for radius search
|
|
524
|
+
* @param {number} [radius] Radius in meters for radius search
|
|
525
|
+
* @param {number} [minLatitude] Minimum latitude for bounding box
|
|
526
|
+
* @param {number} [maxLatitude] Maximum latitude for bounding box
|
|
527
|
+
* @param {number} [minLongitude] Minimum longitude for bounding box
|
|
528
|
+
* @param {number} [maxLongitude] Maximum longitude for bounding box
|
|
529
|
+
* @param {number} [limit] Limit results (1-1000)
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
search(displayName?: string, latitude?: number, longitude?: number, radius?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserDto[], any, {}>>;
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @summary Update a user
|
|
537
|
+
* @param {string} userId
|
|
538
|
+
* @param {UpdateUserDto} updateUserDto
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
update(userId: string, updateUserDto: UpdateUserDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MutateUserResponseDto, any, {}>>;
|
|
543
|
+
}
|