Skip to content

Commit

Permalink
Update all files from the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed May 20, 2022
1 parent c438b8c commit c1e0c1a
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions types/kotlin/Error.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package quicktype

/**
* Triggered when an error occurred
* Triggered when an error occurred.
*/
data class Error (
/**
* Context - client defined, can be used for debugging
* Context - client defined, can be used for debugging.
*/
val context: String? = null,

Expand Down
2 changes: 1 addition & 1 deletion types/kotlin/MobileScreen.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package quicktype

/**
* Triggered when the user changed screen on Element Android/iOS
* Triggered when the user changed screen on Element Android/iOS.
*/
data class MobileScreen (
/**
Expand Down
14 changes: 7 additions & 7 deletions types/kotlin/UserProperties.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@ data class UserProperties (
val ftueUseCaseSelection: String? = null,

/**
* Number of joined rooms the user has favourited
* Number of joined rooms the user has favourited.
*/
val numFavouriteRooms: Long? = null,

/**
* Number of spaces (and sub-spaces) the user is joined to
* Number of spaces (and sub-spaces) the user is joined to.
*/
val numSpaces: Long? = null,

/**
* Whether the user has the favourites space enabled
* Whether the user has the favourites space enabled.
*/
val webMetaSpaceFavouritesEnabled: Boolean? = null,

/**
* Whether the user has the home space set to all rooms
* Whether the user has the home space set to all rooms.
*/
val webMetaSpaceHomeAllRooms: Boolean? = null,

/**
* Whether the user has the home space enabled
* Whether the user has the home space enabled.
*/
val webMetaSpaceHomeEnabled: Boolean? = null,

/**
* Whether the user has the other rooms space enabled
* Whether the user has the other rooms space enabled.
*/
val webMetaSpaceOrphansEnabled: Boolean? = null,

/**
* Whether the user has the people space enabled
* Whether the user has the people space enabled.
*/
val webMetaSpacePeopleEnabled: Boolean? = null
)
4 changes: 2 additions & 2 deletions types/swift/Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import Foundation
// GENERATED FILE, DO NOT EDIT. FOR MORE INFORMATION VISIT
// https://github.com/matrix-org/matrix-analytics-events/

/// Triggered when an error occurred
/// Triggered when an error occurred.
extension AnalyticsEvent {
public struct Error: AnalyticsEventProtocol {
public let eventName = "Error"

/// Context - client defined, can be used for debugging
/// Context - client defined, can be used for debugging.
public let context: String?
public let domain: Domain
public let name: Name
Expand Down
2 changes: 1 addition & 1 deletion types/swift/JoinedRoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension AnalyticsEvent {
public enum Trigger: String {
/// Room joined via an invite.
case Invite
/// Room joined via link
/// Room joined via link.
case MobilePermalink
/// Room joined via a push/desktop notification.
case Notification
Expand Down
24 changes: 12 additions & 12 deletions types/swift/MobileScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Foundation
// GENERATED FILE, DO NOT EDIT. FOR MORE INFORMATION VISIT
// https://github.com/matrix-org/matrix-analytics-events/

/// Triggered when the user changed screen on Element Android/iOS
/// Triggered when the user changed screen on Element Android/iOS.
extension AnalyticsEvent {
public struct MobileScreen: AnalyticsScreenProtocol {

Expand All @@ -43,7 +43,7 @@ extension AnalyticsEvent {
case Dialpad
/// The Favourites tab on mobile that lists your favourite people/rooms.
case Favourites
/// The form for the forgot password use case
/// The form for the forgot password use case.
case ForgotPassword
/// Legacy: The screen that shows information about a specific group.
case Group
Expand All @@ -57,7 +57,7 @@ extension AnalyticsEvent {
case MyGroups
/// The People tab on mobile that lists all the DM rooms you have joined.
case People
/// The screen that displays the registration flow (when the user wants to create an account)
/// The screen that displays the registration flow (when the user wants to create an account).
case Register
/// The screen that displays the messages and events received in a room.
case Room
Expand All @@ -75,7 +75,7 @@ extension AnalyticsEvent {
case RoomNotifications
/// The roles permissions screen shown from the Room Details screen.
case RoomPermissions
/// Screen that displays room preview if user hasn't joined yet
/// Screen that displays room preview if user hasn't joined yet.
case RoomPreview
/// The screen that allows you to search for messages/files in a specific room.
case RoomSearch
Expand All @@ -95,19 +95,19 @@ extension AnalyticsEvent {
case SearchRooms
/// The global settings screen shown in the app.
case Settings
/// The advanced settings screen (developer mode, rageshake, push notification rules)
/// The advanced settings screen (developer mode, rageshake, push notification rules).
case SettingsAdvanced
/// The settings screen to change the default notification options.
case SettingsDefaultNotifications
/// The settings screen with general profile settings.
case SettingsGeneral
/// The Help and About screen
/// The Help and About screen.
case SettingsHelp
/// The settings screen with list of the ignored users.
case SettingsIgnoredUsers
/// The experimental features settings screen,
/// The experimental features settings screen.
case SettingsLabs
/// The settings screen with legals information
/// The settings screen with legals information.
case SettingsLegals
/// The settings screen to manage notification mentions and keywords.
case SettingsMentionsAndKeywords
Expand All @@ -121,17 +121,17 @@ extension AnalyticsEvent {
case SettingsVoiceVideo
/// The sidebar shown on mobile with spaces, settings etc.
case Sidebar
/// Screen that displays the list of rooms and spaces of a space
/// Screen that displays the list of rooms and spaces of a space.
case SpaceExploreRooms
/// Screen that displays the list of members of a space
/// Screen that displays the list of members of a space.
case SpaceMembers
/// The bottom sheet that list all space options
/// The bottom sheet that list all space options.
case SpaceMenu
/// The screen shown to create a new direct room.
case StartChat
/// The screen shown to select which room directory you'd like to use.
case SwitchDirectory
/// Screen that displays list of threads for a room
/// Screen that displays list of threads for a room.
case ThreadList
/// A screen that shows information about a room member.
case User
Expand Down
14 changes: 7 additions & 7 deletions types/swift/UserProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ import Foundation
extension AnalyticsEvent {
public struct UserProperties {

/// Whether the user has the favourites space enabled
/// Whether the user has the favourites space enabled.
public let WebMetaSpaceFavouritesEnabled: Bool?
/// Whether the user has the home space set to all rooms
/// Whether the user has the home space set to all rooms.
public let WebMetaSpaceHomeAllRooms: Bool?
/// Whether the user has the home space enabled
/// Whether the user has the home space enabled.
public let WebMetaSpaceHomeEnabled: Bool?
/// Whether the user has the other rooms space enabled
/// Whether the user has the other rooms space enabled.
public let WebMetaSpaceOrphansEnabled: Bool?
/// Whether the user has the people space enabled
/// Whether the user has the people space enabled.
public let WebMetaSpacePeopleEnabled: Bool?
/// The selected messaging use case during the onboarding flow.
public let ftueUseCaseSelection: FtueUseCaseSelection?
/// Number of joined rooms the user has favourited
/// Number of joined rooms the user has favourited.
public let numFavouriteRooms: Int?
/// Number of spaces (and sub-spaces) the user is joined to
/// Number of spaces (and sub-spaces) the user is joined to.
public let numSpaces: Int?

public init(WebMetaSpaceFavouritesEnabled: Bool?, WebMetaSpaceHomeAllRooms: Bool?, WebMetaSpaceHomeEnabled: Bool?, WebMetaSpaceOrphansEnabled: Bool?, WebMetaSpacePeopleEnabled: Bool?, ftueUseCaseSelection: FtueUseCaseSelection?, numFavouriteRooms: Int?, numSpaces: Int?) {
Expand Down
10 changes: 5 additions & 5 deletions types/swift/ViewRoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,27 @@ extension AnalyticsEvent {
case MessageSearch
/// Room switched due to user selecting a user to go to a DM with.
case MessageUser
/// Room accessed via space explore
/// Room accessed via space explore.
case MobileExploreRooms
/// Room switched due to user interacting with a file search result.
case MobileFileSearch
/// Room accessed via interacting with the incall screen.
case MobileInCall
/// Room accessed during external sharing
/// Room accessed during external sharing.
case MobileLinkShare
/// Room accessed via link
/// Room accessed via link.
case MobilePermalink
/// Room accessed via interacting with direct chat item in the room contact detail screen.
case MobileRoomMemberDetail
/// Room accessed via preview
/// Room accessed via preview.
case MobileRoomPreview
/// Room switched due to user interacting with a room search result.
case MobileRoomSearch
/// Room accessed via interacting with direct chat item in the search contact detail screen.
case MobileSearchContactDetail
/// Room accessed via interacting with direct chat item in the space contact detail screen.
case MobileSpaceMemberDetail
/// Room accessed via space members list
/// Room accessed via space members list.
case MobileSpaceMembers
/// Space accessed via interacting with the space menu.
case MobileSpaceMenu
Expand Down
4 changes: 2 additions & 2 deletions types/typescript/Error.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/**
* Triggered when an error occurred
* Triggered when an error occurred.
*/
export interface Error {
eventName: "Error";
Expand All @@ -22,7 +22,7 @@ export interface Error {
| "VoipIceTimeout"
| "VoipUserMediaFailed";
/**
* Context - client defined, can be used for debugging
* Context - client defined, can be used for debugging.
*/
context?: string;
}
14 changes: 7 additions & 7 deletions types/typescript/UserProperties.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ export interface UserProperties {
*/
ftueUseCaseSelection?: ("PersonalMessaging" | "WorkMessaging" | "CommunityMessaging" | "Skip") & string;
/**
* Number of spaces (and sub-spaces) the user is joined to
* Number of spaces (and sub-spaces) the user is joined to.
*/
numSpaces?: number;
/**
* Number of joined rooms the user has favourited
* Number of joined rooms the user has favourited.
*/
numFavouriteRooms?: number;
/**
* Whether the user has the home space enabled
* Whether the user has the home space enabled.
*/
WebMetaSpaceHomeEnabled?: boolean;
/**
* Whether the user has the home space set to all rooms
* Whether the user has the home space set to all rooms.
*/
WebMetaSpaceHomeAllRooms?: boolean;
/**
* Whether the user has the people space enabled
* Whether the user has the people space enabled.
*/
WebMetaSpacePeopleEnabled?: boolean;
/**
* Whether the user has the favourites space enabled
* Whether the user has the favourites space enabled.
*/
WebMetaSpaceFavouritesEnabled?: boolean;
/**
* Whether the user has the other rooms space enabled
* Whether the user has the other rooms space enabled.
*/
WebMetaSpaceOrphansEnabled?: boolean;
}

0 comments on commit c1e0c1a

Please sign in to comment.