@likewatt/models 1.4.1 → 1.4.3

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,6 +1,7 @@
1
1
  import { Document } from 'mongoose';
2
2
  import { Folder } from './internal/folder.model';
3
3
  import { ManagerLicenses } from './internal/manager-licenses';
4
+ import { UsersList } from './internal/users-list';
4
5
  /**
5
6
  * Sous-schéma pour les tags liés au site de l’utilisateur.
6
7
  */
@@ -76,6 +77,7 @@ export declare class User {
76
77
  defaultRates: string[];
77
78
  defaultScenarios: string[];
78
79
  lastname: string;
80
+ usersList?: UsersList;
79
81
  phone?: string;
80
82
  company?: string;
81
83
  organization?: string;
package/dist/core/User.js CHANGED
@@ -16,6 +16,7 @@ const uuid_1 = require("uuid");
16
16
  const class_validator_1 = require("class-validator");
17
17
  const folder_model_1 = require("./internal/folder.model");
18
18
  const manager_licenses_1 = require("./internal/manager-licenses");
19
+ const users_list_1 = require("./internal/users-list");
19
20
  /**
20
21
  * Sous-schéma pour les tags liés au site de l’utilisateur.
21
22
  */
@@ -226,6 +227,12 @@ __decorate([
226
227
  (0, class_validator_1.IsString)(),
227
228
  __metadata("design:type", String)
228
229
  ], User.prototype, "lastname", void 0);
230
+ __decorate([
231
+ (0, swagger_1.ApiProperty)({ type: users_list_1.UsersList }),
232
+ (0, mongoose_1.Prop)({ type: users_list_1.UsersListSchema }),
233
+ (0, class_validator_1.IsObject)(),
234
+ __metadata("design:type", users_list_1.UsersList)
235
+ ], User.prototype, "usersList", void 0);
229
236
  __decorate([
230
237
  (0, swagger_1.ApiProperty)({
231
238
  description: 'Numéro de téléphone',
@@ -0,0 +1,16 @@
1
+ export declare class UsersList {
2
+ status: string;
3
+ email: string;
4
+ uid?: string;
5
+ invitationLinkId?: string;
6
+ sendAt?: Date;
7
+ }
8
+ export declare const UsersListSchema: import("mongoose").Schema<UsersList, import("mongoose").Model<UsersList, any, any, any, import("mongoose").Document<unknown, any, UsersList, any, {}> & UsersList & {
9
+ _id: import("mongoose").Types.ObjectId;
10
+ } & {
11
+ __v: number;
12
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, UsersList, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<UsersList>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<UsersList> & {
13
+ _id: import("mongoose").Types.ObjectId;
14
+ } & {
15
+ __v: number;
16
+ }>;
@@ -0,0 +1,46 @@
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
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UsersListSchema = exports.UsersList = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const class_validator_1 = require("class-validator");
15
+ let UsersList = class UsersList {
16
+ };
17
+ exports.UsersList = UsersList;
18
+ __decorate([
19
+ (0, mongoose_1.Prop)({ required: true }),
20
+ (0, class_validator_1.IsString)(),
21
+ __metadata("design:type", String)
22
+ ], UsersList.prototype, "status", void 0);
23
+ __decorate([
24
+ (0, mongoose_1.Prop)({ required: true }),
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], UsersList.prototype, "email", void 0);
28
+ __decorate([
29
+ (0, mongoose_1.Prop)({ required: false }),
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
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);
43
+ exports.UsersList = UsersList = __decorate([
44
+ (0, mongoose_1.Schema)({ _id: false })
45
+ ], UsersList);
46
+ exports.UsersListSchema = mongoose_1.SchemaFactory.createForClass(UsersList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {