@evenicanpm/admin-graphql-codegen 2.0.0 → 2.3.1
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/documents/authorization/authorization.ts +12 -12
- package/documents/search-engine/aliases.ts +85 -85
- package/documents/search-engine/indexes.ts +16 -4
- package/documents/seo/robots.ts +55 -55
- package/documents/seo/sitemap.ts +9 -9
- package/documents/session/session.ts +2 -2
- package/documents/settings/settings.ts +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const _GET_MODULES = gql`
|
|
4
4
|
query GetAllActiveModules {
|
|
5
5
|
getModules {
|
|
6
6
|
createdAt
|
|
@@ -11,7 +11,7 @@ const GET_MODULES = gql`
|
|
|
11
11
|
}
|
|
12
12
|
}`;
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const _GET_USERS = gql`
|
|
15
15
|
query GetAllAdminUsers ($usersInput: UsersInput!) {
|
|
16
16
|
getUsers (input: $usersInput) {
|
|
17
17
|
users {
|
|
@@ -30,7 +30,7 @@ const GET_USERS = gql`
|
|
|
30
30
|
}
|
|
31
31
|
}`;
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const _GET_USER_BY_ID = gql`
|
|
34
34
|
query GetUserById ($id: ID!) {
|
|
35
35
|
getUserById (id: $id) {
|
|
36
36
|
roles {
|
|
@@ -54,7 +54,7 @@ const GET_USER_BY_ID = gql`
|
|
|
54
54
|
}
|
|
55
55
|
}`;
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const _GET_ROLES = gql`
|
|
58
58
|
query GetAllRoles ($input: RolesInput!) {
|
|
59
59
|
getRoles(input: $input) {
|
|
60
60
|
recordCount
|
|
@@ -71,7 +71,7 @@ getRoles(input: $input) {
|
|
|
71
71
|
}
|
|
72
72
|
}`;
|
|
73
73
|
|
|
74
|
-
const
|
|
74
|
+
const _GET_ROLE_BY_ID = gql`
|
|
75
75
|
query GetRoleById ($id: ID!) {
|
|
76
76
|
getRoleById (id: $id) {
|
|
77
77
|
role {
|
|
@@ -98,7 +98,7 @@ const GET_ROLE_BY_ID = gql`
|
|
|
98
98
|
}
|
|
99
99
|
}`;
|
|
100
100
|
|
|
101
|
-
const
|
|
101
|
+
const _GET_PERMISSIONS = gql`
|
|
102
102
|
query GetAllActivePermissions {
|
|
103
103
|
getPermissions {
|
|
104
104
|
key
|
|
@@ -107,7 +107,7 @@ const GET_PERMISSIONS = gql`
|
|
|
107
107
|
}
|
|
108
108
|
}`;
|
|
109
109
|
|
|
110
|
-
const
|
|
110
|
+
const _ACTIVATE_USER = gql`
|
|
111
111
|
mutation ActivateUser($input: ActivateUserInput!) {
|
|
112
112
|
activateUser(input: $input){
|
|
113
113
|
code
|
|
@@ -117,7 +117,7 @@ const ACTIVATE_USER = gql`
|
|
|
117
117
|
}
|
|
118
118
|
`;
|
|
119
119
|
|
|
120
|
-
const
|
|
120
|
+
const _ASSIGN_ROLES = gql`
|
|
121
121
|
mutation AssignRoles($input: AssignRolesInput!) {
|
|
122
122
|
assignRoles(input: $input){
|
|
123
123
|
code
|
|
@@ -127,7 +127,7 @@ const ASSIGN_ROLES = gql`
|
|
|
127
127
|
}
|
|
128
128
|
`;
|
|
129
129
|
|
|
130
|
-
const
|
|
130
|
+
const _CREATE_ROLE = gql`
|
|
131
131
|
mutation CreateRole($input: AARoleInput!) {
|
|
132
132
|
aaCreateRole(input: $input){
|
|
133
133
|
name
|
|
@@ -145,7 +145,7 @@ const CREATE_ROLE = gql`
|
|
|
145
145
|
}
|
|
146
146
|
`;
|
|
147
147
|
|
|
148
|
-
const
|
|
148
|
+
const _UPDATE_ROLE = gql`
|
|
149
149
|
mutation UpdateRole($id:ID!,$input: AARoleInput!) {
|
|
150
150
|
aaUpdateRole(id:$id, input: $input){
|
|
151
151
|
name
|
|
@@ -163,7 +163,7 @@ const UPDATE_ROLE = gql`
|
|
|
163
163
|
}
|
|
164
164
|
`;
|
|
165
165
|
|
|
166
|
-
const
|
|
166
|
+
const _DELETE_ROLE = gql`
|
|
167
167
|
mutation DeleteRole($id:ID!) {
|
|
168
168
|
aaDeleteRole(id:$id){
|
|
169
169
|
code
|
|
@@ -173,7 +173,7 @@ const DELETE_ROLE = gql`
|
|
|
173
173
|
}
|
|
174
174
|
`;
|
|
175
175
|
|
|
176
|
-
const
|
|
176
|
+
const _ASSIGN_PERMISSIONS = gql`
|
|
177
177
|
mutation AssignPermissions($input: AssignPermissionsInput!) {
|
|
178
178
|
assignPermissions(input: $input) {
|
|
179
179
|
code
|
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
const _GET_ALIAS = gql`
|
|
4
|
+
query alias($name: String!) {
|
|
5
|
+
alias(name: $name) {
|
|
6
|
+
alias
|
|
7
|
+
index
|
|
8
|
+
lastIndexed
|
|
9
|
+
indexDetails {
|
|
10
|
+
health
|
|
11
|
+
status
|
|
12
|
+
docsCount
|
|
13
|
+
storeSize
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
`;
|
|
18
18
|
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
const _GET_ALIASES = gql`
|
|
20
|
+
query aliases {
|
|
21
|
+
aliases {
|
|
22
|
+
alias
|
|
23
|
+
index
|
|
24
|
+
indexDetails {
|
|
25
|
+
id
|
|
26
|
+
health
|
|
27
|
+
index
|
|
28
|
+
docsCount
|
|
29
|
+
storeSize
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
33
|
`;
|
|
34
34
|
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
35
|
+
const _MAPPING_BY_ALIAS = gql`
|
|
36
|
+
query mapping($alias: String!) {
|
|
37
|
+
indexFieldTypes {
|
|
38
|
+
key
|
|
39
|
+
value
|
|
40
|
+
}
|
|
41
|
+
mapping(alias: $alias) {
|
|
42
|
+
id
|
|
43
|
+
parentId
|
|
44
|
+
fieldName
|
|
45
|
+
displayName
|
|
46
|
+
fieldType
|
|
47
|
+
searchable
|
|
48
|
+
facetable
|
|
49
|
+
sortable
|
|
50
|
+
suggestable
|
|
51
|
+
isKey
|
|
52
|
+
sort
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
55
|
`;
|
|
56
56
|
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
57
|
+
const _BULK_MAPPPING = gql`
|
|
58
|
+
mutation bulkMapping(
|
|
59
|
+
$alias: String!
|
|
60
|
+
$createMappings: [MappingFieldInput!]!
|
|
61
|
+
$updateMappings: [MappingFieldInput!]!
|
|
62
|
+
$deleteMappings: [DeleteMappingFieldInput!]!
|
|
63
|
+
) {
|
|
64
|
+
createMappings(alias: $alias, mapping: $createMappings) {
|
|
65
|
+
id
|
|
66
|
+
parentId
|
|
67
|
+
fieldName
|
|
68
|
+
fieldType
|
|
69
|
+
displayName
|
|
70
|
+
isKey
|
|
71
|
+
sort
|
|
72
|
+
searchable
|
|
73
|
+
facetable
|
|
74
|
+
sortable
|
|
75
|
+
suggestable
|
|
76
|
+
}
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
updateMappings(mapping: $updateMappings) {
|
|
79
|
+
id
|
|
80
|
+
parentId
|
|
81
|
+
fieldName
|
|
82
|
+
fieldType
|
|
83
|
+
displayName
|
|
84
|
+
isKey
|
|
85
|
+
sort
|
|
86
|
+
searchable
|
|
87
|
+
facetable
|
|
88
|
+
sortable
|
|
89
|
+
suggestable
|
|
90
|
+
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
deleteMappingFields(ids: $deleteMappings) {
|
|
93
|
+
id
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
96
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const _GET_INDEXES = gql`
|
|
4
4
|
query indexes {
|
|
5
5
|
indexes {
|
|
6
6
|
id
|
|
@@ -12,7 +12,7 @@ const GET_INDEXES = gql`
|
|
|
12
12
|
}
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const _GET_INDEX_HISTORY = gql`
|
|
16
16
|
query indexHistory($alias: String, $status: String) {
|
|
17
17
|
indexHistory(alias: $alias, status: $status) {
|
|
18
18
|
id
|
|
@@ -27,7 +27,7 @@ const GET_INDEX_HISTORY = gql`
|
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
|
-
const
|
|
30
|
+
const _REINDEX_INDEX_HISTORY = gql`
|
|
31
31
|
mutation reindex($index: String!) {
|
|
32
32
|
reindex(index: $index) {
|
|
33
33
|
index
|
|
@@ -37,7 +37,7 @@ const REINDEX_INDEX_HISTORY = gql`
|
|
|
37
37
|
}
|
|
38
38
|
`;
|
|
39
39
|
|
|
40
|
-
const
|
|
40
|
+
const _SWAP_INDEX = gql`
|
|
41
41
|
mutation swapIndex($newIndex: String, $oldIndex: String) {
|
|
42
42
|
swapIndex(newIndex: $newIndex, oldIndex: $oldIndex) {
|
|
43
43
|
# alias,
|
|
@@ -71,3 +71,15 @@ const SWAP_INDEX = gql`
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
`;
|
|
74
|
+
|
|
75
|
+
const _DELETE_INDEX = gql`
|
|
76
|
+
mutation deleteIndex($index: String) {
|
|
77
|
+
deleteIndex(index: $index)
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
const _REMOVE_INDEX_HISTORY = gql`
|
|
82
|
+
mutation removeIndexHistory($id: ID!, $index: String) {
|
|
83
|
+
removeIndexHistory(id: $id, index: $index)
|
|
84
|
+
}
|
|
85
|
+
`;
|
package/documents/seo/robots.ts
CHANGED
|
@@ -69,67 +69,67 @@ const ROBOTS_STATE_FIELDS = gql`
|
|
|
69
69
|
}
|
|
70
70
|
`;
|
|
71
71
|
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
const _ROBOTS_STATE = gql`
|
|
73
|
+
query RobotsState {
|
|
74
|
+
robotsState {
|
|
75
|
+
...RobotsStateFields
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
${ROBOTS_STATE_FIELDS}
|
|
79
79
|
`;
|
|
80
80
|
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
const _PUBLISH_ROBOTS = gql`
|
|
82
|
+
mutation PublishRobots($input: PublishRobotsInput!) {
|
|
83
|
+
publishRobots(input: $input) {
|
|
84
|
+
code
|
|
85
|
+
message
|
|
86
|
+
success
|
|
87
|
+
state {
|
|
88
|
+
...RobotsStateFields
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
${ROBOTS_STATE_FIELDS}
|
|
93
93
|
`;
|
|
94
94
|
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
95
|
+
const _UPDATE_ROBOTS_SETTINGS = gql`
|
|
96
|
+
mutation UpdateRobotsSettings($input: UpdateRobotsSettingsInput!) {
|
|
97
|
+
updateRobotsSettings(input: $input) {
|
|
98
|
+
code
|
|
99
|
+
message
|
|
100
|
+
success
|
|
101
|
+
state {
|
|
102
|
+
...RobotsStateFields
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
${ROBOTS_STATE_FIELDS}
|
|
107
107
|
`;
|
|
108
108
|
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
109
|
+
const _UPDATE_ROBOTS_HISTORY_LIMIT = gql`
|
|
110
|
+
mutation UpdateRobotsHistoryLimit($input: UpdateRobotsHistoryLimitInput!) {
|
|
111
|
+
updateRobotsHistoryLimit(input: $input) {
|
|
112
|
+
code
|
|
113
|
+
message
|
|
114
|
+
success
|
|
115
|
+
state {
|
|
116
|
+
...RobotsStateFields
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
${ROBOTS_STATE_FIELDS}
|
|
121
121
|
`;
|
|
122
122
|
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
123
|
+
const _DELETE_ROBOTS_VERSION = gql`
|
|
124
|
+
mutation DeleteRobotsVersion($input: DeleteRobotsVersionInput!) {
|
|
125
|
+
deleteRobotsVersion(input: $input) {
|
|
126
|
+
code
|
|
127
|
+
message
|
|
128
|
+
success
|
|
129
|
+
state {
|
|
130
|
+
...RobotsStateFields
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
${ROBOTS_STATE_FIELDS}
|
|
135
135
|
`;
|
package/documents/seo/sitemap.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const _GENERATE_SITEMAP = gql`
|
|
4
4
|
mutation GenerateSitemap($generateSitemapInput: GenerateSitemapInput!) {
|
|
5
5
|
generateSitemap(input: $generateSitemapInput) {
|
|
6
6
|
message
|
|
@@ -12,7 +12,7 @@ const GENERATE_SITEMAP = gql`
|
|
|
12
12
|
}
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const _SITEMAP_SCHEDULE = gql`
|
|
16
16
|
query SitemapSchedule($sitemapScheduleInput: SitemapScheduleInput!) {
|
|
17
17
|
sitemapSchedule(input: $sitemapScheduleInput) {
|
|
18
18
|
lastRunAt
|
|
@@ -23,7 +23,7 @@ const SITEMAP_SCHEDULE = gql`
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const _UPDATE_SITEMAP_SCHEDULE = gql`
|
|
27
27
|
mutation UpdateSitemapSchedule(
|
|
28
28
|
$updateSitemapScheduleInput: UpdateSitemapScheduleInput!
|
|
29
29
|
) {
|
|
@@ -36,7 +36,7 @@ const UPDATE_SITEMAP_SCHEDULE = gql`
|
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
|
-
const
|
|
39
|
+
const _SITEMAP_RULES = gql`
|
|
40
40
|
query SitemapRules($sitemapRulesInput: SitemapRulesInput!) {
|
|
41
41
|
sitemapRules(input: $sitemapRulesInput) {
|
|
42
42
|
top
|
|
@@ -63,7 +63,7 @@ const SITEMAP_RULES = gql`
|
|
|
63
63
|
}
|
|
64
64
|
`;
|
|
65
65
|
|
|
66
|
-
const
|
|
66
|
+
const _CREATE_SITEMAP_RULE = gql`
|
|
67
67
|
mutation CreateSitemapRule($sitemapRuleInput: SitemapRuleInput!) {
|
|
68
68
|
createSitemapRule(input: $sitemapRuleInput) {
|
|
69
69
|
url
|
|
@@ -84,7 +84,7 @@ const CREATE_SITEMAP_RULE = gql`
|
|
|
84
84
|
}
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
|
-
const
|
|
87
|
+
const _UPDATE_SITEMAP_RULE = gql`
|
|
88
88
|
mutation UpdateSitemapRule($id:ID!,$sitemapRuleInput: SitemapRuleInput!) {
|
|
89
89
|
updateSitemapRule(id:$id,input: $sitemapRuleInput) {
|
|
90
90
|
changefreq
|
|
@@ -105,7 +105,7 @@ const UPDATE_SITEMAP_RULE = gql`
|
|
|
105
105
|
}
|
|
106
106
|
`;
|
|
107
107
|
|
|
108
|
-
const
|
|
108
|
+
const _DELETE_SITEMAP_RULE = gql`
|
|
109
109
|
mutation DeleteSitemapRule($id:ID!) {
|
|
110
110
|
deleteSitemapRule(id:$id) {
|
|
111
111
|
code
|
|
@@ -115,7 +115,7 @@ const DELETE_SITEMAP_RULE = gql`
|
|
|
115
115
|
}
|
|
116
116
|
`;
|
|
117
117
|
|
|
118
|
-
const
|
|
118
|
+
const _SITEMAP_AUDIT_LOG = gql`
|
|
119
119
|
query SitemapAuditLogs($sitemapAuditLogInput: SitemapRulesInput!) {
|
|
120
120
|
sitemapAuditLogs(input: $sitemapAuditLogInput) {
|
|
121
121
|
logs {
|
|
@@ -137,7 +137,7 @@ const SITEMAP_AUDIT_LOG = gql`
|
|
|
137
137
|
}
|
|
138
138
|
`;
|
|
139
139
|
|
|
140
|
-
const
|
|
140
|
+
const _SITEMAP_HISTORY = gql`
|
|
141
141
|
query SitemapHistory($sitemapHistoryInput: SitemapHistoryInput!) {
|
|
142
142
|
sitemapHistory(input: $sitemapHistoryInput) {
|
|
143
143
|
top
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const _ADMIN_INIT_SESSION = gql`
|
|
4
4
|
mutation AdminInitSession(
|
|
5
5
|
$adminInitSessionInput: AdminInitSessionInput!
|
|
6
6
|
) {
|
|
@@ -21,7 +21,7 @@ const ADMIN_INIT_SESSION = gql`
|
|
|
21
21
|
}
|
|
22
22
|
`;
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const _GET_SESSION = gql`
|
|
25
25
|
query GetSession {
|
|
26
26
|
session {
|
|
27
27
|
id
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evenicanpm/admin-graphql-codegen",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
|
-
"gitHead": "
|
|
8
|
+
"gitHead": "7a5a6a8c3c3dd9efe96fbbb884b21e7681d32550",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
11
|
"codegen:insecure": "NODE_TLS_REJECT_UNAUTHORIZED=0 npm run codegen",
|