chore(ios): rebuild ios graphql schema (#9935)

This commit is contained in:
forehalo
2025-02-05 10:27:27 +00:00
parent 7826e2b7c8
commit 7ceab1c7da
61 changed files with 227 additions and 482 deletions

View File

@@ -1,43 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AddWorkspaceFeatureMutation: GraphQLMutation {
public static let operationName: String = "addWorkspaceFeature"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation addWorkspaceFeature($workspaceId: String!, $feature: FeatureType!) { addWorkspaceFeature(workspaceId: $workspaceId, feature: $feature) }"#
))
public var workspaceId: String
public var feature: GraphQLEnum<FeatureType>
public init(
workspaceId: String,
feature: GraphQLEnum<FeatureType>
) {
self.workspaceId = workspaceId
self.feature = feature
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"feature": feature
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("addWorkspaceFeature", Int.self, arguments: [
"workspaceId": .variable("workspaceId"),
"feature": .variable("feature")
]),
] }
public var addWorkspaceFeature: Int { __data["addWorkspaceFeature"] }
}
}

View File

@@ -1,43 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RemoveWorkspaceFeatureMutation: GraphQLMutation {
public static let operationName: String = "removeWorkspaceFeature"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation removeWorkspaceFeature($workspaceId: String!, $feature: FeatureType!) { removeWorkspaceFeature(workspaceId: $workspaceId, feature: $feature) }"#
))
public var workspaceId: String
public var feature: GraphQLEnum<FeatureType>
public init(
workspaceId: String,
feature: GraphQLEnum<FeatureType>
) {
self.workspaceId = workspaceId
self.feature = feature
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"feature": feature
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("removeWorkspaceFeature", Int.self, arguments: [
"workspaceId": .variable("workspaceId"),
"feature": .variable("feature")
]),
] }
public var removeWorkspaceFeature: Int { __data["removeWorkspaceFeature"] }
}
}

View File

@@ -1,48 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SetWorkspaceExperimentalFeatureMutation: GraphQLMutation {
public static let operationName: String = "setWorkspaceExperimentalFeature"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation setWorkspaceExperimentalFeature($workspaceId: String!, $feature: FeatureType!, $enable: Boolean!) { setWorkspaceExperimentalFeature( workspaceId: $workspaceId feature: $feature enable: $enable ) }"#
))
public var workspaceId: String
public var feature: GraphQLEnum<FeatureType>
public var enable: Bool
public init(
workspaceId: String,
feature: GraphQLEnum<FeatureType>,
enable: Bool
) {
self.workspaceId = workspaceId
self.feature = feature
self.enable = enable
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"feature": feature,
"enable": enable
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("setWorkspaceExperimentalFeature", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"feature": .variable("feature"),
"enable": .variable("enable")
]),
] }
public var setWorkspaceExperimentalFeature: Bool { __data["setWorkspaceExperimentalFeature"] }
}
}

View File

@@ -0,0 +1,33 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class UpdateCopilotSessionMutation: GraphQLMutation {
public static let operationName: String = "updateCopilotSession"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation updateCopilotSession($options: UpdateChatSessionInput!) { updateCopilotSession(options: $options) }"#
))
public var options: UpdateChatSessionInput
public init(options: UpdateChatSessionInput) {
self.options = options
}
public var __variables: Variables? { ["options": options] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateCopilotSession", String.self, arguments: ["options": .variable("options")]),
] }
/// Update a chat session
public var updateCopilotSession: String { __data["updateCopilotSession"] }
}
}

View File

@@ -1,50 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AvailableFeaturesQuery: GraphQLQuery {
public static let operationName: String = "availableFeatures"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query availableFeatures($id: String!) { workspace(id: $id) { __typename availableFeatures } }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
public static var __selections: [ApolloAPI.Selection] { [
.field("workspace", Workspace.self, arguments: ["id": .variable("id")]),
] }
/// Get workspace by id
public var workspace: Workspace { __data["workspace"] }
/// Workspace
///
/// Parent Type: `WorkspaceType`
public struct Workspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("availableFeatures", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
] }
/// Available features of workspace
public var availableFeatures: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["availableFeatures"] }
}
}
}

View File

