@dative-gpi/foundation-shared-domain 1.0.166 → 1.0.167-address
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.
|
@@ -3,6 +3,7 @@ import { PermissionInfos } from "../permissions/permissionInfos";
|
|
|
3
3
|
import type { OrganisationInfosDTO } from "./organisationInfos";
|
|
4
4
|
import { OrganisationInfos } from "./organisationInfos";
|
|
5
5
|
import type { DashboardType } from "../../enums/dashboards";
|
|
6
|
+
import type { AddressDTO } from '@/shared/foundation-shared-domain/models/locations';
|
|
6
7
|
|
|
7
8
|
export class OrganisationDetails extends OrganisationInfos {
|
|
8
9
|
code: string;
|
|
@@ -43,6 +44,7 @@ export interface OrganisationDetailsDTO extends OrganisationInfosDTO {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
export interface UpdateOrganisationDTO {
|
|
47
|
+
address: AddressDTO | null;
|
|
46
48
|
imageId: string | null;
|
|
47
49
|
image: string | null;
|
|
48
50
|
label: string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { Address, type AddressDTO } from '@/shared/foundation-shared-domain/models/locations';
|
|
2
|
+
|
|
1
3
|
export class OrganisationInfos {
|
|
2
4
|
id: string;
|
|
3
5
|
organisationTypeId: string;
|
|
4
6
|
imageId: string | null;
|
|
5
7
|
label: string;
|
|
8
|
+
address: Address | null;
|
|
6
9
|
userOrganisationsCount: number;
|
|
7
10
|
adminId: string | null;
|
|
8
11
|
adminName: string | null;
|
|
@@ -13,6 +16,7 @@ export class OrganisationInfos {
|
|
|
13
16
|
this.organisationTypeId = params.organisationTypeId;
|
|
14
17
|
this.imageId = params.imageId;
|
|
15
18
|
this.label = params.label;
|
|
19
|
+
this.address = params.address ? new Address(params.address) : null;
|
|
16
20
|
this.userOrganisationsCount = params.userOrganisationsCount;
|
|
17
21
|
this.adminId = params.adminId;
|
|
18
22
|
this.adminName = params.adminName;
|
|
@@ -25,6 +29,7 @@ export interface OrganisationInfosDTO {
|
|
|
25
29
|
organisationTypeId: string;
|
|
26
30
|
imageId: string | null;
|
|
27
31
|
label: string;
|
|
32
|
+
address?: AddressDTO;
|
|
28
33
|
userOrganisationsCount: number;
|
|
29
34
|
adminId: string | null;
|
|
30
35
|
adminName: string | null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.167-address",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"date-fns": "^3.6.0"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "79b2c8fe9e4c7ac46ff677fb20914857aeedaee5"
|
|
16
16
|
}
|