@likewatt/models 1.108.1 → 1.108.2

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.
@@ -5,19 +5,19 @@ import { Document } from 'mongoose';
5
5
  * - incrément upload DONE (`count`) : ne touche JAMAIS `enabled`/`limit`
6
6
  * Absence de doc = pas d'accès (désactivé par défaut).
7
7
  */
8
- export declare class KoncileOcrTrial {
8
+ export declare class KoncileOcrAccess {
9
9
  _id: string;
10
10
  userId: string;
11
11
  enabled: boolean;
12
12
  limit: number;
13
13
  count: number;
14
14
  }
15
- export type KoncileOcrTrialDocument = KoncileOcrTrial & Document;
16
- export declare const KoncileOcrTrialSchema: import("mongoose").Schema<KoncileOcrTrial, import("mongoose").Model<KoncileOcrTrial, any, any, any, Document<unknown, any, KoncileOcrTrial, any, {}> & KoncileOcrTrial & Required<{
15
+ export type KoncileOcrAccessDocument = KoncileOcrAccess & Document;
16
+ export declare const KoncileOcrAccessSchema: import("mongoose").Schema<KoncileOcrAccess, import("mongoose").Model<KoncileOcrAccess, any, any, any, Document<unknown, any, KoncileOcrAccess, any, {}> & KoncileOcrAccess & Required<{
17
17
  _id: string;
18
18
  }> & {
19
19
  __v: number;
20
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, KoncileOcrTrial, Document<unknown, {}, import("mongoose").FlatRecord<KoncileOcrTrial>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<KoncileOcrTrial> & Required<{
20
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, KoncileOcrAccess, Document<unknown, {}, import("mongoose").FlatRecord<KoncileOcrAccess>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<KoncileOcrAccess> & Required<{
21
21
  _id: string;
22
22
  }> & {
23
23
  __v: number;
@@ -9,7 +9,7 @@ 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.KoncileOcrTrialSchema = exports.KoncileOcrTrial = void 0;
12
+ exports.KoncileOcrAccessSchema = exports.KoncileOcrAccess = void 0;
13
13
  const uuid_1 = require("uuid");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const mongoose_1 = require("@nestjs/mongoose");
@@ -20,9 +20,9 @@ const class_validator_1 = require("class-validator");
20
20
  * - incrément upload DONE (`count`) : ne touche JAMAIS `enabled`/`limit`
21
21
  * Absence de doc = pas d'accès (désactivé par défaut).
22
22
  */
23
- let KoncileOcrTrial = class KoncileOcrTrial {
23
+ let KoncileOcrAccess = class KoncileOcrAccess {
24
24
  };
25
- exports.KoncileOcrTrial = KoncileOcrTrial;
25
+ exports.KoncileOcrAccess = KoncileOcrAccess;
26
26
  __decorate([
27
27
  (0, swagger_1.ApiProperty)({
28
28
  description: '_id généré automatiquement (UUID v4)',
@@ -34,7 +34,7 @@ __decorate([
34
34
  default: () => (0, uuid_1.v4)(),
35
35
  }),
36
36
  __metadata("design:type", String)
37
- ], KoncileOcrTrial.prototype, "_id", void 0);
37
+ ], KoncileOcrAccess.prototype, "_id", void 0);
38
38
  __decorate([
39
39
  (0, swagger_1.ApiProperty)({
40
40
  description: 'Compte PRINCIPAL propriétaire du quota (unique, indexé)',
@@ -43,7 +43,7 @@ __decorate([
43
43
  (0, mongoose_1.Prop)({ type: String, required: true, unique: true, index: true }),
44
44
  (0, class_validator_1.IsString)(),
45
45
  __metadata("design:type", String)
46
- ], KoncileOcrTrial.prototype, "userId", void 0);
46
+ ], KoncileOcrAccess.prototype, "userId", void 0);
47
47
  __decorate([
48
48
  (0, swagger_1.ApiProperty)({
49
49
  description: "Module activé par l'admin (défaut false)",
@@ -53,7 +53,7 @@ __decorate([
53
53
  (0, class_validator_1.IsOptional)(),
54
54
  (0, class_validator_1.IsBoolean)(),
55
55
  __metadata("design:type", Boolean)
56
- ], KoncileOcrTrial.prototype, "enabled", void 0);
56
+ ], KoncileOcrAccess.prototype, "enabled", void 0);
57
57
  __decorate([
58
58
  (0, swagger_1.ApiProperty)({
59
59
  description: "Limite d'imports facturés (surchargeable par client)",
@@ -64,7 +64,7 @@ __decorate([
64
64
  (0, class_validator_1.IsNumber)(),
65
65
  (0, class_validator_1.Min)(0),
66
66
  __metadata("design:type", Number)
67
- ], KoncileOcrTrial.prototype, "limit", void 0);
67
+ ], KoncileOcrAccess.prototype, "limit", void 0);
68
68
  __decorate([
69
69
  (0, swagger_1.ApiProperty)({
70
70
  description: "Nombre d'imports facturés par Koncile (statut DONE)",
@@ -75,14 +75,14 @@ __decorate([
75
75
  (0, class_validator_1.IsNumber)(),
76
76
  (0, class_validator_1.Min)(0),
77
77
  __metadata("design:type", Number)
78
- ], KoncileOcrTrial.prototype, "count", void 0);
79
- exports.KoncileOcrTrial = KoncileOcrTrial = __decorate([
78
+ ], KoncileOcrAccess.prototype, "count", void 0);
79
+ exports.KoncileOcrAccess = KoncileOcrAccess = __decorate([
80
80
  (0, mongoose_1.Schema)({
81
81
  id: false,
82
82
  timestamps: true,
83
- collection: 'koncileocrtrials',
83
+ collection: 'koncileocraccess',
84
84
  toJSON: { virtuals: true, versionKey: false },
85
85
  toObject: { virtuals: true, versionKey: false },
86
86
  })
87
- ], KoncileOcrTrial);
88
- exports.KoncileOcrTrialSchema = mongoose_1.SchemaFactory.createForClass(KoncileOcrTrial);
87
+ ], KoncileOcrAccess);
88
+ exports.KoncileOcrAccessSchema = mongoose_1.SchemaFactory.createForClass(KoncileOcrAccess);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.108.1",
3
+ "version": "1.108.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {