resurgence-data 1.1.45 → 1.1.47
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.
@@ -29,3 +29,17 @@ export interface UpdateAuthenticationModel {
|
|
29
29
|
twoFactorEnabled?: boolean;
|
30
30
|
role?: string;
|
31
31
|
}
|
32
|
+
export interface UserEnrollmentRequest {
|
33
|
+
user: {
|
34
|
+
id: string;
|
35
|
+
firstName: string;
|
36
|
+
lastName: string;
|
37
|
+
emailAddress: string;
|
38
|
+
phoneNumber: string;
|
39
|
+
};
|
40
|
+
authentication: {
|
41
|
+
id: string;
|
42
|
+
userId: string;
|
43
|
+
role: string;
|
44
|
+
};
|
45
|
+
}
|
@@ -297,45 +297,53 @@ class CardChargeAuthorizationDto {
|
|
297
297
|
}
|
298
298
|
exports.CardChargeAuthorizationDto = CardChargeAuthorizationDto;
|
299
299
|
__decorate([
|
300
|
+
(0, swagger_1.ApiProperty)({ description: "Transaction reference" }),
|
300
301
|
(0, class_validator_1.IsNotEmpty)({ message: "Transaction reference is required" }),
|
301
302
|
(0, class_validator_1.IsString)({ message: "Transaction reference must be a string" }),
|
302
303
|
__metadata("design:type", String)
|
303
304
|
], CardChargeAuthorizationDto.prototype, "transactionReference", void 0);
|
304
305
|
__decorate([
|
306
|
+
(0, swagger_1.ApiProperty)({ description: "Authorization mode" }),
|
305
307
|
(0, class_validator_1.IsIn)(["pin", "redirect", "avs_noauth"], { message: "Mode must be one of 'pin', 'redirect', 'avs_noauth'" }),
|
306
308
|
__metadata("design:type", String)
|
307
309
|
], CardChargeAuthorizationDto.prototype, "mode", void 0);
|
308
310
|
__decorate([
|
311
|
+
(0, swagger_1.ApiProperty)({ description: "Card PIN", required: false }),
|
309
312
|
(0, class_validator_1.ValidateIf)((o) => o.mode === "pin"),
|
310
313
|
(0, class_validator_1.IsNotEmpty)({ message: "Please enter your card pin" }),
|
311
314
|
(0, class_validator_1.IsString)({ message: "Please enter a 4 digit pin" }),
|
312
315
|
__metadata("design:type", String)
|
313
316
|
], CardChargeAuthorizationDto.prototype, "pin", void 0);
|
314
317
|
__decorate([
|
318
|
+
(0, swagger_1.ApiProperty)({ description: "City for AVS no-auth mode", required: false }),
|
315
319
|
(0, class_validator_1.ValidateIf)((o) => o.mode === "avs_noauth"),
|
316
320
|
(0, class_validator_1.IsNotEmpty)({ message: "City is required for AVS no-auth mode" }),
|
317
321
|
(0, class_validator_1.IsString)({ message: "Please enter your address city" }),
|
318
322
|
__metadata("design:type", String)
|
319
323
|
], CardChargeAuthorizationDto.prototype, "city", void 0);
|
320
324
|
__decorate([
|
325
|
+
(0, swagger_1.ApiProperty)({ description: "Address for AVS no-auth mode", required: false }),
|
321
326
|
(0, class_validator_1.ValidateIf)((o) => o.mode === "avs_noauth"),
|
322
327
|
(0, class_validator_1.IsNotEmpty)({ message: "Address is required for AVS no-auth mode" }),
|
323
328
|
(0, class_validator_1.IsString)({ message: "Please enter your address" }),
|
324
329
|
__metadata("design:type", String)
|
325
330
|
], CardChargeAuthorizationDto.prototype, "address", void 0);
|
326
331
|
__decorate([
|
332
|
+
(0, swagger_1.ApiProperty)({ description: "State for AVS no-auth mode", required: false }),
|
327
333
|
(0, class_validator_1.ValidateIf)((o) => o.mode === "avs_noauth"),
|
328
334
|
(0, class_validator_1.IsNotEmpty)({ message: "State is required for AVS no-auth mode" }),
|
329
335
|
(0, class_validator_1.IsString)({ message: "Please enter your state" }),
|
330
336
|
__metadata("design:type", String)
|
331
337
|
], CardChargeAuthorizationDto.prototype, "state", void 0);
|
332
338
|
__decorate([
|
339
|
+
(0, swagger_1.ApiProperty)({ description: "Country for AVS no-auth mode", required: false }),
|
333
340
|
(0, class_validator_1.ValidateIf)((o) => o.mode === "avs_noauth"),
|
334
341
|
(0, class_validator_1.IsNotEmpty)({ message: "Country is required for AVS no-auth mode" }),
|
335
342
|
(0, class_validator_1.IsString)({ message: "Please enter your country" }),
|
336
343
|
__metadata("design:type", String)
|
337
344
|
], CardChargeAuthorizationDto.prototype, "country", void 0);
|
338
345
|
__decorate([
|
346
|
+
(0, swagger_1.ApiProperty)({ description: "Zipcode for AVS no-auth mode", required: false }),
|
339
347
|
(0, class_validator_1.ValidateIf)((o) => o.mode === "avs_noauth"),
|
340
348
|
(0, class_validator_1.IsNotEmpty)({ message: "Zipcode is required for AVS no-auth mode" }),
|
341
349
|
(0, class_validator_1.IsString)({ message: "Please enter your zip code" }),
|
package/package.json
CHANGED
@@ -32,3 +32,18 @@ export interface UpdateAuthenticationModel {
|
|
32
32
|
twoFactorEnabled?: boolean;
|
33
33
|
role?: string;
|
34
34
|
}
|
35
|
+
|
36
|
+
export interface UserEnrollmentRequest {
|
37
|
+
user: {
|
38
|
+
id: string;
|
39
|
+
firstName: string;
|
40
|
+
lastName: string;
|
41
|
+
emailAddress: string;
|
42
|
+
phoneNumber: string;
|
43
|
+
};
|
44
|
+
authentication: {
|
45
|
+
id: string;
|
46
|
+
userId: string;
|
47
|
+
role: string;
|
48
|
+
};
|
49
|
+
}
|
@@ -239,38 +239,46 @@ export class CardChargeDTO {
|
|
239
239
|
}
|
240
240
|
|
241
241
|
export class CardChargeAuthorizationDto {
|
242
|
+
@ApiProperty({ description: "Transaction reference" })
|
242
243
|
@IsNotEmpty({ message: "Transaction reference is required" })
|
243
244
|
@IsString({ message: "Transaction reference must be a string" })
|
244
245
|
transactionReference: string;
|
245
246
|
|
247
|
+
@ApiProperty({ description: "Authorization mode" })
|
246
248
|
@IsIn(["pin", "redirect", "avs_noauth"], { message: "Mode must be one of 'pin', 'redirect', 'avs_noauth'" })
|
247
249
|
mode: string;
|
248
250
|
|
251
|
+
@ApiProperty({ description: "Card PIN", required: false })
|
249
252
|
@ValidateIf((o) => o.mode === "pin")
|
250
253
|
@IsNotEmpty({ message: "Please enter your card pin" })
|
251
254
|
@IsString({ message: "Please enter a 4 digit pin" })
|
252
255
|
pin?: string;
|
253
256
|
|
257
|
+
@ApiProperty({ description: "City for AVS no-auth mode", required: false })
|
254
258
|
@ValidateIf((o) => o.mode === "avs_noauth")
|
255
259
|
@IsNotEmpty({ message: "City is required for AVS no-auth mode" })
|
256
260
|
@IsString({ message: "Please enter your address city" })
|
257
261
|
city?: string;
|
258
262
|
|
263
|
+
@ApiProperty({ description: "Address for AVS no-auth mode", required: false })
|
259
264
|
@ValidateIf((o) => o.mode === "avs_noauth")
|
260
265
|
@IsNotEmpty({ message: "Address is required for AVS no-auth mode" })
|
261
266
|
@IsString({ message: "Please enter your address" })
|
262
267
|
address?: string;
|
263
268
|
|
269
|
+
@ApiProperty({ description: "State for AVS no-auth mode", required: false })
|
264
270
|
@ValidateIf((o) => o.mode === "avs_noauth")
|
265
271
|
@IsNotEmpty({ message: "State is required for AVS no-auth mode" })
|
266
272
|
@IsString({ message: "Please enter your state" })
|
267
273
|
state?: string;
|
268
274
|
|
275
|
+
@ApiProperty({ description: "Country for AVS no-auth mode", required: false })
|
269
276
|
@ValidateIf((o) => o.mode === "avs_noauth")
|
270
277
|
@IsNotEmpty({ message: "Country is required for AVS no-auth mode" })
|
271
278
|
@IsString({ message: "Please enter your country" })
|
272
279
|
country?: string;
|
273
280
|
|
281
|
+
@ApiProperty({ description: "Zipcode for AVS no-auth mode", required: false })
|
274
282
|
@ValidateIf((o) => o.mode === "avs_noauth")
|
275
283
|
@IsNotEmpty({ message: "Zipcode is required for AVS no-auth mode" })
|
276
284
|
@IsString({ message: "Please enter your zip code" })
|