@vocollege/app 0.0.111 → 0.0.113
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.
|
@@ -113,7 +113,26 @@ var GraphClient = /** @class */ (function () {
|
|
|
113
113
|
// const links = this.getGraphClientLinks(getToken, refreshToken);
|
|
114
114
|
var links = this.getGraphClientLinks(params);
|
|
115
115
|
return new client_1.ApolloClient({
|
|
116
|
-
cache: new client_1.InMemoryCache(
|
|
116
|
+
cache: new client_1.InMemoryCache({
|
|
117
|
+
typePolicies: {
|
|
118
|
+
Education: {
|
|
119
|
+
keyFields: [
|
|
120
|
+
"id",
|
|
121
|
+
"pivot",
|
|
122
|
+
["education_usage_id", "education_usage_type", "field"],
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
// PivotEducation: {
|
|
126
|
+
// // keyFields: ["education_usage_id"],
|
|
127
|
+
// keyFields: [
|
|
128
|
+
// "education_id",
|
|
129
|
+
// "education_usage_id",
|
|
130
|
+
// "education_usage_type",
|
|
131
|
+
// "field",
|
|
132
|
+
// ],
|
|
133
|
+
// },
|
|
134
|
+
},
|
|
135
|
+
}),
|
|
117
136
|
link: (0, client_1.from)([
|
|
118
137
|
links.errorLink,
|
|
119
138
|
links.authLink,
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.GET_GROUPS_PERMISSIONS = exports.GET_GROUPS_ROLES = exports.GET_GROUPS_ROLE = exports.GET_GROUPS_ACL = exports.GET_GROUPS = exports.GET_AVAILABLE_GROUPS = exports.GET_GROUP = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.GET_GROUP = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"], ["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"])));
|
|
9
|
+
exports.GET_GROUP = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n education_id\n education_usage_id\n education_usage_type\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"], ["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n education_id\n education_usage_id\n education_usage_type\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"])));
|
|
10
10
|
exports.GET_AVAILABLE_GROUPS = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Group($categories: [String], $byPassMembership: Boolean) {\n allGroups(categories: $categories, byPassMembership: $byPassMembership) {\n id\n title\n category\n }\n }\n"], ["\n query Group($categories: [String], $byPassMembership: Boolean) {\n allGroups(categories: $categories, byPassMembership: $byPassMembership) {\n id\n title\n category\n }\n }\n"])));
|
|
11
11
|
exports.GET_GROUPS = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Groups(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetGroupsOrderByClause]\n $filters: [GetGroupsFilter]\n ) {\n groups(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n name\n title\n category\n status\n vopage\n created_at\n updated_at\n }\n }\n }\n"], ["\n query Groups(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetGroupsOrderByClause]\n $filters: [GetGroupsFilter]\n ) {\n groups(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n name\n title\n category\n status\n vopage\n created_at\n updated_at\n }\n }\n }\n"])));
|
|
12
12
|
exports.GET_GROUPS_ACL = (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query GetGroupsAcl {\n groupsRoles {\n id\n name\n label\n }\n groupsPermissions {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"], ["\n query GetGroupsAcl {\n groupsRoles {\n id\n name\n label\n }\n groupsPermissions {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"])));
|
package/package.json
CHANGED
|
@@ -67,7 +67,26 @@ class GraphClient {
|
|
|
67
67
|
const links = this.getGraphClientLinks(params);
|
|
68
68
|
|
|
69
69
|
return new ApolloClient({
|
|
70
|
-
cache: new InMemoryCache(
|
|
70
|
+
cache: new InMemoryCache({
|
|
71
|
+
typePolicies: {
|
|
72
|
+
Education: {
|
|
73
|
+
keyFields: [
|
|
74
|
+
"id",
|
|
75
|
+
"pivot",
|
|
76
|
+
["education_usage_id", "education_usage_type", "field"],
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
// PivotEducation: {
|
|
80
|
+
// // keyFields: ["education_usage_id"],
|
|
81
|
+
// keyFields: [
|
|
82
|
+
// "education_id",
|
|
83
|
+
// "education_usage_id",
|
|
84
|
+
// "education_usage_type",
|
|
85
|
+
// "field",
|
|
86
|
+
// ],
|
|
87
|
+
// },
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
71
90
|
link: from([
|
|
72
91
|
links.errorLink,
|
|
73
92
|
links.authLink,
|