asma-types 1.1.19 → 1.1.21
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/lib/interfaces/artifact_enums.d.ts +1 -0
- package/lib/interfaces/artifact_enums.d.ts.map +1 -1
- package/lib/interfaces/artifact_enums.js +1 -0
- package/lib/interfaces/artifact_enums.js.map +1 -1
- package/lib/interfaces/jwtClaims.d.ts +1 -3
- package/lib/interfaces/jwtClaims.d.ts.map +1 -1
- package/lib/interfaces/jwtClaims.js.map +1 -1
- package/package.json +6 -3
- package/src/interfaces/artifact_enums.ts +1 -0
- package/src/interfaces/jwtClaims.ts +11 -9
- package/tsconfig.json +16 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact_enums.d.ts","sourceRoot":"","sources":["../../src/interfaces/artifact_enums.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAC9B,GAAG,kBAAkB;IACrB,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;CACtC;AAED,oBAAY,aAAa;IACrB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,OAAO,YAAY;CACtB"}
|
|
1
|
+
{"version":3,"file":"artifact_enums.d.ts","sourceRoot":"","sources":["../../src/interfaces/artifact_enums.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAC9B,GAAG,kBAAkB;IACrB,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;CACtC;AAED,oBAAY,aAAa;IACrB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,OAAO,YAAY;CACtB"}
|
|
@@ -2,6 +2,7 @@ export var ArtifactPresenterTypes;
|
|
|
2
2
|
(function (ArtifactPresenterTypes) {
|
|
3
3
|
ArtifactPresenterTypes["Qnr"] = "Questionnaire";
|
|
4
4
|
ArtifactPresenterTypes["DocumentProxy"] = "DocumentProxy";
|
|
5
|
+
ArtifactPresenterTypes["DocumentConnector"] = "DocumentConnector";
|
|
5
6
|
ArtifactPresenterTypes["DocumentOutlook"] = "DocumentOutlook";
|
|
6
7
|
})(ArtifactPresenterTypes || (ArtifactPresenterTypes = {}));
|
|
7
8
|
export var FileExtension;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact_enums.js","sourceRoot":"","sources":["../../src/interfaces/artifact_enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"artifact_enums.js","sourceRoot":"","sources":["../../src/interfaces/artifact_enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAC9B,+CAAqB,CAAA;IACrB,yDAA+B,CAAA;IAC/B,iEAAuC,CAAA;IACvC,6DAAmC,CAAA;AACvC,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC;AAED,MAAM,CAAN,IAAY,aAoBX;AApBD,WAAY,aAAa;IACrB,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,oCAAmB,CAAA;AACvB,CAAC,EApBW,aAAa,KAAb,aAAa,QAoBxB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare type feature_names_enum = 'autoImportableQnr' | 'dashboardTraceability' | 'ordersOverviewOnSelectedRecipientsForQnr' | 'predefinedUserForQnr' | 'rejectableQnr' | 'signByTherapistDocument' | 'test';
|
|
1
|
+
import type { roles_enum, feature_names_enum } from "asma-genql-directory/lib";
|
|
3
2
|
export interface IBaseJwtClaims {
|
|
4
3
|
user_id: string;
|
|
5
4
|
role: roles_enum;
|
|
@@ -35,5 +34,4 @@ export interface ISrvUrls {
|
|
|
35
34
|
export declare function isRecipientJwtClaims(claims?: IBaseJwtClaims): claims is IRecipientJwtClaims;
|
|
36
35
|
export declare function isTherapistJwtClaims(claims?: IBaseJwtClaims): claims is ITherapistOrSuperUserJwtClaims;
|
|
37
36
|
export declare function isAdminJwtClaims(claims?: IBaseJwtClaims): claims is IAdminJwtClaims;
|
|
38
|
-
export {};
|
|
39
37
|
//# sourceMappingURL=jwtClaims.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwtClaims.d.ts","sourceRoot":"","sources":["../../src/interfaces/jwtClaims.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"jwtClaims.d.ts","sourceRoot":"","sources":["../../src/interfaces/jwtClaims.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAY9E,MAAM,WAAW,cAAc;IAC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"jwtClaims.js","sourceRoot":"","sources":["../../src/interfaces/jwtClaims.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jwtClaims.js","sourceRoot":"","sources":["../../src/interfaces/jwtClaims.ts"],"names":[],"mappings":"AAgDA,MAAM,UAAU,oBAAoB,CAAC,MAAuB;IACxD,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,WAAW,EAAE,MAAK,WAAW,CAAA;AACrD,CAAC;AACD,MAAM,UAAU,oBAAoB,CAAC,MAAuB;;IACxD,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,WAAW,EAAE,MAAK,WAAW,IAAI,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,WAAW,EAAE,MAAK,YAAY,CAAA;AACrG,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,MAAuB;IACpD,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,WAAW,EAAE,MAAM,OAAsB,CAAA;AACjE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asma-types",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "shared ts asma types",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://avanssoma@dev.azure.com/avanssoma/Arbeidoginkludering/_git/asma-types"
|
|
17
17
|
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@genql/runtime": "^2.10.0",
|
|
20
|
+
"asma-genql-directory": "^1.0.66"
|
|
21
|
+
},
|
|
18
22
|
"devDependencies": {
|
|
19
|
-
"
|
|
20
|
-
"typescript": "^4.4.4"
|
|
23
|
+
"typescript": "^4.7.4"
|
|
21
24
|
}
|
|
22
25
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
type roles_enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { roles_enum, feature_names_enum } from "asma-genql-directory/lib"
|
|
2
|
+
|
|
3
|
+
//type roles_enum = 'RECIPIENT' | 'SUPER_USER' | 'THERAPIST' | 'USER'
|
|
4
|
+
// type feature_names_enum =
|
|
5
|
+
// | 'autoImportableQnr'
|
|
6
|
+
// | 'dashboardTraceability'
|
|
7
|
+
// | 'ordersOverviewOnSelectedRecipientsForQnr'
|
|
8
|
+
// | 'predefinedUserForQnr'
|
|
9
|
+
// | 'rejectableQnr'
|
|
10
|
+
// | 'signByTherapistDocument'
|
|
11
|
+
// | 'test'
|
|
10
12
|
|
|
11
13
|
export interface IBaseJwtClaims {
|
|
12
14
|
user_id: string
|
package/tsconfig.json
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
/* Basic Options */
|
|
6
6
|
// "incremental": true, /* Enable incremental compilation */
|
|
7
|
-
"target": "
|
|
8
|
-
"module": "
|
|
7
|
+
"target": "ES2019" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
|
|
8
|
+
"module": "ES2020" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
|
|
9
9
|
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
10
10
|
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
11
11
|
// "checkJs": true, /* Report errors in .js files. */
|
|
12
|
-
|
|
12
|
+
"jsx": "react-jsx" /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */,
|
|
13
13
|
"declaration": true /* Generates corresponding '.d.ts' file. */,
|
|
14
14
|
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
|
|
15
15
|
"sourceMap": true /* Generates corresponding '.map' file. */,
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
51
51
|
// "types": [], /* Type declaration files to be included in compilation. */
|
|
52
52
|
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
53
|
-
"esModuleInterop":
|
|
53
|
+
"esModuleInterop": false /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
54
54
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
55
55
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
56
56
|
|
|
@@ -66,7 +66,18 @@
|
|
|
66
66
|
|
|
67
67
|
/* Advanced Options */
|
|
68
68
|
"skipLibCheck": true /* Skip type checking of declaration files. */,
|
|
69
|
-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file.
|
|
69
|
+
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
|
|
70
|
+
|
|
71
|
+
"allowJs": false,
|
|
72
|
+
"allowSyntheticDefaultImports": true,
|
|
73
|
+
|
|
74
|
+
"strictBindCallApply": true,
|
|
75
|
+
|
|
76
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
77
|
+
"resolveJsonModule": true,
|
|
78
|
+
"experimentalDecorators": false,
|
|
79
|
+
"importsNotUsedAsValues": "error",
|
|
80
|
+
"useUnknownInCatchVariables": false
|
|
70
81
|
},
|
|
71
82
|
"include": ["src", "lib/interfaces"],
|
|
72
83
|
"exclude": ["node_modules", "lib"]
|