@fiado/type-kit 3.32.0 → 3.33.0
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/bin/messagesConnector/dtos/SendMessageRequest.d.ts +20 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.js +118 -0
- package/bin/messagesConnector/dtos/VerifyOtpRequest.d.ts +5 -0
- package/bin/messagesConnector/dtos/VerifyOtpRequest.js +34 -0
- package/bin/messagesConnector/index.d.ts +2 -0
- package/bin/messagesConnector/index.js +2 -0
- package/package.json +1 -1
- package/src/messagesConnector/dtos/SendMessageRequest.ts +23 -0
- package/src/messagesConnector/dtos/VerifyOtpRequest.ts +8 -0
- package/src/messagesConnector/index.ts +2 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DeliveryChannelEnum } from '../../messaging/enums/DeliveryChannelEnum';
|
|
2
|
+
export declare class SendMessageRequest {
|
|
3
|
+
channelType: DeliveryChannelEnum;
|
|
4
|
+
messageType: string;
|
|
5
|
+
directoryId: string;
|
|
6
|
+
typeOfDirectory: string;
|
|
7
|
+
language: string;
|
|
8
|
+
country: string;
|
|
9
|
+
destination?: string;
|
|
10
|
+
var1?: string;
|
|
11
|
+
var2?: string;
|
|
12
|
+
var3?: string;
|
|
13
|
+
var4?: string;
|
|
14
|
+
var5?: string;
|
|
15
|
+
beneficiaryDirectoryId?: string;
|
|
16
|
+
beneficiaryTypeOfDirectoryId?: string;
|
|
17
|
+
options?: Record<string, unknown>;
|
|
18
|
+
referenceMessageId?: string;
|
|
19
|
+
transactionNumber?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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.SendMessageRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const DeliveryChannelEnum_1 = require("../../messaging/enums/DeliveryChannelEnum");
|
|
16
|
+
class SendMessageRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.SendMessageRequest = SendMessageRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsEnum)(DeliveryChannelEnum_1.DeliveryChannelEnum),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SendMessageRequest.prototype, "channelType", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SendMessageRequest.prototype, "messageType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsUUID)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], SendMessageRequest.prototype, "directoryId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], SendMessageRequest.prototype, "typeOfDirectory", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], SendMessageRequest.prototype, "language", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], SendMessageRequest.prototype, "country", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], SendMessageRequest.prototype, "destination", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], SendMessageRequest.prototype, "var1", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], SendMessageRequest.prototype, "var2", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], SendMessageRequest.prototype, "var3", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], SendMessageRequest.prototype, "var4", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_transformer_1.Expose)(),
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_validator_1.IsString)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], SendMessageRequest.prototype, "var5", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
(0, class_validator_1.IsOptional)(),
|
|
92
|
+
(0, class_validator_1.IsUUID)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], SendMessageRequest.prototype, "beneficiaryDirectoryId", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], SendMessageRequest.prototype, "beneficiaryTypeOfDirectoryId", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
|
+
(0, class_validator_1.IsObject)(),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], SendMessageRequest.prototype, "options", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, class_transformer_1.Expose)(),
|
|
109
|
+
(0, class_validator_1.IsOptional)(),
|
|
110
|
+
(0, class_validator_1.IsUUID)(),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], SendMessageRequest.prototype, "referenceMessageId", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_transformer_1.Expose)(),
|
|
115
|
+
(0, class_validator_1.IsOptional)(),
|
|
116
|
+
(0, class_validator_1.IsString)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], SendMessageRequest.prototype, "transactionNumber", void 0);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.VerifyOtpRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class VerifyOtpRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.VerifyOtpRequest = VerifyOtpRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], VerifyOtpRequest.prototype, "directoryId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], VerifyOtpRequest.prototype, "typeOfDirectoryId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], VerifyOtpRequest.prototype, "message", void 0);
|
|
@@ -15,3 +15,5 @@ export * from './dtos/TemplateMessageUpdateRequest';
|
|
|
15
15
|
export * from './dtos/TemplateMessageResponse';
|
|
16
16
|
export * from './dtos/TemplateMessageListResponse';
|
|
17
17
|
export * from './dtos/TemplateMessageListFiltersRequest';
|
|
18
|
+
export * from './dtos/SendMessageRequest';
|
|
19
|
+
export * from './dtos/VerifyOtpRequest';
|
|
@@ -31,3 +31,5 @@ __exportStar(require("./dtos/TemplateMessageUpdateRequest"), exports);
|
|
|
31
31
|
__exportStar(require("./dtos/TemplateMessageResponse"), exports);
|
|
32
32
|
__exportStar(require("./dtos/TemplateMessageListResponse"), exports);
|
|
33
33
|
__exportStar(require("./dtos/TemplateMessageListFiltersRequest"), exports);
|
|
34
|
+
__exportStar(require("./dtos/SendMessageRequest"), exports);
|
|
35
|
+
__exportStar(require("./dtos/VerifyOtpRequest"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
3
|
+
import { DeliveryChannelEnum } from '../../messaging/enums/DeliveryChannelEnum';
|
|
4
|
+
|
|
5
|
+
export class SendMessageRequest {
|
|
6
|
+
@Expose() @IsEnum(DeliveryChannelEnum) channelType!: DeliveryChannelEnum;
|
|
7
|
+
@Expose() @IsString() @IsNotEmpty() messageType!: string;
|
|
8
|
+
@Expose() @IsUUID() directoryId!: string;
|
|
9
|
+
@Expose() @IsString() @IsNotEmpty() typeOfDirectory!: string;
|
|
10
|
+
@Expose() @IsString() @IsNotEmpty() language!: string;
|
|
11
|
+
@Expose() @IsString() @IsNotEmpty() country!: string;
|
|
12
|
+
@Expose() @IsOptional() @IsString() destination?: string;
|
|
13
|
+
@Expose() @IsOptional() @IsString() var1?: string;
|
|
14
|
+
@Expose() @IsOptional() @IsString() var2?: string;
|
|
15
|
+
@Expose() @IsOptional() @IsString() var3?: string;
|
|
16
|
+
@Expose() @IsOptional() @IsString() var4?: string;
|
|
17
|
+
@Expose() @IsOptional() @IsString() var5?: string;
|
|
18
|
+
@Expose() @IsOptional() @IsUUID() beneficiaryDirectoryId?: string;
|
|
19
|
+
@Expose() @IsOptional() @IsString() beneficiaryTypeOfDirectoryId?: string;
|
|
20
|
+
@Expose() @IsOptional() @IsObject() options?: Record<string, unknown>;
|
|
21
|
+
@Expose() @IsOptional() @IsUUID() referenceMessageId?: string;
|
|
22
|
+
@Expose() @IsOptional() @IsString() transactionNumber?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsNotEmpty, IsString, IsUUID } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class VerifyOtpRequest {
|
|
5
|
+
@Expose() @IsUUID() directoryId!: string;
|
|
6
|
+
@Expose() @IsString() @IsNotEmpty() typeOfDirectoryId!: string;
|
|
7
|
+
@Expose() @IsString() @IsNotEmpty() message!: string;
|
|
8
|
+
}
|
|
@@ -15,3 +15,5 @@ export * from './dtos/TemplateMessageUpdateRequest';
|
|
|
15
15
|
export * from './dtos/TemplateMessageResponse';
|
|
16
16
|
export * from './dtos/TemplateMessageListResponse';
|
|
17
17
|
export * from './dtos/TemplateMessageListFiltersRequest';
|
|
18
|
+
export * from './dtos/SendMessageRequest';
|
|
19
|
+
export * from './dtos/VerifyOtpRequest';
|