@volontariapp/domain-user 2.11.4 → 2.12.0-snap-826108b

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - event.finished transporte awardedImpactScore pour crediter le score d'impact des participants. Ajout du modele ImpactScoreCreditModel (table impact_score_credits) pour dedupliquer le credit par couple (evenement, participant).
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @volontariapp/messaging@2.26.0
13
+ - @volontariapp/database@3.10.9
14
+ - @volontariapp/outbox@0.10.13
15
+
16
+ ## 2.11.5
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies []:
21
+ - @volontariapp/contracts@4.8.0
22
+ - @volontariapp/messaging@2.25.8
23
+ - @volontariapp/database@3.10.8
24
+ - @volontariapp/outbox@0.10.12
25
+
3
26
  ## 2.11.4
4
27
 
5
28
  ### Patch Changes
@@ -0,0 +1,9 @@
1
+ import type { UserModel } from './user.model.js';
2
+ export declare class ImpactScoreCreditModel {
3
+ eventId: string;
4
+ userId: string;
5
+ score: number;
6
+ user?: UserModel;
7
+ createdAt: Date;
8
+ }
9
+ //# sourceMappingURL=impact-score-credit.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"impact-score-credit.model.d.ts","sourceRoot":"","sources":["../../src/models/impact-score-credit.model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAOjD,qBACa,sBAAsB;IAEjC,OAAO,EAAG,MAAM,CAAC;IAGjB,MAAM,EAAG,MAAM,CAAC;IAIhB,KAAK,EAAG,MAAM,CAAC;IAIf,IAAI,CAAC,EAAE,SAAS,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
@@ -0,0 +1,43 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ 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;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryColumn } from 'typeorm';
11
+ let ImpactScoreCreditModel = class ImpactScoreCreditModel {
12
+ eventId;
13
+ userId;
14
+ score;
15
+ user;
16
+ createdAt;
17
+ };
18
+ __decorate([
19
+ PrimaryColumn({ type: 'uuid', name: 'event_id' }),
20
+ __metadata("design:type", String)
21
+ ], ImpactScoreCreditModel.prototype, "eventId", void 0);
22
+ __decorate([
23
+ PrimaryColumn({ type: 'uuid', name: 'user_id' }),
24
+ __metadata("design:type", String)
25
+ ], ImpactScoreCreditModel.prototype, "userId", void 0);
26
+ __decorate([
27
+ Column({ type: 'int' }),
28
+ __metadata("design:type", Number)
29
+ ], ImpactScoreCreditModel.prototype, "score", void 0);
30
+ __decorate([
31
+ ManyToOne('UserModel', { onDelete: 'CASCADE' }),
32
+ JoinColumn({ name: 'user_id' }),
33
+ __metadata("design:type", Function)
34
+ ], ImpactScoreCreditModel.prototype, "user", void 0);
35
+ __decorate([
36
+ CreateDateColumn({ name: 'created_at' }),
37
+ __metadata("design:type", Date)
38
+ ], ImpactScoreCreditModel.prototype, "createdAt", void 0);
39
+ ImpactScoreCreditModel = __decorate([
40
+ Entity('impact_score_credits')
41
+ ], ImpactScoreCreditModel);
42
+ export { ImpactScoreCreditModel };
43
+ //# sourceMappingURL=impact-score-credit.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"impact-score-credit.model.js","sourceRoot":"","sources":["../../src/models/impact-score-credit.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAS1F,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAEjC,OAAO,CAAU;IAGjB,MAAM,CAAU;IAIhB,KAAK,CAAU;IAIf,IAAI,CAAa;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAfC;IADC,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;uDACjC;AAGjB;IADC,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACjC;AAIhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qDACT;AAIf;IAFC,SAAS,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC/C,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;oDACf;AAGjB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;yDAAC;AAhBN,sBAAsB;IADlC,MAAM,CAAC,sBAAsB,CAAC;GAClB,sBAAsB,CAiBlC"}
@@ -3,5 +3,6 @@ export * from './user.model.js';
3
3
  export * from './user-badge.model.js';
4
4
  export * from './badge-progress.model.js';
5
5
  export * from './badge-progress-event.model.js';
6
+ export * from './impact-score-credit.model.js';
6
7
  export * from './mapper.js';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC"}
@@ -3,5 +3,6 @@ export * from './user.model.js';
3
3
  export * from './user-badge.model.js';
4
4
  export * from './badge-progress.model.js';
5
5
  export * from './badge-progress-event.model.js';
6
+ export * from './impact-score-credit.model.js';
6
7
  export * from './mapper.js';
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/domain-user",
3
- "version": "2.11.4",
3
+ "version": "2.12.0-snap-826108b",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -40,14 +40,14 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@volontariapp/auth": "3.3.21",
43
- "@volontariapp/contracts": "4.7.0",
43
+ "@volontariapp/contracts": "4.8.0",
44
44
  "@volontariapp/crypto": "0.3.13",
45
- "@volontariapp/database": "3.10.7",
45
+ "@volontariapp/database": "3.10.9-snap-826108b",
46
46
  "@volontariapp/errors": "0.6.5",
47
47
  "@volontariapp/errors-nest": "0.14.0",
48
48
  "@volontariapp/logger": "0.4.0",
49
- "@volontariapp/messaging": "2.25.7",
50
- "@volontariapp/outbox": "0.10.11",
49
+ "@volontariapp/messaging": "2.26.0-snap-826108b",
50
+ "@volontariapp/outbox": "0.10.13-snap-826108b",
51
51
  "@volontariapp/shared": "0.15.0"
52
52
  },
53
53
  "devDependencies": {