grm-shared-library 1.1.62 → 1.1.64

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 (25) hide show
  1. package/dist/cjs/modules/sms/dtos/create-sms-notification.dto.js +1 -1
  2. package/dist/cjs/modules/sms/dtos/create-sms-options.dto.js +42 -0
  3. package/dist/cjs/modules/sms/dtos/create-sms-options.dto.js.map +1 -0
  4. package/dist/cjs/modules/sms/dtos/create-uwazii-sms-with-options.dto.js +25 -0
  5. package/dist/cjs/modules/sms/dtos/create-uwazii-sms-with-options.dto.js.map +1 -0
  6. package/dist/cjs/modules/sms/index.js +3 -0
  7. package/dist/cjs/modules/sms/index.js.map +1 -1
  8. package/dist/cjs/modules/sms/interfaces/sms-options.js +3 -0
  9. package/dist/cjs/modules/sms/interfaces/sms-options.js.map +1 -0
  10. package/dist/esm/modules/sms/dtos/create-sms-notification.dto.js +1 -1
  11. package/dist/esm/modules/sms/dtos/create-sms-options.dto.js +38 -0
  12. package/dist/esm/modules/sms/dtos/create-sms-options.dto.js.map +1 -0
  13. package/dist/esm/modules/sms/dtos/create-uwazii-sms-with-options.dto.js +21 -0
  14. package/dist/esm/modules/sms/dtos/create-uwazii-sms-with-options.dto.js.map +1 -0
  15. package/dist/esm/modules/sms/index.js +3 -0
  16. package/dist/esm/modules/sms/index.js.map +1 -1
  17. package/dist/esm/modules/sms/interfaces/sms-options.js +2 -0
  18. package/dist/esm/modules/sms/interfaces/sms-options.js.map +1 -0
  19. package/dist/types/modules/sms/dtos/create-sms-notification.dto.d.ts +1 -1
  20. package/dist/types/modules/sms/dtos/create-sms-options.dto.d.ts +7 -0
  21. package/dist/types/modules/sms/dtos/create-uwazii-sms-with-options.dto.d.ts +5 -0
  22. package/dist/types/modules/sms/index.d.ts +3 -0
  23. package/dist/types/modules/sms/interfaces/sms-notification.d.ts +1 -1
  24. package/dist/types/modules/sms/interfaces/sms-options.d.ts +7 -0
  25. package/package.json +1 -1
@@ -52,7 +52,7 @@ __decorate([
52
52
  ], CreateSMSNotificationDto.prototype, "userId", void 0);
53
53
  __decorate([
54
54
  (0, class_validator_1.IsNumber)(),
55
- (0, class_validator_1.IsNotEmpty)(),
55
+ (0, class_validator_1.IsOptional)(),
56
56
  (0, class_validator_1.MaxLength)(100),
57
57
  __metadata("design:type", Number)
58
58
  ], CreateSMSNotificationDto.prototype, "organizationId", void 0);
