@vocollege/app 0.0.117 → 0.0.119

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.
@@ -34,7 +34,13 @@
34
34
  "userDeleted": "Användaren har raderats",
35
35
  "statusHelper": "Detta avgör om en användare syns utåt, exempelvis i köer.",
36
36
  "readMoreDataPolicy": "Läs mer i vår dataskyddspolicy"
37
- }
37
+ },
38
+ "settings": [
39
+ {
40
+ "name": "excludeFromAutomaticDeletion",
41
+ "label": "Uteslut denna användare från automatisk radering"
42
+ }
43
+ ]
38
44
  },
39
45
  "acl": {
40
46
  "label": "ACL",
@@ -328,6 +334,7 @@
328
334
  "groupAffiliation": "Grupptillhörighet",
329
335
  "educatorCategory": "Typ av utbildare (gammal)",
330
336
  "educatorType": "Typ av utbildare",
337
+ "employerType": "Typ av arbetsgivare",
331
338
  "currentGroup": "Aktuell grupp",
332
339
  "noGroup": "Ingen grupp är vald",
333
340
  "startPage": "Startsida",
@@ -355,6 +362,11 @@
355
362
  "employer": "Arbetsgivare",
356
363
  "other": "Annat"
357
364
  },
365
+ "employerTypes": {
366
+ "kommun": "Kommun",
367
+ "privat": "Privat",
368
+ "region": "Region"
369
+ },
358
370
  "educatorTypes": {
359
371
  "kom_gym": "Kommunal Gymnasium",
360
372
  "fri_gym": "Friskola, Gymnasium",
@@ -7,6 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.DELETE_USER = exports.UPDATE_USER = exports.CREATE_USER = void 0;
8
8
  var client_1 = require("@apollo/client");
9
9
  exports.CREATE_USER = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation CreateUser($input: UpdateUserInput!) {\n createUser(input: $input) {\n id\n name\n email\n firstname\n lastname\n }\n }\n"], ["\n mutation CreateUser($input: UpdateUserInput!) {\n createUser(input: $input) {\n id\n name\n email\n firstname\n lastname\n }\n }\n"])));
10
- exports.UPDATE_USER = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateUser($id: ID!, $input: UpdateUserInput!) {\n updateUser(id: $id, input: $input) {\n id\n name\n email\n firstname\n lastname\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n updated_at\n created_at\n groups {\n id\n title\n type\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n }\n }\n"], ["\n mutation UpdateUser($id: ID!, $input: UpdateUserInput!) {\n updateUser(id: $id, input: $input) {\n id\n name\n email\n firstname\n lastname\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n updated_at\n created_at\n groups {\n id\n title\n type\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n }\n }\n"])));
10
+ exports.UPDATE_USER = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation UpdateUser($id: ID!, $input: UpdateUserInput!) {\n updateUser(id: $id, input: $input) {\n id\n name\n email\n firstname\n lastname\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n updated_at\n created_at\n groups {\n id\n title\n type\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n apps\n settings\n }\n }\n"], ["\n mutation UpdateUser($id: ID!, $input: UpdateUserInput!) {\n updateUser(id: $id, input: $input) {\n id\n name\n email\n firstname\n lastname\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n updated_at\n created_at\n groups {\n id\n title\n type\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n apps\n settings\n }\n }\n"])));
11
11
  exports.DELETE_USER = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation DeleteUser($id: ID!) {\n deleteUser(id: $id) {\n id\n }\n }\n"], ["\n mutation DeleteUser($id: ID!) {\n deleteUser(id: $id) {\n id\n }\n }\n"])));
12
12
  var templateObject_1, templateObject_2, templateObject_3;
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.GET_CERTIFICATIONS_STATISTICS = exports.GET_GENERAL_STATISTICS = exports.GET_GROUP_FIELDS = void 0;
8
8
  var client_1 = require("@apollo/client");
9
- exports.GET_GROUP_FIELDS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n certified\n created_at\n }\n"], ["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n certified\n created_at\n }\n"])));
9
+ exports.GET_GROUP_FIELDS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n employer_type\n certified\n created_at\n }\n"], ["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n employer_type\n certified\n created_at\n }\n"])));
10
10
  exports.GET_GENERAL_STATISTICS = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query GeneralStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n regions {\n ...GroupFields\n }\n localColleges {\n ...GroupFields\n }\n employers {\n ...GroupFields\n }\n educators {\n ...GroupFields\n }\n educations {\n id\n title\n total_usages\n # groups {\n # id\n # title\n # educator_type\n # educations {\n # id\n # title\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # }\n }\n # educatorsGymVO {\n # ...GroupFields\n # }\n # educatorsGymBF {\n # ...GroupFields\n # }\n # educatorsVuxVO {\n # ...GroupFields\n # }\n # educatorsVuxBF {\n # ...GroupFields\n # }\n # educatorsFolkhogskolor {\n # ...GroupFields\n # }\n # educatorsYrkeshogskolor {\n # ...GroupFields\n # }\n }\n }\n ", "\n"], ["\n query GeneralStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n regions {\n ...GroupFields\n }\n localColleges {\n ...GroupFields\n }\n employers {\n ...GroupFields\n }\n educators {\n ...GroupFields\n }\n educations {\n id\n title\n total_usages\n # groups {\n # id\n # title\n # educator_type\n # educations {\n # id\n # title\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # }\n }\n # educatorsGymVO {\n # ...GroupFields\n # }\n # educatorsGymBF {\n # ...GroupFields\n # }\n # educatorsVuxVO {\n # ...GroupFields\n # }\n # educatorsVuxBF {\n # ...GroupFields\n # }\n # educatorsFolkhogskolor {\n # ...GroupFields\n # }\n # educatorsYrkeshogskolor {\n # ...GroupFields\n # }\n }\n }\n ", "\n"])), exports.GET_GROUP_FIELDS);
11
11
  exports.GET_CERTIFICATIONS_STATISTICS = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query CertificationsStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n certifiedRegions {\n id\n name\n title\n certified\n created_at\n # groups {\n # id\n # title\n # certified\n # groups {\n # id\n # title\n # certified\n # }\n # }\n }\n certifiedLocalColleges {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n }\n }\n certifiedEducators {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n parentGroups {\n id\n title\n certified\n }\n }\n }\n certifiedEducations {\n education_id\n education_certified\n education_title\n educator_id\n educator_title\n educator_certified\n local_college_id\n local_college_title\n local_college_certified\n region_id\n region_title\n region_certified\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # name\n # title\n # parentGroups {\n # id\n # name\n # title\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n }\n # certifications {\n # # id\n # # name\n # # title\n # # certified\n # # created_at\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # }\n # # }\n # # educations {\n # id\n # title\n # # pivot {\n # # education_id\n # # education_usage_id\n # # education_usage_type\n # # field\n # # certified\n # # }\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # title\n # certified\n # parentGroups {\n # id\n # title\n # certified\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # # }\n # }\n }\n }\n"], ["\n query CertificationsStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n certifiedRegions {\n id\n name\n title\n certified\n created_at\n # groups {\n # id\n # title\n # certified\n # groups {\n # id\n # title\n # certified\n # }\n # }\n }\n certifiedLocalColleges {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n }\n }\n certifiedEducators {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n parentGroups {\n id\n title\n certified\n }\n }\n }\n certifiedEducations {\n education_id\n education_certified\n education_title\n educator_id\n educator_title\n educator_certified\n local_college_id\n local_college_title\n local_college_certified\n region_id\n region_title\n region_certified\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # name\n # title\n # parentGroups {\n # id\n # name\n # title\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n }\n # certifications {\n # # id\n # # name\n # # title\n # # certified\n # # created_at\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # }\n # # }\n # # educations {\n # id\n # title\n # # pivot {\n # # education_id\n # # education_usage_id\n # # education_usage_type\n # # field\n # # certified\n # # }\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # title\n # certified\n # parentGroups {\n # id\n # title\n # certified\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # # }\n # }\n }\n }\n"])));
12
12
  var templateObject_1, templateObject_2, templateObject_3;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.GET_ACCOUNT = exports.GET_USERS_SIMPLIFIED = exports.GET_USERS = exports.GET_USER = exports.GET_USERS_FIELDS = void 0;
8
8
  var client_1 = require("@apollo/client");
9
9
  exports.GET_USERS_FIELDS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UsersFields on User {\n id\n name\n email\n active\n status\n updated_at\n created_at\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n name\n title\n }\n validig {\n id\n }\n }\n"], ["\n fragment UsersFields on User {\n id\n name\n email\n active\n status\n updated_at\n created_at\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n name\n title\n }\n validig {\n id\n }\n }\n"])));
10
- exports.GET_USER = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n validig {\n id\n }\n apps\n }\n }\n"], ["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n validig {\n id\n }\n apps\n }\n }\n"])));
10
+ exports.GET_USER = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n validig {\n id\n }\n apps\n settings\n }\n }\n"], ["\n query User($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n gdpr\n description\n updated_at\n created_at\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n roles {\n id\n label\n type\n }\n groupRoles {\n id\n label\n type\n }\n groups {\n id\n title\n type\n }\n validig {\n id\n }\n apps\n settings\n }\n }\n"])));
11
11
  exports.GET_USERS = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n # query Users($page: Int!, $search: String) {\n # users(page: $page, search: $search) {\n # paginatorInfo {\n # total\n # currentPage\n # hasMorePages\n # }\n # data {\n # name\n # email\n # }\n # }\n # }\n\n query Users(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n $filters: [GetUsersFilter]\n ) {\n allGroups(categories: [\"region\", \"local\"]) {\n id\n title\n }\n roles {\n id\n name\n label\n }\n users(\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 ...UsersFields\n }\n }\n }\n ", "\n"], ["\n # query Users($page: Int!, $search: String) {\n # users(page: $page, search: $search) {\n # paginatorInfo {\n # total\n # currentPage\n # hasMorePages\n # }\n # data {\n # name\n # email\n # }\n # }\n # }\n\n query Users(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n $filters: [GetUsersFilter]\n ) {\n allGroups(categories: [\"region\", \"local\"]) {\n id\n title\n }\n roles {\n id\n name\n label\n }\n users(\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 ...UsersFields\n }\n }\n }\n ", "\n"])), exports.GET_USERS_FIELDS);
