resurgence-data 1.1.40 → 1.1.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.
@@ -1,8 +1,6 @@
1
1
  export interface InviteCreateModel {
2
2
  userId: string;
3
3
  emailAddress: string;
4
- firstName: string;
5
- lastName: string;
6
4
  billerId: string;
7
5
  token: string;
8
6
  status?: string;
@@ -1,6 +1,4 @@
1
1
  export declare class InviteRequestDTO {
2
- firstName: string;
3
- lastName: string;
4
2
  emailAddress: string;
5
3
  role: string;
6
4
  billerId: string;
@@ -16,3 +14,7 @@ export declare class AcceptInviteInviteDTO {
16
14
  export declare class RevokeInviteDTO {
17
15
  id: string;
18
16
  }
17
+ export declare class RevokeUserAccessDTO {
18
+ billerId: string;
19
+ userId: string;
20
+ }
@@ -9,23 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RevokeInviteDTO = exports.AcceptInviteInviteDTO = exports.InviteRequestDTO = void 0;
12
+ exports.RevokeUserAccessDTO = exports.RevokeInviteDTO = exports.AcceptInviteInviteDTO = exports.InviteRequestDTO = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const account_type_1 = require("../types/account.type");
15
15
  const swagger_1 = require("@nestjs/swagger");
16
16
  class InviteRequestDTO {
17
17
  }
18
18
  exports.InviteRequestDTO = InviteRequestDTO;
19
- __decorate([
20
- (0, class_validator_1.IsString)({ message: "Could you provide your invitee's first name?" }),
21
- (0, swagger_1.ApiProperty)({ description: "First name of the invitee" }),
22
- __metadata("design:type", String)
23
- ], InviteRequestDTO.prototype, "firstName", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsString)({ message: "Could you provide your invitee's last name?" }),
26
- (0, swagger_1.ApiProperty)({ description: "Last name of the invitee" }),
27
- __metadata("design:type", String)
28
- ], InviteRequestDTO.prototype, "lastName", void 0);
29
19
  __decorate([
30
20
  (0, class_validator_1.IsEmail)(undefined, { message: "Hmm, that doesn't look like a valid email. Could you double-check it?" }),
31
21
  (0, class_validator_1.IsString)({ message: "We need your invitee's email address. Please provide it." }),
@@ -90,3 +80,16 @@ __decorate([
90
80
  (0, swagger_1.ApiProperty)({ description: "ID of the invite" }),
91
81
  __metadata("design:type", String)
92
82
  ], RevokeInviteDTO.prototype, "id", void 0);
83
+ class RevokeUserAccessDTO {
84
+ }
85
+ exports.RevokeUserAccessDTO = RevokeUserAccessDTO;
86
+ __decorate([
87
+ (0, class_validator_1.IsUUID)(4, { message: "Please select a biller id." }),
88
+ (0, swagger_1.ApiProperty)({ description: "Biller id " }),
89
+ __metadata("design:type", String)
90
+ ], RevokeUserAccessDTO.prototype, "billerId", void 0);
91
+ __decorate([
92
+ (0, class_validator_1.IsUUID)(4, { message: "Please select user id to revoke." }),
93
+ (0, swagger_1.ApiProperty)({ description: "user ID ro revoke" }),
94
+ __metadata("design:type", String)
95
+ ], RevokeUserAccessDTO.prototype, "userId", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.40",
3
+ "version": "1.1.42",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -1,8 +1,6 @@
1
1
  export interface InviteCreateModel {
2
2
  userId: string;
3
3
  emailAddress: string;
4
- firstName: string;
5
- lastName: string;
6
4
  billerId: string;
7
5
  token: string;
8
6
  status?: string;
@@ -3,14 +3,6 @@ import { accountTypes } from "../types/account.type";
3
3
  import { ApiProperty } from "@nestjs/swagger";
4
4
 
5
5
  export class InviteRequestDTO {
6
- @IsString({ message: "Could you provide your invitee's first name?" })
7
- @ApiProperty({ description: "First name of the invitee" })
8
- firstName: string;
9
-
10
- @IsString({ message: "Could you provide your invitee's last name?" })
11
- @ApiProperty({ description: "Last name of the invitee" })
12
- lastName: string;
13
-
14
6
  @IsEmail(undefined, { message: "Hmm, that doesn't look like a valid email. Could you double-check it?" })
15
7
  @IsString({ message: "We need your invitee's email address. Please provide it." })
16
8
  @ApiProperty({ description: "Email address of the invitee" })
@@ -63,3 +55,11 @@ export class RevokeInviteDTO {
63
55
  @ApiProperty({ description: "ID of the invite" })
64
56
  id: string;
65
57
  }
58
+ export class RevokeUserAccessDTO {
59
+ @IsUUID(4, { message: "Please select a biller id." })
60
+ @ApiProperty({ description: "Biller id " })
61
+ billerId: string;
62
+ @IsUUID(4, { message: "Please select user id to revoke." })
63
+ @ApiProperty({ description: "user ID ro revoke" })
64
+ userId: string;
65
+ }