Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
underthestars-zhy committed May 2, 2023
1 parent 750094a commit e0eab81
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Sources/MobbinAPI/MobbinExtenions/FlowTreeStructure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

extension MobbinAPI {
func generateTreeSturctureFlow(from flows: [Flow], parent: String? = nil) -> [Tree<Flow>] {
public func generateTreeSturctureFlow(from flows: [Flow], parent: String? = nil) -> [Tree<Flow>] {
let topLevelFlows = flows.filter {
$0.parentAppSectionId == parent
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/MobbinAPI/Model/Token.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import Foundation
import SwiftyJSON

public struct Token: Codable {
var accessToken: String
var refreshToken: String
var generatedTime: Date
public var accessToken: String
public var refreshToken: String
public var generatedTime: Date

public init(accessToken: String, refreshToken: String) {
self.accessToken = accessToken
Expand Down
2 changes: 1 addition & 1 deletion Sources/MobbinAPI/Model/Tree.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

import Foundation

enum Tree<Item> {
public enum Tree<Item> {
case children(Item, [Self])
}
18 changes: 9 additions & 9 deletions Sources/MobbinAPI/Model/UserInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
import Foundation

public struct UserInfo: Codable {
let id: String
let aud: String
let role: String
let email: String
let emailConfirmedAt: Date
let recoverySentAt: Date
let lastSignInAt: Date
let avatarUrl: URL
let fullName: String
public let id: String
public let aud: String
public let role: String
public let email: String
public let emailConfirmedAt: Date
public let recoverySentAt: Date
public let lastSignInAt: Date
public let avatarUrl: URL
public let fullName: String

public init(id: String, aud: String, role: String, email: String, emailConfirmedAt: Date, recoverySentAt: Date, lastSignInAt: Date, avatarUrl: URL, fullName: String) {
self.id = id
Expand Down
6 changes: 3 additions & 3 deletions Sources/MobbinAPI/Model/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

public struct Version {
let id: String
let createdAt: Date
let publishedAt: Date
public let id: String
public let createdAt: Date
public let publishedAt: Date
}
6 changes: 3 additions & 3 deletions Sources/MobbinAPI/Model/Workspace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

public struct Workspace {
let name: String
let id: String
let type: String
public let name: String
public let id: String
public let type: String
}

0 comments on commit e0eab81

Please sign in to comment.