@jsb188/graphql 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,69 +0,0 @@
1
- export const userFragment = `fragment userFragment on User {
2
- id
3
- username
4
- displayName
5
- moderator
6
- deleted
7
- plusStatus
8
- onlineStatus
9
- statusMessage
10
-
11
- theme {
12
- id
13
- name
14
- backgroundPhotoId
15
- backgroundPhotoUri
16
- }
17
-
18
- profile {
19
- id
20
- description
21
- pronouns
22
- photoId
23
- photoUri
24
- backgroundPhotoId
25
- backgroundPhotoUri
26
- adult
27
- }
28
- }`;
29
-
30
- export const userPartial = `fragment userPartial on User {
31
- id
32
- displayName
33
- username
34
- onlineStatus
35
- plusStatus
36
- statusMessage
37
-
38
- profile {
39
- id
40
- photoId
41
- photoUri
42
- description
43
- }
44
- }`;
45
-
46
- export const friendFragment = `fragment friendFragment on Friend {
47
- id
48
- chatId
49
- myStatus
50
- otherStatus
51
- activityAt
52
- }`;
53
-
54
- export const plusFragment = `fragment plusFragment on UserPlus {
55
- id
56
- checkedAt
57
- expireAt
58
- cancelled
59
- type
60
- badge
61
- }`;
62
-
63
- export const userPersonaFragment = `fragment userPersonaFragment on UserPersona {
64
- id
65
- order
66
- name
67
- photoId
68
- photoUri
69
- }`;
@@ -1,116 +0,0 @@
1
- import { gql } from 'graphql-tag';
2
- import { chatPartial, chatStatusPartial, chatStickerFragment } from '../fragments/chatFragments';
3
-
4
- export const editChatMtn = gql`
5
- mutation editChat (
6
- $chatId: GenericID!
7
- $name: String
8
- $note: String
9
- $liveCategory: LiveCategory
10
- $theme: ThemeInput
11
- ) {
12
- editChat (
13
- chatId: $chatId
14
- name: $name
15
- note: $note
16
- liveCategory: $liveCategory
17
- theme: $theme
18
- ) {
19
- ...chatPartial
20
- }
21
- }
22
-
23
- ${chatPartial}
24
- `;
25
-
26
- export const editChatStatusMtn = gql`
27
- mutation editChatStatus (
28
- $chatId: GenericID!
29
- $unread: Boolean
30
- $pinned: Boolean
31
- $status: ChatStatus
32
- ) {
33
- editChatStatus (
34
- chatId: $chatId
35
- unread: $unread
36
- pinned: $pinned
37
- status: $status
38
- ) {
39
- ...chatStatusPartial
40
- }
41
- }
42
-
43
- ${chatStatusPartial}
44
- `;
45
-
46
- export const createLiveChatMtn = gql`
47
- mutation createLiveChat (
48
- $name: String!
49
- ) {
50
- createLiveChat (
51
- name: $name
52
- )
53
- }
54
- `;
55
-
56
- export const editCoOwnerMtn = gql`
57
- mutation editCoOwner (
58
- $chatId: GenericID!
59
- $userId: UserID!
60
- $remove: Boolean
61
- ) {
62
- editCoOwner (
63
- chatId: $chatId
64
- userId: $userId
65
- remove: $remove
66
- )
67
- }
68
- `;
69
-
70
- export const editChatStickerMtn = gql`
71
- mutation editChatSticker (
72
- $stickerId: GenericID!
73
- $photoId: GenericID
74
- $code: String
75
- ) {
76
- editChatSticker (
77
- stickerId: $stickerId
78
- photoId: $photoId
79
- code: $code
80
- ) {
81
- ...chatStickerFragment
82
- }
83
- }
84
-
85
- ${chatStickerFragment}
86
- `;
87
-
88
- export const deleteChatStickerMtn = gql`
89
- mutation deleteChatSticker (
90
- $stickerId: GenericID!
91
- ) {
92
- deleteChatSticker (
93
- stickerId: $stickerId
94
- )
95
- }
96
- `;
97
-
98
- export const createChatStickerMtn = gql`
99
- mutation createChatSticker (
100
- $chatId: GenericID!
101
- $photoId: GenericID!
102
- $code: String!
103
- $coverPhoto: Boolean
104
- ) {
105
- createChatSticker (
106
- chatId: $chatId
107
- photoId: $photoId
108
- code: $code
109
- coverPhoto: $coverPhoto
110
- ) {
111
- ...chatStickerFragment
112
- }
113
- }
114
-
115
- ${chatStickerFragment}
116
- `;
@@ -1,89 +0,0 @@
1
- import { gql } from 'graphql-tag';
2
- import { friendFragment, userFragment, userPersonaFragment, plusFragment } from '../fragments/userFragments';
3
-
4
- export const editUserMtn = gql`
5
- mutation editUser (
6
- $photoId: GenericID
7
- $backgroundPhotoId: GenericID
8
- $user: UserInput
9
- $profile: UserProfileInput
10
- $theme: ThemeInput
11
- ) {
12
- editUser (
13
- photoId: $photoId
14
- backgroundPhotoId: $backgroundPhotoId
15
- user: $user
16
- profile: $profile
17
- theme: $theme
18
- ) {
19
- ...userFragment
20
- lightMode
21
- }
22
- }
23
-
24
- ${userFragment}
25
- `;
26
-
27
- export const editUserPlusMtn = gql`
28
- mutation editUserPlus (
29
- $badge: String
30
- ) {
31
- editUserPlus (
32
- badge: $badge
33
- ) {
34
- ...plusFragment
35
- }
36
- }
37
-
38
- ${plusFragment}
39
- `;
40
-
41
- export const editUserFriendshipMtn = gql`
42
- mutation editUserFriendship (
43
- $userId: UserID!
44
- $friendStatus: FriendStatus!
45
- ) {
46
- editUserFriendship (
47
- userId: $userId
48
- friendStatus: $friendStatus
49
- ) {
50
- ...friendFragment
51
- }
52
- }
53
-
54
- ${friendFragment}
55
- `;
56
-
57
- export const editPersonasMtn = gql`
58
- mutation editPersonas (
59
- $personas: [UserPersonaInput]
60
- ) {
61
- editPersonas (
62
- personas: $personas
63
- ) {
64
- ...userPersonaFragment
65
- }
66
- }
67
-
68
- ${userPersonaFragment}
69
- `;
70
-
71
- export const addEditPersonaMtn = gql`
72
- mutation addEditPersona (
73
- $personaId: GenericID
74
- $order: Int
75
- $name: String
76
- $photoId: GenericID
77
- ) {
78
- addEditPersona(
79
- personaId: $personaId
80
- order: $order
81
- name: $name
82
- photoId: $photoId
83
- ) {
84
- ...userPersonaFragment
85
- }
86
- }
87
-
88
- ${userPersonaFragment}
89
- `;
@@ -1,24 +0,0 @@
1
- import { gql } from 'graphql-tag';
2
- import { cardFragment, linkFragment } from '../fragments/cardFragments';
3
-
4
- export const cardsForUserQry = gql`
5
- query cardsForUser (
6
- $userId: UserID!
7
- ) {
8
- cardsForUser (
9
- userId: $userId
10
- ) {
11
- id
12
- cards {
13
- ...cardFragment
14
-
15
- links {
16
- ...linkFragment
17
- }
18
- }
19
- }
20
- }
21
-
22
- ${cardFragment}
23
- ${linkFragment}
24
- `;
@@ -1,86 +0,0 @@
1
- import { gql } from 'graphql-tag';
2
- import { chatFragment, chatMessageFragment, chatPartial, chatUserStatusFragment } from '../fragments/chatFragments';
3
- import { userPartial } from '../fragments/userFragments';
4
-
5
- export const chatsListQry = gql`
6
- query chatsList (
7
- $cursor: Cursor
8
- $after: Boolean!
9
- $limit: Int!
10
- ) {
11
- chatsList (
12
- cursor: $cursor
13
- after: $after
14
- limit: $limit
15
- ) {
16
- cursor
17
- ...chatFragment
18
-
19
- userStatus {
20
- ...chatUserStatusFragment
21
- }
22
- }
23
- }
24
-
25
- ${chatFragment}
26
- ${chatUserStatusFragment}
27
- `;
28
-
29
- export const myChatsQry = gql`
30
- query myChats (
31
- $type: ChatType!
32
- ) {
33
- myChats (
34
- type: $type
35
- ) {
36
- ...chatPartial
37
- }
38
- }
39
-
40
- ${chatPartial}
41
- `;
42
-
43
- export const chatQry = gql`
44
- query chat (
45
- $chatId: GenericID!
46
- $cursor: Cursor
47
- $after: Boolean!
48
- $limit: Int!
49
- ) {
50
- chat (
51
- chatId: $chatId
52
- ) {
53
- ...chatPartial
54
-
55
- participants {
56
- ...userPartial
57
- }
58
-
59
- messages (
60
- cursor: $cursor
61
- after: $after
62
- limit: $limit
63
- ) {
64
- cursor
65
- ...chatMessageFragment
66
- }
67
- }
68
- }
69
-
70
- ${chatPartial}
71
- ${chatMessageFragment}
72
- ${userPartial}
73
- `;
74
-
75
- export const userIdToChatIdQry = gql`
76
- query userIdToChatId (
77
- $userId: UserID!
78
- ) {
79
- userIdToChatId (
80
- userId: $userId
81
- ) {
82
- id
83
- friendId
84
- }
85
- }
86
- `;
@@ -1,104 +0,0 @@
1
- import { gql } from 'graphql-tag';
2
- import { friendFragment, userFragment } from '../fragments/userFragments';
3
-
4
- export const searchUsersQry = gql`
5
- query searchUsers (
6
- $searchQuery: String!
7
- ) {
8
- searchUsers (
9
- searchQuery: $searchQuery
10
- ) {
11
- query
12
- results {
13
- ...friendFragment
14
-
15
- user {
16
- ...userFragment
17
- }
18
- }
19
- }
20
- }
21
-
22
- ${friendFragment}
23
- ${userFragment}
24
- `;
25
-
26
- export const friendQry = gql`
27
- query friend (
28
- $userId: UserID!
29
- ) {
30
- friend (
31
- userId: $userId
32
- ) {
33
- ...friendFragment
34
-
35
- user {
36
- ...userFragment
37
- }
38
- }
39
- }
40
-
41
- ${friendFragment}
42
- ${userFragment}
43
- `;
44
-
45
- export const friendsListQry = gql`
46
- query friendsList (
47
- $cursor: Cursor
48
- $after: Boolean!
49
- $limit: Int!
50
- ) {
51
- friendsList (
52
- cursor: $cursor
53
- after: $after
54
- limit: $limit
55
- ) {
56
- cursor
57
- ...friendFragment
58
-
59
- user {
60
- ...userFragment
61
- }
62
- }
63
- }
64
-
65
- ${friendFragment}
66
- ${userFragment}
67
- `;
68
-
69
- export const friendRequestsQry = gql`
70
- query friendRequests (
71
- $pendingOnly: Boolean
72
- ) {
73
- friendRequests (
74
- pendingOnly: $pendingOnly
75
- ) {
76
- ...friendFragment
77
-
78
- user {
79
- ...userFragment
80
- }
81
- }
82
- }
83
-
84
- ${friendFragment}
85
- ${userFragment}
86
- `;
87
-
88
- // Unused at the moment
89
- // export const personasQry = gql`
90
- // query personas (
91
- // $userId: UserID
92
- // ) {
93
- // personas (
94
- // userId: $userId
95
- // ) {
96
- // id
97
- // list {
98
- // ...userPersonaFragment
99
- // }
100
- // }
101
- // }
102
-
103
- // ${userPersonaFragment}
104
- // `;