@vocollege/app 0.0.56 → 0.0.59
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.
- package/dist/{types.d.ts → global.d.ts} +4 -0
- package/dist/{types.js → global.js} +0 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +9 -3
- package/dist/interceptor.js +41 -12
- package/dist/modules/Services/I18n/I18n.js +1 -1
- package/dist/modules/Services/I18n/strings.json +716 -21
- package/dist/modules/Services/Vapor/Vapor.js +15 -7
- package/dist/modules/VoApi/GraphClient.d.ts +3 -2
- package/dist/modules/VoApi/GraphClient.js +57 -14
- package/dist/modules/VoApi/VoApi.d.ts +4 -1
- package/dist/modules/VoApi/VoApi.js +20 -2
- package/dist/modules/VoApi/graphql.d.ts +32 -0
- package/dist/modules/VoApi/graphql.js +57 -0
- package/dist/modules/VoApi/index.d.ts +1 -21
- package/dist/modules/VoApi/index.js +7 -31
- package/dist/modules/VoApi/mutations/acl.js +5 -5
- package/dist/modules/VoApi/mutations/applications.d.ts +3 -0
- package/dist/modules/VoApi/mutations/applications.js +12 -0
- package/dist/modules/VoApi/mutations/articles.js +3 -3
- package/dist/modules/VoApi/mutations/books.d.ts +3 -0
- package/dist/modules/VoApi/mutations/books.js +12 -0
- package/dist/modules/VoApi/mutations/cards.d.ts +3 -0
- package/dist/modules/VoApi/mutations/cards.js +12 -0
- package/dist/modules/VoApi/mutations/events.d.ts +3 -0
- package/dist/modules/VoApi/mutations/events.js +12 -0
- package/dist/modules/VoApi/mutations/navigation.js +3 -3
- package/dist/modules/VoApi/mutations/pages.js +3 -3
- package/dist/modules/VoApi/mutations/queues.js +3 -3
- package/dist/modules/VoApi/mutations/sections.d.ts +3 -0
- package/dist/modules/VoApi/mutations/sections.js +12 -0
- package/dist/modules/VoApi/mutations/settings.js +1 -1
- package/dist/modules/VoApi/mutations/users.js +3 -3
- package/dist/modules/VoApi/mutations/vodocs.js +9 -9
- package/dist/modules/VoApi/mutations/vogroups.d.ts +1 -0
- package/dist/modules/VoApi/mutations/vogroups.js +10 -9
- package/dist/modules/VoApi/queries/acl.js +4 -4
- package/dist/modules/VoApi/queries/applications.d.ts +2 -0
- package/dist/modules/VoApi/queries/applications.js +11 -0
- package/dist/modules/VoApi/queries/articles.js +2 -2
- package/dist/modules/VoApi/queries/books.d.ts +4 -0
- package/dist/modules/VoApi/queries/books.js +13 -0
- package/dist/modules/VoApi/queries/cards.d.ts +2 -0
- package/dist/modules/VoApi/queries/cards.js +11 -0
- package/dist/modules/VoApi/queries/events.d.ts +2 -0
- package/dist/modules/VoApi/queries/events.js +11 -0
- package/dist/modules/VoApi/queries/help.d.ts +1 -0
- package/dist/modules/VoApi/queries/help.js +11 -0
- package/dist/modules/VoApi/queries/navigation.js +4 -4
- package/dist/modules/VoApi/queries/pages.js +2 -2
- package/dist/modules/VoApi/queries/queues.js +2 -2
- package/dist/modules/VoApi/queries/search.d.ts +2 -0
- package/dist/modules/VoApi/queries/search.js +5 -3
- package/dist/modules/VoApi/queries/sections.d.ts +2 -0
- package/dist/modules/VoApi/queries/sections.js +11 -0
- package/dist/modules/VoApi/queries/settings.js +1 -1
- package/dist/modules/VoApi/queries/users.d.ts +1 -0
- package/dist/modules/VoApi/queries/users.js +5 -4
- package/dist/modules/VoApi/queries/vodocs.js +3 -3
- package/dist/modules/VoApi/queries/vogroups.d.ts +1 -0
- package/dist/modules/VoApi/queries/vogroups.js +9 -8
- package/dist/modules/VoApp.d.ts +1 -0
- package/dist/modules/VoApp.js +17 -0
- package/dist/modules/VoAuth.d.ts +2 -1
- package/dist/modules/VoAuth.js +126 -42
- package/dist/modules/VoBase.js +2 -2
- package/dist/modules/VoConfig.js +10 -0
- package/dist/modules/VoDocs/VoDocs.d.ts +1 -2
- package/dist/modules/VoDocs/VoDocs.js +12 -44
- package/dist/modules/VoGroups.d.ts +7 -0
- package/dist/modules/VoGroups.js +39 -0
- package/dist/modules/VoHelpers.d.ts +38 -1
- package/dist/modules/VoHelpers.js +348 -51
- package/dist/modules/VoRouter.js +10 -2
- package/dist/modules/{VoUtils.d.ts → VoUtils_REMOVE.d.ts} +1 -1
- package/dist/modules/{VoUtils.js → VoUtils_REMOVE.js} +16 -12
- package/package.json +17 -8
- package/src/global.ts +44 -0
- package/src/index.ts +3 -2
- package/src/interceptor.ts +39 -8
- package/src/modules/Services/I18n/strings.json +718 -22
- package/src/modules/Services/Vapor/Vapor.ts +14 -15
- package/src/modules/VoApi/GraphClient.ts +87 -24
- package/src/modules/VoApi/VoApi.ts +23 -3
- package/src/modules/VoApi/graphql.ts +47 -0
- package/src/modules/VoApi/index.ts +1 -37
- package/src/modules/VoApi/mutations/applications.ts +27 -0
- package/src/modules/VoApi/mutations/books.ts +27 -0
- package/src/modules/VoApi/mutations/cards.ts +27 -0
- package/src/modules/VoApi/mutations/events.ts +27 -0
- package/src/modules/VoApi/mutations/queues.ts +9 -1
- package/src/modules/VoApi/mutations/sections.ts +27 -0
- package/src/modules/VoApi/mutations/settings.ts +11 -3
- package/src/modules/VoApi/mutations/users.ts +19 -9
- package/src/modules/VoApi/mutations/vodocs.ts +4 -0
- package/src/modules/VoApi/mutations/vogroups.ts +21 -7
- package/src/modules/VoApi/queries/applications.ts +71 -0
- package/src/modules/VoApi/queries/articles.ts +26 -4
- package/src/modules/VoApi/queries/books.ts +101 -0
- package/src/modules/VoApi/queries/cards.ts +87 -0
- package/src/modules/VoApi/queries/events.ts +80 -0
- package/src/modules/VoApi/queries/help.ts +12 -0
- package/src/modules/VoApi/queries/navigation.ts +3 -4
- package/src/modules/VoApi/queries/pages.ts +29 -4
- package/src/modules/VoApi/queries/queues.ts +69 -4
- package/src/modules/VoApi/queries/search.ts +105 -4
- package/src/modules/VoApi/queries/sections.ts +63 -0
- package/src/modules/VoApi/queries/settings.ts +9 -3
- package/src/modules/VoApi/queries/users.ts +93 -8
- package/src/modules/VoApi/queries/vodocs.ts +8 -4
- package/src/modules/VoApi/queries/vogroups.ts +48 -2
- package/src/modules/VoApp.ts +25 -8
- package/src/modules/VoAuth.ts +136 -37
- package/src/modules/VoConfig.ts +13 -0
- package/src/modules/VoDocs/VoDocs.ts +31 -58
- package/src/modules/VoGroups.ts +33 -0
- package/src/modules/VoHelpers.ts +283 -43
- package/src/modules/VoRouter.ts +10 -3
- package/src/modules/{VoUtils.ts → VoUtils_REMOVE.ts} +17 -13
- package/src/types.ts +0 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql } from
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
export const CREATE_GROUP = gql`
|
|
4
4
|
mutation CreateGroup($input: UpdateGroupInput!) {
|
|
@@ -36,11 +36,25 @@ export const DELETE_GROUP = gql`
|
|
|
36
36
|
|
|
37
37
|
export const UPDATE_GROUPS_PERMISSION = gql`
|
|
38
38
|
mutation UpdateGroupsPermission($id: ID!, $roles: [ID!]) {
|
|
39
|
-
updateGroupsPermission(id: $id, roles: { sync: $roles }
|
|
39
|
+
updateGroupsPermission(id: $id, roles: { sync: $roles }) {
|
|
40
40
|
id
|
|
41
41
|
subject
|
|
42
42
|
name
|
|
43
|
-
label
|
|
43
|
+
label
|
|
44
|
+
roles {
|
|
45
|
+
id
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
export const UPDATE_GROUPS_PERMISSIONS = gql`
|
|
52
|
+
mutation UpdateGroupsPermissions($input: [UpdatePermissionInput!]!) {
|
|
53
|
+
updateGroupsPermissions(input: $input) {
|
|
54
|
+
id
|
|
55
|
+
subject
|
|
56
|
+
name
|
|
57
|
+
label
|
|
44
58
|
roles {
|
|
45
59
|
id
|
|
46
60
|
}
|
|
@@ -53,7 +67,7 @@ export const CREATE_GROUPS_ROLE = gql`
|
|
|
53
67
|
createGroupsRole(input: $input) {
|
|
54
68
|
id
|
|
55
69
|
name
|
|
56
|
-
label
|
|
70
|
+
label
|
|
57
71
|
}
|
|
58
72
|
}
|
|
59
73
|
`;
|
|
@@ -63,7 +77,7 @@ export const UPDATE_GROUPS_ROLE = gql`
|
|
|
63
77
|
updateGroupsRole(id: $id, input: $input) {
|
|
64
78
|
id
|
|
65
79
|
name
|
|
66
|
-
label
|
|
80
|
+
label
|
|
67
81
|
}
|
|
68
82
|
}
|
|
69
83
|
`;
|
|
@@ -73,7 +87,7 @@ export const DELETE_GROUPS_ROLE = gql`
|
|
|
73
87
|
deleteGroupsRole(id: $id) {
|
|
74
88
|
id
|
|
75
89
|
name
|
|
76
|
-
label
|
|
90
|
+
label
|
|
77
91
|
}
|
|
78
92
|
}
|
|
79
|
-
`;
|
|
93
|
+
`;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
|
+
|
|
3
|
+
export const GET_APPLICATION = gql`
|
|
4
|
+
query Application($id: ID!, $categories: [String]) {
|
|
5
|
+
application(id: $id) {
|
|
6
|
+
id
|
|
7
|
+
email
|
|
8
|
+
firstname
|
|
9
|
+
lastname
|
|
10
|
+
category
|
|
11
|
+
status
|
|
12
|
+
responsible {
|
|
13
|
+
id
|
|
14
|
+
email
|
|
15
|
+
name
|
|
16
|
+
firstname
|
|
17
|
+
lastname
|
|
18
|
+
type
|
|
19
|
+
}
|
|
20
|
+
comments
|
|
21
|
+
content
|
|
22
|
+
created_at
|
|
23
|
+
updated_at
|
|
24
|
+
}
|
|
25
|
+
allGroups(categories: $categories) {
|
|
26
|
+
id
|
|
27
|
+
title
|
|
28
|
+
category
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
export const GET_APPLICATIONS = gql`
|
|
34
|
+
query Applications(
|
|
35
|
+
$search: String
|
|
36
|
+
$page: Int
|
|
37
|
+
$limit: Int
|
|
38
|
+
$orderBy: [GetApplicationsOrderByClause]
|
|
39
|
+
) {
|
|
40
|
+
applications(
|
|
41
|
+
search: $search
|
|
42
|
+
page: $page
|
|
43
|
+
limit: $limit
|
|
44
|
+
orderBy: $orderBy
|
|
45
|
+
) {
|
|
46
|
+
paginatorInfo {
|
|
47
|
+
total
|
|
48
|
+
currentPage
|
|
49
|
+
hasMorePages
|
|
50
|
+
}
|
|
51
|
+
data {
|
|
52
|
+
id
|
|
53
|
+
email
|
|
54
|
+
firstname
|
|
55
|
+
lastname
|
|
56
|
+
category
|
|
57
|
+
status
|
|
58
|
+
responsible {
|
|
59
|
+
id
|
|
60
|
+
email
|
|
61
|
+
name
|
|
62
|
+
firstname
|
|
63
|
+
lastname
|
|
64
|
+
type
|
|
65
|
+
}
|
|
66
|
+
created_at
|
|
67
|
+
updated_at
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
@@ -8,19 +8,35 @@ export const GET_ARTICLE = gql`
|
|
|
8
8
|
body
|
|
9
9
|
status
|
|
10
10
|
url
|
|
11
|
-
|
|
11
|
+
editUrl
|
|
12
|
+
author {
|
|
13
|
+
... on User {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
type
|
|
17
|
+
}
|
|
18
|
+
}
|
|
12
19
|
date
|
|
13
20
|
tags {
|
|
14
21
|
id
|
|
15
22
|
label
|
|
16
23
|
}
|
|
17
|
-
|
|
24
|
+
images {
|
|
25
|
+
id
|
|
26
|
+
title
|
|
27
|
+
filename
|
|
28
|
+
filesize
|
|
29
|
+
filetype
|
|
30
|
+
url
|
|
31
|
+
}
|
|
32
|
+
attachments {
|
|
18
33
|
id
|
|
19
34
|
title
|
|
20
35
|
filename
|
|
21
36
|
filesize
|
|
22
37
|
filetype
|
|
23
38
|
url
|
|
39
|
+
type
|
|
24
40
|
}
|
|
25
41
|
created_at
|
|
26
42
|
updated_at
|
|
@@ -49,7 +65,7 @@ export const GET_ARTICLES = gql`
|
|
|
49
65
|
$search: String
|
|
50
66
|
$page: Int
|
|
51
67
|
$limit: Int
|
|
52
|
-
$orderBy: [
|
|
68
|
+
$orderBy: [GetArticlesOrderByClause]
|
|
53
69
|
) {
|
|
54
70
|
articles(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
|
|
55
71
|
paginatorInfo {
|
|
@@ -61,7 +77,13 @@ export const GET_ARTICLES = gql`
|
|
|
61
77
|
id
|
|
62
78
|
title
|
|
63
79
|
status
|
|
64
|
-
author
|
|
80
|
+
author {
|
|
81
|
+
... on User {
|
|
82
|
+
id
|
|
83
|
+
name
|
|
84
|
+
type
|
|
85
|
+
}
|
|
86
|
+
}
|
|
65
87
|
date
|
|
66
88
|
created_at
|
|
67
89
|
updated_at
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
|
+
|
|
3
|
+
export const GET_BOOK_FIELDS = gql`
|
|
4
|
+
fragment BookFields on Book {
|
|
5
|
+
id
|
|
6
|
+
title
|
|
7
|
+
body
|
|
8
|
+
status
|
|
9
|
+
access
|
|
10
|
+
editUrl
|
|
11
|
+
author {
|
|
12
|
+
... on User {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
type
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
parent {
|
|
19
|
+
... on Book {
|
|
20
|
+
id
|
|
21
|
+
title
|
|
22
|
+
type
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
created_at
|
|
26
|
+
updated_at
|
|
27
|
+
tags {
|
|
28
|
+
id
|
|
29
|
+
label
|
|
30
|
+
}
|
|
31
|
+
attachments {
|
|
32
|
+
id
|
|
33
|
+
title
|
|
34
|
+
filename
|
|
35
|
+
filesize
|
|
36
|
+
filetype
|
|
37
|
+
url
|
|
38
|
+
type
|
|
39
|
+
}
|
|
40
|
+
roles {
|
|
41
|
+
id
|
|
42
|
+
name
|
|
43
|
+
label
|
|
44
|
+
type
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
export const GET_BOOKS_FIELDS = gql`
|
|
50
|
+
fragment BooksFields on Book {
|
|
51
|
+
id
|
|
52
|
+
title
|
|
53
|
+
status
|
|
54
|
+
access
|
|
55
|
+
parent {
|
|
56
|
+
... on Book {
|
|
57
|
+
id
|
|
58
|
+
title
|
|
59
|
+
type
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
roles {
|
|
63
|
+
id
|
|
64
|
+
name
|
|
65
|
+
label
|
|
66
|
+
type
|
|
67
|
+
}
|
|
68
|
+
created_at
|
|
69
|
+
updated_at
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
export const GET_BOOK = gql`
|
|
74
|
+
query Book($id: ID!) {
|
|
75
|
+
book(id: $id) {
|
|
76
|
+
...BookFields
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
${GET_BOOK_FIELDS}
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
export const GET_BOOKS = gql`
|
|
83
|
+
query Books(
|
|
84
|
+
$search: String
|
|
85
|
+
$page: Int
|
|
86
|
+
$limit: Int
|
|
87
|
+
$orderBy: [GetBooksOrderByClause]
|
|
88
|
+
) {
|
|
89
|
+
books(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
|
|
90
|
+
paginatorInfo {
|
|
91
|
+
total
|
|
92
|
+
currentPage
|
|
93
|
+
hasMorePages
|
|
94
|
+
}
|
|
95
|
+
data {
|
|
96
|
+
...BooksFields
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
${GET_BOOKS_FIELDS}
|
|
101
|
+
`;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
|
+
|
|
3
|
+
export const GET_CARD = gql`
|
|
4
|
+
query Card($id: ID!) {
|
|
5
|
+
card(id: $id) {
|
|
6
|
+
id
|
|
7
|
+
title
|
|
8
|
+
body
|
|
9
|
+
status
|
|
10
|
+
fields
|
|
11
|
+
settings
|
|
12
|
+
template
|
|
13
|
+
editUrl
|
|
14
|
+
author {
|
|
15
|
+
... on User {
|
|
16
|
+
id
|
|
17
|
+
name
|
|
18
|
+
type
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
entity {
|
|
22
|
+
... on User {
|
|
23
|
+
id
|
|
24
|
+
name
|
|
25
|
+
type
|
|
26
|
+
}
|
|
27
|
+
... on Page {
|
|
28
|
+
id
|
|
29
|
+
title
|
|
30
|
+
type
|
|
31
|
+
}
|
|
32
|
+
... on Event {
|
|
33
|
+
id
|
|
34
|
+
title
|
|
35
|
+
type
|
|
36
|
+
}
|
|
37
|
+
... on Queue {
|
|
38
|
+
id
|
|
39
|
+
title
|
|
40
|
+
type
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
images {
|
|
44
|
+
id
|
|
45
|
+
title
|
|
46
|
+
filename
|
|
47
|
+
filesize
|
|
48
|
+
filetype
|
|
49
|
+
url
|
|
50
|
+
}
|
|
51
|
+
created_at
|
|
52
|
+
updated_at
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
export const GET_CARDS = gql`
|
|
58
|
+
query Cards(
|
|
59
|
+
$search: String
|
|
60
|
+
$page: Int
|
|
61
|
+
$limit: Int
|
|
62
|
+
$orderBy: [GetCardsOrderByClause]
|
|
63
|
+
) {
|
|
64
|
+
cards(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
|
|
65
|
+
paginatorInfo {
|
|
66
|
+
total
|
|
67
|
+
currentPage
|
|
68
|
+
hasMorePages
|
|
69
|
+
}
|
|
70
|
+
data {
|
|
71
|
+
id
|
|
72
|
+
title
|
|
73
|
+
status
|
|
74
|
+
template
|
|
75
|
+
author {
|
|
76
|
+
... on User {
|
|
77
|
+
id
|
|
78
|
+
name
|
|
79
|
+
type
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
created_at
|
|
83
|
+
updated_at
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
|
+
|
|
3
|
+
export const GET_EVENT = gql`
|
|
4
|
+
query Event($id: ID!) {
|
|
5
|
+
event(id: $id) {
|
|
6
|
+
id
|
|
7
|
+
title
|
|
8
|
+
body
|
|
9
|
+
status
|
|
10
|
+
author {
|
|
11
|
+
... on User {
|
|
12
|
+
id
|
|
13
|
+
name
|
|
14
|
+
type
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
allday
|
|
18
|
+
start_date
|
|
19
|
+
start_time
|
|
20
|
+
end_date
|
|
21
|
+
end_time
|
|
22
|
+
location
|
|
23
|
+
tags {
|
|
24
|
+
id
|
|
25
|
+
label
|
|
26
|
+
}
|
|
27
|
+
attachments {
|
|
28
|
+
id
|
|
29
|
+
title
|
|
30
|
+
filename
|
|
31
|
+
filesize
|
|
32
|
+
filetype
|
|
33
|
+
url
|
|
34
|
+
type
|
|
35
|
+
}
|
|
36
|
+
created_at
|
|
37
|
+
updated_at
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
export const GET_EVENTS = gql`
|
|
43
|
+
query Events(
|
|
44
|
+
$search: String
|
|
45
|
+
$start_date: Date
|
|
46
|
+
$end_date: Date
|
|
47
|
+
$page: Int
|
|
48
|
+
$limit: Int
|
|
49
|
+
$orderBy: [GetEventsOrderByClause]
|
|
50
|
+
) {
|
|
51
|
+
events(
|
|
52
|
+
search: $search
|
|
53
|
+
start_date: $start_date
|
|
54
|
+
end_date: $end_date
|
|
55
|
+
page: $page
|
|
56
|
+
limit: $limit
|
|
57
|
+
orderBy: $orderBy
|
|
58
|
+
) {
|
|
59
|
+
paginatorInfo {
|
|
60
|
+
total
|
|
61
|
+
currentPage
|
|
62
|
+
hasMorePages
|
|
63
|
+
}
|
|
64
|
+
data {
|
|
65
|
+
id
|
|
66
|
+
title
|
|
67
|
+
status
|
|
68
|
+
author {
|
|
69
|
+
... on User {
|
|
70
|
+
id
|
|
71
|
+
name
|
|
72
|
+
type
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
created_at
|
|
76
|
+
updated_at
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql } from
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
export const GET_MENU = gql`
|
|
4
4
|
query Menu($name: String!) {
|
|
@@ -27,7 +27,7 @@ export const GET_MENUS = gql`
|
|
|
27
27
|
$search: String
|
|
28
28
|
$page: Int
|
|
29
29
|
$limit: Int
|
|
30
|
-
$orderBy: [
|
|
30
|
+
$orderBy: [GetMenusOrderByClause]
|
|
31
31
|
) {
|
|
32
32
|
menus(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
|
|
33
33
|
paginatorInfo {
|
|
@@ -63,7 +63,7 @@ export const GET_MENU_LINKS = gql`
|
|
|
63
63
|
$search: String
|
|
64
64
|
$page: Int
|
|
65
65
|
$limit: Int
|
|
66
|
-
$orderBy: [
|
|
66
|
+
$orderBy: [GetMenusOrderByClause]
|
|
67
67
|
) {
|
|
68
68
|
menuLinks(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
|
|
69
69
|
paginatorInfo {
|
|
@@ -79,4 +79,3 @@ export const GET_MENU_LINKS = gql`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
`;
|
|
82
|
-
|
|
@@ -5,23 +5,41 @@ export const GET_PAGE = gql`
|
|
|
5
5
|
page(id: $id) {
|
|
6
6
|
id
|
|
7
7
|
title
|
|
8
|
+
short_title
|
|
8
9
|
body
|
|
9
10
|
status
|
|
10
11
|
url
|
|
11
|
-
|
|
12
|
+
editUrl
|
|
13
|
+
author {
|
|
14
|
+
... on User {
|
|
15
|
+
id
|
|
16
|
+
name
|
|
17
|
+
type
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
template
|
|
12
21
|
created_at
|
|
13
22
|
updated_at
|
|
14
23
|
tags {
|
|
15
24
|
id
|
|
16
25
|
label
|
|
17
26
|
}
|
|
18
|
-
|
|
27
|
+
images {
|
|
28
|
+
id
|
|
29
|
+
title
|
|
30
|
+
filename
|
|
31
|
+
filesize
|
|
32
|
+
filetype
|
|
33
|
+
url
|
|
34
|
+
}
|
|
35
|
+
attachments {
|
|
19
36
|
id
|
|
20
37
|
title
|
|
21
38
|
filename
|
|
22
39
|
filesize
|
|
23
40
|
filetype
|
|
24
41
|
url
|
|
42
|
+
type
|
|
25
43
|
}
|
|
26
44
|
}
|
|
27
45
|
}
|
|
@@ -32,7 +50,7 @@ export const GET_PAGES = gql`
|
|
|
32
50
|
$search: String
|
|
33
51
|
$page: Int
|
|
34
52
|
$limit: Int
|
|
35
|
-
$orderBy: [
|
|
53
|
+
$orderBy: [GetPagesOrderByClause]
|
|
36
54
|
) {
|
|
37
55
|
pages(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
|
|
38
56
|
paginatorInfo {
|
|
@@ -45,7 +63,14 @@ export const GET_PAGES = gql`
|
|
|
45
63
|
title
|
|
46
64
|
status
|
|
47
65
|
url
|
|
48
|
-
author
|
|
66
|
+
author {
|
|
67
|
+
... on User {
|
|
68
|
+
id
|
|
69
|
+
name
|
|
70
|
+
type
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
template
|
|
49
74
|
created_at
|
|
50
75
|
updated_at
|
|
51
76
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql } from
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
export const GET_QUEUE = gql`
|
|
4
4
|
query Queue($id: ID!) {
|
|
@@ -6,7 +6,34 @@ export const GET_QUEUE = gql`
|
|
|
6
6
|
id
|
|
7
7
|
title
|
|
8
8
|
status
|
|
9
|
+
body
|
|
10
|
+
url
|
|
11
|
+
columns
|
|
12
|
+
author {
|
|
13
|
+
... on User {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
type
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
tags {
|
|
20
|
+
id
|
|
21
|
+
label
|
|
22
|
+
}
|
|
23
|
+
images {
|
|
24
|
+
id
|
|
25
|
+
title
|
|
26
|
+
filename
|
|
27
|
+
filesize
|
|
28
|
+
filetype
|
|
29
|
+
url
|
|
30
|
+
}
|
|
9
31
|
items {
|
|
32
|
+
... on Card {
|
|
33
|
+
id
|
|
34
|
+
title
|
|
35
|
+
type
|
|
36
|
+
}
|
|
10
37
|
... on Article {
|
|
11
38
|
id
|
|
12
39
|
title
|
|
@@ -17,6 +44,30 @@ export const GET_QUEUE = gql`
|
|
|
17
44
|
title
|
|
18
45
|
type
|
|
19
46
|
}
|
|
47
|
+
... on Section {
|
|
48
|
+
id
|
|
49
|
+
title
|
|
50
|
+
type
|
|
51
|
+
}
|
|
52
|
+
... on User {
|
|
53
|
+
id
|
|
54
|
+
name
|
|
55
|
+
type
|
|
56
|
+
}
|
|
57
|
+
... on Event {
|
|
58
|
+
id
|
|
59
|
+
title
|
|
60
|
+
type
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
attachments {
|
|
64
|
+
id
|
|
65
|
+
title
|
|
66
|
+
filename
|
|
67
|
+
filesize
|
|
68
|
+
filetype
|
|
69
|
+
url
|
|
70
|
+
type
|
|
20
71
|
}
|
|
21
72
|
created_at
|
|
22
73
|
updated_at
|
|
@@ -44,7 +95,7 @@ export const GET_QUEUES = gql`
|
|
|
44
95
|
$search: String
|
|
45
96
|
$page: Int
|
|
46
97
|
$limit: Int
|
|
47
|
-
$orderBy: [
|
|
98
|
+
$orderBy: [GetQueuesOrderByClause]
|
|
48
99
|
) {
|
|
49
100
|
queues(search: $search, page: $page, limit: $limit, orderBy: $orderBy) {
|
|
50
101
|
paginatorInfo {
|
|
@@ -56,13 +107,29 @@ export const GET_QUEUES = gql`
|
|
|
56
107
|
id
|
|
57
108
|
title
|
|
58
109
|
status
|
|
110
|
+
author {
|
|
111
|
+
... on User {
|
|
112
|
+
id
|
|
113
|
+
name
|
|
114
|
+
type
|
|
115
|
+
}
|
|
116
|
+
}
|
|
59
117
|
items {
|
|
118
|
+
... on Card {
|
|
119
|
+
id
|
|
120
|
+
}
|
|
60
121
|
... on Article {
|
|
61
122
|
id
|
|
62
123
|
}
|
|
63
124
|
... on Page {
|
|
64
125
|
id
|
|
65
126
|
}
|
|
127
|
+
... on User {
|
|
128
|
+
id
|
|
129
|
+
}
|
|
130
|
+
... on Event {
|
|
131
|
+
id
|
|
132
|
+
}
|
|
66
133
|
}
|
|
67
134
|
created_at
|
|
68
135
|
updated_at
|
|
@@ -70,5 +137,3 @@ export const GET_QUEUES = gql`
|
|
|
70
137
|
}
|
|
71
138
|
}
|
|
72
139
|
`;
|
|
73
|
-
|
|
74
|
-
|