12
12
  exports.GET_USERS_SIMPLIFIED = (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query UsersSimplified(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n $filters: [GetUsersFilter]\n ) {\n users(\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 ...UsersFields\n }\n }\n }\n ", "\n"], ["\n query UsersSimplified(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetUsersOrderByClause]\n $filters: [GetUsersFilter]\n ) {\n users(\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 ...UsersFields\n }\n }\n }\n ", "\n"])), exports.GET_USERS_FIELDS);
13
13
  exports.GET_ACCOUNT = (0, client_1.gql)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n query Account($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n description\n workplace\n gdpr\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n userSettings {\n publicDefaultPortfolio {\n id\n name\n disk\n }\n }\n }\n"], ["\n query Account($id: ID!) {\n user(id: $id) {\n id\n name\n email\n firstname\n lastname\n active\n personal_number\n address1\n address2\n postalcode\n town\n country\n phone1\n profession\n status\n description\n workplace\n gdpr\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n }\n userSettings {\n publicDefaultPortfolio {\n id\n name\n disk\n }\n }\n }\n"])));
@@ -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 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"])));
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 employer_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 employer_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"])));
@@ -67,4 +67,5 @@ export declare const getObjValue: (obj: any, ...props: string[]) => any;
67
67
  */
68
68
  export declare const convertSvgToImage: (url: string, width?: null | number, height?: null | number, format?: string, quality?: number) => Promise<unknown>;
