clarion-shared-types 1.0.38 → 1.0.39
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/cjs/modules/user/enums/guardian-relationship.enum.js +17 -0
- package/dist/cjs/modules/user/enums/guardian-relationship.enum.js.map +1 -0
- package/dist/cjs/modules/user/index.js +2 -0
- package/dist/cjs/modules/user/index.js.map +1 -1
- package/dist/cjs/modules/user/interfaces/guardian.js +3 -0
- package/dist/cjs/modules/user/interfaces/guardian.js.map +1 -0
- package/dist/esm/modules/user/enums/guardian-relationship.enum.js +14 -0
- package/dist/esm/modules/user/enums/guardian-relationship.enum.js.map +1 -0
- package/dist/esm/modules/user/index.js +2 -0
- package/dist/esm/modules/user/index.js.map +1 -1
- package/dist/esm/modules/user/interfaces/guardian.js +2 -0
- package/dist/esm/modules/user/interfaces/guardian.js.map +1 -0
- package/dist/types/modules/user/enums/guardian-relationship.enum.d.ts +12 -0
- package/dist/types/modules/user/index.d.ts +2 -0
- package/dist/types/modules/user/interfaces/guardian.d.ts +9 -0
- package/dist/types/modules/user/interfaces/user.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GuardianRelationship = void 0;
|
|
4
|
+
var GuardianRelationship;
|
|
5
|
+
(function (GuardianRelationship) {
|
|
6
|
+
GuardianRelationship["PARENT"] = "parent";
|
|
7
|
+
GuardianRelationship["SIBLING"] = "sibling";
|
|
8
|
+
GuardianRelationship["GRANDPARENT"] = "grandparent";
|
|
9
|
+
GuardianRelationship["AUNT"] = "aunt";
|
|
10
|
+
GuardianRelationship["UNCLE"] = "uncle";
|
|
11
|
+
GuardianRelationship["OTHER_RELATIVE"] = "other relative";
|
|
12
|
+
GuardianRelationship["GUARDIAN"] = "guardian";
|
|
13
|
+
GuardianRelationship["FRIEND"] = "friend";
|
|
14
|
+
GuardianRelationship["EMERGENCY_CONTACT"] = "emergency contact";
|
|
15
|
+
GuardianRelationship["OTHER"] = "other";
|
|
16
|
+
})(GuardianRelationship || (exports.GuardianRelationship = GuardianRelationship = {}));
|
|
17
|
+
//# sourceMappingURL=guardian-relationship.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian-relationship.enum.js","sourceRoot":"","sources":["../../../../../src/modules/user/enums/guardian-relationship.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,mDAA2B,CAAA;IAC3B,qCAAa,CAAA;IACb,uCAAe,CAAA;IACf,yDAAiC,CAAA;IACjC,6CAAqB,CAAA;IACrB,yCAAiB,CAAA;IACjB,+DAAuC,CAAA;IACvC,uCAAe,CAAA;AACnB,CAAC,EAXW,oBAAoB,oCAApB,oBAAoB,QAW/B"}
|
|
@@ -15,7 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./enums/user-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./enums/guardian-relationship.enum"), exports);
|
|
18
19
|
__exportStar(require("./interfaces/user"), exports);
|
|
19
20
|
__exportStar(require("./interfaces/user-context"), exports);
|
|
20
21
|
__exportStar(require("./interfaces/access-scope"), exports);
|
|
22
|
+
__exportStar(require("./interfaces/guardian"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAkC;AAClC,4DAA0C;AAC1C,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,qEAAmD;AACnD,oDAAkC;AAClC,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian.js","sourceRoot":"","sources":["../../../../../src/modules/user/interfaces/guardian.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var GuardianRelationship;
|
|
2
|
+
(function (GuardianRelationship) {
|
|
3
|
+
GuardianRelationship["PARENT"] = "parent";
|
|
4
|
+
GuardianRelationship["SIBLING"] = "sibling";
|
|
5
|
+
GuardianRelationship["GRANDPARENT"] = "grandparent";
|
|
6
|
+
GuardianRelationship["AUNT"] = "aunt";
|
|
7
|
+
GuardianRelationship["UNCLE"] = "uncle";
|
|
8
|
+
GuardianRelationship["OTHER_RELATIVE"] = "other relative";
|
|
9
|
+
GuardianRelationship["GUARDIAN"] = "guardian";
|
|
10
|
+
GuardianRelationship["FRIEND"] = "friend";
|
|
11
|
+
GuardianRelationship["EMERGENCY_CONTACT"] = "emergency contact";
|
|
12
|
+
GuardianRelationship["OTHER"] = "other";
|
|
13
|
+
})(GuardianRelationship || (GuardianRelationship = {}));
|
|
14
|
+
//# sourceMappingURL=guardian-relationship.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian-relationship.enum.js","sourceRoot":"","sources":["../../../../../src/modules/user/enums/guardian-relationship.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,mDAA2B,CAAA;IAC3B,qCAAa,CAAA;IACb,uCAAe,CAAA;IACf,yDAAiC,CAAA;IACjC,6CAAqB,CAAA;IACrB,yCAAiB,CAAA;IACjB,+DAAuC,CAAA;IACvC,uCAAe,CAAA;AACnB,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './enums/user-status.enum';
|
|
2
|
+
export * from './enums/guardian-relationship.enum';
|
|
2
3
|
export * from './interfaces/user';
|
|
3
4
|
export * from './interfaces/user-context';
|
|
4
5
|
export * from './interfaces/access-scope';
|
|
6
|
+
export * from './interfaces/guardian';
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian.js","sourceRoot":"","sources":["../../../../../src/modules/user/interfaces/guardian.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum GuardianRelationship {
|
|
2
|
+
PARENT = "parent",
|
|
3
|
+
SIBLING = "sibling",
|
|
4
|
+
GRANDPARENT = "grandparent",
|
|
5
|
+
AUNT = "aunt",
|
|
6
|
+
UNCLE = "uncle",
|
|
7
|
+
OTHER_RELATIVE = "other relative",
|
|
8
|
+
GUARDIAN = "guardian",
|
|
9
|
+
FRIEND = "friend",
|
|
10
|
+
EMERGENCY_CONTACT = "emergency contact",
|
|
11
|
+
OTHER = "other"
|
|
12
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Roles } from "../../role";
|
|
2
|
+
import { Guardian } from "./guardian";
|
|
2
3
|
export interface User {
|
|
3
4
|
id?: number;
|
|
4
5
|
name: string;
|
|
@@ -9,6 +10,8 @@ export interface User {
|
|
|
9
10
|
avatar?: string;
|
|
10
11
|
designation?: string;
|
|
11
12
|
status?: string;
|
|
13
|
+
guardians?: Guardian[];
|
|
14
|
+
dependantIds?: number[];
|
|
12
15
|
isTermsAccepted?: boolean;
|
|
13
16
|
isIdentityVerified?: boolean;
|
|
14
17
|
otp?: string;
|