grm-shared-library 1.1.74 → 1.1.75

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.
Files changed (28) hide show
  1. package/dist/cjs/modules/user/dtos/create-user.dto.js +2 -2
  2. package/dist/cjs/modules/user/dtos/create-user.dto.js.map +1 -1
  3. package/dist/cjs/modules/user/dtos/{create-guardian.dto.js → guardian.dto.js} +10 -10
  4. package/dist/cjs/modules/user/dtos/guardian.dto.js.map +1 -0
  5. package/dist/cjs/modules/user/dtos/update-guardian-relation-status.dto.js +23 -0
  6. package/dist/cjs/modules/user/dtos/update-guardian-relation-status.dto.js.map +1 -0
  7. package/dist/cjs/modules/user/enums/guardian-relationship.enum.js +1 -0
  8. package/dist/cjs/modules/user/enums/guardian-relationship.enum.js.map +1 -1
  9. package/dist/cjs/modules/user/index.js +2 -1
  10. package/dist/cjs/modules/user/index.js.map +1 -1
  11. package/dist/esm/modules/user/dtos/create-user.dto.js +2 -2
  12. package/dist/esm/modules/user/dtos/create-user.dto.js.map +1 -1
  13. package/dist/esm/modules/user/dtos/{create-guardian.dto.js → guardian.dto.js} +8 -8
  14. package/dist/esm/modules/user/dtos/guardian.dto.js.map +1 -0
  15. package/dist/esm/modules/user/dtos/update-guardian-relation-status.dto.js +19 -0
  16. package/dist/esm/modules/user/dtos/update-guardian-relation-status.dto.js.map +1 -0
  17. package/dist/esm/modules/user/enums/guardian-relationship.enum.js +1 -0
  18. package/dist/esm/modules/user/enums/guardian-relationship.enum.js.map +1 -1
  19. package/dist/esm/modules/user/index.js +2 -1
  20. package/dist/esm/modules/user/index.js.map +1 -1
  21. package/dist/types/modules/user/dtos/create-user.dto.d.ts +2 -2
  22. package/dist/types/modules/user/dtos/{create-guardian.dto.d.ts → guardian.dto.d.ts} +1 -1
  23. package/dist/types/modules/user/dtos/update-guardian-relation-status.dto.d.ts +4 -0
  24. package/dist/types/modules/user/enums/guardian-relationship.enum.d.ts +1 -0
  25. package/dist/types/modules/user/index.d.ts +2 -1
  26. package/package.json +1 -1
  27. package/dist/cjs/modules/user/dtos/create-guardian.dto.js.map +0 -1
  28. package/dist/esm/modules/user/dtos/create-guardian.dto.js.map +0 -1
@@ -16,7 +16,7 @@ const user_status_enum_1 = require("../enums/user-status.enum");
16
16
  const password_regex_const_1 = require("../../common/constants/password-regex.const");
17
17
  const role_1 = require("../../role");
18
18
  const class_transformer_1 = require("class-transformer");
19
- const create_guardian_dto_1 = require("./create-guardian.dto");
19
+ const guardian_dto_1 = require("./guardian.dto");
20
20
  class CreateUserDto {
21
21
  }
22
22
  exports.CreateUserDto = CreateUserDto;
@@ -71,7 +71,7 @@ __decorate([
71
71
  ], CreateUserDto.prototype, "status", void 0);
