grm-shared-library 1.1.59 → 1.1.60
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.dto.js +58 -0
- package/dist/cjs/modules/sms/dtos/create-sms.dto.js.map +1 -0
- package/dist/cjs/modules/sms/index.js +1 -0
- package/dist/cjs/modules/sms/index.js.map +1 -1
- package/dist/esm/modules/sms/dtos/create-sms.dto.js +54 -0
- package/dist/esm/modules/sms/dtos/create-sms.dto.js.map +1 -0
- package/dist/esm/modules/sms/index.js +1 -0
- package/dist/esm/modules/sms/index.js.map +1 -1
- package/dist/types/modules/sms/dtos/create-sms.dto.d.ts +10 -0
- package/dist/types/modules/sms/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
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.CreateSMSDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateSMSDto {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateSMSDto = CreateSMSDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], CreateSMSDto.prototype, "number", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateSMSDto.prototype, "senderID", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateSMSDto.prototype, "text", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateSMSDto.prototype, "type", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateSMSDto.prototype, "beginDate", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateSMSDto.prototype, "beginTime", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsNumber)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], CreateSMSDto.prototype, "lifetime", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], CreateSMSDto.prototype, "delivery", void 0);
|
|
58
|
+
//# sourceMappingURL=create-sms.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -16,4 +16,5 @@ 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("./dtos/create-sms.dto"), exports);
|
|
19
20
|
//# 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"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/sms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,wDAAsC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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, IsNumber, IsOptional, IsString } from "class-validator";
|
|
11
|
+
export class CreateSMSDto {
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsArray(),
|
|
15
|
+
IsString({ each: true }),
|
|
16
|
+
IsNotEmpty(),
|
|
17
|
+
__metadata("design:type", Array)
|
|
18
|
+
], CreateSMSDto.prototype, "number", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
IsString(),
|
|
21
|
+
IsNotEmpty(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateSMSDto.prototype, "senderID", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsString(),
|
|
26
|
+
IsNotEmpty(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateSMSDto.prototype, "text", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
IsString(),
|
|
31
|
+
IsOptional(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateSMSDto.prototype, "type", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsString(),
|
|
36
|
+
IsOptional(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateSMSDto.prototype, "beginDate", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsString(),
|
|
41
|
+
IsOptional(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateSMSDto.prototype, "beginTime", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsNumber(),
|
|
46
|
+
IsOptional(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], CreateSMSDto.prototype, "lifetime", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
IsNumber(),
|
|
51
|
+
IsOptional(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], CreateSMSDto.prototype, "delivery", void 0);
|
|
54
|
+
//# sourceMappingURL=create-sms.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
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,uBAAuB,CAAC"}
|