69
69
  export declare const getCollegeUrl: (item: any, origin?: string) => string;
70
+ export declare const hasSettings: (item: any, settings?: never[]) => boolean;
70
71
  export {};
@@ -59,7 +59,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
59
59
  return (mod && mod.__esModule) ? mod : { "default": mod };
60
60
  };
61
61
  Object.defineProperty(exports, "__esModule", { value: true });
62
- exports.getCollegeUrl = exports.convertSvgToImage = exports.getObjValue = exports.getGroupLogotype = exports.reducer = exports.changeObj = exports.parseState = exports.getUserString = exports.getContactName = exports.getImageDescription = exports.getImage = exports.getImageContact = exports.shortenText = exports.orderByField = exports.orderByPosition = exports.downloadFile = exports.wrapPromise = exports.createSlug2 = exports.getTemporaryId = exports.getError = exports.regexPatterns = exports.encodeQueryData = exports.localStorage = exports.createRandomString = exports.base64Url = void 0;
62
+ exports.hasSettings = exports.getCollegeUrl = exports.convertSvgToImage = exports.getObjValue = exports.getGroupLogotype = exports.reducer = exports.changeObj = exports.parseState = exports.getUserString = exports.getContactName = exports.getImageDescription = exports.getImage = exports.getImageContact = exports.shortenText = exports.orderByField = exports.orderByPosition = exports.downloadFile = exports.wrapPromise = exports.createSlug2 = exports.getTemporaryId = exports.getError = exports.regexPatterns = exports.encodeQueryData = exports.localStorage = exports.createRandomString = exports.base64Url = void 0;
63
63
  var crypto_js_1 = __importDefault(require("crypto-js"));