@@ -1,50 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class EnabledFeaturesQuery: GraphQLQuery {
public static let operationName: String = "enabledFeatures"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query enabledFeatures($id: String!) { workspace(id: $id) { __typename features } }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
public static var __selections: [ApolloAPI.Selection] { [
.field("workspace", Workspace.self, arguments: ["id": .variable("id")]),
] }
/// Get workspace by id
public var workspace: Workspace { __data["workspace"] }
/// Workspace
///
/// Parent Type: `WorkspaceType`
public struct Workspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
] }
/// Enabled features of workspace
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
}
}
}

View File

@@ -47,7 +47,7 @@ public class GetUserByEmailQuery: GraphQLQuery {
.field("hasPassword", Bool?.self),
.field("emailVerified", Bool.self),
.field("avatarUrl", String?.self),
.field("quota", Quota?.self),
.field("quota", Quota.self),
] }
public var id: AffineGraphQL.ID { __data["id"] }
@@ -63,16 +63,16 @@ public class GetUserByEmailQuery: GraphQLQuery {
public var emailVerified: Bool { __data["emailVerified"] }
/// User avatar url
public var avatarUrl: String? { __data["avatarUrl"] }
public var quota: Quota? { __data["quota"] }
public var quota: Quota { __data["quota"] }
/// UserByEmail.Quota
///
/// Parent Type: `UserQuota`
/// Parent Type: `UserQuotaType`
public struct Quota: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuota }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("humanReadable", HumanReadable.self),
@@ -82,12 +82,12 @@ public class GetUserByEmailQuery: GraphQLQuery {
/// UserByEmail.Quota.HumanReadable
///
/// Parent Type: `UserQuotaHumanReadable`
/// Parent Type: `UserQuotaHumanReadableType`
public struct HumanReadable: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaHumanReadable }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaHumanReadableType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("blobLimit", String.self),

View File

@@ -1,50 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class GetWorkspaceFeaturesQuery: GraphQLQuery {
public static let operationName: String = "getWorkspaceFeatures"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query getWorkspaceFeatures($workspaceId: String!) { workspace(id: $workspaceId) { __typename features } }"#
))
public var workspaceId: String
public init(workspaceId: String) {
self.workspaceId = workspaceId
}
public var __variables: Variables? { ["workspaceId": workspaceId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
public static var __selections: [ApolloAPI.Selection] { [
.field("workspace", Workspace.self, arguments: ["id": .variable("workspaceId")]),
] }
/// Get workspace by id
public var workspace: Workspace { __data["workspace"] }
/// Workspace
///
/// Parent Type: `WorkspaceType`
public struct Workspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
] }
/// Enabled features of workspace
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
}
}
}

View File

@@ -1,79 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ListWorkspaceFeaturesQuery: GraphQLQuery {
public static let operationName: String = "listWorkspaceFeatures"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query listWorkspaceFeatures($feature: FeatureType!) { listWorkspaceFeatures(feature: $feature) { __typename id public createdAt memberCount owner { __typename id } features } }"#
))
public var feature: GraphQLEnum<FeatureType>
public init(feature: GraphQLEnum<FeatureType>) {
self.feature = feature
}
public var __variables: Variables? { ["feature": feature] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
public static var __selections: [ApolloAPI.Selection] { [
.field("listWorkspaceFeatures", [ListWorkspaceFeature].self, arguments: ["feature": .variable("feature")]),
] }
public var listWorkspaceFeatures: [ListWorkspaceFeature] { __data["listWorkspaceFeatures"] }
/// ListWorkspaceFeature
///
/// Parent Type: `WorkspaceType`
public struct ListWorkspaceFeature: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("public", Bool.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("memberCount", Int.self),
.field("owner", Owner.self),
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
] }
public var id: AffineGraphQL.ID { __data["id"] }
/// is Public workspace
public var `public`: Bool { __data["public"] }
/// Workspace created date
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
/// member count of workspace
public var memberCount: Int { __data["memberCount"] }
/// Owner of workspace
public var owner: Owner { __data["owner"] }
/// Enabled features of workspace
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
/// ListWorkspaceFeature.Owner
///
/// Parent Type: `UserType`
public struct Owner: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
] }
public var id: AffineGraphQL.ID { __data["id"] }
}
}
}
}

View File