@@ -0,0 +1,42 @@
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.CreateSMSOptionsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CreateSMSOptionsDto {
15
+ }
16
+ exports.CreateSMSOptionsDto = CreateSMSOptionsDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ __metadata("design:type", Number)
21
+ ], CreateSMSOptionsDto.prototype, "incidentId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", Number)
26
+ ], CreateSMSOptionsDto.prototype, "userId", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNumber)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", Number)
31
+ ], CreateSMSOptionsDto.prototype, "organizationId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ __metadata("design:type", Object)
36
+ ], CreateSMSOptionsDto.prototype, "metadata", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNumber)(),
39
+ (0, class_validator_1.IsOptional)(),
40
+ __metadata("design:type", Number)
41
+ ], CreateSMSOptionsDto.prototype, "chunkSize", void 0);
42
+ //# sourceMappingURL=create-sms-options.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-sms-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,mBAAmB;CAoB/B;AApBD,kDAoBC;AAjBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACkB;AAI/B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACM"}
@@ -0,0 +1,25 @@
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.CreateUWAZIISMSWithOptionsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const create_sms_options_dto_1 = require("./create-sms-options.dto");
15
+ const create_uwazii_sms_dto_1 = require("./create-uwazii-sms.dto");
16
+ const class_transformer_1 = require("class-transformer");
17
+ class CreateUWAZIISMSWithOptionsDto extends create_uwazii_sms_dto_1.CreateUWAZIISMSDto {
18
+ }
19
+ exports.CreateUWAZIISMSWithOptionsDto = CreateUWAZIISMSWithOptionsDto;
20
+ __decorate([
21
+ (0, class_validator_1.ValidateNested)(),
22
+ (0, class_transformer_1.Type)(() => create_sms_options_dto_1.CreateSMSOptionsDto),
23
+ __metadata("design:type", create_sms_options_dto_1.CreateSMSOptionsDto)
24
+ ], CreateUWAZIISMSWithOptionsDto.prototype, "options", void 0);
25
+ //# sourceMappingURL=create-uwazii-sms-with-options.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-uwazii-sms-with-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-uwazii-sms-with-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,qEAA+D;AAC/D,mEAA6D;AAC7D,yDAAyC;AAEzC,MAAa,6BAA8B,SAAQ,0CAAkB;CAIpE;AAJD,sEAIC;AADG;IAFC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4CAAmB,CAAC;8BACtB,4CAAmB;8DAAC"}
@@ -17,8 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./interfaces/sms-request"), exports);
18
18
  __exportStar(require("./interfaces/sms-response"), exports);
19
19
  __exportStar(require("./interfaces/sms-notification"), exports);
20
+ __exportStar(require("./interfaces/sms-options"), exports);
20
21
  __exportStar(require("./dtos/create-uwazii-sms.dto"), exports);
21
22
  __exportStar(require("./dtos/create-sms-notification.dto"), exports);
22
23
  __exportStar(require("./dtos/update-sms-notification.dto"), exports);
24
+ __exportStar(require("./dtos/create-sms-options.dto"), exports);
25
+ __exportStar(require("./dtos/create-uwazii-sms-with-options.dto"), exports);
23
26
  __exportStar(require("./enums/sms-notification-status.enum"), exports);
24
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/sms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/sms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,gEAA8C;AAC9C,4EAA0D;AAC1D,uEAAqD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sms-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms-options.js","sourceRoot":"","sources":["../../../../../src/modules/sms/interfaces/sms-options.ts"],"names":[],"mappings":""}
@@ -48,7 +48,7 @@ __decorate([
48
48
  ], CreateSMSNotificationDto.prototype, "userId", void 0);
49
49
  __decorate([
50
50
  IsNumber(),
51
- IsNotEmpty(),
51
+ IsOptional(),
52
52
  MaxLength(100),
53
53
  __metadata("design:type", Number)
54
54
  ], CreateSMSNotificationDto.prototype, "organizationId", void 0);
@@ -0,0 +1,38 @@
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 { IsNumber, IsObject, IsOptional } from "class-validator";
11
+ export class CreateSMSOptionsDto {
12
+ }
13
+ __decorate([
14
+ IsNumber(),
15
+ IsOptional(),
16
+ __metadata("design:type", Number)
17
+ ], CreateSMSOptionsDto.prototype, "incidentId", void 0);
18
+ __decorate([
19
+ IsNumber(),
20
+ IsOptional(),
21
+ __metadata("design:type", Number)
22
+ ], CreateSMSOptionsDto.prototype, "userId", void 0);
23
+ __decorate([
24
+ IsNumber(),
25
+ IsOptional(),
26
+ __metadata("design:type", Number)
27
+ ], CreateSMSOptionsDto.prototype, "organizationId", void 0);
28
+ __decorate([
29
+ IsObject(),
30
+ IsOptional(),
31
+ __metadata("design:type", Object)
32
+ ], CreateSMSOptionsDto.prototype, "metadata", void 0);
33
+ __decorate([
34
+ IsNumber(),
35
+ IsOptional(),
36
+ __metadata("design:type", Number)
37
+ ], CreateSMSOptionsDto.prototype, "chunkSize", void 0);
38
+ //# sourceMappingURL=create-sms-options.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-sms-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,OAAO,mBAAmB;CAoB/B;AAjBG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;uDACO;AAIpB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;mDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACW;AAIxB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;qDACkB;AAI/B;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACM"}
@@ -0,0 +1,21 @@
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 { ValidateNested } from "class-validator";
11
+ import { CreateSMSOptionsDto } from "./create-sms-options.dto";
12
+ import { CreateUWAZIISMSDto } from "./create-uwazii-sms.dto";
13
+ import { Type } from "class-transformer";
14
+ export class CreateUWAZIISMSWithOptionsDto extends CreateUWAZIISMSDto {
15
+ }
16
+ __decorate([
17
+ ValidateNested(),
18
+ Type(() => CreateSMSOptionsDto),
19
+ __metadata("design:type", CreateSMSOptionsDto)
20
+ ], CreateUWAZIISMSWithOptionsDto.prototype, "options", void 0);
21
+ //# sourceMappingURL=create-uwazii-sms-with-options.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-uwazii-sms-with-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-uwazii-sms-with-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,OAAO,6BAA8B,SAAQ,kBAAkB;CAIpE;AADG;IAFC,cAAc,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;8BACtB,mBAAmB;8DAAC"}
@@ -1,8 +1,11 @@
1
1
  export * from './interfaces/sms-request';
