@intelact/driveup 0.9.45 → 0.9.50

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 (97) hide show
  1. package/lib/common/date.d.ts +9 -0
  2. package/lib/common/date.js +14 -0
  3. package/lib/common/date.js.map +1 -0
  4. package/lib/common/general.dto.d.ts +1 -1
  5. package/lib/common/general.dto.js +2 -3
  6. package/lib/common/general.dto.js.map +1 -1
  7. package/lib/common/index.d.ts +0 -1
  8. package/lib/common/index.js +0 -1
  9. package/lib/common/index.js.map +1 -1
  10. package/lib/company/common/request.status.enum.d.ts +6 -0
  11. package/lib/company/common/request.status.enum.js +11 -0
  12. package/lib/company/common/request.status.enum.js.map +1 -0
  13. package/lib/company/driving/appointment.type.enum.d.ts +4 -0
  14. package/lib/company/driving/appointment.type.enum.js +9 -0
  15. package/lib/company/driving/appointment.type.enum.js.map +1 -0
  16. package/lib/company/driving/exam.status.enum.d.ts +5 -0
  17. package/lib/company/driving/exam.status.enum.js +10 -0
  18. package/lib/company/driving/exam.status.enum.js.map +1 -0
  19. package/lib/company/driving/status.enum.d.ts +5 -0
  20. package/lib/company/driving/status.enum.js +10 -0
  21. package/lib/company/driving/status.enum.js.map +1 -0
  22. package/lib/company/finances/card.model.d.ts +10 -0
  23. package/lib/company/finances/card.model.js +55 -0
  24. package/lib/company/finances/card.model.js.map +1 -0
  25. package/lib/company/finances/priceplan.model.d.ts +19 -0
  26. package/lib/company/finances/priceplan.model.js +95 -0
  27. package/lib/company/finances/priceplan.model.js.map +1 -0
  28. package/lib/company/plan.enum.d.ts +9 -0
  29. package/lib/company/plan.enum.js +15 -0
  30. package/lib/company/plan.enum.js.map +1 -0
  31. package/lib/company/user.model.d.ts +25 -0
  32. package/lib/company/user.model.js +124 -0
  33. package/lib/company/user.model.js.map +1 -0
  34. package/lib/enums/date.d.ts +9 -0
  35. package/lib/enums/date.js +14 -0
  36. package/lib/enums/date.js.map +1 -0
  37. package/lib/enums/finance.d.ts +22 -0
  38. package/lib/enums/finance.js +31 -0
  39. package/lib/enums/finance.js.map +1 -0
  40. package/lib/enums/index.d.ts +1 -0
  41. package/lib/enums/index.js +14 -0
  42. package/lib/enums/index.js.map +1 -0
  43. package/lib/enums/language.d.ts +6 -0
  44. package/lib/enums/language.js +11 -0
  45. package/lib/enums/language.js.map +1 -0
  46. package/lib/enums/notification.d.ts +11 -0
  47. package/lib/enums/notification.js +17 -0
  48. package/lib/enums/notification.js.map +1 -0
  49. package/lib/enums/plan.d.ts +9 -0
  50. package/lib/enums/plan.js +15 -0
  51. package/lib/enums/plan.js.map +1 -0
  52. package/lib/enums/role.d.ts +6 -0
  53. package/lib/enums/role.js +11 -0
  54. package/lib/enums/role.js.map +1 -0
  55. package/lib/enums/score.d.ts +12 -0
  56. package/lib/enums/score.js +18 -0
  57. package/lib/enums/score.js.map +1 -0
  58. package/lib/enums/training.d.ts +19 -0
  59. package/lib/enums/training.js +27 -0
  60. package/lib/enums/training.js.map +1 -0
  61. package/lib/language/language.enum.d.ts +4 -4
  62. package/lib/language/language.enum.js +4 -4
  63. package/lib/notification/index.d.ts +2 -1
  64. package/lib/notification/index.js +2 -1
  65. package/lib/notification/index.js.map +1 -1
  66. package/lib/notification/notification.model.d.ts +3 -2
  67. package/lib/notification/notification.model.js +6 -1
  68. package/lib/notification/notification.model.js.map +1 -1
  69. package/lib/notification/preference.model.d.ts +3 -2
  70. package/lib/notification/preference.model.js +9 -10
  71. package/lib/notification/preference.model.js.map +1 -1
  72. package/lib/support/index.d.ts +1 -0
  73. package/lib/support/index.js +18 -0
  74. package/lib/support/index.js.map +1 -0
  75. package/lib/support/request.dto.d.ts +5 -0
  76. package/lib/support/request.dto.js +39 -0
  77. package/lib/support/request.dto.js.map +1 -0
  78. package/lib/tsconfig.tsbuildinfo +1 -1
  79. package/lib/user/notification/index.d.ts +3 -0
  80. package/lib/user/notification/index.js +20 -0
  81. package/lib/user/notification/index.js.map +1 -0
  82. package/lib/user/notification/notification-preference.model.d.ts +5 -0
  83. package/lib/user/notification/notification-preference.model.js +31 -0
  84. package/lib/user/notification/notification-preference.model.js.map +1 -0
  85. package/lib/user/notification/notification.enum.d.ts +11 -0
  86. package/lib/user/notification/notification.enum.js +17 -0
  87. package/lib/user/notification/notification.enum.js.map +1 -0
  88. package/lib/user/notification/notification.model.d.ts +10 -0
  89. package/lib/user/notification/notification.model.js +53 -0
  90. package/lib/user/notification/notification.model.js.map +1 -0
  91. package/lib/user/profile.dto.d.ts +1 -0
  92. package/lib/user/profile.dto.js +6 -0
  93. package/lib/user/profile.dto.js.map +1 -1
  94. package/package.json +1 -1
  95. package/lib/common/context.d.ts +0 -6
  96. package/lib/common/context.js +0 -11
  97. package/lib/common/context.js.map +0 -1