72
72
  __decorate([
73
73
  (0, class_validator_1.ValidateNested)({ each: true }),
74
- (0, class_transformer_1.Type)(() => create_guardian_dto_1.CreateGuardianDto),
74
+ (0, class_transformer_1.Type)(() => guardian_dto_1.GuardianDto),
75
75
  (0, class_validator_1.IsOptional)(),
76
76
  __metadata("design:type", Array)
77
77
  ], CreateUserDto.prototype, "guardians", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAgByB;AACzB,yEAAmE;AACnE,gEAAuD;AACvD,sFAAqG;AACrG,qCAAmC;AACnC,yDAAyC;AACzC,+DAA0D;AAE1D,MAAa,aAAa;CAuEzB;AAvED,sCAuEC;AAjEG;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,8BAAY,GAAE;;2CACD;AAKd;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;4CACC;AAKf;IAHC,IAAA,+BAAa,GAAE;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,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACW"}
1
+ {"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAgByB;AACzB,yEAAmE;AACnE,gEAAuD;AACvD,sFAAqG;AACrG,qCAAmC;AACnC,yDAAyC;AACzC,iDAA6C;AAE7C,MAAa,aAAa;CAuEzB;AAvED,sCAuEC;AAjEG;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,8BAAY,GAAE;;2CACD;AAKd;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;4CACC;AAKf;IAHC,IAAA,+BAAa,GAAE;IACf,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;kDACQ;AAKrB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,YAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC7B,IAAA,+BAAa,GAAE;;4CACA;AAMhB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,yBAAO,EAAC,qCAAc,EAAE,EAAE,OAAO,EAAE,6CAAsB,EAAE,CAAC;IAC5D,IAAA,4BAAU,GAAE;;+CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACG;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;kDACO;AAIrB;IAFC,IAAA,wBAAM,EAAC,6BAAU,CAAC;IAClB,IAAA,4BAAU,GAAE;;6CACO;AAKpB;IAHC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;IACvB,IAAA,4BAAU,GAAE;;gDACa;AAK1B;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,4BAAU,GAAE;;mDACW;AAIxB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;sDACa;AAI1B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACc;AAI3B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACgB,IAAI;iEAAC;AAIlC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACW"}
@@ -9,40 +9,40 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateGuardianDto = void 0;
12
+ exports.GuardianDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const guardian_relationship_enum_1 = require("../enums/guardian-relationship.enum");
15
- class CreateGuardianDto {
15
+ class GuardianDto {
16
16
  }
17
- exports.CreateGuardianDto = CreateGuardianDto;
17
+ exports.GuardianDto = GuardianDto;
18
18
  __decorate([
19
19
  (0, class_validator_1.IsNumber)(),
20
20
  (0, class_validator_1.IsOptional)(),
21
21
  __metadata("design:type", Number)
22
- ], CreateGuardianDto.prototype, "userId", void 0);
22
+ ], GuardianDto.prototype, "userId", void 0);
23
23
  __decorate([
24
24
  (0, class_validator_1.IsString)(),
25
25
  (0, class_validator_1.IsNotEmpty)(),
26
26
  __metadata("design:type", String)
27
- ], CreateGuardianDto.prototype, "name", void 0);
27
+ ], GuardianDto.prototype, "name", void 0);
28
28
  __decorate([
29
29
  (0, class_validator_1.IsPhoneNumber)(),
30
30
  (0, class_validator_1.IsNotEmpty)(),
31
31
  __metadata("design:type", String)
32
- ], CreateGuardianDto.prototype, "phoneNumber", void 0);
32
+ ], GuardianDto.prototype, "phoneNumber", void 0);
33
33
  __decorate([
34
34
  (0, class_validator_1.IsBoolean)(),
35
35
  (0, class_validator_1.IsOptional)(),
36
36
  __metadata("design:type", Boolean)
37
- ], CreateGuardianDto.prototype, "isPrimary", void 0);
37
+ ], GuardianDto.prototype, "isPrimary", void 0);
38
38
  __decorate([
39
39
  (0, class_validator_1.IsEnum)(guardian_relationship_enum_1.GuardianRelationship),
40
40
  (0, class_validator_1.IsOptional)(),
41
41
  __metadata("design:type", String)
42
- ], CreateGuardianDto.prototype, "relationship", void 0);
42
+ ], GuardianDto.prototype, "relationship", void 0);
43
43
  __decorate([
44
44
  (0, class_validator_1.IsEmail)(),
45
45
  (0, class_validator_1.IsString)(),
46
46
  __metadata("design:type", String)
47
- ], CreateGuardianDto.prototype, "email", void 0);
48
- //# sourceMappingURL=create-guardian.dto.js.map
47
+ ], GuardianDto.prototype, "email", void 0);
48
+ //# sourceMappingURL=guardian.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwH;AACxH,oFAA2E;AAE3E,MAAa,WAAW;CAwBvB;AAxBD,kCAwBC;AArBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACC;AAId;IAFC,IAAA,+BAAa,GAAE;IACf,IAAA,4BAAU,GAAE;;gDACQ;AAIrB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8CACO;AAIpB;IAFC,IAAA,wBAAM,EAAC,iDAAoB,CAAC;IAC5B,IAAA,4BAAU,GAAE;;iDACuB;AAIpC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,GAAE;;0CACI"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdateGuardianRelationStatusDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const guardian_relation_status_enum_1 = require("../enums/guardian-relation-status.enum");
15
+ class UpdateGuardianRelationStatusDto {
16
+ }
17
+ exports.UpdateGuardianRelationStatusDto = UpdateGuardianRelationStatusDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsEnum)(guardian_relation_status_enum_1.GuardianRelationStatus),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], UpdateGuardianRelationStatusDto.prototype, "status", void 0);
23
+ //# sourceMappingURL=update-guardian-relation-status.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-guardian-relation-status.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/update-guardian-relation-status.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,0FAAgF;AAEhF,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AADC;IAFC,IAAA,wBAAM,EAAC,sDAAsB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;+DACmB"}
@@ -4,6 +4,7 @@ exports.GuardianRelationship = void 0;
4
4
  var GuardianRelationship;
