resurgence-data 1.1.42 → 1.1.44
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/biller/biller.dto.d.ts +1 -1
- package/dist/biller/biller.dto.js +2 -1
- package/dist/user/user.d.ts +7 -1
- package/dist/user/user.js +41 -1
- package/package.json +1 -1
- package/src/biller/biller.dto.ts +3 -2
- package/src/user/user.ts +34 -1
@@ -153,7 +153,7 @@ export declare class UpdateBillerDocumentDto extends BaseDTO {
|
|
153
153
|
}
|
154
154
|
export declare class CreateGoLiveRequestDto extends BaseDTO {
|
155
155
|
billerId: string;
|
156
|
-
status
|
156
|
+
status?: string;
|
157
157
|
}
|
158
158
|
export declare class UpdateGoLiveRequestDto extends BaseDTO {
|
159
159
|
id: string;
|
@@ -894,9 +894,10 @@ __decorate([
|
|
894
894
|
(0, swagger_1.ApiProperty)({
|
895
895
|
description: "The status of the go-live request",
|
896
896
|
example: "PENDING",
|
897
|
+
required: false,
|
897
898
|
}),
|
898
|
-
(0, class_validator_1.IsNotEmpty)({ message: "Status must not be empty" }),
|
899
899
|
(0, class_validator_1.IsString)({ message: "Status must be a valid string" }),
|
900
|
+
(0, class_validator_1.IsOptional)(),
|
900
901
|
__metadata("design:type", String)
|
901
902
|
], CreateGoLiveRequestDto.prototype, "status", void 0);
|
902
903
|
class UpdateGoLiveRequestDto extends dto_type_1.BaseDTO {
|
package/dist/user/user.d.ts
CHANGED
@@ -17,6 +17,12 @@ export declare class CreateSupportUserDTO {
|
|
17
17
|
avatarUrl?: string;
|
18
18
|
role: string;
|
19
19
|
}
|
20
|
-
export declare class UpdateUserDTO
|
20
|
+
export declare class UpdateUserDTO {
|
21
21
|
id: string;
|
22
|
+
firstName?: string;
|
23
|
+
lastName?: string;
|
24
|
+
phoneNumber?: string;
|
25
|
+
avatarUrl?: string;
|
26
|
+
corporate?: boolean;
|
27
|
+
role?: string;
|
22
28
|
}
|
package/dist/user/user.js
CHANGED
@@ -112,10 +112,50 @@ __decorate([
|
|
112
112
|
(0, swagger_1.ApiProperty)({ description: "users role", enumName: "ROLE", enum: ROLE }),
|
113
113
|
__metadata("design:type", String)
|
114
114
|
], CreateSupportUserDTO.prototype, "role", void 0);
|
115
|
-
class UpdateUserDTO
|
115
|
+
class UpdateUserDTO {
|
116
116
|
}
|
117
117
|
exports.UpdateUserDTO = UpdateUserDTO;
|
118
118
|
__decorate([
|
119
119
|
(0, class_validator_1.IsUUID)(4, { message: "Please enter a valid user id format" }),
|
120
120
|
__metadata("design:type", String)
|
121
121
|
], UpdateUserDTO.prototype, "id", void 0);
|
122
|
+
__decorate([
|
123
|
+
(0, class_validator_1.IsString)({ message: "First name is required. Please provide it." }),
|
124
|
+
(0, swagger_1.ApiProperty)({ description: "User's first name", required: false }),
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
126
|
+
__metadata("design:type", String)
|
127
|
+
], UpdateUserDTO.prototype, "firstName", void 0);
|
128
|
+
__decorate([
|
129
|
+
(0, class_validator_1.IsString)({ message: "Last name is required. Please provide it." }),
|
130
|
+
(0, swagger_1.ApiProperty)({ description: "User's last name", required: false }),
|
131
|
+
(0, class_validator_1.IsOptional)(),
|
132
|
+
__metadata("design:type", String)
|
133
|
+
], UpdateUserDTO.prototype, "lastName", void 0);
|
134
|
+
__decorate([
|
135
|
+
(0, class_validator_1.IsString)({ message: "Phone number is required. Please enter it." }),
|
136
|
+
(0, swagger_1.ApiProperty)({ description: "User's phone number", required: false }),
|
137
|
+
(0, class_validator_1.IsOptional)(),
|
138
|
+
__metadata("design:type", String)
|
139
|
+
], UpdateUserDTO.prototype, "phoneNumber", void 0);
|
140
|
+
__decorate([
|
141
|
+
(0, class_validator_1.IsOptional)() // Allows the property to be optional
|
142
|
+
,
|
143
|
+
(0, class_validator_1.IsString)({ message: "Please provide a valid link for the avatar (optional)." }),
|
144
|
+
(0, swagger_1.ApiProperty)({ description: "User's profile link", required: false }),
|
145
|
+
(0, class_validator_1.IsOptional)(),
|
146
|
+
__metadata("design:type", String)
|
147
|
+
], UpdateUserDTO.prototype, "avatarUrl", void 0);
|
148
|
+
__decorate([
|
149
|
+
(0, class_validator_1.IsOptional)(),
|
150
|
+
(0, class_validator_1.IsBoolean)({ message: "Corporate should be true or false (optional)." }),
|
151
|
+
(0, swagger_1.ApiProperty)({ description: "Corporate or private user", required: false }),
|
152
|
+
(0, class_validator_1.IsOptional)(),
|
153
|
+
__metadata("design:type", Boolean)
|
154
|
+
], UpdateUserDTO.prototype, "corporate", void 0);
|
155
|
+
__decorate([
|
156
|
+
(0, class_validator_1.IsString)({ message: "Account type is required. Please specify it." }),
|
157
|
+
(0, class_validator_1.IsIn)(account_type_1.accountTypes, { message: "Please select a valid account type" }),
|
158
|
+
(0, swagger_1.ApiProperty)({ description: "users role", enumName: "ROLE", enum: ROLE, required: false }),
|
159
|
+
(0, class_validator_1.IsOptional)(),
|
160
|
+
__metadata("design:type", String)
|
161
|
+
], UpdateUserDTO.prototype, "role", void 0);
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -791,10 +791,11 @@ export class CreateGoLiveRequestDto extends BaseDTO {
|
|
791
791
|
@ApiProperty({
|
792
792
|
description: "The status of the go-live request",
|
793
793
|
example: "PENDING",
|
794
|
+
required: false,
|
794
795
|
})
|
795
|
-
@IsNotEmpty({ message: "Status must not be empty" })
|
796
796
|
@IsString({ message: "Status must be a valid string" })
|
797
|
-
|
797
|
+
@IsOptional()
|
798
|
+
status?: string;
|
798
799
|
}
|
799
800
|
|
800
801
|
export class UpdateGoLiveRequestDto extends BaseDTO {
|
package/src/user/user.ts
CHANGED
@@ -81,7 +81,40 @@ export class CreateSupportUserDTO {
|
|
81
81
|
role: string;
|
82
82
|
}
|
83
83
|
|
84
|
-
export class UpdateUserDTO
|
84
|
+
export class UpdateUserDTO {
|
85
85
|
@IsUUID(4, { message: "Please enter a valid user id format" })
|
86
86
|
id: string;
|
87
|
+
|
88
|
+
@IsString({ message: "First name is required. Please provide it." })
|
89
|
+
@ApiProperty({ description: "User's first name", required: false })
|
90
|
+
@IsOptional()
|
91
|
+
firstName?: string;
|
92
|
+
|
93
|
+
@IsString({ message: "Last name is required. Please provide it." })
|
94
|
+
@ApiProperty({ description: "User's last name", required: false })
|
95
|
+
@IsOptional()
|
96
|
+
lastName?: string;
|
97
|
+
|
98
|
+
@IsString({ message: "Phone number is required. Please enter it." })
|
99
|
+
@ApiProperty({ description: "User's phone number", required: false })
|
100
|
+
@IsOptional()
|
101
|
+
phoneNumber?: string;
|
102
|
+
|
103
|
+
@IsOptional() // Allows the property to be optional
|
104
|
+
@IsString({ message: "Please provide a valid link for the avatar (optional)." })
|
105
|
+
@ApiProperty({ description: "User's profile link", required: false })
|
106
|
+
@IsOptional()
|
107
|
+
avatarUrl?: string;
|
108
|
+
|
109
|
+
@IsOptional()
|
110
|
+
@IsBoolean({ message: "Corporate should be true or false (optional)." })
|
111
|
+
@ApiProperty({ description: "Corporate or private user", required: false })
|
112
|
+
@IsOptional()
|
113
|
+
corporate?: boolean;
|
114
|
+
|
115
|
+
@IsString({ message: "Account type is required. Please specify it." })
|
116
|
+
@IsIn(accountTypes, { message: "Please select a valid account type" })
|
117
|
+
@ApiProperty({ description: "users role", enumName: "ROLE", enum: ROLE, required: false })
|
118
|
+
@IsOptional()
|
119
|
+
role?: string;
|
87
120
|
}
|