2
2
  export * from './interfaces/sms-response';
3
3
  export * from './interfaces/sms-notification';
4
+ export * from './interfaces/sms-options';
4
5
  export * from './dtos/create-uwazii-sms.dto';
5
6
  export * from './dtos/create-sms-notification.dto';
6
7
  export * from './dtos/update-sms-notification.dto';
8
+ export * from './dtos/create-sms-options.dto';
9
+ export * from './dtos/create-uwazii-sms-with-options.dto';
7
10
  export * from './enums/sms-notification-status.enum';
8
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/sms/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/sms/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sms-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms-options.js","sourceRoot":"","sources":["../../../../../src/modules/sms/interfaces/sms-options.ts"],"names":[],"mappings":""}
@@ -5,5 +5,5 @@ export declare class CreateSMSNotificationDto {
5
5
  metadata?: Record<string, any>;
6
6
  incidentId?: number;
7
7
  userId?: number;
8
- organizationId: number;
8
+ organizationId?: number;
9
9
  }
@@ -0,0 +1,7 @@
1
+ export declare class CreateSMSOptionsDto {
2
+ incidentId?: number;
3
+ userId?: number;
4
+ organizationId?: number;
5
+ metadata?: Record<string, any>;
6
+ chunkSize?: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { CreateSMSOptionsDto } from "./create-sms-options.dto";
2
+ import { CreateUWAZIISMSDto } from "./create-uwazii-sms.dto";
3
+ export declare class CreateUWAZIISMSWithOptionsDto extends CreateUWAZIISMSDto {
4
+ options?: CreateSMSOptionsDto;
5
+ }
@@ -1,7 +1,10 @@
1
1
  export * from './interfaces/sms-request';
2
2
  export * from './interfaces/sms-response';
3
3
  export * from './interfaces/sms-notification';
4
+ export * from './interfaces/sms-options';
4
5
  export * from './dtos/create-uwazii-sms.dto';
5
6
  export * from './dtos/create-sms-notification.dto';
6
7
  export * from './dtos/update-sms-notification.dto';
8
+ export * from './dtos/create-sms-options.dto';
9
+ export * from './dtos/create-uwazii-sms-with-options.dto';
7
10
  export * from './enums/sms-notification-status.enum';
@@ -19,5 +19,5 @@ export interface SMSNotification {
19
19
  metadata?: Record<string, any>;
20
20
  incidentId?: number;
21
21
  userId?: number;
22
- organizationId: number;
22
+ organizationId?: number;
23
23
  }
@@ -0,0 +1,7 @@
1
+ export interface SMSOptions {
2
+ incidentId?: number;
3
+ userId?: number;
4
+ organizationId?: number;
5
+ metadata?: Record<string, any>;
6
+ chunkSize?: number;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.62",
3
+ "version": "1.1.64",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",