resurgence-data 1.0.40 → 1.0.42
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.
@@ -1136,6 +1136,15 @@ __decorate([
|
|
1136
1136
|
(0, class_validator_1.IsString)({ message: "ID must be a valid string" }),
|
1137
1137
|
__metadata("design:type", String)
|
1138
1138
|
], UpdateCustomerDto.prototype, "id", void 0);
|
1139
|
+
__decorate([
|
1140
|
+
(0, swagger_1.ApiProperty)({
|
1141
|
+
description: "The ID of the biller",
|
1142
|
+
example: "550e8400-e29b-41d4-a716-446655440000",
|
1143
|
+
}),
|
1144
|
+
(0, class_validator_1.IsNotEmpty)({ message: "Biller ID must not be empty" }),
|
1145
|
+
(0, class_validator_1.IsString)({ message: "Biller ID must be a valid string" }),
|
1146
|
+
__metadata("design:type", String)
|
1147
|
+
], UpdateCustomerDto.prototype, "billerId", void 0);
|
1139
1148
|
__decorate([
|
1140
1149
|
(0, swagger_1.ApiProperty)({
|
1141
1150
|
description: "The name of the customer",
|
@@ -1,2 +1,39 @@
|
|
1
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
|
+
};
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.LoginResponse = exports.GeneralResponseDTO = void 0;
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
14
|
+
class GeneralResponseDTO {
|
15
|
+
}
|
16
|
+
exports.GeneralResponseDTO = GeneralResponseDTO;
|
17
|
+
__decorate([
|
18
|
+
(0, swagger_1.ApiProperty)({ description: "message" }),
|
19
|
+
__metadata("design:type", String)
|
20
|
+
], GeneralResponseDTO.prototype, "message", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, swagger_1.ApiProperty)({ description: "data response when necessary", required: false }),
|
23
|
+
__metadata("design:type", Object)
|
24
|
+
], GeneralResponseDTO.prototype, "data", void 0);
|
25
|
+
class LoginResponse {
|
26
|
+
}
|
27
|
+
exports.LoginResponse = LoginResponse;
|
28
|
+
__decorate([
|
29
|
+
(0, swagger_1.ApiProperty)({ description: "token" }),
|
30
|
+
__metadata("design:type", String)
|
31
|
+
], LoginResponse.prototype, "token", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, swagger_1.ApiProperty)({ description: "Whether the login has MFA", required: false }),
|
34
|
+
__metadata("design:type", Boolean)
|
35
|
+
], LoginResponse.prototype, "hasMFA", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, swagger_1.ApiProperty)({ description: "message", required: false }),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], LoginResponse.prototype, "message", void 0);
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -1009,6 +1009,14 @@ export class UpdateCustomerDto extends BaseDTO {
|
|
1009
1009
|
@IsString({ message: "ID must be a valid string" })
|
1010
1010
|
id: string;
|
1011
1011
|
|
1012
|
+
@ApiProperty({
|
1013
|
+
description: "The ID of the biller",
|
1014
|
+
example: "550e8400-e29b-41d4-a716-446655440000",
|
1015
|
+
})
|
1016
|
+
@IsNotEmpty({ message: "Biller ID must not be empty" })
|
1017
|
+
@IsString({ message: "Biller ID must be a valid string" })
|
1018
|
+
billerId?: string;
|
1019
|
+
|
1012
1020
|
@ApiProperty({
|
1013
1021
|
description: "The name of the customer",
|
1014
1022
|
example: "Jane Smith",
|
@@ -1,7 +1,17 @@
|
|
1
|
-
|
1
|
+
import { ApiProperty } from "@nestjs/swagger";
|
2
|
+
|
3
|
+
export class GeneralResponseDTO {
|
4
|
+
@ApiProperty({ description: "message" })
|
2
5
|
message: string;
|
6
|
+
@ApiProperty({ description: "data response when necessary", required: false })
|
7
|
+
data?: any;
|
3
8
|
}
|
4
9
|
|
5
|
-
export
|
10
|
+
export class LoginResponse {
|
11
|
+
@ApiProperty({ description: "token" })
|
6
12
|
token: string;
|
13
|
+
@ApiProperty({ description: "Whether the login has MFA", required: false })
|
14
|
+
hasMFA?: boolean;
|
15
|
+
@ApiProperty({ description: "message", required: false })
|
16
|
+
message?: string;
|
7
17
|
}
|