Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Feature product list query #920

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@
}
}
}
},
"Restore a purchase" : {

},
"Status" : {
"localizations" : {
Expand Down
10 changes: 10 additions & 0 deletions Packages/MatchCore/GraphQL/Queries/ProductList.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
query ProductList {
productList {
membershipProducts {
id
isMostPopular
isRecommended
periodKind
}
}
}
57 changes: 57 additions & 0 deletions Packages/MatchCore/GraphQL/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,25 @@ type MatchEdge {
node: Match!
}

enum MembershipPeriodKind {
ONE_MONTH
ONE_WEEK
ONE_YEAR
SIX_MONTH
THREE_MONTH
}

type MembershipProduct {
id: ID!

"""一番人気"""
isMostPopular: Boolean!

"""デフォルトで選択するもの"""
isRecommended: Boolean!
periodKind: MembershipPeriodKind!
}

type Message {
createdAt: Date!
deletedAt: Date
Expand Down Expand Up @@ -303,6 +322,9 @@ type Mutation {

"""プロフィール画像を更新する"""
updateUserImage(input: UpdateUserImageInput!): [UserImage!]!

"""Push通知設定を更新する"""
updateUserPushNotificationSettings(input: UpdateUserPushNotificationSettingsInput!): UserPushNotificationSettings!
}

type PageInfo {
Expand All @@ -328,12 +350,22 @@ enum PremiumType {
PRO
}

type ProductList {
membershipProducts: [MembershipProduct!]!
}

type PushNotificationBadge {
"""バッジ数"""
count: Int!
id: ID!
}

enum PushNotificationKind {
LIKE
MATCH
MESSAGE
}

type Query {
achievement: Achievement!

Expand Down Expand Up @@ -372,6 +404,9 @@ type Query {

"""プレミアムメンバーシップ情報"""
premiumMembership: PremiumMembership

"""product一覧を取得"""
productList: ProductList!
pushNotificationBadge: PushNotificationBadge!

"""自分の受け取ったLikeを取得する"""
Expand All @@ -384,6 +419,9 @@ type Query {
userByMatched(targetUserId: String!): User!
userCategories: [UserCategory!]!

"""Push通知設定を取得する"""
userPushNotificationSettings: UserPushNotificationSettings!

"""LIKEしてくれたユーザー一覧"""
usersByLiker: [User!]!
}
Expand Down Expand Up @@ -456,6 +494,15 @@ input UpdateUserImageInput {
imageUrls: [String!]!
}

input UpdateUserPushNotificationSettingInput {
allow: Boolean!
pushNotificationKind: PushNotificationKind!
}

input UpdateUserPushNotificationSettingsInput {
updateUserPushNotificationSettingsInput: [UpdateUserPushNotificationSettingInput!]!
}

type User {
"""BeRealのusername"""
berealUsername: String!
Expand Down Expand Up @@ -507,6 +554,16 @@ type UserImage {
order: Int!
}

type UserPushNotificationSetting {
allow: Boolean!
pushNotificationKind: PushNotificationKind!
}

type UserPushNotificationSettings {
userId: String!
userPushNotificationSettings: [UserPushNotificationSetting!]!
}

enum UserStatus {
ACTIVE
BANNED
Expand Down
40 changes: 20 additions & 20 deletions Packages/MatchCore/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apollographql/apollo-ios",
"state" : {
"revision" : "e41cc41f8754d957cda378d81d1dc5ddac6673cb",
"version" : "1.10.0"
"revision" : "8dd101dfd6c5becc658c33580e49aaac085ba327",
"version" : "1.13.0"
}
},
{
"identity" : "app-check",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/app-check.git",
"state" : {
"revision" : "c218c2054299b15ae577e818bbba16084d3eabe6",
"version" : "10.18.2"
"revision" : "3b62f154d00019ae29a71e9738800bb6f18b236d",
"version" : "10.19.2"
}
},
{
"identity" : "appsflyerframework-dynamic",
"kind" : "remoteSourceControl",
"location" : "https://github.com/AppsFlyerSDK/AppsFlyerFramework-Dynamic",
"state" : {
"revision" : "0cdea50ab90d9bd63645d2d51bcef5850ca4aa9f",
"version" : "6.14.0"
"revision" : "df37032789fae3c03f03efd1e8362d49269f0ef0",
"version" : "6.14.5"
}
},
{
Expand All @@ -50,26 +50,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/facebook/facebook-ios-sdk",
"state" : {
"revision" : "09eb5b0cb74127a360e0bc74a2d75ec1fd351e48",
"version" : "17.0.0"
"revision" : "9ed465ccd73c231144d49a9c681774577c616f34",
"version" : "17.0.2"
}
},
{
"identity" : "firebase-ios-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/firebase-ios-sdk",
"state" : {
"revision" : "42eae77a0af79e9c3f41df04a23c76f05cfdda77",
"version" : "10.24.0"
"revision" : "e57841b296d04370ea23580f908881b0ccab17b9",
"version" : "10.28.1"
}
},
{
"identity" : "googleappmeasurement",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleAppMeasurement.git",
"state" : {
"revision" : "51ba746a9d51a4bd0774b68499b0c73ef6e8570d",
"version" : "10.24.0"
"revision" : "fe727587518729046fc1465625b9afd80b5ab361",
"version" : "10.28.0"
}
},
{
Expand Down Expand Up @@ -185,8 +185,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-composable-architecture",
"state" : {
"revision" : "115fe5af41d333b6156d4924d7c7058bc77fd580",
"version" : "1.9.2"
"revision" : "1f952d8c69ace5e53bb69a218e6ed00e03a4695c",
"version" : "1.11.2"
}
},
{
Expand All @@ -212,26 +212,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-dependencies",
"state" : {
"revision" : "d3a5af3038a09add4d7682f66555d6212058a3c0",
"version" : "1.2.2"
"revision" : "00bc30ca03f98881329fab7f1bebef8eba472596",
"version" : "1.3.1"
}
},
{
"identity" : "swift-identified-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-identified-collections",
"state" : {
"revision" : "d1e45f3e1eee2c9193f5369fa9d70a6ddad635e8",
"version" : "1.0.0"
"revision" : "2f5ab6e091dd032b63dacbda052405756010dc3b",
"version" : "1.1.0"
}
},
{
"identity" : "swift-perception",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-perception",
"state" : {
"revision" : "052bd30a2079d9eb2400f0bc66707cc93c015152",
"version" : "1.1.5"
"revision" : "d3ab98dc2887d1cc3bed676f6fa354da4cb22b3c",
"version" : "1.2.4"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.Banner }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.Banner }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.MessageRoom }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.MessageRoom }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand All @@ -33,7 +33,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.User }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.User }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down Expand Up @@ -61,7 +61,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.UserImage }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.UserImage }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand All @@ -80,7 +80,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.Message }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.Message }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.Match }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.Match }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand All @@ -36,7 +36,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.User }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.User }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.Message }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.Message }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.PageInfo }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.PageInfo }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("hasNextPage", Bool.self),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.User }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.User }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand All @@ -34,7 +34,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.ShortComment }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.ShortComment }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand All @@ -52,7 +52,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.UserImage }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.UserImage }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.Match }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.Match }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand All @@ -36,7 +36,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.User }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.User }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand All @@ -62,7 +62,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.UserImage }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.UserImage }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.User }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.User }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down Expand Up @@ -41,7 +41,7 @@ public extension API {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }

public static var __parentType: ApolloAPI.ParentType { API.Objects.ShortComment }
public static var __parentType: any ApolloAPI.ParentType { API.Objects.ShortComment }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", API.ID.self),
Expand Down
Loading