Skip to content

Commit

Permalink
Project-level stats
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Apr 11, 2024
1 parent 398a4c7 commit 160aeb2
Show file tree
Hide file tree
Showing 17 changed files with 1,515 additions and 358 deletions.
61 changes: 49 additions & 12 deletions packages/api/generated-schema-clean.gql
Original file line number Diff line number Diff line change
Expand Up @@ -10493,6 +10493,26 @@ type Project implements Node {
"""Skip the first `n` values."""
offset: Int
): [User!]

"""Reads and enables pagination through a set of `ProjectVisitorMetric`."""
visitorMetrics(
"""Only read the first `n` values of the set."""
first: Int

"""Skip the first `n` values."""
offset: Int
period: ActivityStatsPeriod
): [ProjectVisitorMetric!]

"""Reads and enables pagination through a set of `Visitor`."""
visitors(
"""Only read the first `n` values of the set."""
first: Int

"""Skip the first `n` values."""
offset: Int
period: ActivityStatsPeriod
): [Visitor!]
}

enum ProjectAccessControlSetting {
Expand Down Expand Up @@ -11051,6 +11071,28 @@ enum ProjectsSharedBasemapsOrderBy {
NATURAL
}

type ProjectVisitorMetric implements Node {
interval: Interval!
month: Int!

"""
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
"""
nodeId: ID!

"""
Reads a single `Project` that is related to this `ProjectVisitorMetric`.
"""
project: Project
projectId: Int!
timestamp: Datetime!
topBrowsers: JSON!
topCountries: JSON!
topDeviceTypes: JSON!
topOperatingSystems: JSON!
topReferrers: JSON!
}

type PublicProjectDetail {
accessControl: ProjectAccessControlSetting
accessStatus: ProjectAccessStatus
Expand Down Expand Up @@ -16653,24 +16695,19 @@ input VisitorCondition {
}

type VisitorMetric implements Node {
id: Int!
interval: Interval!
lastUpdated: Datetime!
month: Int!

"""
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
"""
nodeId: ID!

"""Reads a single `Project` that is related to this `VisitorMetric`."""
project: Project
projectId: Int
start: Datetime!
topBrowsers: JSON
topCountries: JSON
topDeviceTypes: JSON
topOperatingSystems: JSON
topReferrers: JSON
timestamp: Datetime!
topBrowsers: JSON!
topCountries: JSON!
topDeviceTypes: JSON!
topOperatingSystems: JSON!
topReferrers: JSON!
}

"""A connection to a list of `Visitor` values."""
Expand Down
61 changes: 49 additions & 12 deletions packages/api/generated-schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -10493,6 +10493,26 @@ type Project implements Node {
"""Skip the first `n` values."""
offset: Int
): [User!]

"""Reads and enables pagination through a set of `ProjectVisitorMetric`."""
visitorMetrics(
"""Only read the first `n` values of the set."""
first: Int

"""Skip the first `n` values."""
offset: Int
period: ActivityStatsPeriod
): [ProjectVisitorMetric!]

"""Reads and enables pagination through a set of `Visitor`."""
visitors(
"""Only read the first `n` values of the set."""
first: Int

"""Skip the first `n` values."""
offset: Int
period: ActivityStatsPeriod
): [Visitor!]
}

enum ProjectAccessControlSetting {
Expand Down Expand Up @@ -11051,6 +11071,28 @@ enum ProjectsSharedBasemapsOrderBy {
NATURAL
}

type ProjectVisitorMetric implements Node {
interval: Interval!
month: Int!

"""
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
"""
nodeId: ID!

"""
Reads a single `Project` that is related to this `ProjectVisitorMetric`.
"""
project: Project
projectId: Int!
timestamp: Datetime!
topBrowsers: JSON!
topCountries: JSON!
topDeviceTypes: JSON!
topOperatingSystems: JSON!
topReferrers: JSON!
}

type PublicProjectDetail {
accessControl: ProjectAccessControlSetting
accessStatus: ProjectAccessStatus
Expand Down Expand Up @@ -16653,24 +16695,19 @@ input VisitorCondition {
}

type VisitorMetric implements Node {
id: Int!
interval: Interval!
lastUpdated: Datetime!
month: Int!

"""
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
"""
nodeId: ID!

"""Reads a single `Project` that is related to this `VisitorMetric`."""
project: Project
projectId: Int
start: Datetime!
topBrowsers: JSON
topCountries: JSON
topDeviceTypes: JSON
topOperatingSystems: JSON
topReferrers: JSON
timestamp: Datetime!
topBrowsers: JSON!
topCountries: JSON!
topDeviceTypes: JSON!
topOperatingSystems: JSON!
topReferrers: JSON!
}

"""A connection to a list of `Visitor` values."""
Expand Down
Loading

0 comments on commit 160aeb2

Please sign in to comment.