Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
John Stableford committed Feb 26, 2024
1 parent c090ff4 commit c9c9a6b
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 3 deletions.
10 changes: 10 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Tasks

Implement endpoints:

- `conversations.list`
- `conversations.members`
- `users.list`
- `conversations.invite`
- `usergroups.list`
- `usergroups.users.update`
6 changes: 5 additions & 1 deletion dist/openapi.complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,14 @@ components:
unlinked:
example: 0
type: number
updated:
example: 1449252889
type: number
required:
- id
- name
- is_channel
- updated
- created
- creator
- is_archived
Expand Down Expand Up @@ -8002,7 +8006,7 @@ paths:
externalDocs:
description: API method documentation
url: https://api.slack.com/methods/conversations.list
operationId: conversations_list
operationId: conversations.list
parameters:
- description: Set to `true` to exclude archived channels from the list
in: query
Expand Down
6 changes: 5 additions & 1 deletion dist/openapi.manicured.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,14 @@ components:
unlinked:
example: 0
type: number
updated:
example: 1449252889
type: number
required:
- id
- name
- is_channel
- updated
- created
- creator
- is_archived
Expand Down Expand Up @@ -663,7 +667,7 @@ paths:
externalDocs:
description: API method documentation
url: https://api.slack.com/methods/conversations.list
operationId: conversations_list
operationId: conversations.list
parameters:
- description: Set to `true` to exclude archived channels from the list
in: query
Expand Down
6 changes: 5 additions & 1 deletion openapi/conversations/conversations.list.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
paths:
/conversations.list:
get:
operationId: conversations_list
operationId: conversations.list
tags:
- conversations
description: Lists all channels in a Slack team.
Expand Down Expand Up @@ -86,6 +86,7 @@ components:
# - is_group
# - is_im
# - is_mpim
- updated
- created
- creator
- is_archived
Expand Down Expand Up @@ -124,6 +125,9 @@ components:
is_mpim:
type: boolean
example: false
updated:
example: 1449252889
type: number
created:
type: number
example: 1449252889
Expand Down
1 change: 1 addition & 0 deletions test-harnesses/go/pkg/types.gen.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,87 @@ func (suite *TestSuite) TestListConversations() {
assert.Equal(t, nil, err)
assert.NotNil(t, r.JSON200)
}

func (suite *TestSuite) TestListConversationsExcludeArchived() {
t := suite.T()
t.Skip()
// ctx := context.Background()
// params := pkg.ConversationsListParams{}
// r, err := suite.ApiClient.ConversationsListWithResponse(ctx, &params)

// // fmt.Println(s.PrettyJSON(t, r.Body))
// assert.Equal(t, nil, err)
// assert.NotNil(t, r.JSON200)

t.FailNow()
}

func (suite *TestSuite) TestListConversationsPaginated() {
t := suite.T()
t.Skip()
// ctx := context.Background()
// params := pkg.ConversationsListParams{}
// r, err := suite.ApiClient.ConversationsListWithResponse(ctx, &params)

// // fmt.Println(s.PrettyJSON(t, r.Body))
// assert.Equal(t, nil, err)
// assert.NotNil(t, r.JSON200)

t.FailNow()
}

func (suite *TestSuite) TestListConversationsTypeChannel() {
t := suite.T()
t.Skip()
// ctx := context.Background()
// params := pkg.ConversationsListParams{}
// r, err := suite.ApiClient.ConversationsListWithResponse(ctx, &params)

// // fmt.Println(s.PrettyJSON(t, r.Body))
// assert.Equal(t, nil, err)
// assert.NotNil(t, r.JSON200)

t.FailNow()
}

func (suite *TestSuite) TestListConversationsTypeGroup() {
t := suite.T()
t.Skip()
// ctx := context.Background()
// params := pkg.ConversationsListParams{}
// r, err := suite.ApiClient.ConversationsListWithResponse(ctx, &params)

// // fmt.Println(s.PrettyJSON(t, r.Body))
// assert.Equal(t, nil, err)
// assert.NotNil(t, r.JSON200)

t.FailNow()
}

func (suite *TestSuite) TestListConversationsTypeIM() {
t := suite.T()
t.Skip()
// ctx := context.Background()
// params := pkg.ConversationsListParams{}
// r, err := suite.ApiClient.ConversationsListWithResponse(ctx, &params)

// // fmt.Println(s.PrettyJSON(t, r.Body))
// assert.Equal(t, nil, err)
// assert.NotNil(t, r.JSON200)

t.FailNow()
}

func (suite *TestSuite) TestListConversationsTypeMPIM() {
t := suite.T()
t.Skip()
// ctx := context.Background()
// params := pkg.ConversationsListParams{}
// r, err := suite.ApiClient.ConversationsListWithResponse(ctx, &params)

// // fmt.Println(s.PrettyJSON(t, r.Body))
// assert.Equal(t, nil, err)
// assert.NotNil(t, r.JSON200)

t.FailNow()
}

0 comments on commit c9c9a6b

Please sign in to comment.