@@ -0,0 +1,53 @@
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.UserNotification = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const notification_enum_1 = require("./notification.enum");
15
+ class UserNotification {
16
+ id;
17
+ message;
18
+ context;
19
+ type;
20
+ seen;
21
+ link;
22
+ constructor(props) {
23
+ Object.assign(this, props);
24
+ }
25
+ }
26
+ exports.UserNotification = UserNotification;
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ (0, class_transformer_1.Type)(() => Number),
30
+ __metadata("design:type", Number)
31
+ ], UserNotification.prototype, "id", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], UserNotification.prototype, "message", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], UserNotification.prototype, "context", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], UserNotification.prototype, "type", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)(),
46
+ (0, class_transformer_1.Type)(() => Boolean),
47
+ __metadata("design:type", Boolean)
48
+ ], UserNotification.prototype, "seen", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", String)
52
+ ], UserNotification.prototype, "link", void 0);
53
+ //# sourceMappingURL=notification.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../../src/user/notification/notification.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,2DAA4E;AAE5E,MAAa,gBAAgB;IAG5B,EAAE,CAAS;IAGX,OAAO,CAAS;IAGhB,OAAO,CAAsB;IAG7B,IAAI,CAAmB;IAIvB,IAAI,CAAU;IAGd,IAAI,CAAS;IAIb,YAAY,KAAiC;QAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1BD,4CA0BC;AAvBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACR;AAGX;IADC,IAAA,0BAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;iDACoB;AAG7B;IADC,IAAA,0BAAM,GAAE;;8CACc;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;8CACN;AAGd;IADC,IAAA,0BAAM,GAAE;;8CACI"}
@@ -10,5 +10,6 @@ export declare class ChangeProfileDto {
10
10
  }
11
11
  export declare class CloseProfileDto {
12
12
  otp: string;
13
+ type: ProfileType;
13
14
  id: number;
14
15
  }
@@ -45,6 +45,7 @@ __decorate([
45
45
  ], ChangeProfileDto.prototype, "id", void 0);
46
46
  class CloseProfileDto {
47
47
  otp;
48
+ type;
48
49
  id;
49
50
  }
50
51
  exports.CloseProfileDto = CloseProfileDto;
@@ -53,6 +54,11 @@ __decorate([
53
54
  (0, class_validator_1.IsString)(),
54
55
  __metadata("design:type", String)
55
56
  ], CloseProfileDto.prototype, "otp", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsNotEmpty)(),
59
+ (0, class_validator_1.IsEnum)(profile_type_1.ProfileType),
60
+ __metadata("design:type", String)
61
+ ], CloseProfileDto.prototype, "type", void 0);
56
62
  __decorate([
57
63
  (0, class_validator_1.IsNotEmpty)(),
58
64
  (0, class_validator_1.IsNumber)(),
@@ -1 +1 @@
1
- {"version":3,"file":"profile.dto.js","sourceRoot":"","sources":["../../src/user/profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0F;AAC1F,sCAAqC;AACrC,iDAA6C;AAE7C,MAAa,gBAAgB;IAI5B,IAAI,CAAc;IAIlB,QAAQ,CAAW;CACnB;AATD,4CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,0BAAW,CAAC;;8CACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAQ,CAAC;;kDACE;AAGpB,MAAa,gBAAgB;IAI5B,IAAI,CAAc;IAIlB,EAAE,CAAS;CACX;AATD,4CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,0BAAW,CAAC;;8CACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE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intelact/driveup",
3
- "version": "0.9.45",
3
+ "version": "0.9.50",
4
4
  "description": "Driveup Common",
5
5
  "author": "Intelact Solutions Ltd.",
6
6
  "main": "lib/index.js",
@@ -1,6 +0,0 @@
1
- export declare enum Context {
2
- Info = "info",
3
- Error = "error",
4
- Warning = "warning",
5
- Success = "success"
6
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Context = void 0;
4
- var Context;
5
- (function (Context) {
6
- Context["Info"] = "info";
7
- Context["Error"] = "error";
8
- Context["Warning"] = "warning";
9
- Context["Success"] = "success";
10
- })(Context || (exports.Context = Context = {}));
11
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/common/context.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAKX;AALD,WAAY,OAAO;IAClB,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;AACpB,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB"}