@vocollege/app 0.0.114 → 0.0.116

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.
@@ -320,7 +320,8 @@
320
320
  "noGroup": "Ingen grupp är vald",
321
321
  "startPage": "Startsida",
322
322
  "vopagesStatus": "Aktivera VoSida för denna grupp",
323
- "vopage": "VoSida"
323
+ "vopage": "VoSida",
324
+ "educator": "Utbildare"
324
325
  },
325
326
  "errors": {
326
327
  "invalidGroupName": "Ogiltigt gruppnamn. Det måste starta med minst 1 bokstav följd av en eller flera siffror och/eller bokstäver, utan mellanslag, specialtecken eller stora bokstäver. Understreck/bindestreck är tillåtet. Ex: 'nationellt', 'kronoberg', 'projekt2020', 'orebro-lan"
@@ -1092,7 +1093,18 @@
1092
1093
  "numberEducatorVuxVO": "Antal vuxenutbildare, vård och omsorg",
1093
1094
  "numberEducatorVuxBF": "Antal vuxenutbildare, barn och fritid",
1094
1095
  "numberEducatorFolkhogskolor": "Antal folkhögskolor",
1095
- "numberEducatorYrkeshogskolor": "Antal yrkeshögskolor"
1096
+ "numberEducatorYrkeshogskolor": "Antal yrkeshögskolor",
1097
+ "numberOfEducators": "Antal utbildare",
1098
+ "educatorPerType": "Utbildare per typ",
1099
+ "certifiedRegionalVoCollege": "Certifierade regionala college",
1100
+ "certifiedLocalVoCollege": "Certifierade lokala college",
1101
+ "certifiedEducators": "Certifierade utbildare",
1102
+ "certifiedEducations": "Certifierade utbildningar",
1103
+ "outsideSelectedPeriod": "Utanför vald period"
1104
+ },
1105
+ "messages": {
1106
+ "educatorCanAppearMultipleTimes": "Notera att en och samma utbildare kan förekomma flera gånger, under olika rubriker. T ex kan en utbildare vara både 'Kommunal Gymnasium' och 'Kommunal vuxenutbildning'.",
1107
+ "sumOfEducationsCanBeDifferentFromNumberOfEducators": "Notera att summan av utbildningar kan bli annorlunda från 'Antal utbildare', eftersom vissa utbildare kan sakna certfierade utbildningar under vald period och/eller en och samma utbildare kan ha flera utbildningar."
1096
1108
  }
1097
1109
  },
1098
1110
  "voadmin": {
@@ -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 certified\n created_at\n }\n"], ["\n fragment GroupFields on Group {\n id\n name\n title\n category\n certified\n created_at\n }\n"])));
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 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 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
- 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 }\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 }\n }\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 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"])));
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
+ 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -320,7 +320,8 @@
320
320
  "noGroup": "Ingen grupp är vald",
321
321
  "startPage": "Startsida",
322
322
  "vopagesStatus": "Aktivera VoSida för denna grupp",
323
- "vopage": "VoSida"
323
+ "vopage": "VoSida",
324
+ "educator": "Utbildare"
324
325
  },
325
326
  "errors": {
326
327
  "invalidGroupName": "Ogiltigt gruppnamn. Det måste starta med minst 1 bokstav följd av en eller flera siffror och/eller bokstäver, utan mellanslag, specialtecken eller stora bokstäver. Understreck/bindestreck är tillåtet. Ex: 'nationellt', 'kronoberg', 'projekt2020', 'orebro-lan"
@@ -1092,7 +1093,18 @@
1092
1093
  "numberEducatorVuxVO": "Antal vuxenutbildare, vård och omsorg",
1093
1094
  "numberEducatorVuxBF": "Antal vuxenutbildare, barn och fritid",
1094
1095
  "numberEducatorFolkhogskolor": "Antal folkhögskolor",
1095
- "numberEducatorYrkeshogskolor": "Antal yrkeshögskolor"
1096
+ "numberEducatorYrkeshogskolor": "Antal yrkeshögskolor",
1097
+ "numberOfEducators": "Antal utbildare",
1098
+ "educatorPerType": "Utbildare per typ",
1099
+ "certifiedRegionalVoCollege": "Certifierade regionala college",
1100
+ "certifiedLocalVoCollege": "Certifierade lokala college",
1101
+ "certifiedEducators": "Certifierade utbildare",
1102
+ "certifiedEducations": "Certifierade utbildningar",
1103
+ "outsideSelectedPeriod": "Utanför vald period"
1104
+ },
1105
+ "messages": {
1106
+ "educatorCanAppearMultipleTimes": "Notera att en och samma utbildare kan förekomma flera gånger, under olika rubriker. T ex kan en utbildare vara både 'Kommunal Gymnasium' och 'Kommunal vuxenutbildning'.",
1107
+ "sumOfEducationsCanBeDifferentFromNumberOfEducators": "Notera att summan av utbildningar kan bli annorlunda från 'Antal utbildare', eftersom vissa utbildare kan sakna certfierade utbildningar under vald period och/eller en och samma utbildare kan ha flera utbildningar."
1096
1108
  }
1097
1109
  },
