@likewatt/models 1.108.0 → 1.108.1

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.
@@ -6,18 +6,19 @@ import { Document } from 'mongoose';
6
6
  * Absence de doc = pas d'accès (désactivé par défaut).
7
7
  */
8
8
  export declare class KoncileOcrTrial {
9
+ _id: string;
9
10
  userId: string;
10
11
  enabled: boolean;
11
12
  limit: number;
12
13
  count: number;
13
14
  }
14
15
  export type KoncileOcrTrialDocument = KoncileOcrTrial & Document;
15
- export declare const KoncileOcrTrialSchema: import("mongoose").Schema<KoncileOcrTrial, import("mongoose").Model<KoncileOcrTrial, any, any, any, Document<unknown, any, KoncileOcrTrial, any, {}> & KoncileOcrTrial & {
16
- _id: import("mongoose").Types.ObjectId;
17
- } & {
16
+ export declare const KoncileOcrTrialSchema: import("mongoose").Schema<KoncileOcrTrial, import("mongoose").Model<KoncileOcrTrial, any, any, any, Document<unknown, any, KoncileOcrTrial, any, {}> & KoncileOcrTrial & Required<{
17
+ _id: string;
18
+ }> & {
18
19
  __v: number;
19
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, KoncileOcrTrial, Document<unknown, {}, import("mongoose").FlatRecord<KoncileOcrTrial>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<KoncileOcrTrial> & {
20
- _id: import("mongoose").Types.ObjectId;
21
- } & {
20
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, KoncileOcrTrial, Document<unknown, {}, import("mongoose").FlatRecord<KoncileOcrTrial>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<KoncileOcrTrial> & Required<{
21
+ _id: string;
22
+ }> & {
22
23
  __v: number;
23
24
  }>;
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.KoncileOcrTrialSchema = exports.KoncileOcrTrial = void 0;
13
+ const uuid_1 = require("uuid");
13
14
  const swagger_1 = require("@nestjs/swagger");
14
15
  const mongoose_1 = require("@nestjs/mongoose");
15
16
  const class_validator_1 = require("class-validator");
@@ -22,6 +23,18 @@ const class_validator_1 = require("class-validator");
22
23
  let KoncileOcrTrial = class KoncileOcrTrial {
23
24
  };
24
25
  exports.KoncileOcrTrial = KoncileOcrTrial;
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({
28
+ description: '_id généré automatiquement (UUID v4)',
29
+ example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
30
+ }),
31
+ (0, mongoose_1.Prop)({
32
+ type: String,
33
+ required: true,
34
+ default: () => (0, uuid_1.v4)(),
35
+ }),
36
+ __metadata("design:type", String)
37
+ ], KoncileOcrTrial.prototype, "_id", void 0);
25
38
  __decorate([
26
39
  (0, swagger_1.ApiProperty)({
27
40
  description: 'Compte PRINCIPAL propriétaire du quota (unique, indexé)',
@@ -65,6 +78,7 @@ __decorate([
65
78
  ], KoncileOcrTrial.prototype, "count", void 0);
66
79
  exports.KoncileOcrTrial = KoncileOcrTrial = __decorate([
67
80
  (0, mongoose_1.Schema)({
81
+ id: false,
68
82
  timestamps: true,
69
83
  collection: 'koncileocrtrials',
70
84
  toJSON: { virtuals: true, versionKey: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.108.0",
3
+ "version": "1.108.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {