You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/models/GroupUser.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,18 @@
25
25
26
26
```
27
27
await GroupUser.list({
28
-
'user_id': 1,
29
28
'group_id': 1,
29
+
'user_id': 1,
30
30
})
31
31
```
32
32
33
33
34
34
### Parameters
35
35
36
-
*`user_id` (int64): User ID. If provided, will return group_users of this user.
37
36
*`cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
38
37
*`per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
39
38
*`group_id` (int64): Group ID. If provided, will return group_users of this group.
39
+
*`user_id` (int64): User ID. If provided, will return group_users of this user.
// user_id - int64 - User ID. If provided, will return group_users of this user.
312
311
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
313
312
// per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
314
313
// group_id - int64 - Group ID. If provided, will return group_users of this group.
314
+
// user_id - int64 - User ID. If provided, will return group_users of this user.
Copy file name to clipboardExpand all lines: src/models/GroupUser.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -193,15 +193,11 @@ class GroupUser {
193
193
}
194
194
195
195
// Parameters:
196
-
// user_id - int64 - User ID. If provided, will return group_users of this user.
197
196
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
198
197
// per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
199
198
// group_id - int64 - Group ID. If provided, will return group_users of this group.
199
+
// user_id - int64 - User ID. If provided, will return group_users of this user.
200
200
staticlist=async(params={},options={})=>{
201
-
if(params.user_id&&!isInt(params.user_id)){
202
-
thrownewerrors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
203
-
}
204
-
205
201
if(params.cursor&&!isString(params.cursor)){
206
202
thrownewerrors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
207
203
}
@@ -214,6 +210,10 @@ class GroupUser {
214
210
thrownewerrors.InvalidParameterError(`Bad parameter: group_id must be of type Int, received ${getType(params.group_id)}`)
215
211
}
216
212
213
+
if(params.user_id&&!isInt(params.user_id)){
214
+
thrownewerrors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
0 commit comments