grm-shared-library 1.0.132 → 1.0.134

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.
@@ -11,4 +11,5 @@ export declare const KAFKA_TOPICS: {
11
11
  OTP_VARIFIED: string;
12
12
  OTP_REQUESTED: string;
13
13
  PASSWORD_RESET: string;
14
+ INCIDENT_CREATED: string;
14
15
  };
@@ -17,6 +17,8 @@ exports.KAFKA_TOPICS = {
17
17
  // OTP
18
18
  OTP_VARIFIED: 'otp.validated',
19
19
  OTP_REQUESTED: 'otp.requested',
20
- //Password
21
- PASSWORD_RESET: 'password.reset'
20
+ // Password
21
+ PASSWORD_RESET: 'password.reset',
22
+ // Incident
23
+ INCIDENT_CREATED: 'incident.created',
22
24
  };
@@ -9,7 +9,6 @@ export declare class CreateIncidentDto {
9
9
  appId: IncidentAppId;
10
10
  class: IncidentClass;
11
11
  reporter: IncidentReporterDto;
12
- reporterId?: number;
13
12
  isAnonymous?: boolean;
14
13
  channel: IncidentChannel;
15
14
  categoryId: number;
@@ -38,11 +38,6 @@ __decorate([
38
38
  (0, class_validator_1.IsNotEmpty)(),
39
39
  __metadata("design:type", incident_reporter_dto_1.IncidentReporterDto)
40
40
  ], CreateIncidentDto.prototype, "reporter", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsNumber)(),
43
- (0, class_validator_1.IsOptional)(),
44
- __metadata("design:type", Number)
45
- ], CreateIncidentDto.prototype, "reporterId", void 0);
46
41
  __decorate([
47
42
  (0, class_validator_1.IsBoolean)(),
48
43
  (0, class_validator_1.IsOptional)(),
@@ -1,4 +1,5 @@
1
1
  export declare class IncidentReporterDto {
2
+ id?: number;
2
3
  name: string;
3
4
  phoneNumber?: string;
4
5
  email?: string;
@@ -14,6 +14,11 @@ const class_validator_1 = require("class-validator");
14
14
  class IncidentReporterDto {
15
15
  }
16
16
  exports.IncidentReporterDto = IncidentReporterDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ __metadata("design:type", Number)
21
+ ], IncidentReporterDto.prototype, "id", void 0);
17
22
  __decorate([
18
23
  (0, class_validator_1.IsString)(),
19
24
  (0, class_validator_1.IsNotEmpty)(),
@@ -1,4 +1,5 @@
1
1
  export interface IncidentReporter {
2
+ id?: number;
2
3
  name: string;
3
4
  phoneNumber?: string;
4
5
  email?: string;
@@ -12,7 +12,6 @@ export interface Incident {
12
12
  appId: IncidentAppId;
13
13
  class: IncidentClass;
14
14
  reporter: IncidentReporter;
15
- reporterId?: number;
16
15
  isAnonymous?: boolean;
17
16
  channel: IncidentChannel;
18
17
  categoryId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.0.132",
3
+ "version": "1.0.134",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [