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