5
5
  (function (GuardianRelationship) {
6
6
  GuardianRelationship["PARENT"] = "parent";
7
+ GuardianRelationship["SPOUSE"] = "spouse";
7
8
  GuardianRelationship["SIBLING"] = "sibling";
8
9
  GuardianRelationship["GRANDPARENT"] = "grandparent";
9
10
  GuardianRelationship["AUNT"] = "aunt";
@@ -1 +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"}
1
+ {"version":3,"file":"guardian-relationship.enum.js","sourceRoot":"","sources":["../../../../../src/modules/user/enums/guardian-relationship.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAYX;AAZD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,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,EAZW,oBAAoB,oCAApB,oBAAoB,QAY/B"}
@@ -16,8 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dtos/create-user.dto"), exports);
18
18
  __exportStar(require("./dtos/update-user.dto"), exports);
19
- __exportStar(require("./dtos/create-guardian.dto"), exports);
19
+ __exportStar(require("./dtos/guardian.dto"), exports);
20
20
  __exportStar(require("./dtos/create-guardian-relation.dto"), exports);
21
+ __exportStar(require("./dtos/update-guardian-relation-status.dto"), exports);
21
22
  __exportStar(require("./enums/user-status.enum"), exports);
22
23
  __exportStar(require("./enums/guardian-relationship.enum"), exports);
23
24
  __exportStar(require("./enums/guardian-relation-status.enum"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,6DAA2C;AAC3C,sEAAoD;AAEpD,2DAAyC;AACzC,qEAAmD;AACnD,wEAAsD;AAEtD,oDAAkC;AAClC,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,sDAAoC;AACpC,sEAAoD;AACpD,6EAA2D;AAE3D,2DAAyC;AACzC,qEAAmD;AACnD,wEAAsD;AAEtD,oDAAkC;AAClC,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,iEAA+C"}
@@ -13,7 +13,7 @@ import { UserStatus } from '../enums/user-status.enum';
13
13
  import { PASSWORD_ERROR_MESSAGE, PASSWORD_REGEX } from '../../common/constants/password-regex.const';
14
14
  import { Roles } from '../../role';
15
15
  import { Type } from 'class-transformer';
16
- import { CreateGuardianDto } from './create-guardian.dto';
16
+ import { GuardianDto } from './guardian.dto';
17
17
  export class CreateUserDto {
18
18
  }
19
19
  __decorate([
@@ -67,7 +67,7 @@ __decorate([
67
67
  ], CreateUserDto.prototype, "status", void 0);
68
68
  __decorate([
69
69
  ValidateNested({ each: true }),
70
- Type(() => CreateGuardianDto),
70
+ Type(() => GuardianDto),
71
71
  IsOptional(),
72
72
  __metadata("design:type", Array)
73
73
  ], CreateUserDto.prototype, "guardians", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,aAAa,EACb,OAAO,EACP,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,OAAO,aAAa;CAuEzB;AAjEG;IALC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,CAAC,CAAC;IACZ,SAAS,CAAC,EAAE,CAAC;IACb,YAAY,EAAE;;2CACD;AAKd;IAHC,OAAO,EAAE;IACT,UAAU,EAAE;IACZ,SAAS,CAAC,EAAE,CAAC;;4CACC;AAKf;IAHC,aAAa,EAAE;IACf,SAAS,CAAC,EAAE,CAAC;IACb,UAAU,EAAE;;kDACQ;AAKrB;IAHC,OAAO,EAAE;IACT,MAAM,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC7B,aAAa,EAAE;;4CACA;AAMhB;IAJC,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;IACZ,OAAO,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAC5D,UAAU,EAAE;;+CACK;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;6CACG;AAKhB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,EAAE,CAAC;;kDACO;AAIrB;IAFC,MAAM,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;;6CACO;AAKpB;IAHC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAI,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;IAC7B,UAAU,EAAE;;gDACmB;AAKhC;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,UAAU,EAAE;;mDACW;AAIxB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;sDACa;AAI1B;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACc;AAI3B;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;8BACgB,IAAI;iEAAC;AAIlC;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACY;AAIzB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;qDACW"}
1
+ {"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,aAAa,EACb,OAAO,EACP,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM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AAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,UAAU,EAAE;;mDACW;AAIxB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;sDACa;AAI1B;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACc;AAI3B;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;8BACgB,IAAI;iEAAC;AAIlC;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACY;AAIzB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;qDACW"}
@@ -9,36 +9,36 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  };
10
10
  import { IsBoolean, IsEmail, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsPhoneNumber, IsString } from "class-validator";
11
11
  import { GuardianRelationship } from "../enums/guardian-relationship.enum";
12
- export class CreateGuardianDto {
12
+ export class GuardianDto {
13
13
  }
14
14
  __decorate([
15
15
  IsNumber(),
16
16
  IsOptional(),
17
17
  __metadata("design:type", Number)
18
- ], CreateGuardianDto.prototype, "userId", void 0);
18
+ ], GuardianDto.prototype, "userId", void 0);
19
19
  __decorate([
20
20
  IsString(),
21
21
  IsNotEmpty(),
22
22
  __metadata("design:type", String)
23
- ], CreateGuardianDto.prototype, "name", void 0);
23
+ ], GuardianDto.prototype, "name", void 0);
24
24
  __decorate([
25
25
  IsPhoneNumber(),
26
26
  IsNotEmpty(),
27
27
  __metadata("design:type", String)
28
- ], CreateGuardianDto.prototype, "phoneNumber", void 0);
28
+ ], GuardianDto.prototype, "phoneNumber", void 0);
29
29
  __decorate([
30
30
  IsBoolean(),
31
31
  IsOptional(),
32
32
  __metadata("design:type", Boolean)
33
- ], CreateGuardianDto.prototype, "isPrimary", void 0);
33
+ ], GuardianDto.prototype, "isPrimary", void 0);
34
34
  __decorate([
35
35
  IsEnum(GuardianRelationship),
36
36
  IsOptional(),
37
37
  __metadata("design:type", String)
38
- ], CreateGuardianDto.prototype, "relationship", void 0);
38
+ ], GuardianDto.prototype, "relationship", void 0);
39
39
  __decorate([
40
40
  IsEmail(),
41
41
  IsString(),
42
42
  __metadata("design:type", String)
43
- ], CreateGuardianDto.prototype, "email", void 0);
44
- //# sourceMappingURL=create-guardian.dto.js.map
43
+ ], GuardianDto.prototype, "email", void 0);
44
+ //# sourceMappingURL=guardian.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACxH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,OAAO,WAAW;CAwBvB;AArBG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2CACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;yCACC;AAId;IAFC,aAAa,EAAE;IACf,UAAU,EAAE;;gDACQ;AAIrB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;8CACO;AAIpB;IAFC,MAAM,CAAC,oBAAoB,CAAC;IAC5B,UAAU,EAAE;;iDACuB;AAIpC;IAFC,OAAO,EAAE;IACT,QAAQ,EAAE;;0CACI"}
@@ -0,0 +1,19 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsEnum, IsNotEmpty } from "class-validator";
11
+ import { GuardianRelationStatus } from "../enums/guardian-relation-status.enum";
12
+ export class UpdateGuardianRelationStatusDto {
13
+ }
14
+ __decorate([
15
+ IsEnum(GuardianRelationStatus),
16
+ IsNotEmpty(),
17
+ __metadata("design:type", String)
18
+ ], UpdateGuardianRelationStatusDto.prototype, "status", void 0);
19
+ //# sourceMappingURL=update-guardian-relation-status.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-guardian-relation-status.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/update-guardian-relation-status.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,OAAO,+BAA+B;CAI3C;AADC;IAFC,MAAM,CAAC,sBAAsB,CAAC;IAC9B,UAAU,EAAE;;+DACmB"}
@@ -1,6 +1,7 @@
1
1
  export var GuardianRelationship;
