Skip to content

Commit

Permalink
refactor: refactored categories and groups
Browse files Browse the repository at this point in the history
Signed-off-by: Rubicon Lee <rex@wakflo.com>
  • Loading branch information
raff-wakflo committed Oct 21, 2024
1 parent 6588694 commit 622d640
Show file tree
Hide file tree
Showing 55 changed files with 73 additions and 70 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ require (
github.com/aftership/tracking-sdk-go/v5 v5.0.2
github.com/bold-commerce/go-shopify/v4 v4.5.0
github.com/clarkmcc/go-typescript v0.7.0
github.com/dop251/goja v0.0.0-20240806095544-3491d4a58fbe
github.com/dop251/goja v0.0.0-20241009100908-5f46f2705ca3
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
github.com/gookit/goutil v0.6.16
github.com/hiscaler/woocommerce-go v1.0.3
github.com/open2b/scriggo v0.56.1
github.com/opus-domini/fast-shot v1.1.2
github.com/rs/zerolog v1.33.0
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114
github.com/wakflo/go-sdk v0.7.1
github.com/shopspring/decimal v1.4.0
github.com/wakflo/go-sdk v0.7.2
golang.org/x/crypto v0.24.0
golang.org/x/oauth2 v0.20.0
google.golang.org/api v0.181.0
Expand Down
11 changes: 6 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dlclark/regexp2 v1.11.4 h1:rPYF9/LECdNymJufQKmri9gV604RvvABwgOA8un7yAo=
github.com/dlclark/regexp2 v1.11.4/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/dop251/goja v0.0.0-20240806095544-3491d4a58fbe h1:jwFJkgsdelB87ohlXaAGSd05Cb5ALDFa9iW9IGRHcRM=
github.com/dop251/goja v0.0.0-20240806095544-3491d4a58fbe/go.mod h1:DF+w/nLMIkvRpyhd/0K+Okbh3fVZBtXLwRtS/ccAa5w=
github.com/dop251/goja v0.0.0-20241009100908-5f46f2705ca3 h1:MXsAuToxwsTn5BEEYm2DheqIiC4jWGmkEJ1uy+KFhvQ=
github.com/dop251/goja v0.0.0-20241009100908-5f46f2705ca3/go.mod h1:MxLav0peU43GgvwVgNbLAj1s/bSGboKkhuULvq/7hx4=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
Expand Down Expand Up @@ -170,8 +170,9 @@ github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWR
github.com/scylladb/termtables v0.0.0-20191203121021-c4c0b6d42ff4/go.mod h1:C1a7PQSMz9NShzorzCiG2fk9+xuCgLkPeCvMHYR2OWg=
github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114 h1:Pm6R878vxWWWR+Sa3ppsLce/Zq+JNTs6aVvRu13jv9A=
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
Expand All @@ -187,8 +188,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/vektah/gqlparser/v2 v2.5.11 h1:JJxLtXIoN7+3x6MBdtIP59TP1RANnY7pXOaDnADQSf8=
github.com/vektah/gqlparser/v2 v2.5.11/go.mod h1:1rCcfwB2ekJofmluGWXMSEnPMZgbxzwj6FaZ/4OT8Cc=
github.com/wakflo/go-sdk v0.7.1 h1:cCMHlB0YR3xDGNKLOjlDURgR393jL96fxf9lAnCNoe0=
github.com/wakflo/go-sdk v0.7.1/go.mod h1:m7L9EX6ndBYzKLcoONrb4EBVPtCsqbE4VGvifCwJoBM=
github.com/wakflo/go-sdk v0.7.2 h1:Yq39uMKhwY9+OMN4MIwKTLfQk4SmS2xDqsQpfp2mrIs=
github.com/wakflo/go-sdk v0.7.2/go.mod h1:m7L9EX6ndBYzKLcoONrb4EBVPtCsqbE4VGvifCwJoBM=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/aftership/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "easy-to-use package tracker with which you will know when your parcel will arrive.",
Logo: "openmoji:red-hexagon",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/airtable/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Low‒code platform to build apps.",
Logo: "logos:airtable",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/asana/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Work management platform designed to help teams organize, track, and manage their work.",
Logo: "logos:asana-icon",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
3 changes: 2 additions & 1 deletion internal/connectors/calculator/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Make simple math operations",
Logo: "ion:calculator",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Categories: make([]string, 0),
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
4 changes: 2 additions & 2 deletions internal/connectors/calculator/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ func TestNewConnector(t *testing.T) {
t.Errorf("NewConnector() Version = %s, want %s", connector.Version, "0.0.1")
}

if connector.Category != sdk.Core {
t.Errorf("NewConnector() Category = %v, want %v", connector.Category, sdk.Core)
if connector.Group != sdk.ConnectorGroupCore {
t.Errorf("NewConnector() Group = %v, want %v", connector.Group, sdk.ConnectorGroupCore)
}

if len(connector.Authors) != 1 || connector.Authors[0] != "Wakflo <integrations@wakflo.com>" {
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/calendly/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "All-in-one productivity platform",
Logo: "simple-icons:calendly",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/cin7/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "interacts with the cin7 api",
Logo: "twemoji:passenger-ship",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{
NewTriggerNewSales(),
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/clickup/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "All-in-one productivity platform",
Logo: "simple-icons:clickup",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/cryptography/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Generate strings and hash strings",
Logo: "tabler:circle-key-filled",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
4 changes: 2 additions & 2 deletions internal/connectors/cryptography/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ func TestNewConnector(t *testing.T) {
t.Errorf("NewConnector() Version = %s, want %s", connector.Version, "0.0.1")
}

if connector.Category != sdk.Core {
t.Errorf("NewConnector() Category = %v, want %v", connector.Category, sdk.Core)
if connector.Group != sdk.ConnectorGroupCore {
t.Errorf("NewConnector() Group = %v, want %v", connector.Group, sdk.ConnectorGroupCore)
}

if len(connector.Authors) != 1 || connector.Authors[0] != "Wakflo <integrations@wakflo.com>" {
Expand Down
3 changes: 2 additions & 1 deletion internal/connectors/cryptography/operation_hash_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
sdk "github.com/wakflo/go-sdk/connector"
sdkcore "github.com/wakflo/go-sdk/core"

//nolint:staticcheck
//nolint:staticcheck,gosec
"golang.org/x/crypto/ripemd160"
)

Expand Down Expand Up @@ -132,6 +132,7 @@ func (c *HashTextOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error) {
hashedString.Write([]byte(inputText))
break
case suppportedAlgorithms[4].Const:
//nolint:gosec
hashedString = ripemd160.New()
hashedString.Write([]byte(inputText))
break
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/csv/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "csv reader utils and functions",
Logo: "iwwa:file-csv",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/delay/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Use it to delay the execution of the next action",
Logo: "game-icons:sands-of-time",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/dropbox/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Cloud storage and file synchronization",
Logo: "logos:dropbox",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/easyship/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "shipping platform that connects sellers and marketplaces to couriers.",
Logo: "fxemoji:diamondshapewithdotinside",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/flexport/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "platform that coordinates global logistics from factory to customer door ",
Logo: "twemoji:small-airplane",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/freshdesk/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Customer support software",
Logo: "logos:fresh",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{NewTriggerNewTicket()},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/freshworkscrm/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Customer Relationship Management Software",
Logo: "mdi:cookie-refresh",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/google_docs/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "some google docs connector",
Logo: "icon-park:google",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/google_sheets/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "some google sheets connector",
Logo: "hugeicons:google-sheet",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/googlecalendar/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "some google calendar connector",
Logo: "logos:google-calendar",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{
NewTriggerNewEventCreated(),
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/googledrive/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "some google drive connector",
Logo: "logos:google-drive",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{
NewTriggerNewFile(),
Expand Down
4 changes: 2 additions & 2 deletions internal/connectors/googledrive/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ func TestNewConnector(t *testing.T) {
t.Errorf("NewConnector() Version = %s, want %s", connector.Version, "0.0.1")
}

if connector.Category != sdk.Apps {
t.Errorf("NewConnector() Category = %v, want %v", connector.Category, sdk.Apps)
if connector.Group != sdk.ConnectorGroupApps {
t.Errorf("NewConnector() Group = %v, want %v", connector.Group, sdk.ConnectorGroupApps)
}

if len(connector.Authors) != 1 || connector.Authors[0] != "Wakflo <integrations@wakflo.com>" {
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/googlemail/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Connect to Google Mail to read, send and manage emails",
Logo: "logos:google-gmail",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Documentation: doc,
Triggers: []sdk.ITrigger{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/goscript/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Golang connector for running go codes",
Logo: "skill-icons:golang",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
4 changes: 2 additions & 2 deletions internal/connectors/goscript/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func TestNewConnector(t *testing.T) {
t.Errorf("NewConnector() Version = %s, want %s", connector.Version, "0.0.1")
}

if connector.Category != sdk.Core {
t.Errorf("NewConnector() Category = %v, want %v", connector.Category, sdk.Core)
if connector.Group != sdk.ConnectorGroupCore {
t.Errorf("NewConnector() Group = %v, want %v", connector.Group, sdk.ConnectorGroupCore)
}

if len(connector.Authors) != 1 || connector.Authors[0] != "Wakflo <integrations@wakflo.com>" {
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/harvest/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "An easy way to track time across projects",
Logo: "noto:red-square",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{
NewInvoiceUpdate(),
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/javascript/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "javascript connector for running javascript codes",
Logo: "logos:javascript",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
4 changes: 2 additions & 2 deletions internal/connectors/javascript/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func TestNewConnector(t *testing.T) {
t.Errorf("NewConnector() Version = %s, want %s", connector.Version, "0.0.1")
}

if connector.Category != sdk.Core {
t.Errorf("NewConnector() Category = %v, want %v", connector.Category, sdk.Core)
if connector.Group != sdk.ConnectorGroupCore {
t.Errorf("NewConnector() Group = %v, want %v", connector.Group, sdk.ConnectorGroupCore)
}

if len(connector.Authors) != 1 || connector.Authors[0] != "Wakflo <integrations@wakflo.com>" {
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/jsonconverter/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Convert JSON to text and vice versa",
Logo: "mdi:code-json",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/linear/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Issue tracking for modern software teams",
Logo: "simple-icons:linear",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{
NewTriggerIssueUpdated(),
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/lua/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Lua connector for running lua codes",
Logo: "logos:lua",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{},
Operations: []sdk.IOperation{
Expand Down
4 changes: 2 additions & 2 deletions internal/connectors/lua/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func TestNewConnector(t *testing.T) {
t.Errorf("NewConnector() Version = %s, want %s", connector.Version, "0.0.1")
}

if connector.Category != sdk.Core {
t.Errorf("NewConnector() Category = %v, want %v", connector.Category, sdk.Core)
if connector.Group != sdk.ConnectorGroupCore {
t.Errorf("NewConnector() Group = %v, want %v", connector.Group, sdk.ConnectorGroupCore)
}

if len(connector.Authors) != 1 || connector.Authors[0] != "Wakflo <integrations@wakflo.com>" {
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/mailchimp/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "All-in-One integrated marketing platform",
Logo: "logos:mailchimp-freddie",
Version: "0.0.1",
Category: sdk.Apps,
Group: sdk.ConnectorGroupApps,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{
NewTriggerNewSubscriber(),
Expand Down
2 changes: 1 addition & 1 deletion internal/connectors/manual/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewConnector() (*sdk.ConnectorPlugin, error) {
Description: "Manual workflow trigger",
Logo: "material-symbols-light:not-started-outline-rounded",
Version: "0.0.1",
Category: sdk.Core,
Group: sdk.ConnectorGroupCore,
Authors: []string{"Wakflo <integrations@wakflo.com>"},
Triggers: []sdk.ITrigger{
NewManualTrigger(),
Expand Down
4 changes: 2 additions & 2 deletions internal/connectors/manual/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func TestNewConnector(t *testing.T) {
t.Errorf("NewConnector() Version = %s, want %s", connector.Version, "0.0.1")
}

if connector.Category != sdk.Core {
t.Errorf("NewConnector() Category = %v, want %v", connector.Category, sdk.Core)
if connector.Group != sdk.ConnectorGroupCore {
t.Errorf("NewConnector() Group = %v, want %v", connector.Group, sdk.ConnectorGroupCore)
}

if len(connector.Authors) != 1 || connector.Authors[0] != "Wakflo <integrations@wakflo.com>" {
Expand Down
Loading

0 comments on commit 622d640

Please sign in to comment.