@vocollege/app 0.0.144 → 0.0.146
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/global.d.ts +7 -7
- package/dist/interceptor.js +1 -1
- package/dist/modules/Services/I18n/strings.json +8 -8
- package/dist/modules/Services/Vapor/Vapor.js +4 -4
- package/dist/modules/VoApi/GraphClient.js +2 -2
- package/dist/modules/VoApi/VoApi.d.ts +1 -1
- package/dist/modules/VoApi/VoApi.js +1 -1
- package/dist/modules/VoAuth.js +1 -1
- package/dist/modules/VoConfig.d.ts +1 -1
- package/dist/modules/VoDocs/VoDocs.d.ts +1 -1
- package/dist/modules/VoDocs/VoDocs.js +4 -4
- package/dist/modules/VoHelpers.d.ts +4 -4
- package/dist/modules/VoHelpers.js +2 -2
- package/dist/modules/VoRouter.d.ts +1 -1
- package/dist/modules/VoUtils_REMOVE.d.ts +2 -2
- package/package.json +1 -1
- package/src/modules/Services/I18n/strings.json +8 -8
- package/src/modules/VoApi/GraphClient.ts +1 -1
package/dist/global.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export type AuthStorageConfigType = {
|
|
1
|
+
export declare type AuthStorageConfigType = {
|
|
2
2
|
STATE: string;
|
|
3
3
|
VERIFIER: string;
|
|
4
4
|
REFRESH_TOKEN: string;
|
|
5
5
|
ACCESS_TOKEN: string;
|
|
6
6
|
TOKEN_TYPE: string;
|
|
7
7
|
};
|
|
8
|
-
export type AuthConfigType = {
|
|
8
|
+
export declare type AuthConfigType = {
|
|
9
9
|
BASE_URL: string;
|
|
10
10
|
CLIENT_ID?: string;
|
|
11
11
|
LOGIN?: string;
|
|
12
12
|
ENDPOINT?: string;
|
|
13
13
|
STORAGE?: AuthStorageConfigType;
|
|
14
14
|
};
|
|
15
|
-
export type ApiConfigType = {
|
|
15
|
+
export declare type ApiConfigType = {
|
|
16
16
|
BASE_URL: string;
|
|
17
17
|
ENDPOINT?: string;
|
|
18
18
|
GRAPHQL?: string;
|
|
19
19
|
};
|
|
20
|
-
export type AppConfigType = {
|
|
20
|
+
export declare type AppConfigType = {
|
|
21
21
|
BASE_URL: string;
|
|
22
22
|
AUTH?: string;
|
|
23
23
|
HOME?: string;
|
|
24
24
|
LOGIN?: string;
|
|
25
25
|
};
|
|
26
|
-
export type VoAppType = {
|
|
26
|
+
export declare type VoAppType = {
|
|
27
27
|
configure: Function;
|
|
28
28
|
config?: Function;
|
|
29
29
|
auth: any;
|
|
30
30
|
api: any;
|
|
31
31
|
};
|
|
32
|
-
export type VoTokenType = {
|
|
32
|
+
export declare type VoTokenType = {
|
|
33
33
|
access_token: string;
|
|
34
34
|
refresh_token: string;
|
|
35
35
|
};
|
|
36
36
|
export interface GeneralObject {
|
|
37
37
|
[key: string]: any;
|
|
38
38
|
}
|
|
39
|
-
export type TypeNullObject = null | GeneralObject;
|
|
39
|
+
export declare type TypeNullObject = null | GeneralObject;
|
package/dist/interceptor.js
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
"createCertificate": "Skapa intyg"
|
|
881
881
|
},
|
|
882
882
|
"messages": {
|
|
883
|
-
"intro": "",
|
|
883
|
+
"intro": "Intyg för de som genomgått utbildning till vård- och omsorgsambassadör.",
|
|
884
884
|
"certificateSaved": "Intyget har sparats",
|
|
885
885
|
"certificateDeleted": "Intygt har raderats",
|
|
886
886
|
"certificatesGenerated": "Intygen har genererats"
|
|
@@ -893,13 +893,13 @@
|
|
|
893
893
|
"text1b": "vara en del av marknadsföring och kommunikation mot olika målgrupper utifrån rätt insats och vid rätt tillfälle",
|
|
894
894
|
"text1c": "vara delaktig i arbetet att lyfta fram och sprida det positiva med att utbilda sig och arbeta inom vård- och omsorgsyrket",
|
|
895
895
|
"text2": "Utbildningsinnehåll",
|
|
896
|
-
"text2a": "
|
|
897
|
-
"text2b": "
|
|
898
|
-
"text2c": "
|
|
899
|
-
"text2d": "
|
|
900
|
-
"text2e": "
|
|
901
|
-
"text2f": "
|
|
902
|
-
"text2g": "
|
|
896
|
+
"text2a": "VO-College roll i vård -och omsorgsambassadörsarbetet",
|
|
897
|
+
"text2b": "Innebörden av kompetensutveckling",
|
|
898
|
+
"text2c": "Vård- och omsorgsambassadörsrollen",
|
|
899
|
+
"text2d": "Att vara en del av marknadsföringen av utbildning och yrken inom vård och omsorg",
|
|
900
|
+
"text2e": "Presentationsteknik, kommunikation och genomförande av aktiviteter",
|
|
901
|
+
"text2f": "Etik, normer, värderingar, inkludering och genusperspektiv",
|
|
902
|
+
"text2g": "Följa upp insatser",
|
|
903
903
|
"responsible": "Utbildningsansvarig"
|
|
904
904
|
}
|
|
905
905
|
},
|
|
@@ -28,7 +28,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
28
28
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
29
|
function step(op) {
|
|
30
30
|
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (
|
|
31
|
+
while (_) try {
|
|
32
32
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
33
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
34
|
switch (op[0]) {
|
|
@@ -69,10 +69,10 @@ var Vapor = /** @class */ (function () {
|
|
|
69
69
|
/**
|
|
70
70
|
* Store a file in S3 and return its UUID, key, and other information.
|
|
71
71
|
*/
|
|
72
|
-
Vapor.prototype.store = function (
|
|
73
|
-
|
|
72
|
+
Vapor.prototype.store = function (file, options) {
|
|
73
|
+
if (options === void 0) { options = {}; }
|
|
74
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
74
75
|
var response, instance, headers, cancelToken;
|
|
75
|
-
if (options === void 0) { options = {}; }
|
|
76
76
|
return __generator(this, function (_a) {
|
|
77
77
|
switch (_a.label) {
|
|
78
78
|
case 0: return [4 /*yield*/, axios_1.default.post(
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (
|
|
28
|
+
while (_) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -154,7 +154,7 @@ var GraphClient = /** @class */ (function () {
|
|
|
154
154
|
},
|
|
155
155
|
},
|
|
156
156
|
}),
|
|
157
|
-
link: client_1.
|
|
157
|
+
link: (0, client_1.from)([
|
|
158
158
|
links.errorLink,
|
|
159
159
|
links.authLink,
|
|
160
160
|
links.omitTypenameLink,
|
|
@@ -6,7 +6,7 @@ declare class VoApi extends VoBase {
|
|
|
6
6
|
init(params?: GeneralObject): void;
|
|
7
7
|
get getGraphqlUrl(): string;
|
|
8
8
|
get getGraphqlSubscriptionUrl(): string;
|
|
9
|
-
getUser(): Promise<import("axios").AxiosResponse<any
|
|
9
|
+
getUser(): Promise<import("axios").AxiosResponse<any>>;
|
|
10
10
|
logout(): Promise<boolean>;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: VoApi;
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (
|
|
32
|
+
while (_) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
package/dist/modules/VoAuth.js
CHANGED
|
@@ -52,7 +52,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
52
52
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
53
|
function step(op) {
|
|
54
54
|
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
-
while (
|
|
55
|
+
while (_) try {
|
|
56
56
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
57
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
58
|
switch (op[0]) {
|
|
@@ -3,7 +3,7 @@ declare class VoDocs extends VoBase {
|
|
|
3
3
|
graphqlClient: any;
|
|
4
4
|
init(): void;
|
|
5
5
|
get getGraphqlUrl(): string;
|
|
6
|
-
getTemporaryFileUrl(id: string, publicDownload?: boolean): Promise<import("axios").AxiosResponse<any
|
|
6
|
+
getTemporaryFileUrl(id: string, publicDownload?: boolean): Promise<import("axios").AxiosResponse<any>>;
|
|
7
7
|
}
|
|
8
8
|
declare const _default: VoDocs;
|
|
9
9
|
export default _default;
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (
|
|
32
|
+
while (_) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -77,10 +77,10 @@ var VoDocs = /** @class */ (function (_super) {
|
|
|
77
77
|
enumerable: false,
|
|
78
78
|
configurable: true
|
|
79
79
|
});
|
|
80
|
-
VoDocs.prototype.getTemporaryFileUrl = function (
|
|
81
|
-
|
|
80
|
+
VoDocs.prototype.getTemporaryFileUrl = function (id, publicDownload) {
|
|
81
|
+
if (publicDownload === void 0) { publicDownload = false; }
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
83
|
var currentGroup, endpoint, url;
|
|
83
|
-
if (publicDownload === void 0) { publicDownload = false; }
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
try {
|
|
86
86
|
currentGroup = VoGroups_1.default.getCurrent(true);
|
|
@@ -7,7 +7,7 @@ export declare const localStorage: {
|
|
|
7
7
|
get: (key: string) => string | false | null;
|
|
8
8
|
remove: (key: string) => true | undefined;
|
|
9
9
|
};
|
|
10
|
-
type encodeQueryDataType = {
|
|
10
|
+
declare type encodeQueryDataType = {
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
};
|
|
13
13
|
export declare const encodeQueryData: (data: encodeQueryDataType) => string;
|
|
@@ -20,7 +20,7 @@ export declare const regexPatterns: {
|
|
|
20
20
|
personalNumber: RegExp;
|
|
21
21
|
orgnr: RegExp;
|
|
22
22
|
};
|
|
23
|
-
type errorObjectType = {
|
|
23
|
+
declare type errorObjectType = {
|
|
24
24
|
message: string;
|
|
25
25
|
fields?: {
|
|
26
26
|
[key: string]: any;
|
|
@@ -33,8 +33,8 @@ export declare const wrapPromise: (promise: any) => {
|
|
|
33
33
|
read: () => any;
|
|
34
34
|
};
|
|
35
35
|
export declare const downloadFile: (url: string) => void;
|
|
36
|
-
export declare const orderByPosition: (a: any, b: any) =>
|
|
37
|
-
export declare const orderByField: (a: any, b: any, field: string) =>
|
|
36
|
+
export declare const orderByPosition: (a: any, b: any) => 1 | -1 | 0;
|
|
37
|
+
export declare const orderByField: (a: any, b: any, field: string) => 1 | -1 | 0;
|
|
38
38
|
export declare const shortenText: (str: string, limit?: number, stripHtml?: boolean, addEllipsis?: boolean) => string;
|
|
39
39
|
export declare const getImageContact: (item: any, width?: number, height?: number) => string;
|
|
40
40
|
export declare const getImage: (item: any, width: number, height: number, field?: string) => string;
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (
|
|
28
|
+
while (_) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -121,7 +121,7 @@ exports.regexPatterns = {
|
|
|
121
121
|
username: /(^[a-z]{3,})([\.]|[\_]|[\-]|[a-z]|[0-9]?)+$/,
|
|
122
122
|
email: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
|
|
123
123
|
stringNonDigit: /^[^0-9]+$/,
|
|
124
|
-
password: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/,
|
|
124
|
+
password: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/,
|
|
125
125
|
cleanName: /(^[a-z]{1,})(\w|-?)+$/,
|
|
126
126
|
personalNumber: /^(\d{8})[-]\d{4}$/,
|
|
127
127
|
orgnr: /^(\d{6})[-]\d{4}$/,
|
|
@@ -6,7 +6,7 @@ declare const localStorage: {
|
|
|
6
6
|
get: (key: string) => string | false | null;
|
|
7
7
|
remove: (key: string) => true | undefined;
|
|
8
8
|
};
|
|
9
|
-
type encodeQueryDataType = {
|
|
9
|
+
declare type encodeQueryDataType = {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
};
|
|
12
12
|
declare const encodeQueryData: (data: encodeQueryDataType) => string;
|
|
@@ -16,7 +16,7 @@ declare const regexPatterns: {
|
|
|
16
16
|
stringNonDigit: RegExp;
|
|
17
17
|
password: RegExp;
|
|
18
18
|
};
|
|
19
|
-
type errorObjectType = {
|
|
19
|
+
declare type errorObjectType = {
|
|
20
20
|
message: string;
|
|
21
21
|
fields?: {
|
|
22
22
|
[key: string]: string;
|
package/package.json
CHANGED
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
"createCertificate": "Skapa intyg"
|
|
881
881
|
},
|
|
882
882
|
"messages": {
|
|
883
|
-
"intro": "",
|
|
883
|
+
"intro": "Intyg för de som genomgått utbildning till vård- och omsorgsambassadör.",
|
|
884
884
|
"certificateSaved": "Intyget har sparats",
|
|
885
885
|
"certificateDeleted": "Intygt har raderats",
|
|
886
886
|
"certificatesGenerated": "Intygen har genererats"
|
|
@@ -893,13 +893,13 @@
|
|
|
893
893
|
"text1b": "vara en del av marknadsföring och kommunikation mot olika målgrupper utifrån rätt insats och vid rätt tillfälle",
|
|
894
894
|
"text1c": "vara delaktig i arbetet att lyfta fram och sprida det positiva med att utbilda sig och arbeta inom vård- och omsorgsyrket",
|
|
895
895
|
"text2": "Utbildningsinnehåll",
|
|
896
|
-
"text2a": "
|
|
897
|
-
"text2b": "
|
|
898
|
-
"text2c": "
|
|
899
|
-
"text2d": "
|
|
900
|
-
"text2e": "
|
|
901
|
-
"text2f": "
|
|
902
|
-
"text2g": "
|
|
896
|
+
"text2a": "VO-College roll i vård -och omsorgsambassadörsarbetet",
|
|
897
|
+
"text2b": "Innebörden av kompetensutveckling",
|
|
898
|
+
"text2c": "Vård- och omsorgsambassadörsrollen",
|
|
899
|
+
"text2d": "Att vara en del av marknadsföringen av utbildning och yrken inom vård och omsorg",
|
|
900
|
+
"text2e": "Presentationsteknik, kommunikation och genomförande av aktiviteter",
|
|
901
|
+
"text2f": "Etik, normer, värderingar, inkludering och genusperspektiv",
|
|
902
|
+
"text2g": "Följa upp insatser",
|
|
903
903
|
"responsible": "Utbildningsansvarig"
|
|
904
904
|
}
|
|
905
905
|
},
|