-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1034 from 0x1-company/share-link-client
- Loading branch information
Showing
18 changed files
with
299 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
query ShareLinkClient { | ||
currentUser { | ||
id | ||
username | ||
} | ||
invitationCode { | ||
id | ||
code | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
Packages/DependencyPackage/Sources/God/Operations/Queries/ShareLinkClientQuery.graphql.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// @generated | ||
// This file was automatically generated and should not be edited. | ||
|
||
@_exported import ApolloAPI | ||
|
||
public extension God { | ||
class ShareLinkClientQuery: GraphQLQuery { | ||
public static let operationName: String = "ShareLinkClient" | ||
public static let operationDocument: ApolloAPI.OperationDocument = .init( | ||
definition: .init( | ||
#"query ShareLinkClient { currentUser { __typename id username } invitationCode { __typename id code } }"# | ||
)) | ||
|
||
public init() {} | ||
|
||
public struct Data: God.SelectionSet { | ||
public let __data: DataDict | ||
public init(_dataDict: DataDict) { __data = _dataDict } | ||
|
||
public static var __parentType: ApolloAPI.ParentType { God.Objects.Query } | ||
public static var __selections: [ApolloAPI.Selection] { [ | ||
.field("currentUser", CurrentUser.self), | ||
.field("invitationCode", InvitationCode.self), | ||
] } | ||
|
||
/// ログイン中ユーザーを取得 | ||
public var currentUser: CurrentUser { __data["currentUser"] } | ||
/// 招待コードを取得 | ||
public var invitationCode: InvitationCode { __data["invitationCode"] } | ||
|
||
/// CurrentUser | ||
/// | ||
/// Parent Type: `User` | ||
public struct CurrentUser: God.SelectionSet { | ||
public let __data: DataDict | ||
public init(_dataDict: DataDict) { __data = _dataDict } | ||
|
||
public static var __parentType: ApolloAPI.ParentType { God.Objects.User } | ||
public static var __selections: [ApolloAPI.Selection] { [ | ||
.field("__typename", String.self), | ||
.field("id", God.ID.self), | ||
.field("username", String?.self), | ||
] } | ||
|
||
/// user id | ||
public var id: God.ID { __data["id"] } | ||
/// username | ||
public var username: String? { __data["username"] } | ||
} | ||
|
||
/// InvitationCode | ||
/// | ||
/// Parent Type: `InvitationCode` | ||
public struct InvitationCode: God.SelectionSet { | ||
public let __data: DataDict | ||
public init(_dataDict: DataDict) { __data = _dataDict } | ||
|
||
public static var __parentType: ApolloAPI.ParentType { God.Objects.InvitationCode } | ||
public static var __selections: [ApolloAPI.Selection] { [ | ||
.field("__typename", String.self), | ||
.field("id", God.ID.self), | ||
.field("code", String.self), | ||
] } | ||
|
||
public var id: God.ID { __data["id"] } | ||
/// 招待コード | ||
public var code: String { __data["code"] } | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.