Skip to content

Commit

Permalink
add CBP get users by group
Browse files Browse the repository at this point in the history
  • Loading branch information
JinHuangAtZen committed Nov 9, 2023
1 parent 780ad86 commit 7006da1
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 4 deletions.
8 changes: 8 additions & 0 deletions script/codegen/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions zendesk/group_users_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 50 additions & 4 deletions zendesk/mock/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions zendesk/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ type UserAPI interface {
GetOrganizationUsersIterator(ctx context.Context, opts *PaginationOptions) *Iterator[User]
GetOrganizationUsersOBP(ctx context.Context, opts *OBPOptions) ([]User, Page, error)
GetOrganizationUsersCBP(ctx context.Context, opts *CBPOptions) ([]User, CursorPaginationMeta, error)
GetGroupUsersIterator(ctx context.Context, opts *PaginationOptions) *Iterator[User]
GetGroupUsersOBP(ctx context.Context, opts *OBPOptions) ([]User, Page, error)
GetGroupUsersCBP(ctx context.Context, opts *CBPOptions) ([]User, CursorPaginationMeta, error)
}

// GetUsers fetch user list
Expand Down

0 comments on commit 7006da1

Please sign in to comment.