1098
1110
  "voadmin": {
@@ -74,7 +74,6 @@ class GraphClient {
74
74
  if (!object.hasOwnProperty("pivot")) {
75
75
  return ["id"];
76
76
  }
77
-
78
77
  return [
79
78
  "id",
80
79
  "pivot",
@@ -6,6 +6,7 @@ export const GET_GROUP_FIELDS = gql`
6
6
  name
7
7
  title
8
8
  category
9
+ educator_type
9
10
  certified
10
11
  created_at
11
12
  }
@@ -23,24 +24,48 @@ export const GET_GENERAL_STATISTICS = gql`
23
24
  employers {
24
25
  ...GroupFields
25
26
  }
26
- educatorsGymVO {
27
+ educators {
27
28
  ...GroupFields
28
29
  }
29
- educatorsGymBF {
30
- ...GroupFields
31
- }
32
- educatorsVuxVO {
33
- ...GroupFields
34
- }
35
- educatorsVuxBF {
36
- ...GroupFields
37
- }
38
- educatorsFolkhogskolor {
39
- ...GroupFields
40
- }
41
- educatorsYrkeshogskolor {
42
- ...GroupFields
30
+ educations {
31
+ id
32
+ title
33
+ total_usages
34
+ # groups {
35
+ # id
36
+ # title
37
+ # educator_type
38
+ # educations {
39
+ # id
40
+ # title
41
+ # pivot {
42
+ # education_id
43
+ # education_usage_id
44
+ # education_usage_type
45
+ # field
46
+ # certified
47
+ # }
48
+ # }
49
+ # }
43
50
  }
51
+ # educatorsGymVO {
52
+ # ...GroupFields
53
+ # }
54
+ # educatorsGymBF {
55
+ # ...GroupFields
56
+ # }
57
+ # educatorsVuxVO {
58
+ # ...GroupFields
59
+ # }
60
+ # educatorsVuxBF {
61
+ # ...GroupFields
62
+ # }
63
+ # educatorsFolkhogskolor {
64
+ # ...GroupFields
65
+ # }
66
+ # educatorsYrkeshogskolor {
67
+ # ...GroupFields
68
+ # }
44
69
  }
45
70
  }
46
71
  ${GET_GROUP_FIELDS}
@@ -55,7 +80,138 @@ export const GET_CERTIFICATIONS_STATISTICS = gql`
55
80
  title
56
81
  certified
57
82
  created_at
83
+ # groups {
84
+ # id
85
+ # title
86
+ # certified
87
+ # groups {
88
+ # id
89
+ # title
90
+ # certified
91
+ # }
92
+ # }
93
+ }
94
+ certifiedLocalColleges {
95
+ id
96
+ name
97
+ title
98
+ certified
99
+ created_at
100
+ parentGroups {
101
+ id
102
+ name
103
+ title
104
+ certified
105
+ }
106
+ }
107
+ certifiedEducators {
108
+ id
109
+ name
110
+ title
111
+ certified
112
+ created_at
113
+ parentGroups {
114
+ id
115
+ name
116
+ title
117
+ certified
118
+ parentGroups {
119
+ id
120
+ title
121
+ certified
122
+ }
123
+ }
124
+ }
125
+ certifiedEducations {
126
+ education_id
127
+ education_certified
128
+ education_title
129
+ educator_id
130
+ educator_title
131
+ educator_certified
132
+ local_college_id
133
+ local_college_title
134
+ local_college_certified
135
+ region_id
136
+ region_title
137
+ region_certified
138
+ # groups {
139
+ # id
140
+ # name
141
+ # title
142
+ # certified
143
+ # created_at
144
+ # parentGroups {
145
+ # id
146
+ # name
147
+ # title
148
+ # parentGroups {
149
+ # id
150
+ # name
151
+ # title
152
+ # }
153
+ # }
154
+ # pivot {
155
+ # education_id
156
+ # education_usage_id
157
+ # education_usage_type
158
+ # field
159
+ # certified
160
+ # }
161
+ # }
58
162
  }
163
+ # certifications {
164
+ # # id
165
+ # # name
166
+ # # title
167
+ # # certified
168
+ # # created_at
169
+ # # parentGroups {
170
+ # # id
171
+ # # title
172
+ # # certified
173
+ # # parentGroups {
174
+ # # id
175
+ # # title
176
+ # # certified
177
+ # # }
178
+ # # }
179
+ # # educations {
180
+ # id
181
+ # title
182
+ # # pivot {
183
+ # # education_id
184
+ # # education_usage_id
185
+ # # education_usage_type
186
+ # # field
187
+ # # certified
188
+ # # }
189
+ # groups {
190
+ # id
191
+ # name
192
+ # title
193
+ # certified
194
+ # created_at
195
+ # parentGroups {
196
+ # id
197
+ # title
198
+ # certified
199
+ # parentGroups {
200
+ # id
201
+ # title
202
+ # certified
203
+ # }
204
+ # }
205
+ # pivot {
206
+ # education_id
207
+ # education_usage_id
208
+ # education_usage_type
209
+ # field
210
+ # certified
211
+ # }
212
+ # }
213
+ # # }
214
+ # }
59
215
  }
60
216
  }
61
217
  `;