grm-shared-library 1.1.60 → 1.1.61
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.
- package/dist/cjs/modules/sms/dtos/create-sms-notification.dto.js +59 -0
- package/dist/cjs/modules/sms/dtos/create-sms-notification.dto.js.map +1 -0
- package/dist/cjs/modules/sms/dtos/{create-sms.dto.js → create-uwazii-sms.dto.js} +12 -12
- package/dist/cjs/modules/sms/dtos/create-uwazii-sms.dto.js.map +1 -0
- package/dist/cjs/modules/sms/dtos/update-sms-notification.dto.js +7 -0
- package/dist/cjs/modules/sms/dtos/update-sms-notification.dto.js.map +1 -0
- package/dist/cjs/modules/sms/enums/sms-notification-status.enum.js +12 -0
- package/dist/cjs/modules/sms/enums/sms-notification-status.enum.js.map +1 -0
- package/dist/cjs/modules/sms/index.js +5 -1
- package/dist/cjs/modules/sms/index.js.map +1 -1
- package/dist/cjs/modules/sms/interfaces/sms-notification.js +3 -0
- package/dist/cjs/modules/sms/interfaces/sms-notification.js.map +1 -0
- package/dist/esm/modules/sms/dtos/create-sms-notification.dto.js +55 -0
- package/dist/esm/modules/sms/dtos/create-sms-notification.dto.js.map +1 -0
- package/dist/esm/modules/sms/dtos/{create-sms.dto.js → create-uwazii-sms.dto.js} +10 -10
- package/dist/esm/modules/sms/dtos/create-uwazii-sms.dto.js.map +1 -0
- package/dist/esm/modules/sms/dtos/update-sms-notification.dto.js +3 -0
- package/dist/esm/modules/sms/dtos/update-sms-notification.dto.js.map +1 -0
- package/dist/esm/modules/sms/enums/sms-notification-status.enum.js +9 -0
- package/dist/esm/modules/sms/enums/sms-notification-status.enum.js.map +1 -0
- package/dist/esm/modules/sms/index.js +5 -1
- package/dist/esm/modules/sms/index.js.map +1 -1
- package/dist/esm/modules/sms/interfaces/sms-notification.js +2 -0
- package/dist/esm/modules/sms/interfaces/sms-notification.js.map +1 -0
- package/dist/types/modules/sms/dtos/create-sms-notification.dto.d.ts +9 -0
- package/dist/types/modules/sms/dtos/{create-sms.dto.d.ts → create-uwazii-sms.dto.d.ts} +1 -1
- package/dist/types/modules/sms/dtos/update-sms-notification.dto.d.ts +12 -0
- package/dist/types/modules/sms/enums/sms-notification-status.enum.d.ts +7 -0
- package/dist/types/modules/sms/index.d.ts +5 -1
- package/dist/types/modules/sms/interfaces/sms-notification.d.ts +23 -0
- package/package.json +1 -1
- package/dist/cjs/modules/sms/dtos/create-sms.dto.js.map +0 -1
- package/dist/esm/modules/sms/dtos/create-sms.dto.js.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
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.CreateSMSNotificationDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateSMSNotificationDto {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateSMSNotificationDto = CreateSMSNotificationDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ each: true }),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], CreateSMSNotificationDto.prototype, "recipients", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
(0, class_validator_1.MaxLength)(20),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateSMSNotificationDto.prototype, "senderID", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_1.MaxLength)(1600) // SMS length limit
|
|
33
|
+
,
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateSMSNotificationDto.prototype, "message", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsObject)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], CreateSMSNotificationDto.prototype, "metadata", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(100),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateSMSNotificationDto.prototype, "incidentId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.MaxLength)(100),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateSMSNotificationDto.prototype, "userId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
(0, class_validator_1.MaxLength)(100),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateSMSNotificationDto.prototype, "organizationId", void 0);
|
|
59
|
+
//# sourceMappingURL=create-sms-notification.dto.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -9,50 +9,50 @@ 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.
|
|
12
|
+
exports.CreateUWAZIISMSDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class CreateUWAZIISMSDto {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.CreateUWAZIISMSDto = CreateUWAZIISMSDto;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsArray)(),
|
|
19
19
|
(0, class_validator_1.IsString)({ each: true }),
|
|
20
20
|
(0, class_validator_1.IsNotEmpty)(),
|
|
21
21
|
__metadata("design:type", Array)
|
|
22
|
-
],
|
|
22
|
+
], CreateUWAZIISMSDto.prototype, "number", 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
|
-
],
|
|
27
|
+
], CreateUWAZIISMSDto.prototype, "senderID", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsString)(),
|
|
30
30
|
(0, class_validator_1.IsNotEmpty)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], CreateUWAZIISMSDto.prototype, "text", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
35
|
(0, class_validator_1.IsOptional)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
37
|
+
], CreateUWAZIISMSDto.prototype, "type", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, class_validator_1.IsString)(),
|
|
40
40
|
(0, class_validator_1.IsOptional)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
42
|
+
], CreateUWAZIISMSDto.prototype, "beginDate", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, class_validator_1.IsString)(),
|
|
45
45
|
(0, class_validator_1.IsOptional)(),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
|
-
],
|
|
47
|
+
], CreateUWAZIISMSDto.prototype, "beginTime", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, class_validator_1.IsNumber)(),
|
|
50
50
|
(0, class_validator_1.IsOptional)(),
|
|
51
51
|
__metadata("design:type", Number)
|
|
52
|
-
],
|
|
52
|
+
], CreateUWAZIISMSDto.prototype, "lifetime", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, class_validator_1.IsNumber)(),
|
|
55
55
|
(0, class_validator_1.IsOptional)(),
|
|
56
56
|
__metadata("design:type", Boolean)
|
|
57
|
-
],
|
|
58
|
-
//# sourceMappingURL=create-sms.dto.js.map
|
|
57
|
+
], CreateUWAZIISMSDto.prototype, "delivery", void 0);
|
|
58
|
+
//# sourceMappingURL=create-uwazii-sms.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-uwazii-sms.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-uwazii-sms.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AAEtF,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AA7BG;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;kDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACM"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSMSNotificationDto = void 0;
|
|
4
|
+
class UpdateSMSNotificationDto {
|
|
5
|
+
}
|
|
6
|
+
exports.UpdateSMSNotificationDto = UpdateSMSNotificationDto;
|
|
7
|
+
//# sourceMappingURL=update-sms-notification.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-sms-notification.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/update-sms-notification.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,wBAAwB;CAUpC;AAVD,4DAUC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SMSNotificationStatus = void 0;
|
|
4
|
+
var SMSNotificationStatus;
|
|
5
|
+
(function (SMSNotificationStatus) {
|
|
6
|
+
SMSNotificationStatus["PENDING"] = "pending";
|
|
7
|
+
SMSNotificationStatus["SENT"] = "sent";
|
|
8
|
+
SMSNotificationStatus["DELIVERED"] = "delivered";
|
|
9
|
+
SMSNotificationStatus["FAILED"] = "failed";
|
|
10
|
+
SMSNotificationStatus["CANCELLED"] = "cancelled";
|
|
11
|
+
})(SMSNotificationStatus || (exports.SMSNotificationStatus = SMSNotificationStatus = {}));
|
|
12
|
+
//# sourceMappingURL=sms-notification-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms-notification-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/sms/enums/sms-notification-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,sCAAa,CAAA;IACb,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;IACjB,gDAAuB,CAAA;AAC3B,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC"}
|
|
@@ -16,5 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./interfaces/sms-request"), exports);
|
|
18
18
|
__exportStar(require("./interfaces/sms-response"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./interfaces/sms-notification"), exports);
|
|
20
|
+
__exportStar(require("./dtos/create-uwazii-sms.dto"), exports);
|
|
21
|
+
__exportStar(require("./dtos/create-sms-notification.dto"), exports);
|
|
22
|
+
__exportStar(require("./dtos/update-sms-notification.dto"), exports);
|
|
23
|
+
__exportStar(require("./enums/sms-notification-status.enum"), exports);
|
|
20
24
|
//# 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,
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms-notification.js","sourceRoot":"","sources":["../../../../../src/modules/sms/interfaces/sms-notification.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { IsArray, IsNotEmpty, IsOptional, IsString, MaxLength, IsObject } from "class-validator";
|
|
11
|
+
export class CreateSMSNotificationDto {
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsArray(),
|
|
15
|
+
IsString({ each: true }),
|
|
16
|
+
IsNotEmpty({ each: true }),
|
|
17
|
+
__metadata("design:type", Array)
|
|
18
|
+
], CreateSMSNotificationDto.prototype, "recipients", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
IsString(),
|
|
21
|
+
IsNotEmpty(),
|
|
22
|
+
MaxLength(20),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateSMSNotificationDto.prototype, "senderID", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
IsString(),
|
|
27
|
+
IsNotEmpty(),
|
|
28
|
+
MaxLength(1600) // SMS length limit
|
|
29
|
+
,
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateSMSNotificationDto.prototype, "message", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
IsOptional(),
|
|
34
|
+
IsObject(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], CreateSMSNotificationDto.prototype, "metadata", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
IsString(),
|
|
39
|
+
IsOptional(),
|
|
40
|
+
MaxLength(100),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateSMSNotificationDto.prototype, "incidentId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
IsString(),
|
|
45
|
+
IsOptional(),
|
|
46
|
+
MaxLength(100),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateSMSNotificationDto.prototype, "userId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
IsString(),
|
|
51
|
+
IsNotEmpty(),
|
|
52
|
+
MaxLength(100),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CreateSMSNotificationDto.prototype, "organizationId", void 0);
|
|
55
|
+
//# sourceMappingURL=create-sms-notification.dto.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -8,47 +8,47 @@ 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
10
|
import { IsArray, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
|
|
11
|
-
export class
|
|
11
|
+
export class CreateUWAZIISMSDto {
|
|
12
12
|
}
|
|
13
13
|
__decorate([
|
|
14
14
|
IsArray(),
|
|
15
15
|
IsString({ each: true }),
|
|
16
16
|
IsNotEmpty(),
|
|
17
17
|
__metadata("design:type", Array)
|
|
18
|
-
],
|
|
18
|
+
], CreateUWAZIISMSDto.prototype, "number", void 0);
|
|
19
19
|
__decorate([
|
|
20
20
|
IsString(),
|
|
21
21
|
IsNotEmpty(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], CreateUWAZIISMSDto.prototype, "senderID", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
IsString(),
|
|
26
26
|
IsNotEmpty(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], CreateUWAZIISMSDto.prototype, "text", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
IsString(),
|
|
31
31
|
IsOptional(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
33
|
+
], CreateUWAZIISMSDto.prototype, "type", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
IsString(),
|
|
36
36
|
IsOptional(),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
38
|
+
], CreateUWAZIISMSDto.prototype, "beginDate", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
IsString(),
|
|
41
41
|
IsOptional(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
|
-
],
|
|
43
|
+
], CreateUWAZIISMSDto.prototype, "beginTime", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
IsNumber(),
|
|
46
46
|
IsOptional(),
|
|
47
47
|
__metadata("design:type", Number)
|
|
48
|
-
],
|
|
48
|
+
], CreateUWAZIISMSDto.prototype, "lifetime", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
IsNumber(),
|
|
51
51
|
IsOptional(),
|
|
52
52
|
__metadata("design:type", Boolean)
|
|
53
|
-
],
|
|
54
|
-
//# sourceMappingURL=create-sms.dto.js.map
|
|
53
|
+
], CreateUWAZIISMSDto.prototype, "delivery", void 0);
|
|
54
|
+
//# sourceMappingURL=create-uwazii-sms.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-uwazii-sms.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-uwazii-sms.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtF,MAAM,OAAO,kBAAkB;CAiC9B;AA7BG;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;kDACK;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;oDACK;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;gDACC;AAId;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;gDACC;AAId;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;qDACM;AAInB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;qDACM;AAInB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;oDACK;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;oDACM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-sms-notification.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/update-sms-notification.dto.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,wBAAwB;CAUpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var SMSNotificationStatus;
|
|
2
|
+
(function (SMSNotificationStatus) {
|
|
3
|
+
SMSNotificationStatus["PENDING"] = "pending";
|
|
4
|
+
SMSNotificationStatus["SENT"] = "sent";
|
|
5
|
+
SMSNotificationStatus["DELIVERED"] = "delivered";
|
|
6
|
+
SMSNotificationStatus["FAILED"] = "failed";
|
|
7
|
+
SMSNotificationStatus["CANCELLED"] = "cancelled";
|
|
8
|
+
})(SMSNotificationStatus || (SMSNotificationStatus = {}));
|
|
9
|
+
//# sourceMappingURL=sms-notification-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms-notification-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/sms/enums/sms-notification-status.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,sCAAa,CAAA;IACb,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;IACjB,gDAAuB,CAAA;AAC3B,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './interfaces/sms-request';
|
|
2
2
|
export * from './interfaces/sms-response';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './interfaces/sms-notification';
|
|
4
|
+
export * from './dtos/create-uwazii-sms.dto';
|
|
5
|
+
export * from './dtos/create-sms-notification.dto';
|
|
6
|
+
export * from './dtos/update-sms-notification.dto';
|
|
7
|
+
export * from './enums/sms-notification-status.enum';
|
|
4
8
|
//# 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,
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms-notification.js","sourceRoot":"","sources":["../../../../../src/modules/sms/interfaces/sms-notification.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SMSNotificationStatus } from "../enums/sms-notification-status.enum";
|
|
2
|
+
export declare class UpdateSMSNotificationDto {
|
|
3
|
+
status: SMSNotificationStatus;
|
|
4
|
+
externalId?: string;
|
|
5
|
+
providerResponse?: string;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
cost?: number;
|
|
8
|
+
currency?: string;
|
|
9
|
+
sentAt?: Date;
|
|
10
|
+
deliveredAt?: Date;
|
|
11
|
+
failedAt?: Date;
|
|
12
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export * from './interfaces/sms-request';
|
|
2
2
|
export * from './interfaces/sms-response';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './interfaces/sms-notification';
|
|
4
|
+
export * from './dtos/create-uwazii-sms.dto';
|
|
5
|
+
export * from './dtos/create-sms-notification.dto';
|
|
6
|
+
export * from './dtos/update-sms-notification.dto';
|
|
7
|
+
export * from './enums/sms-notification-status.enum';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SMSNotificationStatus } from "../enums/sms-notification-status.enum";
|
|
2
|
+
export interface SMSNotification {
|
|
3
|
+
id: string;
|
|
4
|
+
recipients: string[];
|
|
5
|
+
senderID: string;
|
|
6
|
+
message: string;
|
|
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;
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-sms.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AAEtF,MAAa,YAAY;CAiCxB;AAjCD,oCAiCC;AA7BG;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;4CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0CACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0CACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACM"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-sms.dto.js","sourceRoot":"","sources":["../../../../../src/modules/sms/dtos/create-sms.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtF,MAAM,OAAO,YAAY;CAiCxB;AA7BG;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;4CACK;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACK;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;0CACC;AAId;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;0CACC;AAId;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACM;AAInB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACM;AAInB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACK;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACM"}
|