Skip to content

Commit 61487af

Browse files
committed
refactor(common): merge common types & interfaces
1 parent 4cacf4a commit 61487af

File tree

54 files changed

+86
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+86
-163
lines changed

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@domifa/backend",
33
"private": true,
4-
"version": "2.140.5",
4+
"version": "2.141.0",
55
"description": "",
66
"author": "",
77
"license": "MIT",

packages/backend/src/_common/model/_core/ApiMessage.type.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
//@index('./*', f => `export * from '${f.path}'`)
2-
export * from "./ApiMessage.type";
32
export * from "./AppEntity.type";

packages/backend/src/_common/model/_portail-usager/PortailUsagerPublic.type.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import { Telephone } from "./../telephone/Telephone.type";
22
import {
33
UsagerAyantDroit,
44
UsagerDecision,
5-
UsagerLastInteractions,
65
UsagerOptions,
76
UsagerTypeDom,
87
} from "..";
98
import { AppEntity } from "../_core";
10-
import { UsagerRdv, UsagerSexe } from "@domifa/common";
9+
import { UsagerRdv, UsagerSexe, UsagerLastInteraction } from "@domifa/common";
1110

1211
export type PortailUsagerPublic = AppEntity & {
1312
customRef: string; // valeur par défaut: 'ref'
@@ -45,7 +44,7 @@ export type PortailUsagerPublic = AppEntity & {
4544
historique: UsagerDecision[];
4645

4746
// INTERACTIONS
48-
lastInteraction: UsagerLastInteractions;
47+
lastInteraction: UsagerLastInteraction;
4948

5049
options: UsagerOptions;
5150
};

packages/backend/src/_common/model/usager/Usager.type.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ import { AppEntity } from "../_core/AppEntity.type";
22
import { UsagerAyantDroit } from "./UsagerAyantDroit.type";
33
import { UsagerDecision } from "./UsagerDecision.type";
44
import { UsagerImport } from "./UsagerImport.type";
5-
import { UsagerLastInteractions } from "./UsagerLastInteractions.type";
65
import { UsagerNote } from "./UsagerNote.type";
76
import { UsagerOptions } from "./options/UsagerOptions.type";
87

98
import { UsagerTypeDom } from "./UsagerTypeDom.type";
109
import { Telephone } from "../telephone/Telephone.type";
11-
import { UsagerEntretien, UsagerRdv, UsagerSexe } from "@domifa/common";
10+
import {
11+
UsagerLastInteraction,
12+
UsagerEntretien,
13+
UsagerRdv,
14+
UsagerSexe,
15+
} from "@domifa/common";
1216

1317
export type Usager = AppEntity & {
1418
ref: number; // unique par structure
@@ -52,7 +56,7 @@ export type Usager = AppEntity & {
5256
numeroDistribution: string | null;
5357

5458
// INTERACTIONS
55-
lastInteraction: UsagerLastInteractions;
59+
lastInteraction: UsagerLastInteraction;
5660
options: UsagerOptions;
5761

5862
migrated?: boolean;

packages/backend/src/_common/model/usager/UsagerLastInteractions.type.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/backend/src/_common/model/usager/UsagerNote.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UserStructureResume } from "../user-structure/UserStructureResume.type";
1+
import { UserStructureResume } from "@domifa/common";
22

33
export type UsagerNote = {
44
id: number;

packages/backend/src/_common/model/usager/history/UsagerHistoryImport.type.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { UserStructureResume } from "../../user-structure/UserStructureResume.type";
2-
1+
import { UserStructureResume } from "@domifa/common";
32
export type UsagerHistoryImport = {
43
createdAt: Date;
54
createdBy: UserStructureResume;

packages/backend/src/_common/model/usager/history/UsagerHistoryState.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UserStructureResume } from "../../user-structure/UserStructureResume.type";
1+
import { UserStructureResume } from "@domifa/common";
22
import { Usager } from "../Usager.type";
33
import { UsagerHistoryStateCreationEvent } from "./UsagerHistoryStateCreationEvent.type";
44

packages/backend/src/_common/model/usager/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export * from "./UsagerAyantDroit.type";
77
export * from "./UsagerDecision.type";
88
export * from "./UsagerDoc.type";
99
export * from "./UsagerImport.type";
10-
export * from "./UsagerLastInteractions.type";
1110
export * from "./UsagerLight.type";
1211
export * from "./UsagerNote.type";
1312
export * from "./UsagerTypeDom.type";

0 commit comments

Comments
 (0)