2
2
  (function (GuardianRelationship) {
3
3
  GuardianRelationship["PARENT"] = "parent";
4
+ GuardianRelationship["SPOUSE"] = "spouse";
4
5
  GuardianRelationship["SIBLING"] = "sibling";
5
6
  GuardianRelationship["GRANDPARENT"] = "grandparent";
6
7
  GuardianRelationship["AUNT"] = "aunt";
@@ -1 +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
+ {"version":3,"file":"guardian-relationship.enum.js","sourceRoot":"","sources":["../../../../../src/modules/user/enums/guardian-relationship.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAYX;AAZD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,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,EAZW,oBAAoB,KAApB,oBAAoB,QAY/B"}
@@ -1,7 +1,8 @@
1
1
  export * from './dtos/create-user.dto';
2
2
  export * from './dtos/update-user.dto';
3
- export * from './dtos/create-guardian.dto';
3
+ export * from './dtos/guardian.dto';
4
4
  export * from './dtos/create-guardian-relation.dto';
5
+ export * from './dtos/update-guardian-relation-status.dto';
5
6
  export * from './enums/user-status.enum';
6
7
  export * from './enums/guardian-relationship.enum';
7
8
  export * from './enums/guardian-relation-status.enum';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AAEpD,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAE3D,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"}
@@ -1,6 +1,6 @@
1
1
  import { UserStatus } from '../enums/user-status.enum';
2
2
  import { Roles } from '../../role';
3
- import { CreateGuardianDto } from './create-guardian.dto';
3
+ import { GuardianDto } from './guardian.dto';
4
4
  export declare class CreateUserDto {
5
5
  name: string;
6
6
  email: string;
@@ -10,7 +10,7 @@ export declare class CreateUserDto {
10
10
  avatar?: string;
11
11
  designation?: string;
12
12
  status?: UserStatus;
13
- guardians?: CreateGuardianDto[];
13
+ guardians?: GuardianDto[];
14
14
  dependantIds?: number[];
15
15
  isTermsAccepted?: boolean;
16
16
  verificationToken?: string;
@@ -1,5 +1,5 @@
1
1
  import { GuardianRelationship } from "../enums/guardian-relationship.enum";
2
- export declare class CreateGuardianDto {
2
+ export declare class GuardianDto {
3
3
  userId?: number;
4
4
  name: string;
5
5
  phoneNumber: string;
@@ -0,0 +1,4 @@
1
+ import { GuardianRelationStatus } from "../enums/guardian-relation-status.enum";
2
+ export declare class UpdateGuardianRelationStatusDto {
3
+ status: GuardianRelationStatus;
4
+ }
@@ -1,5 +1,6 @@
1
1
  export declare enum GuardianRelationship {
2
2
  PARENT = "parent",
3
+ SPOUSE = "spouse",
3
4
  SIBLING = "sibling",
4
5
  GRANDPARENT = "grandparent",
5
6
  AUNT = "aunt",
@@ -1,7 +1,8 @@
1
1
  export * from './dtos/create-user.dto';
2
2
  export * from './dtos/update-user.dto';
3
- export * from './dtos/create-guardian.dto';
3
+ export * from './dtos/guardian.dto';
4
4
  export * from './dtos/create-guardian-relation.dto';
5
+ export * from './dtos/update-guardian-relation-status.dto';
5
6
  export * from './enums/user-status.enum';
6
7
  export * from './enums/guardian-relationship.enum';
7
8
  export * from './enums/guardian-relation-status.enum';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.74",
3
+ "version": "1.1.75",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwH;AACxH,oFAA2E;AAE3E,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC;AArBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACC;AAId;IAFC,IAAA,+BAAa,GAAE;IACf,IAAA,4BAAU,GAAE;;sDACQ;AAIrB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oDACO;AAIpB;IAFC,IAAA,wBAAM,EAAC,iDAAoB,CAAC;IAC5B,IAAA,4BAAU,GAAE;;uDACuB;AAIpC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,GAAE;;gDACI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACxH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,OAAO,iBAAiB;CAwB7B;AArBG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;iDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACC;AAId;IAFC,aAAa,EAAE;IACf,UAAU,EAAE;;sDACQ;AAIrB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;oDACO;AAIpB;IAFC,MAAM,CAAC,oBAAoB,CAAC;IAC5B,UAAU,EAAE;;uDACuB;AAIpC;IAFC,OAAO,EAAE;IACT,QAAQ,EAAE;;gDACI"}