grm-shared-library 1.1.61 → 1.1.63

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.
@@ -39,21 +39,21 @@ __decorate([
39
39
  __metadata("design:type", Object)
40
40
  ], CreateSMSNotificationDto.prototype, "metadata", void 0);
41
41
  __decorate([
42
- (0, class_validator_1.IsString)(),
42
+ (0, class_validator_1.IsNumber)(),
43
43
  (0, class_validator_1.IsOptional)(),
44
44
  (0, class_validator_1.MaxLength)(100),
45
- __metadata("design:type", String)
45
+ __metadata("design:type", Number)
46
46
  ], CreateSMSNotificationDto.prototype, "incidentId", void 0);
47
47
  __decorate([
48
- (0, class_validator_1.IsString)(),
48
+ (0, class_validator_1.IsNumber)(),
49
49
  (0, class_validator_1.IsOptional)(),
50
50
  (0, class_validator_1.MaxLength)(100),
51
- __metadata("design:type", String)
51
+ __metadata("design:type", Number)
52
52
  ], CreateSMSNotificationDto.prototype, "userId", void 0);
53
53
  __decorate([
54
- (0, class_validator_1.IsString)(),
55
- (0, class_validator_1.IsNotEmpty)(),
54
+ (0, class_validator_1.IsNumber)(),
55
+ (0, class_validator_1.IsOptional)(),
56
56
  (0, class_validator_1.MaxLength)(100),
57
- __metadata("design:type", String)
57
+ __metadata("design:type", Number)
58
58
  ], CreateSMSNotificationDto.prototype, "organizationId", void 0);
59
59
  //# sourceMappingURL=create-sms-notification.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-sms-notification.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms-notification.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiH;AAEjH,MAAa,wBAAwB;CAkCpC;AAlCD,4DAkCC;AA9BG;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4DACL;AAKtB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;0DACI;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,IAAI,CAAC,CAAC,mBAAmB;;;yDACnB;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACoB;AAK/B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;4DACK;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;wDACC;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;gEACS"}
1
+ {"version":3,"file":"create-sms-notification.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms-notification.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2H;AAE3H,MAAa,wBAAwB;CAkCpC;AAlCD,4DAkCC;AA9BG;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4DACL;AAKtB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;0DACI;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,IAAI,CAAC,CAAC,mBAAmB;;;yDACnB;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACoB;AAK/B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;4DACK;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;wDACC;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;gEACS"}
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsArray, IsNotEmpty, IsOptional, IsString, MaxLength, IsObject } from "class-validator";
10
+ import { IsArray, IsNotEmpty, IsOptional, IsString, MaxLength, IsObject, IsNumber } from "class-validator";
11
11
  export class CreateSMSNotificationDto {
12
12
  }
13
13
  __decorate([
@@ -35,21 +35,21 @@ __decorate([
35
35
  __metadata("design:type", Object)
36
36
  ], CreateSMSNotificationDto.prototype, "metadata", void 0);
37
37
  __decorate([
38
- IsString(),
38
+ IsNumber(),
39
39
  IsOptional(),
40
40
  MaxLength(100),
41
- __metadata("design:type", String)
41
+ __metadata("design:type", Number)
42
42
  ], CreateSMSNotificationDto.prototype, "incidentId", void 0);
43
43
  __decorate([
44
- IsString(),
44
+ IsNumber(),
45
45
  IsOptional(),
46
46
  MaxLength(100),
47
- __metadata("design:type", String)
47
+ __metadata("design:type", Number)
48
48
  ], CreateSMSNotificationDto.prototype, "userId", void 0);
49
49
  __decorate([
50
- IsString(),
51
- IsNotEmpty(),
50
+ IsNumber(),
51
+ IsOptional(),
52
52
  MaxLength(100),
53
- __metadata("design:type", String)
53
+ __metadata("design:type", Number)
54
54
  ], CreateSMSNotificationDto.prototype, "organizationId", void 0);
55
55
  //# sourceMappingURL=create-sms-notification.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-sms-notification.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms-notification.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAkB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEjH,MAAM,OAAO,wBAAwB;CAkCpC;AA9BG;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4DACL;AAKtB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,EAAE,CAAC;;0DACI;AAKlB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,IAAI,CAAC,CAAC,mBAAmB;;;yDACnB;AAIjB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;0DACoB;AAK/B;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,CAAC;;4DACK;AAKpB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,CAAC;;wDACC;AAKhB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,CAAC;;gEACS"}
1
+ {"version":3,"file":"create-sms-notification.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms-notification.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAkB,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3H,MAAM,OAAO,wBAAwB;CAkCpC;AA9BG;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4DACL;AAKtB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,EAAE,CAAC;;0DACI;AAKlB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,IAAI,CAAC,CAAC,mBAAmB;;;yDACnB;AAIjB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;0DACoB;AAK/B;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,CAAC;;4DACK;AAKpB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,CAAC;;wDACC;AAKhB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,CAAC;;gEACS"}
@@ -3,7 +3,7 @@ export declare class CreateSMSNotificationDto {
3
3
  senderID: string;
4
4
  message: string;
5
5
  metadata?: Record<string, any>;
6
- incidentId?: string;
7
- userId?: string;
8
- organizationId: string;
6
+ incidentId?: number;
7
+ userId?: number;
8
+ organizationId?: number;
9
9
  }
@@ -5,19 +5,19 @@ export interface SMSNotification {
5
5
  senderID: string;
6
6
  message: string;
7
7
  status: SMSNotificationStatus;
8
- externalId: string;
9
- providerResponse: string;
10
- errorMessage: string;
11
- retryCount: number;
12
- cost: number;
13
- currency: string;
14
- sentAt: string;
15
- deliveredAt: string;
16
- failedAt: string;
17
- createdAt: string;
18
- updatedAt: string;
19
- metadata: Record<string, any>;
20
- incidentId: string;
21
- userId: string;
22
- organizationId: string;
8
+ externalId?: string;
9
+ providerResponse?: string;
10
+ errorMessage?: string;
11
+ retryCount?: number;
12
+ cost?: number;
13
+ currency?: string;
14
+ sentAt?: string;
15
+ deliveredAt?: string;
16
+ failedAt?: string;
17
+ createdAt?: string;
18
+ updatedAt?: string;
19
+ metadata?: Record<string, any>;
20
+ incidentId?: number;
21
+ userId?: number;
22
+ organizationId?: number;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",