@likewatt/models 1.4.2 → 1.4.4

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.
@@ -77,7 +77,7 @@ export declare class User {
77
77
  defaultRates: string[];
78
78
  defaultScenarios: string[];
79
79
  lastname: string;
80
- usersList?: UsersList;
80
+ usersList: UsersList[];
81
81
  phone?: string;
82
82
  company?: string;
83
83
  organization?: string;
package/dist/core/User.js CHANGED
@@ -228,10 +228,10 @@ __decorate([
228
228
  __metadata("design:type", String)
229
229
  ], User.prototype, "lastname", void 0);
230
230
  __decorate([
231
- (0, swagger_1.ApiProperty)({ type: users_list_1.UsersList }),
232
- (0, mongoose_1.Prop)({ type: users_list_1.UsersListSchema }),
231
+ (0, swagger_1.ApiProperty)({ type: [users_list_1.UsersList] }),
232
+ (0, mongoose_1.Prop)({ type: [users_list_1.UsersListSchema], required: true, default: [] }),
233
233
  (0, class_validator_1.IsObject)(),
234
- __metadata("design:type", users_list_1.UsersList)
234
+ __metadata("design:type", Array)
235
235
  ], User.prototype, "usersList", void 0);
236
236
  __decorate([
237
237
  (0, swagger_1.ApiProperty)({
@@ -2,6 +2,8 @@ export declare class UsersList {
2
2
  status: string;
3
3
  email: string;
4
4
  uid?: string;
5
+ invitationLinkId?: string;
6
+ sendAt?: Date;
5
7
  }
6
8
  export declare const UsersListSchema: import("mongoose").Schema<UsersList, import("mongoose").Model<UsersList, any, any, any, import("mongoose").Document<unknown, any, UsersList, any, {}> & UsersList & {
7
9
  _id: import("mongoose").Types.ObjectId;
@@ -30,6 +30,16 @@ __decorate([
30
30
  (0, class_validator_1.IsString)(),
31
31
  __metadata("design:type", String)
32
32
  ], UsersList.prototype, "uid", void 0);
33
+ __decorate([
34
+ (0, mongoose_1.Prop)({ required: false }),
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], UsersList.prototype, "invitationLinkId", void 0);
38
+ __decorate([
39
+ (0, mongoose_1.Prop)({ required: false }),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", Date)
42
+ ], UsersList.prototype, "sendAt", void 0);
33
43
  exports.UsersList = UsersList = __decorate([
34
44
  (0, mongoose_1.Schema)({ _id: false })
35
45
  ], UsersList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {