Skip to content

Commit

Permalink
Notification center re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
assafad1 committed Dec 15, 2024
1 parent f7579a6 commit 3a213a0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 10 additions & 3 deletions go/cxsdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ type ClientSet struct {
groups *GroupsClient
saml *SamlClient
dataUsage *DataUsageClient
notifications *NotificationsClient
}

// RuleGroups gets a RuleGroupsClient from the ClientSet.
Expand Down Expand Up @@ -215,6 +216,11 @@ func (c *ClientSet) DataUsage() *DataUsageClient {
return c.dataUsage
}

// Notifications gets a NotificationsClient from the ClientSet.
func (c *ClientSet) Notifications() *NotificationsClient {
return c.notifications
}

// NewClientSet Creates a new ClientSet.
func NewClientSet(targetURL, teamsLevelAPIKey string, userLevelAPIKey string) *ClientSet {
authContext := NewAuthContext(teamsLevelAPIKey, userLevelAPIKey)
Expand All @@ -239,9 +245,10 @@ func NewClientSet(targetURL, teamsLevelAPIKey string, userLevelAPIKey string) *C
slos: NewSLOsClient(apikeyCPC),
scopes: NewScopesClient(apikeyCPC),
// dahboardsFolders: NewDashboardsFoldersClient(apikeyCPC),
apiKeys: NewAPIKeysClient(apikeyCPC),
groups: NewGroupsClient(apikeyCPC),
saml: NewSamlClient(apikeyCPC),
apiKeys: NewAPIKeysClient(apikeyCPC),
groups: NewGroupsClient(apikeyCPC),
saml: NewSamlClient(apikeyCPC),
notifications: NewNotificationsClient(apikeyCPC),
// users: NewUsersClient(apikeyCPC),
}
}
Expand Down
3 changes: 3 additions & 0 deletions go/notifications-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ type ConditionTypeMatchEntityType = common.ConditionType_MatchEntityType
// MatchEntityTypeCondition is a match entity type condition.
type MatchEntityTypeCondition = common.MatchEntityTypeCondition

// MatchEntityTypeAndSubTypeCondition is a match entity type and sub-type condition.
type MatchEntityTypeAndSubTypeCondition = common.MatchEntityTypeAndSubTypeCondition

// PresetType is a preset type.
type PresetType = presets.PresetType

Expand Down

0 comments on commit 3a213a0

Please sign in to comment.