64
64
  var he_1 = __importDefault(require("he"));
65
65
  var base64Url = function (string) {
@@ -502,3 +502,14 @@ var getCollegeUrl = function (item, origin) {
502
502
  return currentUrl.protocol + "//" + url.join(".");
503
503
  };
504
504
  exports.getCollegeUrl = getCollegeUrl;
505
+ var hasSettings = function (item, settings) {
506
+ if (settings === void 0) { settings = []; }
507
+ if (!item.settings) {
508
+ return false;
509
+ }
510
+ var foundSettings = settings.filter(function (v) {
511
+ return item.settings.indexOf(v) > -1;
512
+ });
513
+ return foundSettings.length > 0;
514
+ };
515
+ exports.hasSettings = hasSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.117",
3
+ "version": "0.0.119",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -34,7 +34,13 @@
34
34
  "userDeleted": "Användaren har raderats",
35
35
  "statusHelper": "Detta avgör om en användare syns utåt, exempelvis i köer.",
36
36
  "readMoreDataPolicy": "Läs mer i vår dataskyddspolicy"
37
- }
37
+ },
38
+ "settings": [
39
+ {
40
+ "name": "excludeFromAutomaticDeletion",
41
+ "label": "Uteslut denna användare från automatisk radering"
42
+ }
43
+ ]
38
44
  },
39
45
  "acl": {
40
46
  "label": "ACL",
@@ -328,6 +334,7 @@
328
334
  "groupAffiliation": "Grupptillhörighet",
329
335
  "educatorCategory": "Typ av utbildare (gammal)",
330
336
  "educatorType": "Typ av utbildare",
337
+ "employerType": "Typ av arbetsgivare",
331
338
  "currentGroup": "Aktuell grupp",
332
339
  "noGroup": "Ingen grupp är vald",
333
340
  "startPage": "Startsida",
@@ -355,6 +362,11 @@
355
362
  "employer": "Arbetsgivare",
356
363
  "other": "Annat"
357
364
  },
365
+ "employerTypes": {
366
+ "kommun": "Kommun",
367
+ "privat": "Privat",
368
+ "region": "Region"
369
+ },
358
370
  "educatorTypes": {
359
371
  "kom_gym": "Kommunal Gymnasium",
360
372
  "fri_gym": "Friskola, Gymnasium",
@@ -45,6 +45,8 @@ export const UPDATE_USER = gql`
45
45
  label
46
46
  type
47
47
  }
48
+ apps
49
+ settings
48
50
  }
49
51
  }
50
52
  `;
@@ -7,6 +7,7 @@ export const GET_GROUP_FIELDS = gql`
7
7
  title
8
8
  category
9
9
  educator_type
10
+ employer_type
10
11
  certified
11
12
  created_at
12
13
  }
@@ -79,6 +79,7 @@ export const GET_USER = gql`
79
79
  id
80
80
  }
81
81
  apps
82
+ settings
82
83
  }
83
84
  }
84
85
  `;
@@ -15,6 +15,7 @@ export const GET_GROUP = gql`
15
15
  website
16
16
  educator_category
17
17
  educator_type
18
+ employer_type
18
19
  certified
19
20
  status
20
21
  url
@@ -449,3 +449,13 @@ export const getCollegeUrl = (item: any, origin?: string) => {
449
449
  }
450
450
  return currentUrl.protocol + "//" + url.join(".");
451
451
  };
452
+
453
+ export const hasSettings = (item: any, settings = []) => {
454
+ if (!item.settings) {
455
+ return false;
456
+ }
457
+ let foundSettings = settings.filter((v: string) => {
458
+ return item.settings.indexOf(v) > -1;
459
+ });
460
+ return foundSettings.length > 0;
461
+ };