asma-helpers 0.2.33 → 0.2.35
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/.prettierrc +15 -15
- package/.vscode/settings.json +39 -39
- package/README.md +0 -0
- package/lib/clients/srvAuth.d.ts +1 -1
- package/lib/clients/srvAuth.js +6 -6
- package/lib/global.d.ts +40 -39
- package/lib/global.d.ts.map +1 -1
- package/lib/global.js +4 -4
- package/lib/global.js.map +1 -1
- package/lib/helpers/CapitalizeFistLetter.d.ts +2 -2
- package/lib/helpers/CapitalizeFistLetter.js +6 -6
- package/lib/helpers/Config.d.ts +5 -5
- package/lib/helpers/Config.js +44 -44
- package/lib/helpers/EnvironmentToOperateTypes.d.ts +7 -7
- package/lib/helpers/EnvironmentToOperateTypes.js +8 -8
- package/lib/helpers/EnvironmentsUrls.d.ts +93 -93
- package/lib/helpers/EnvironmentsUrls.js +89 -89
- package/lib/helpers/FormatNumberConstants.d.ts +24 -24
- package/lib/helpers/FormatNumberConstants.js +40 -40
- package/lib/helpers/InitializeIDBListenersOnMstSnapshots.d.ts +1 -1
- package/lib/helpers/InitializeIDBListenersOnMstSnapshots.js +49 -49
- package/lib/helpers/InitializeIDBListenersOnMstSnapshotsThenCatch.d.ts +8 -8
- package/lib/helpers/InitializeIDBListenersOnMstSnapshotsThenCatch.js +68 -68
- package/lib/helpers/IsAdcuris.d.ts +2 -2
- package/lib/helpers/IsAdcuris.js +4 -4
- package/lib/helpers/IsNotEmpty.d.ts +1 -1
- package/lib/helpers/IsNotEmpty.js +3 -3
- package/lib/helpers/NorwegianPostalCodes.d.ts +8 -8
- package/lib/helpers/NorwegianPostalCodes.js +3 -3
- package/lib/helpers/ProcessServerError.d.ts +2 -2
- package/lib/helpers/ProcessServerError.js +100 -100
- package/lib/helpers/attachUserJournalCredentials.d.ts +1 -1
- package/lib/helpers/attachUserJournalCredentials.js +16 -16
- package/lib/helpers/base64ToFile.d.ts +1 -1
- package/lib/helpers/base64ToFile.js +8 -8
- package/lib/helpers/clearCacheData.d.ts +1 -1
- package/lib/helpers/clearCacheData.js +12 -12
- package/lib/helpers/generateEnvConfigsBindings.d.ts +30 -30
- package/lib/helpers/generateEnvConfigsBindings.js +48 -48
- package/lib/helpers/generateGenqlClient.d.ts +16 -16
- package/lib/helpers/generateGenqlClient.d.ts.map +1 -1
- package/lib/helpers/generateGenqlClient.js +77 -75
- package/lib/helpers/generateGenqlClient.js.map +1 -1
- package/lib/helpers/generateSrvAuthBindings.d.ts +36 -36
- package/lib/helpers/generateSrvAuthBindings.d.ts.map +1 -1
- package/lib/helpers/generateSrvAuthBindings.js +163 -153
- package/lib/helpers/generateSrvAuthBindings.js.map +1 -1
- package/lib/helpers/getGqlOperationName.d.ts +1 -1
- package/lib/helpers/getGqlOperationName.js +15 -15
- package/lib/helpers/getSubdomain.d.ts +12 -12
- package/lib/helpers/getSubdomain.js +39 -39
- package/lib/helpers/isValidUrl.d.ts +1 -1
- package/lib/helpers/isValidUrl.js +9 -9
- package/lib/helpers/parseJwt.d.ts +1 -1
- package/lib/helpers/parseJwt.js +7 -7
- package/lib/helpers/userTypingSignal.d.ts +4 -4
- package/lib/helpers/userTypingSignal.js +32 -32
- package/lib/index.d.ts +28 -28
- package/lib/index.js +26 -26
- package/lib/interfaces/api/advoca/ISaveToDataBase.d.ts +16 -16
- package/lib/interfaces/api/advoca/ISaveToDataBase.js +1 -1
- package/lib/interfaces/api/advoca/IUploadedDocument.d.ts +26 -26
- package/lib/interfaces/api/advoca/IUploadedDocument.js +1 -1
- package/lib/interfaces/enums.d.ts +50 -50
- package/lib/interfaces/enums.js +59 -59
- package/lib/utility/fetch.d.ts +1 -1
- package/lib/utility/fetch.js +5 -5
- package/package.json +29 -29
- package/src/clients/srvAuth.ts +6 -6
- package/src/global.ts +46 -45
- package/src/helpers/CapitalizeFistLetter.ts +7 -7
- package/src/helpers/Config.ts +58 -58
- package/src/helpers/EnvironmentToOperateTypes.ts +6 -6
- package/src/helpers/EnvironmentsUrls.ts +102 -102
- package/src/helpers/FormatNumberConstants.ts +41 -41
- package/src/helpers/InitializeIDBListenersOnMstSnapshots.ts +62 -62
- package/src/helpers/InitializeIDBListenersOnMstSnapshotsThenCatch.ts +82 -82
- package/src/helpers/IsAdcuris.ts +4 -4
- package/src/helpers/IsNotEmpty.ts +2 -2
- package/src/helpers/NorwegianPostalCodes.ts +6 -6
- package/src/helpers/ProcessServerError.ts +92 -92
- package/src/helpers/attachUserJournalCredentials.ts +23 -23
- package/src/helpers/base64ToFile.ts +9 -9
- package/src/helpers/clearCacheData.ts +15 -15
- package/src/helpers/generateEnvConfigsBindings.ts +82 -82
- package/src/helpers/generateGenqlClient.ts +110 -108
- package/src/helpers/generateSrvAuthBindings.ts +217 -204
- package/src/helpers/getGqlOperationName.ts +20 -20
- package/src/helpers/getSubdomain.ts +50 -50
- package/src/helpers/isValidUrl.ts +12 -12
- package/src/helpers/parseJwt.ts +10 -10
- package/src/index.ts +34 -34
- package/src/interfaces/api/advoca/ISaveToDataBase.ts +17 -17
- package/src/interfaces/api/advoca/IUploadedDocument.ts +23 -23
- package/src/interfaces/enums.ts +56 -56
- package/src/utility/fetch.ts +9 -9
- package/tsconfig.json +84 -84
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated moved to asma-genql-directory use from there
|
|
3
|
-
*/
|
|
4
|
-
export declare const subdomain: string;
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated moved to asma-genql-directory use from there
|
|
7
|
-
*/
|
|
8
|
-
export declare function redirectFromSubdomainToDomain(): null;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated moved to asma-genql-directory use from there
|
|
11
|
-
*/
|
|
12
|
-
export declare function createDomainUrlFromSubdomain(): string;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated moved to asma-genql-directory use from there
|
|
3
|
+
*/
|
|
4
|
+
export declare const subdomain: string;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated moved to asma-genql-directory use from there
|
|
7
|
+
*/
|
|
8
|
+
export declare function redirectFromSubdomainToDomain(): null;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated moved to asma-genql-directory use from there
|
|
11
|
+
*/
|
|
12
|
+
export declare function createDomainUrlFromSubdomain(): string;
|
|
13
13
|
//# sourceMappingURL=getSubdomain.d.ts.map
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated moved to asma-genql-directory use from there
|
|
3
|
-
*/
|
|
4
|
-
function getSubdomain() {
|
|
5
|
-
const hostname_arr = window.location.hostname.split('.'); // fretex-dfsf.advoca.no
|
|
6
|
-
let subdomain = '';
|
|
7
|
-
if (hostname_arr.length === 3 &&
|
|
8
|
-
hostname_arr[0] &&
|
|
9
|
-
!['dev', 'test', 'stage', 'intern', 'www'].find((sub) => sub === hostname_arr[0])) {
|
|
10
|
-
subdomain = hostname_arr[0];
|
|
11
|
-
const subdomain_arr = subdomain.split('-');
|
|
12
|
-
if (subdomain_arr.length === 2 && subdomain_arr[0]) {
|
|
13
|
-
subdomain = subdomain_arr[0];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return subdomain;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated moved to asma-genql-directory use from there
|
|
20
|
-
*/
|
|
21
|
-
export const subdomain = getSubdomain();
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated moved to asma-genql-directory use from there
|
|
24
|
-
*/
|
|
25
|
-
export function redirectFromSubdomainToDomain() {
|
|
26
|
-
const domain_hostname = `${createDomainUrlFromSubdomain()}${window.location.pathname}`;
|
|
27
|
-
window.location.href = domain_hostname;
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated moved to asma-genql-directory use from there
|
|
32
|
-
*/
|
|
33
|
-
export function createDomainUrlFromSubdomain() {
|
|
34
|
-
let hostname = window.location.hostname.replace(subdomain, '');
|
|
35
|
-
(hostname.startsWith('-') && (hostname = hostname.substring(1))) ||
|
|
36
|
-
(hostname.startsWith('.') && (hostname = 'www' + hostname));
|
|
37
|
-
const { port, protocol } = window.location;
|
|
38
|
-
return protocol + '//' + hostname + (port ? `:${port}` : '');
|
|
39
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated moved to asma-genql-directory use from there
|
|
3
|
+
*/
|
|
4
|
+
function getSubdomain() {
|
|
5
|
+
const hostname_arr = window.location.hostname.split('.'); // fretex-dfsf.advoca.no
|
|
6
|
+
let subdomain = '';
|
|
7
|
+
if (hostname_arr.length === 3 &&
|
|
8
|
+
hostname_arr[0] &&
|
|
9
|
+
!['dev', 'test', 'stage', 'intern', 'www'].find((sub) => sub === hostname_arr[0])) {
|
|
10
|
+
subdomain = hostname_arr[0];
|
|
11
|
+
const subdomain_arr = subdomain.split('-');
|
|
12
|
+
if (subdomain_arr.length === 2 && subdomain_arr[0]) {
|
|
13
|
+
subdomain = subdomain_arr[0];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return subdomain;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated moved to asma-genql-directory use from there
|
|
20
|
+
*/
|
|
21
|
+
export const subdomain = getSubdomain();
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated moved to asma-genql-directory use from there
|
|
24
|
+
*/
|
|
25
|
+
export function redirectFromSubdomainToDomain() {
|
|
26
|
+
const domain_hostname = `${createDomainUrlFromSubdomain()}${window.location.pathname}`;
|
|
27
|
+
window.location.href = domain_hostname;
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated moved to asma-genql-directory use from there
|
|
32
|
+
*/
|
|
33
|
+
export function createDomainUrlFromSubdomain() {
|
|
34
|
+
let hostname = window.location.hostname.replace(subdomain, '');
|
|
35
|
+
(hostname.startsWith('-') && (hostname = hostname.substring(1))) ||
|
|
36
|
+
(hostname.startsWith('.') && (hostname = 'www' + hostname));
|
|
37
|
+
const { port, protocol } = window.location;
|
|
38
|
+
return protocol + '//' + hostname + (port ? `:${port}` : '');
|
|
39
|
+
}
|
|
40
40
|
//# sourceMappingURL=getSubdomain.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function isValidUrl(urlString: string): boolean;
|
|
1
|
+
export declare function isValidUrl(urlString: string): boolean;
|
|
2
2
|
//# sourceMappingURL=isValidUrl.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export function isValidUrl(urlString) {
|
|
2
|
-
const urlPattern = new RegExp('^(https?:\\/\\/)?' + // validate protocol
|
|
3
|
-
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // validate domain name
|
|
4
|
-
'((\\d{1,3}\\.){3}\\d{1,3}))' + // validate OR ip (v4) address
|
|
5
|
-
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // validate port and path
|
|
6
|
-
'(\\?[;&a-z\\d%_.~+=-]*)?' + // validate query string
|
|
7
|
-
'(\\#[-a-z\\d_]*)?$', 'i');
|
|
8
|
-
return !!urlPattern.test(urlString);
|
|
9
|
-
}
|
|
1
|
+
export function isValidUrl(urlString) {
|
|
2
|
+
const urlPattern = new RegExp('^(https?:\\/\\/)?' + // validate protocol
|
|
3
|
+
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // validate domain name
|
|
4
|
+
'((\\d{1,3}\\.){3}\\d{1,3}))' + // validate OR ip (v4) address
|
|
5
|
+
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // validate port and path
|
|
6
|
+
'(\\?[;&a-z\\d%_.~+=-]*)?' + // validate query string
|
|
7
|
+
'(\\#[-a-z\\d_]*)?$', 'i');
|
|
8
|
+
return !!urlPattern.test(urlString);
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=isValidUrl.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function parseJwt<R>(jwtToken: string): R | undefined;
|
|
1
|
+
export declare function parseJwt<R>(jwtToken: string): R | undefined;
|
|
2
2
|
//# sourceMappingURL=parseJwt.d.ts.map
|
package/lib/helpers/parseJwt.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function parseJwt(jwtToken) {
|
|
2
|
-
const base64Url = jwtToken === null || jwtToken === void 0 ? void 0 : jwtToken.split('.')[1];
|
|
3
|
-
if (base64Url === undefined) {
|
|
4
|
-
return {};
|
|
5
|
-
}
|
|
6
|
-
return JSON.parse(decodeURIComponent(escape(window.atob(base64Url))));
|
|
7
|
-
}
|
|
1
|
+
export function parseJwt(jwtToken) {
|
|
2
|
+
const base64Url = jwtToken === null || jwtToken === void 0 ? void 0 : jwtToken.split('.')[1];
|
|
3
|
+
if (base64Url === undefined) {
|
|
4
|
+
return {};
|
|
5
|
+
}
|
|
6
|
+
return JSON.parse(decodeURIComponent(escape(window.atob(base64Url))));
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=parseJwt.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function userTypingSignal(insertUserLastTyped: () => Promise<unknown>): {
|
|
2
|
-
initiateUserTyping: () => void;
|
|
3
|
-
setLastTyped: () => void;
|
|
4
|
-
};
|
|
1
|
+
export declare function userTypingSignal(insertUserLastTyped: () => Promise<unknown>): {
|
|
2
|
+
initiateUserTyping: () => void;
|
|
3
|
+
setLastTyped: () => void;
|
|
4
|
+
};
|
|
5
5
|
//# sourceMappingURL=userTypingSignal.d.ts.map
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export function userTypingSignal(insertUserLastTyped) {
|
|
2
|
-
let timmer = undefined;
|
|
3
|
-
let last_typed = undefined;
|
|
4
|
-
function setLastTyped() {
|
|
5
|
-
last_typed = Date.now();
|
|
6
|
-
}
|
|
7
|
-
function initiateUserTyping() {
|
|
8
|
-
if (timmer) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
if (userIsTyping()) {
|
|
12
|
-
timmer = window.setInterval(() => {
|
|
13
|
-
if (!userIsTyping()) {
|
|
14
|
-
window.clearInterval(timmer);
|
|
15
|
-
timmer = undefined;
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
insertUserLastTyped();
|
|
19
|
-
}, 1600);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function userIsTyping() {
|
|
23
|
-
if (!last_typed) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
return last_typed > Date.now() - 2 * 1000;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
initiateUserTyping,
|
|
30
|
-
setLastTyped,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
1
|
+
export function userTypingSignal(insertUserLastTyped) {
|
|
2
|
+
let timmer = undefined;
|
|
3
|
+
let last_typed = undefined;
|
|
4
|
+
function setLastTyped() {
|
|
5
|
+
last_typed = Date.now();
|
|
6
|
+
}
|
|
7
|
+
function initiateUserTyping() {
|
|
8
|
+
if (timmer) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (userIsTyping()) {
|
|
12
|
+
timmer = window.setInterval(() => {
|
|
13
|
+
if (!userIsTyping()) {
|
|
14
|
+
window.clearInterval(timmer);
|
|
15
|
+
timmer = undefined;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
insertUserLastTyped();
|
|
19
|
+
}, 1600);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function userIsTyping() {
|
|
23
|
+
if (!last_typed) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return last_typed > Date.now() - 2 * 1000;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
initiateUserTyping,
|
|
30
|
+
setLastTyped,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
33
|
//# sourceMappingURL=userTypingSignal.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export { getServerErrorMessage, processServerError } from './helpers/ProcessServerError';
|
|
2
|
-
export { CURENCY_NOK, NORVEGIAN_PHONE_NUMBER, ORDINARY, PERSONAL_NUMBER, YEARS } from './helpers/FormatNumberConstants';
|
|
3
|
-
export { COUNTRIES, POSTAL_CODE } from './helpers/NorwegianPostalCodes';
|
|
4
|
-
export { capitalizeFirstLetter, toLowercaseAndCapitalizeFirstLetter } from './helpers/CapitalizeFistLetter';
|
|
5
|
-
export * from './helpers/IsAdcuris';
|
|
6
|
-
export * from './helpers/IsNotEmpty';
|
|
7
|
-
export * from './helpers/Config';
|
|
8
|
-
export * from './helpers/InitializeIDBListenersOnMstSnapshots';
|
|
9
|
-
export * from './helpers/InitializeIDBListenersOnMstSnapshotsThenCatch';
|
|
10
|
-
export * from './helpers/getGqlOperationName';
|
|
11
|
-
export * from './helpers/parseJwt';
|
|
12
|
-
export * from './helpers/EnvironmentsUrls';
|
|
13
|
-
export * from './helpers/EnvironmentToOperateTypes';
|
|
14
|
-
export * from './helpers/generateSrvAuthBindings';
|
|
15
|
-
export * from './helpers/getSubdomain';
|
|
16
|
-
export * from './helpers/clearCacheData';
|
|
17
|
-
export * from './helpers/generateGenqlClient';
|
|
18
|
-
export * from './helpers/generateEnvConfigsBindings';
|
|
19
|
-
export * from './helpers/userTypingSignal';
|
|
20
|
-
export * from './helpers/base64ToFile';
|
|
21
|
-
export * from './helpers/isValidUrl';
|
|
22
|
-
export * from './helpers/attachUserJournalCredentials';
|
|
23
|
-
export * from './utility/fetch';
|
|
24
|
-
export * from './clients/srvAuth';
|
|
25
|
-
export type { IUploadedDocument } from './interfaces/api/advoca/IUploadedDocument';
|
|
26
|
-
export type { IFeedBack, ISaveToDataBase } from './interfaces/api/advoca/ISaveToDataBase';
|
|
27
|
-
export * from './interfaces/enums';
|
|
28
|
-
export * from './global';
|
|
1
|
+
export { getServerErrorMessage, processServerError } from './helpers/ProcessServerError';
|
|
2
|
+
export { CURENCY_NOK, NORVEGIAN_PHONE_NUMBER, ORDINARY, PERSONAL_NUMBER, YEARS } from './helpers/FormatNumberConstants';
|
|
3
|
+
export { COUNTRIES, POSTAL_CODE } from './helpers/NorwegianPostalCodes';
|
|
4
|
+
export { capitalizeFirstLetter, toLowercaseAndCapitalizeFirstLetter } from './helpers/CapitalizeFistLetter';
|
|
5
|
+
export * from './helpers/IsAdcuris';
|
|
6
|
+
export * from './helpers/IsNotEmpty';
|
|
7
|
+
export * from './helpers/Config';
|
|
8
|
+
export * from './helpers/InitializeIDBListenersOnMstSnapshots';
|
|
9
|
+
export * from './helpers/InitializeIDBListenersOnMstSnapshotsThenCatch';
|
|
10
|
+
export * from './helpers/getGqlOperationName';
|
|
11
|
+
export * from './helpers/parseJwt';
|
|
12
|
+
export * from './helpers/EnvironmentsUrls';
|
|
13
|
+
export * from './helpers/EnvironmentToOperateTypes';
|
|
14
|
+
export * from './helpers/generateSrvAuthBindings';
|
|
15
|
+
export * from './helpers/getSubdomain';
|
|
16
|
+
export * from './helpers/clearCacheData';
|
|
17
|
+
export * from './helpers/generateGenqlClient';
|
|
18
|
+
export * from './helpers/generateEnvConfigsBindings';
|
|
19
|
+
export * from './helpers/userTypingSignal';
|
|
20
|
+
export * from './helpers/base64ToFile';
|
|
21
|
+
export * from './helpers/isValidUrl';
|
|
22
|
+
export * from './helpers/attachUserJournalCredentials';
|
|
23
|
+
export * from './utility/fetch';
|
|
24
|
+
export * from './clients/srvAuth';
|
|
25
|
+
export type { IUploadedDocument } from './interfaces/api/advoca/IUploadedDocument';
|
|
26
|
+
export type { IFeedBack, ISaveToDataBase } from './interfaces/api/advoca/ISaveToDataBase';
|
|
27
|
+
export * from './interfaces/enums';
|
|
28
|
+
export * from './global';
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { getServerErrorMessage, processServerError } from './helpers/ProcessServerError';
|
|
2
|
-
export { CURENCY_NOK, NORVEGIAN_PHONE_NUMBER, ORDINARY, PERSONAL_NUMBER, YEARS } from './helpers/FormatNumberConstants';
|
|
3
|
-
export { COUNTRIES, POSTAL_CODE } from './helpers/NorwegianPostalCodes';
|
|
4
|
-
export { capitalizeFirstLetter, toLowercaseAndCapitalizeFirstLetter } from './helpers/CapitalizeFistLetter';
|
|
5
|
-
export * from './helpers/IsAdcuris';
|
|
6
|
-
export * from './helpers/IsNotEmpty';
|
|
7
|
-
export * from './helpers/Config';
|
|
8
|
-
export * from './helpers/InitializeIDBListenersOnMstSnapshots';
|
|
9
|
-
export * from './helpers/InitializeIDBListenersOnMstSnapshotsThenCatch';
|
|
10
|
-
export * from './helpers/getGqlOperationName';
|
|
11
|
-
export * from './helpers/parseJwt';
|
|
12
|
-
export * from './helpers/EnvironmentsUrls';
|
|
13
|
-
export * from './helpers/EnvironmentToOperateTypes';
|
|
14
|
-
export * from './helpers/generateSrvAuthBindings';
|
|
15
|
-
export * from './helpers/getSubdomain';
|
|
16
|
-
export * from './helpers/clearCacheData';
|
|
17
|
-
export * from './helpers/generateGenqlClient';
|
|
18
|
-
export * from './helpers/generateEnvConfigsBindings';
|
|
19
|
-
export * from './helpers/userTypingSignal';
|
|
20
|
-
export * from './helpers/base64ToFile';
|
|
21
|
-
export * from './helpers/isValidUrl';
|
|
22
|
-
export * from './helpers/attachUserJournalCredentials';
|
|
23
|
-
export * from './utility/fetch';
|
|
24
|
-
export * from './clients/srvAuth';
|
|
25
|
-
export * from './interfaces/enums';
|
|
26
|
-
export * from './global';
|
|
1
|
+
export { getServerErrorMessage, processServerError } from './helpers/ProcessServerError';
|
|
2
|
+
export { CURENCY_NOK, NORVEGIAN_PHONE_NUMBER, ORDINARY, PERSONAL_NUMBER, YEARS } from './helpers/FormatNumberConstants';
|
|
3
|
+
export { COUNTRIES, POSTAL_CODE } from './helpers/NorwegianPostalCodes';
|
|
4
|
+
export { capitalizeFirstLetter, toLowercaseAndCapitalizeFirstLetter } from './helpers/CapitalizeFistLetter';
|
|
5
|
+
export * from './helpers/IsAdcuris';
|
|
6
|
+
export * from './helpers/IsNotEmpty';
|
|
7
|
+
export * from './helpers/Config';
|
|
8
|
+
export * from './helpers/InitializeIDBListenersOnMstSnapshots';
|
|
9
|
+
export * from './helpers/InitializeIDBListenersOnMstSnapshotsThenCatch';
|
|
10
|
+
export * from './helpers/getGqlOperationName';
|
|
11
|
+
export * from './helpers/parseJwt';
|
|
12
|
+
export * from './helpers/EnvironmentsUrls';
|
|
13
|
+
export * from './helpers/EnvironmentToOperateTypes';
|
|
14
|
+
export * from './helpers/generateSrvAuthBindings';
|
|
15
|
+
export * from './helpers/getSubdomain';
|
|
16
|
+
export * from './helpers/clearCacheData';
|
|
17
|
+
export * from './helpers/generateGenqlClient';
|
|
18
|
+
export * from './helpers/generateEnvConfigsBindings';
|
|
19
|
+
export * from './helpers/userTypingSignal';
|
|
20
|
+
export * from './helpers/base64ToFile';
|
|
21
|
+
export * from './helpers/isValidUrl';
|
|
22
|
+
export * from './helpers/attachUserJournalCredentials';
|
|
23
|
+
export * from './utility/fetch';
|
|
24
|
+
export * from './clients/srvAuth';
|
|
25
|
+
export * from './interfaces/enums';
|
|
26
|
+
export * from './global';
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export interface ISaveToDataBase {
|
|
2
|
-
method: string;
|
|
3
|
-
json: string;
|
|
4
|
-
uuid: string | undefined;
|
|
5
|
-
feedback: IFeedBack;
|
|
6
|
-
url: string;
|
|
7
|
-
origin?: {
|
|
8
|
-
method: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface IFeedBack {
|
|
12
|
-
error?: string;
|
|
13
|
-
type: string;
|
|
14
|
-
message: string;
|
|
15
|
-
show_time: number;
|
|
16
|
-
}
|
|
1
|
+
export interface ISaveToDataBase {
|
|
2
|
+
method: string;
|
|
3
|
+
json: string;
|
|
4
|
+
uuid: string | undefined;
|
|
5
|
+
feedback: IFeedBack;
|
|
6
|
+
url: string;
|
|
7
|
+
origin?: {
|
|
8
|
+
method: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface IFeedBack {
|
|
12
|
+
error?: string;
|
|
13
|
+
type: string;
|
|
14
|
+
message: string;
|
|
15
|
+
show_time: number;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=ISaveToDataBase.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=ISaveToDataBase.js.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export interface IUploadedDocument {
|
|
2
|
-
created_at: string;
|
|
3
|
-
customer: {
|
|
4
|
-
comm_consents_descr: string;
|
|
5
|
-
contact_email: string;
|
|
6
|
-
contact_message: string;
|
|
7
|
-
contact_tel: string;
|
|
8
|
-
id: number;
|
|
9
|
-
logo: string;
|
|
10
|
-
name: string;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
};
|
|
13
|
-
customer_id: number;
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
path: string;
|
|
17
|
-
patientIds: {
|
|
18
|
-
id: number;
|
|
19
|
-
soknad_id: string;
|
|
20
|
-
}[];
|
|
21
|
-
region: number;
|
|
22
|
-
sds_id: number;
|
|
23
|
-
updated_at: string;
|
|
24
|
-
upload_patient_id: number;
|
|
25
|
-
success: string;
|
|
26
|
-
}
|
|
1
|
+
export interface IUploadedDocument {
|
|
2
|
+
created_at: string;
|
|
3
|
+
customer: {
|
|
4
|
+
comm_consents_descr: string;
|
|
5
|
+
contact_email: string;
|
|
6
|
+
contact_message: string;
|
|
7
|
+
contact_tel: string;
|
|
8
|
+
id: number;
|
|
9
|
+
logo: string;
|
|
10
|
+
name: string;
|
|
11
|
+
updated_at: string;
|
|
12
|
+
};
|
|
13
|
+
customer_id: number;
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
path: string;
|
|
17
|
+
patientIds: {
|
|
18
|
+
id: number;
|
|
19
|
+
soknad_id: string;
|
|
20
|
+
}[];
|
|
21
|
+
region: number;
|
|
22
|
+
sds_id: number;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
upload_patient_id: number;
|
|
25
|
+
success: string;
|
|
26
|
+
}
|
|
27
27
|
//# sourceMappingURL=IUploadedDocument.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=IUploadedDocument.js.map
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
export declare enum InitiatorTypes {
|
|
2
|
-
Customer = "customer",
|
|
3
|
-
Patient = "patient",
|
|
4
|
-
SelfCompletable = "self-completable"
|
|
5
|
-
}
|
|
6
|
-
export declare enum QnrContextTypes {
|
|
7
|
-
Advoca = "advoca",
|
|
8
|
-
Portal = "portal",
|
|
9
|
-
Outlook = "outlook"
|
|
10
|
-
}
|
|
11
|
-
export declare enum DocSignicatSignStatusTypes {
|
|
12
|
-
Complteted = "completed",
|
|
13
|
-
Rejected = "rejected",
|
|
14
|
-
Waiting = "waiting"
|
|
15
|
-
}
|
|
16
|
-
export declare enum DocProxyStatusTypes {
|
|
17
|
-
Signed = "signed",
|
|
18
|
-
WaitingForSigning = "waiting_for_signing",
|
|
19
|
-
OnlyForView = "only_for_view"
|
|
20
|
-
}
|
|
21
|
-
export declare enum QuestionTypes {
|
|
22
|
-
BooleanQuestion = "BooleanQuestion",
|
|
23
|
-
CheckBoxes = "CheckBoxes",
|
|
24
|
-
CompositeQuestion = "CompositeQuestion",
|
|
25
|
-
DateField = "DateField",
|
|
26
|
-
Dropdown = "Dropdown",
|
|
27
|
-
FormatNumber = "FormatNumber",
|
|
28
|
-
LinearScale = "LinearScale",
|
|
29
|
-
Link = "Link",
|
|
30
|
-
RadioButtons = "RadioButtons",
|
|
31
|
-
TextLong = "TextLong",
|
|
32
|
-
TextShort = "TextShort",
|
|
33
|
-
Emoticons = "Emoticons",
|
|
34
|
-
DocumentUpload = "DocumentUpload",
|
|
35
|
-
Readonly = "Readonly",
|
|
36
|
-
ExpressionQuestion = "ExpressionQuestion",
|
|
37
|
-
Chart = "Chart"
|
|
38
|
-
}
|
|
39
|
-
export declare enum ActorTypes {
|
|
40
|
-
Mappable = "mappable",
|
|
41
|
-
Custom = "custom",
|
|
42
|
-
Complex = "complex"
|
|
43
|
-
}
|
|
44
|
-
export declare enum EnvironmentEnums {
|
|
45
|
-
local = "local",
|
|
46
|
-
dev = "dev",
|
|
47
|
-
test = "test",
|
|
48
|
-
stage = "stage",
|
|
49
|
-
prod = "prod"
|
|
50
|
-
}
|
|
1
|
+
export declare enum InitiatorTypes {
|
|
2
|
+
Customer = "customer",
|
|
3
|
+
Patient = "patient",
|
|
4
|
+
SelfCompletable = "self-completable"
|
|
5
|
+
}
|
|
6
|
+
export declare enum QnrContextTypes {
|
|
7
|
+
Advoca = "advoca",
|
|
8
|
+
Portal = "portal",
|
|
9
|
+
Outlook = "outlook"
|
|
10
|
+
}
|
|
11
|
+
export declare enum DocSignicatSignStatusTypes {
|
|
12
|
+
Complteted = "completed",
|
|
13
|
+
Rejected = "rejected",
|
|
14
|
+
Waiting = "waiting"
|
|
15
|
+
}
|
|
16
|
+
export declare enum DocProxyStatusTypes {
|
|
17
|
+
Signed = "signed",
|
|
18
|
+
WaitingForSigning = "waiting_for_signing",
|
|
19
|
+
OnlyForView = "only_for_view"
|
|
20
|
+
}
|
|
21
|
+
export declare enum QuestionTypes {
|
|
22
|
+
BooleanQuestion = "BooleanQuestion",
|
|
23
|
+
CheckBoxes = "CheckBoxes",
|
|
24
|
+
CompositeQuestion = "CompositeQuestion",
|
|
25
|
+
DateField = "DateField",
|
|
26
|
+
Dropdown = "Dropdown",
|
|
27
|
+
FormatNumber = "FormatNumber",
|
|
28
|
+
LinearScale = "LinearScale",
|
|
29
|
+
Link = "Link",
|
|
30
|
+
RadioButtons = "RadioButtons",
|
|
31
|
+
TextLong = "TextLong",
|
|
32
|
+
TextShort = "TextShort",
|
|
33
|
+
Emoticons = "Emoticons",
|
|
34
|
+
DocumentUpload = "DocumentUpload",
|
|
35
|
+
Readonly = "Readonly",
|
|
36
|
+
ExpressionQuestion = "ExpressionQuestion",
|
|
37
|
+
Chart = "Chart"
|
|
38
|
+
}
|
|
39
|
+
export declare enum ActorTypes {
|
|
40
|
+
Mappable = "mappable",
|
|
41
|
+
Custom = "custom",
|
|
42
|
+
Complex = "complex"
|
|
43
|
+
}
|
|
44
|
+
export declare enum EnvironmentEnums {
|
|
45
|
+
local = "local",
|
|
46
|
+
dev = "dev",
|
|
47
|
+
test = "test",
|
|
48
|
+
stage = "stage",
|
|
49
|
+
prod = "prod"
|
|
50
|
+
}
|
|
51
51
|
//# sourceMappingURL=enums.d.ts.map
|