clarion-shared-types 1.0.38 → 1.0.40
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-relation-status.enum.js +10 -0
- package/dist/cjs/modules/user/enums/guardian-relation-status.enum.js.map +1 -0
- 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 +4 -0
- package/dist/cjs/modules/user/index.js.map +1 -1
- package/dist/cjs/modules/user/interfaces/guardian-relation.js +3 -0
- package/dist/cjs/modules/user/interfaces/guardian-relation.js.map +1 -0
- 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-relation-status.enum.js +7 -0
- package/dist/esm/modules/user/enums/guardian-relation-status.enum.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 +4 -0
- package/dist/esm/modules/user/index.js.map +1 -1
- package/dist/esm/modules/user/interfaces/guardian-relation.js +2 -0
- package/dist/esm/modules/user/interfaces/guardian-relation.js.map +1 -0
- 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-relation-status.enum.d.ts +5 -0
- package/dist/types/modules/user/enums/guardian-relationship.enum.d.ts +12 -0
- package/dist/types/modules/user/index.d.ts +4 -0
- package/dist/types/modules/user/interfaces/guardian-relation.d.ts +12 -0
- package/dist/types/modules/user/interfaces/guardian.d.ts +9 -0
- package/dist/types/modules/user/interfaces/user.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GuardianRelationStatus = void 0;
|
|
4
|
+
var GuardianRelationStatus;
|
|
5
|
+
(function (GuardianRelationStatus) {
|
|
6
|
+
GuardianRelationStatus["PENDING"] = "pending";
|
|
7
|
+
GuardianRelationStatus["ACCEPTED"] = "accepted";
|
|
8
|
+
GuardianRelationStatus["REJECTED"] = "rejected";
|
|
9
|
+
})(GuardianRelationStatus || (exports.GuardianRelationStatus = GuardianRelationStatus = {}));
|
|
10
|
+
//# sourceMappingURL=guardian-relation-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian-relation-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/user/enums/guardian-relation-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;AACzB,CAAC,EAJW,sBAAsB,sCAAtB,sBAAsB,QAIjC"}
|
|
@@ -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,11 @@ 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);
|
|
19
|
+
__exportStar(require("./enums/guardian-relation-status.enum"), exports);
|
|
18
20
|
__exportStar(require("./interfaces/user"), exports);
|
|
19
21
|
__exportStar(require("./interfaces/user-context"), exports);
|
|
20
22
|
__exportStar(require("./interfaces/access-scope"), exports);
|
|
23
|
+
__exportStar(require("./interfaces/guardian"), exports);
|
|
24
|
+
__exportStar(require("./interfaces/guardian-relation"), exports);
|
|
21
25
|
//# 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,wEAAsD;AAEtD,oDAAkC;AAClC,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,iEAA+C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian-relation.js","sourceRoot":"","sources":["../../../../../src/modules/user/interfaces/guardian-relation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian.js","sourceRoot":"","sources":["../../../../../src/modules/user/interfaces/guardian.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var GuardianRelationStatus;
|
|
2
|
+
(function (GuardianRelationStatus) {
|
|
3
|
+
GuardianRelationStatus["PENDING"] = "pending";
|
|
4
|
+
GuardianRelationStatus["ACCEPTED"] = "accepted";
|
|
5
|
+
GuardianRelationStatus["REJECTED"] = "rejected";
|
|
6
|
+
})(GuardianRelationStatus || (GuardianRelationStatus = {}));
|
|
7
|
+
//# sourceMappingURL=guardian-relation-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian-relation-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/user/enums/guardian-relation-status.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;AACzB,CAAC,EAJW,sBAAsB,KAAtB,sBAAsB,QAIjC"}
|
|
@@ -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,9 @@
|
|
|
1
1
|
export * from './enums/user-status.enum';
|
|
2
|
+
export * from './enums/guardian-relationship.enum';
|
|
3
|
+
export * from './enums/guardian-relation-status.enum';
|
|
2
4
|
export * from './interfaces/user';
|
|
3
5
|
export * from './interfaces/user-context';
|
|
4
6
|
export * from './interfaces/access-scope';
|
|
7
|
+
export * from './interfaces/guardian';
|
|
8
|
+
export * from './interfaces/guardian-relation';
|
|
5
9
|
//# 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,uCAAuC,CAAC;AAEtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian-relation.js","sourceRoot":"","sources":["../../../../../src/modules/user/interfaces/guardian-relation.ts"],"names":[],"mappings":""}
|
|
@@ -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,8 @@
|
|
|
1
1
|
export * from './enums/user-status.enum';
|
|
2
|
+
export * from './enums/guardian-relationship.enum';
|
|
3
|
+
export * from './enums/guardian-relation-status.enum';
|
|
2
4
|
export * from './interfaces/user';
|
|
3
5
|
export * from './interfaces/user-context';
|
|
4
6
|
export * from './interfaces/access-scope';
|
|
7
|
+
export * from './interfaces/guardian';
|
|
8
|
+
export * from './interfaces/guardian-relation';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GuardianRelationStatus } from "../enums/guardian-relation-status.enum";
|
|
2
|
+
import { GuardianRelationship } from "../enums/guardian-relationship.enum";
|
|
3
|
+
export interface GuardianRelation {
|
|
4
|
+
id?: number;
|
|
5
|
+
guardianId: number;
|
|
6
|
+
dependentId: number;
|
|
7
|
+
relationship?: GuardianRelationship;
|
|
8
|
+
isPrimary?: boolean;
|
|
9
|
+
status?: GuardianRelationStatus;
|
|
10
|
+
createdAt?: string;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Roles } from "../../role";
|
|
2
|
+
import { Guardian } from "./guardian";
|
|
3
|
+
import { GuardianRelation } from "./guardian-relation";
|
|
2
4
|
export interface User {
|
|
3
5
|
id?: number;
|
|
4
6
|
name: string;
|
|
@@ -9,6 +11,9 @@ export interface User {
|
|
|
9
11
|
avatar?: string;
|
|
10
12
|
designation?: string;
|
|
11
13
|
status?: string;
|
|
14
|
+
guardians?: Guardian[];
|
|
15
|
+
dependentRelations?: GuardianRelation[];
|
|
16
|
+
guardianRelations?: GuardianRelation[];
|
|
12
17
|
isTermsAccepted?: boolean;
|
|
13
18
|
isIdentityVerified?: boolean;
|
|
14
19
|
otp?: string;
|