@@ -35,22 +35,22 @@ public class QuotaQuery: GraphQLQuery {
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("quota", Quota?.self),
.field("quota", Quota.self),
.field("quotaUsage", QuotaUsage.self),
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var quota: Quota? { __data["quota"] }
public var quota: Quota { __data["quota"] }
public var quotaUsage: QuotaUsage { __data["quotaUsage"] }
/// CurrentUser.Quota
///
/// Parent Type: `UserQuota`
/// Parent Type: `UserQuotaType`
public struct Quota: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuota }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("name", String.self),
@@ -70,12 +70,12 @@ public class QuotaQuery: GraphQLQuery {
/// CurrentUser.Quota.HumanReadable
///
/// Parent Type: `UserQuotaHumanReadable`
/// Parent Type: `UserQuotaHumanReadableType`
public struct HumanReadable: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaHumanReadable }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaHumanReadableType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("name", String.self),
@@ -95,17 +95,18 @@ public class QuotaQuery: GraphQLQuery {
/// CurrentUser.QuotaUsage
///
/// Parent Type: `UserQuotaUsage`
/// Parent Type: `UserQuotaUsageType`
public struct QuotaUsage: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaUsage }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserQuotaUsageType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("storageQuota", AffineGraphQL.SafeInt.self),
] }
@available(*, deprecated, message: "use `UserQuotaType[\'usedStorageQuota\']` instead")
public var storageQuota: AffineGraphQL.SafeInt { __data["storageQuota"] }
}
}

View File

@@ -7,7 +7,7 @@ public class WorkspaceQuotaQuery: GraphQLQuery {
public static let operationName: String = "workspaceQuota"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query workspaceQuota($id: String!) { workspace(id: $id) { __typename quota { __typename name blobLimit storageQuota historyPeriod memberLimit memberCount humanReadable { __typename name blobLimit storageQuota historyPeriod memberLimit } usedSize } } }"#
#"query workspaceQuota($id: String!) { workspace(id: $id) { __typename quota { __typename name blobLimit storageQuota usedStorageQuota historyPeriod memberLimit memberCount humanReadable { __typename name blobLimit storageQuota historyPeriod memberLimit } } } }"#
))
public var id: String
@@ -48,41 +48,41 @@ public class WorkspaceQuotaQuery: GraphQLQuery {
/// Workspace.Quota
///
/// Parent Type: `QuotaQueryType`
/// Parent Type: `WorkspaceQuotaType`
public struct Quota: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.QuotaQueryType }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceQuotaType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("name", String.self),
.field("blobLimit", AffineGraphQL.SafeInt.self),
.field("storageQuota", AffineGraphQL.SafeInt.self),
.field("usedStorageQuota", AffineGraphQL.SafeInt.self),
.field("historyPeriod", AffineGraphQL.SafeInt.self),
.field("memberLimit", AffineGraphQL.SafeInt.self),
.field("memberCount", AffineGraphQL.SafeInt.self),
.field("memberLimit", Int.self),
.field("memberCount", Int.self),
.field("humanReadable", HumanReadable.self),
.field("usedSize", AffineGraphQL.SafeInt.self),
] }
public var name: String { __data["name"] }
public var blobLimit: AffineGraphQL.SafeInt { __data["blobLimit"] }
public var storageQuota: AffineGraphQL.SafeInt { __data["storageQuota"] }
public var usedStorageQuota: AffineGraphQL.SafeInt { __data["usedStorageQuota"] }
public var historyPeriod: AffineGraphQL.SafeInt { __data["historyPeriod"] }
public var memberLimit: AffineGraphQL.SafeInt { __data["memberLimit"] }
public var memberCount: AffineGraphQL.SafeInt { __data["memberCount"] }
public var memberLimit: Int { __data["memberLimit"] }
public var memberCount: Int { __data["memberCount"] }
public var humanReadable: HumanReadable { __data["humanReadable"] }
public var usedSize: AffineGraphQL.SafeInt { __data["usedSize"] }
/// Workspace.Quota.HumanReadable
///
/// Parent Type: `HumanReadableQuotaType`
/// Parent Type: `WorkspaceQuotaHumanReadableType`
public struct HumanReadable: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.HumanReadableQuotaType }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceQuotaHumanReadableType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("name", String.self),