@hed-hog/contact 0.0.28 → 0.0.31
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/dist/address-type/address-type.controller.d.ts +1 -1
- package/dist/address-type/address-type.service.d.ts +1 -1
- package/dist/contact-type/contact-type.controller.d.ts +1 -1
- package/dist/contact-type/contact-type.service.d.ts +1 -1
- package/dist/contact.service.d.ts +159 -7
- package/dist/contact.service.d.ts.map +1 -1
- package/dist/document-type/document-type.controller.d.ts +1 -1
- package/dist/document-type/document-type.service.d.ts +1 -1
- package/dist/person/address/address.controller.d.ts +28 -4
- package/dist/person/address/address.controller.d.ts.map +1 -1
- package/dist/person/address/address.service.d.ts +28 -4
- package/dist/person/address/address.service.d.ts.map +1 -1
- package/dist/person/contact/contact.controller.d.ts +18 -4
- package/dist/person/contact/contact.controller.d.ts.map +1 -1
- package/dist/person/contact/contact.service.d.ts +18 -4
- package/dist/person/contact/contact.service.d.ts.map +1 -1
- package/dist/person/document/document.controller.d.ts +16 -4
- package/dist/person/document/document.controller.d.ts.map +1 -1
- package/dist/person/document/document.service.d.ts +16 -4
- package/dist/person/document/document.service.d.ts.map +1 -1
- package/dist/person/person-company/person-company.controller.d.ts +15 -3
- package/dist/person/person-company/person-company.controller.d.ts.map +1 -1
- package/dist/person/person-company/person-company.service.d.ts +15 -3
- package/dist/person/person-company/person-company.service.d.ts.map +1 -1
- package/dist/person/person-individual/person-individual.controller.d.ts +15 -3
- package/dist/person/person-individual/person-individual.controller.d.ts.map +1 -1
- package/dist/person/person-individual/person-individual.service.d.ts +15 -3
- package/dist/person/person-individual/person-individual.service.d.ts.map +1 -1
- package/dist/person/person-metadata/person-metadata.controller.d.ts +16 -4
- package/dist/person/person-metadata/person-metadata.controller.d.ts.map +1 -1
- package/dist/person/person-metadata/person-metadata.service.d.ts +16 -4
- package/dist/person/person-metadata/person-metadata.service.d.ts.map +1 -1
- package/dist/person/person-relation/person-relation.controller.d.ts +28 -4
- package/dist/person/person-relation/person-relation.controller.d.ts.map +1 -1
- package/dist/person/person-relation/person-relation.service.d.ts +28 -4
- package/dist/person/person-relation/person-relation.service.d.ts.map +1 -1
- package/dist/person/person.controller.d.ts +27 -9
- package/dist/person/person.controller.d.ts.map +1 -1
- package/dist/person/person.service.d.ts +27 -9
- package/dist/person/person.service.d.ts.map +1 -1
- package/dist/person-relation-type/person-relation-type.controller.d.ts +1 -1
- package/dist/person-relation-type/person-relation-type.service.d.ts +1 -1
- package/hedhog/table/person.yaml +1 -0
- package/package.json +1 -1
|
@@ -17,6 +17,6 @@ export declare class PersonAddressTypeController {
|
|
|
17
17
|
get(id: number): Promise<any>;
|
|
18
18
|
create(data: CreateDTO): Promise<any>;
|
|
19
19
|
update(id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
-
delete(data: DeleteDTO): Promise<
|
|
20
|
+
delete(data: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=address-type.controller.d.ts.map
|
|
@@ -25,6 +25,6 @@ export declare class PersonAddressTypeService {
|
|
|
25
25
|
id: number;
|
|
26
26
|
data: UpdateDTO;
|
|
27
27
|
}): Promise<any>;
|
|
28
|
-
delete({ ids }: DeleteDTO): Promise<
|
|
28
|
+
delete({ ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=address-type.service.d.ts.map
|
|
@@ -17,6 +17,6 @@ export declare class PersonContactTypeController {
|
|
|
17
17
|
get(id: number): Promise<any>;
|
|
18
18
|
create(data: CreateDTO): Promise<any>;
|
|
19
19
|
update(id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
-
delete(data: DeleteDTO): Promise<
|
|
20
|
+
delete(data: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=contact-type.controller.d.ts.map
|
|
@@ -25,6 +25,6 @@ export declare class PersonContactTypeService {
|
|
|
25
25
|
id: number;
|
|
26
26
|
data: UpdateDTO;
|
|
27
27
|
}): Promise<any>;
|
|
28
|
-
delete({ ids }: DeleteDTO): Promise<
|
|
28
|
+
delete({ ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=contact-type.service.d.ts.map
|
|
@@ -10,19 +10,171 @@ export declare class ContactService {
|
|
|
10
10
|
private readonly mailService;
|
|
11
11
|
private readonly jwtService;
|
|
12
12
|
constructor(configService: ConfigService, prismaService: PrismaService, mailService: MailService, jwtService: JwtService);
|
|
13
|
-
getPerson(personId: number): Promise<
|
|
13
|
+
getPerson(personId: number): Promise<{
|
|
14
|
+
address: {
|
|
15
|
+
id: number;
|
|
16
|
+
person_id: number;
|
|
17
|
+
address_type_id: number;
|
|
18
|
+
country_code: string;
|
|
19
|
+
state: string;
|
|
20
|
+
city: string;
|
|
21
|
+
postal_code: string;
|
|
22
|
+
line1: string;
|
|
23
|
+
line2: string;
|
|
24
|
+
is_primary: boolean;
|
|
25
|
+
created_at: Date;
|
|
26
|
+
}[];
|
|
27
|
+
contact: {
|
|
28
|
+
value: string;
|
|
29
|
+
id: number;
|
|
30
|
+
person_id: number;
|
|
31
|
+
is_primary: boolean;
|
|
32
|
+
created_at: Date;
|
|
33
|
+
contact_type_id: number;
|
|
34
|
+
}[];
|
|
35
|
+
document: {
|
|
36
|
+
value: string;
|
|
37
|
+
id: number;
|
|
38
|
+
person_id: number;
|
|
39
|
+
created_at: Date;
|
|
40
|
+
document_type_id: number;
|
|
41
|
+
}[];
|
|
42
|
+
person_metadata: {
|
|
43
|
+
value: import("@prisma/client/runtime/library").JsonValue;
|
|
44
|
+
id: number;
|
|
45
|
+
person_id: number;
|
|
46
|
+
created_at: Date;
|
|
47
|
+
key: string;
|
|
48
|
+
}[];
|
|
49
|
+
} & {
|
|
50
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
51
|
+
id: number;
|
|
52
|
+
created_at: Date;
|
|
53
|
+
updated_at: Date;
|
|
54
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
55
|
+
}>;
|
|
14
56
|
getPersonOrCreateIfNotExists(type_id: number, name: string, email: string, phone: string, cpf: string, cnpj: string): Promise<{
|
|
15
|
-
person:
|
|
57
|
+
person: {
|
|
58
|
+
address: {
|
|
59
|
+
id: number;
|
|
60
|
+
person_id: number;
|
|
61
|
+
address_type_id: number;
|
|
62
|
+
country_code: string;
|
|
63
|
+
state: string;
|
|
64
|
+
city: string;
|
|
65
|
+
postal_code: string;
|
|
66
|
+
line1: string;
|
|
67
|
+
line2: string;
|
|
68
|
+
is_primary: boolean;
|
|
69
|
+
created_at: Date;
|
|
70
|
+
}[];
|
|
71
|
+
contact: {
|
|
72
|
+
value: string;
|
|
73
|
+
id: number;
|
|
74
|
+
person_id: number;
|
|
75
|
+
is_primary: boolean;
|
|
76
|
+
created_at: Date;
|
|
77
|
+
contact_type_id: number;
|
|
78
|
+
}[];
|
|
79
|
+
document: {
|
|
80
|
+
value: string;
|
|
81
|
+
id: number;
|
|
82
|
+
person_id: number;
|
|
83
|
+
created_at: Date;
|
|
84
|
+
document_type_id: number;
|
|
85
|
+
}[];
|
|
86
|
+
person_metadata: {
|
|
87
|
+
value: import("@prisma/client/runtime/library").JsonValue;
|
|
88
|
+
id: number;
|
|
89
|
+
person_id: number;
|
|
90
|
+
created_at: Date;
|
|
91
|
+
key: string;
|
|
92
|
+
}[];
|
|
93
|
+
} & {
|
|
94
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
95
|
+
id: number;
|
|
96
|
+
created_at: Date;
|
|
97
|
+
updated_at: Date;
|
|
98
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
99
|
+
};
|
|
16
100
|
created: boolean;
|
|
17
101
|
code?: undefined;
|
|
18
102
|
} | {
|
|
19
|
-
person:
|
|
103
|
+
person: {
|
|
104
|
+
address: {
|
|
105
|
+
id: number;
|
|
106
|
+
person_id: number;
|
|
107
|
+
address_type_id: number;
|
|
108
|
+
country_code: string;
|
|
109
|
+
state: string;
|
|
110
|
+
city: string;
|
|
111
|
+
postal_code: string;
|
|
112
|
+
line1: string;
|
|
113
|
+
line2: string;
|
|
114
|
+
is_primary: boolean;
|
|
115
|
+
created_at: Date;
|
|
116
|
+
}[];
|
|
117
|
+
contact: {
|
|
118
|
+
value: string;
|
|
119
|
+
id: number;
|
|
120
|
+
person_id: number;
|
|
121
|
+
is_primary: boolean;
|
|
122
|
+
created_at: Date;
|
|
123
|
+
contact_type_id: number;
|
|
124
|
+
}[];
|
|
125
|
+
document: {
|
|
126
|
+
value: string;
|
|
127
|
+
id: number;
|
|
128
|
+
person_id: number;
|
|
129
|
+
created_at: Date;
|
|
130
|
+
document_type_id: number;
|
|
131
|
+
}[];
|
|
132
|
+
person_metadata: {
|
|
133
|
+
value: import("@prisma/client/runtime/library").JsonValue;
|
|
134
|
+
id: number;
|
|
135
|
+
person_id: number;
|
|
136
|
+
created_at: Date;
|
|
137
|
+
key: string;
|
|
138
|
+
}[];
|
|
139
|
+
} & {
|
|
140
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
141
|
+
id: number;
|
|
142
|
+
created_at: Date;
|
|
143
|
+
updated_at: Date;
|
|
144
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
145
|
+
};
|
|
20
146
|
created: boolean;
|
|
21
147
|
code: string;
|
|
22
148
|
}>;
|
|
23
|
-
addContactIfNotExists(personId: number, value: string, typeId: number): Promise<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
149
|
+
addContactIfNotExists(personId: number, value: string, typeId: number): Promise<{
|
|
150
|
+
value: string;
|
|
151
|
+
id: number;
|
|
152
|
+
person_id: number;
|
|
153
|
+
is_primary: boolean;
|
|
154
|
+
created_at: Date;
|
|
155
|
+
contact_type_id: number;
|
|
156
|
+
}>;
|
|
157
|
+
addDocumentIfNotExists(personId: number, value: string, typeId: number): Promise<{
|
|
158
|
+
value: string;
|
|
159
|
+
id: number;
|
|
160
|
+
person_id: number;
|
|
161
|
+
created_at: Date;
|
|
162
|
+
document_type_id: number;
|
|
163
|
+
}>;
|
|
164
|
+
getPersonContact(personId: number, typeId: PersonContactTypeEnum): Promise<{
|
|
165
|
+
value: string;
|
|
166
|
+
id: number;
|
|
167
|
+
person_id: number;
|
|
168
|
+
is_primary: boolean;
|
|
169
|
+
created_at: Date;
|
|
170
|
+
contact_type_id: number;
|
|
171
|
+
}>;
|
|
172
|
+
getPersonDocument(personId: number, typeId: PersonDocumentTypeEnum): Promise<{
|
|
173
|
+
value: string;
|
|
174
|
+
id: number;
|
|
175
|
+
person_id: number;
|
|
176
|
+
created_at: Date;
|
|
177
|
+
document_type_id: number;
|
|
178
|
+
}>;
|
|
27
179
|
}
|
|
28
180
|
//# sourceMappingURL=contact.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.service.d.ts","sourceRoot":"","sources":["../src/contact.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,qBACa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAHV,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU;IAGnC,SAAS,CAAC,QAAQ,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"contact.service.d.ts","sourceRoot":"","sources":["../src/contact.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,qBACa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAHV,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU;IAGnC,SAAS,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAc1B,4BAA4B,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoGR,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;IAsBrE,sBAAsB,CAC1B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM;;;;;;;IAuBV,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB;;;;;;;;IAShE,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB;;;;;;;CAQzE"}
|
|
@@ -17,6 +17,6 @@ export declare class PersonDocumentTypeController {
|
|
|
17
17
|
get(id: number): Promise<any>;
|
|
18
18
|
create(data: CreateDTO): Promise<any>;
|
|
19
19
|
update(id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
-
delete(data: DeleteDTO): Promise<
|
|
20
|
+
delete(data: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=document-type.controller.d.ts.map
|
|
@@ -25,6 +25,6 @@ export declare class PersonDocumentTypeService {
|
|
|
25
25
|
id: number;
|
|
26
26
|
data: UpdateDTO;
|
|
27
27
|
}): Promise<any>;
|
|
28
|
-
delete({ ids }: DeleteDTO): Promise<
|
|
28
|
+
delete({ ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=document-type.service.d.ts.map
|
|
@@ -5,7 +5,19 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
5
5
|
export declare class PersonAddressController {
|
|
6
6
|
private readonly personAddressService;
|
|
7
7
|
constructor(personAddressService: PersonAddressService);
|
|
8
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
9
|
+
id: number;
|
|
10
|
+
person_id: number;
|
|
11
|
+
address_type_id: number;
|
|
12
|
+
country_code: string;
|
|
13
|
+
state: string;
|
|
14
|
+
city: string;
|
|
15
|
+
postal_code: string;
|
|
16
|
+
line1: string;
|
|
17
|
+
line2: string;
|
|
18
|
+
is_primary: boolean;
|
|
19
|
+
created_at: Date;
|
|
20
|
+
}>;
|
|
9
21
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
22
|
total: any;
|
|
11
23
|
lastPage: number;
|
|
@@ -15,8 +27,20 @@ export declare class PersonAddressController {
|
|
|
15
27
|
next: number;
|
|
16
28
|
data: any;
|
|
17
29
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
get(personId: number, id: number): Promise<{
|
|
31
|
+
id: number;
|
|
32
|
+
person_id: number;
|
|
33
|
+
address_type_id: number;
|
|
34
|
+
country_code: string;
|
|
35
|
+
state: string;
|
|
36
|
+
city: string;
|
|
37
|
+
postal_code: string;
|
|
38
|
+
line1: string;
|
|
39
|
+
line2: string;
|
|
40
|
+
is_primary: boolean;
|
|
41
|
+
created_at: Date;
|
|
42
|
+
}>;
|
|
43
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
44
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
45
|
}
|
|
22
46
|
//# sourceMappingURL=address.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.controller.d.ts","sourceRoot":"","sources":["../../../src/person/address/address.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAI7D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"address.controller.d.ts","sourceRoot":"","sources":["../../../src/person/address/address.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAI7D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;;;;;;;;;IAMzB,IAAI,CAC+B,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA;;;;;;;;;IAMhC,GAAG,CACgC,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM;;;;;;;;;;;;;IAMvC,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,SAAS;IAMzB,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,EAAE,GAAG,EAAE,EAAE,SAAS;CAI7B"}
|
|
@@ -7,8 +7,32 @@ export declare class PersonAddressService {
|
|
|
7
7
|
private readonly prismaService;
|
|
8
8
|
private readonly paginationService;
|
|
9
9
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
10
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
11
|
-
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
11
|
+
id: number;
|
|
12
|
+
person_id: number;
|
|
13
|
+
address_type_id: number;
|
|
14
|
+
country_code: string;
|
|
15
|
+
state: string;
|
|
16
|
+
city: string;
|
|
17
|
+
postal_code: string;
|
|
18
|
+
line1: string;
|
|
19
|
+
line2: string;
|
|
20
|
+
is_primary: boolean;
|
|
21
|
+
created_at: Date;
|
|
22
|
+
}>;
|
|
23
|
+
get(personId: number, id: number): Promise<{
|
|
24
|
+
id: number;
|
|
25
|
+
person_id: number;
|
|
26
|
+
address_type_id: number;
|
|
27
|
+
country_code: string;
|
|
28
|
+
state: string;
|
|
29
|
+
city: string;
|
|
30
|
+
postal_code: string;
|
|
31
|
+
line1: string;
|
|
32
|
+
line2: string;
|
|
33
|
+
is_primary: boolean;
|
|
34
|
+
created_at: Date;
|
|
35
|
+
}>;
|
|
12
36
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
37
|
total: any;
|
|
14
38
|
lastPage: number;
|
|
@@ -18,7 +42,7 @@ export declare class PersonAddressService {
|
|
|
18
42
|
next: number;
|
|
19
43
|
data: any;
|
|
20
44
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
45
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
46
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
23
47
|
}
|
|
24
48
|
//# sourceMappingURL=address.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.service.d.ts","sourceRoot":"","sources":["../../../src/person/address/address.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"address.service.d.ts","sourceRoot":"","sources":["../../../src/person/address/address.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;;;;;;;;;IASxC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;IAShC,IAAI,CAAC,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM;;;;;;;;;IAiBvD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAUpD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,SAAS;CAgBlD"}
|
|
@@ -5,7 +5,14 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
5
5
|
export declare class PersonContactController {
|
|
6
6
|
private readonly personContactService;
|
|
7
7
|
constructor(personContactService: PersonContactService);
|
|
8
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
9
|
+
value: string;
|
|
10
|
+
id: number;
|
|
11
|
+
person_id: number;
|
|
12
|
+
is_primary: boolean;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
contact_type_id: number;
|
|
15
|
+
}>;
|
|
9
16
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
17
|
total: any;
|
|
11
18
|
lastPage: number;
|
|
@@ -15,8 +22,15 @@ export declare class PersonContactController {
|
|
|
15
22
|
next: number;
|
|
16
23
|
data: any;
|
|
17
24
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
get(personId: number, id: number): Promise<{
|
|
26
|
+
value: string;
|
|
27
|
+
id: number;
|
|
28
|
+
person_id: number;
|
|
29
|
+
is_primary: boolean;
|
|
30
|
+
created_at: Date;
|
|
31
|
+
contact_type_id: number;
|
|
32
|
+
}>;
|
|
33
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
34
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
35
|
}
|
|
22
36
|
//# sourceMappingURL=contact.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.controller.d.ts","sourceRoot":"","sources":["../../../src/person/contact/contact.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAI7D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"contact.controller.d.ts","sourceRoot":"","sources":["../../../src/person/contact/contact.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAI7D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;;;;IAMzB,IAAI,CAC+B,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA;;;;;;;;;IAMhC,GAAG,CACgC,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM;;;;;;;;IAMvC,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,SAAS;IAMzB,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,EAAE,GAAG,EAAE,EAAE,SAAS;CAI7B"}
|
|
@@ -7,8 +7,22 @@ export declare class PersonContactService {
|
|
|
7
7
|
private readonly prismaService;
|
|
8
8
|
private readonly paginationService;
|
|
9
9
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
10
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
11
|
-
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
11
|
+
value: string;
|
|
12
|
+
id: number;
|
|
13
|
+
person_id: number;
|
|
14
|
+
is_primary: boolean;
|
|
15
|
+
created_at: Date;
|
|
16
|
+
contact_type_id: number;
|
|
17
|
+
}>;
|
|
18
|
+
get(personId: number, id: number): Promise<{
|
|
19
|
+
value: string;
|
|
20
|
+
id: number;
|
|
21
|
+
person_id: number;
|
|
22
|
+
is_primary: boolean;
|
|
23
|
+
created_at: Date;
|
|
24
|
+
contact_type_id: number;
|
|
25
|
+
}>;
|
|
12
26
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
27
|
total: any;
|
|
14
28
|
lastPage: number;
|
|
@@ -18,7 +32,7 @@ export declare class PersonContactService {
|
|
|
18
32
|
next: number;
|
|
19
33
|
data: any;
|
|
20
34
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
35
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
36
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
23
37
|
}
|
|
24
38
|
//# sourceMappingURL=contact.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.service.d.ts","sourceRoot":"","sources":["../../../src/person/contact/contact.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"contact.service.d.ts","sourceRoot":"","sources":["../../../src/person/contact/contact.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;;;;IASxC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;;IAShC,IAAI,CAAC,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM;;;;;;;;;IAgBvD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAUpD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,SAAS;CAgBlD"}
|
|
@@ -5,7 +5,13 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
5
5
|
export declare class PersonDocumentController {
|
|
6
6
|
private readonly personDocumentService;
|
|
7
7
|
constructor(personDocumentService: PersonDocumentService);
|
|
8
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
9
|
+
value: string;
|
|
10
|
+
id: number;
|
|
11
|
+
person_id: number;
|
|
12
|
+
created_at: Date;
|
|
13
|
+
document_type_id: number;
|
|
14
|
+
}>;
|
|
9
15
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
16
|
total: any;
|
|
11
17
|
lastPage: number;
|
|
@@ -15,8 +21,14 @@ export declare class PersonDocumentController {
|
|
|
15
21
|
next: number;
|
|
16
22
|
data: any;
|
|
17
23
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
get(personId: number, id: number): Promise<{
|
|
25
|
+
value: string;
|
|
26
|
+
id: number;
|
|
27
|
+
person_id: number;
|
|
28
|
+
created_at: Date;
|
|
29
|
+
document_type_id: number;
|
|
30
|
+
}>;
|
|
31
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
32
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
33
|
}
|
|
22
34
|
//# sourceMappingURL=document.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.controller.d.ts","sourceRoot":"","sources":["../../../src/person/document/document.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBAEa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAI/D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"document.controller.d.ts","sourceRoot":"","sources":["../../../src/person/document/document.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBAEa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAI/D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;;;IAMzB,IAAI,CAC+B,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA;;;;;;;;;IAMhC,GAAG,CACgC,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM;;;;;;;IAMvC,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,SAAS;IAMzB,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,EAAE,GAAG,EAAE,EAAE,SAAS;CAI7B"}
|
|
@@ -7,8 +7,20 @@ export declare class PersonDocumentService {
|
|
|
7
7
|
private readonly prismaService;
|
|
8
8
|
private readonly paginationService;
|
|
9
9
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
10
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
11
|
-
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
11
|
+
value: string;
|
|
12
|
+
id: number;
|
|
13
|
+
person_id: number;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
document_type_id: number;
|
|
16
|
+
}>;
|
|
17
|
+
get(personId: number, id: number): Promise<{
|
|
18
|
+
value: string;
|
|
19
|
+
id: number;
|
|
20
|
+
person_id: number;
|
|
21
|
+
created_at: Date;
|
|
22
|
+
document_type_id: number;
|
|
23
|
+
}>;
|
|
12
24
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
25
|
total: any;
|
|
14
26
|
lastPage: number;
|
|
@@ -18,7 +30,7 @@ export declare class PersonDocumentService {
|
|
|
18
30
|
next: number;
|
|
19
31
|
data: any;
|
|
20
32
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
33
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
34
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
23
35
|
}
|
|
24
36
|
//# sourceMappingURL=document.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.service.d.ts","sourceRoot":"","sources":["../../../src/person/document/document.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"document.service.d.ts","sourceRoot":"","sources":["../../../src/person/document/document.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;;;IASxC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;IAShC,IAAI,CAAC,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM;;;;;;;;;IAgBvD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAUpD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,SAAS;CAgBlD"}
|
|
@@ -4,8 +4,20 @@ import { PersonCompanyService } from './person-company.service';
|
|
|
4
4
|
export declare class PersonCompanyController {
|
|
5
5
|
private readonly personCompanyService;
|
|
6
6
|
constructor(personCompanyService: PersonCompanyService);
|
|
7
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
8
|
+
id: number;
|
|
9
|
+
foundation_date: Date;
|
|
10
|
+
legal_nature: string;
|
|
11
|
+
}>;
|
|
12
|
+
get(personId: number): Promise<{
|
|
13
|
+
id: number;
|
|
14
|
+
foundation_date: Date;
|
|
15
|
+
legal_nature: string;
|
|
16
|
+
}>;
|
|
17
|
+
update(personId: number, data: UpdateDTO): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
foundation_date: Date;
|
|
20
|
+
legal_nature: string;
|
|
21
|
+
}>;
|
|
10
22
|
}
|
|
11
23
|
//# sourceMappingURL=person-company.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-company.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-company/person-company.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAI7D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-company.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-company/person-company.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAI7D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;IAMzB,GAAG,CAAkC,QAAQ,EAAE,MAAM;;;;;IAKrD,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;CAI1B"}
|
|
@@ -4,8 +4,20 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
4
4
|
export declare class PersonCompanyService {
|
|
5
5
|
private readonly prismaService;
|
|
6
6
|
constructor(prismaService: PrismaService);
|
|
7
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
8
|
+
id: number;
|
|
9
|
+
foundation_date: Date;
|
|
10
|
+
legal_nature: string;
|
|
11
|
+
}>;
|
|
12
|
+
get(personId: number): Promise<{
|
|
13
|
+
id: number;
|
|
14
|
+
foundation_date: Date;
|
|
15
|
+
legal_nature: string;
|
|
16
|
+
}>;
|
|
17
|
+
update(personId: number, data: UpdateDTO): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
foundation_date: Date;
|
|
20
|
+
legal_nature: string;
|
|
21
|
+
}>;
|
|
10
22
|
}
|
|
11
23
|
//# sourceMappingURL=person-company.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-company.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-company/person-company.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-company.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-company/person-company.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;IASxC,GAAG,CAAC,QAAQ,EAAE,MAAM;;;;;IAQpB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;CAQ/C"}
|
|
@@ -4,8 +4,20 @@ import { PersonIndividualService } from './person-individual.service';
|
|
|
4
4
|
export declare class PersonIndividualController {
|
|
5
5
|
private readonly personIndividualService;
|
|
6
6
|
constructor(personIndividualService: PersonIndividualService);
|
|
7
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
8
|
+
id: number;
|
|
9
|
+
birth_date: Date;
|
|
10
|
+
gender: import("@prisma/client").$Enums.person_individual_gender_enum;
|
|
11
|
+
}>;
|
|
12
|
+
get(personId: number): Promise<{
|
|
13
|
+
id: number;
|
|
14
|
+
birth_date: Date;
|
|
15
|
+
gender: import("@prisma/client").$Enums.person_individual_gender_enum;
|
|
16
|
+
}>;
|
|
17
|
+
update(personId: number, data: UpdateDTO): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
birth_date: Date;
|
|
20
|
+
gender: import("@prisma/client").$Enums.person_individual_gender_enum;
|
|
21
|
+
}>;
|
|
10
22
|
}
|
|
11
23
|
//# sourceMappingURL=person-individual.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-individual.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-individual/person-individual.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,qBAEa,0BAA0B;IAGnC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAAvB,uBAAuB,EAAE,uBAAuB;IAInE,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-individual.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-individual/person-individual.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,qBAEa,0BAA0B;IAGnC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAAvB,uBAAuB,EAAE,uBAAuB;IAInE,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;IAMzB,GAAG,CAAkC,QAAQ,EAAE,MAAM;;;;;IAKrD,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;CAI1B"}
|
|
@@ -4,8 +4,20 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
4
4
|
export declare class PersonIndividualService {
|
|
5
5
|
private readonly prismaService;
|
|
6
6
|
constructor(prismaService: PrismaService);
|
|
7
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
8
|
+
id: number;
|
|
9
|
+
birth_date: Date;
|
|
10
|
+
gender: import("@prisma/client").$Enums.person_individual_gender_enum;
|
|
11
|
+
}>;
|
|
12
|
+
get(personId: number): Promise<{
|
|
13
|
+
id: number;
|
|
14
|
+
birth_date: Date;
|
|
15
|
+
gender: import("@prisma/client").$Enums.person_individual_gender_enum;
|
|
16
|
+
}>;
|
|
17
|
+
update(personId: number, data: UpdateDTO): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
birth_date: Date;
|
|
20
|
+
gender: import("@prisma/client").$Enums.person_individual_gender_enum;
|
|
21
|
+
}>;
|
|
10
22
|
}
|
|
11
23
|
//# sourceMappingURL=person-individual.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-individual.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-individual/person-individual.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-individual.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-individual/person-individual.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;IASxC,GAAG,CAAC,QAAQ,EAAE,MAAM;;;;;IAQpB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;CAQ/C"}
|
|
@@ -5,7 +5,13 @@ import { PersonMetadataService } from './person-metadata.service';
|
|
|
5
5
|
export declare class PersonMetadataController {
|
|
6
6
|
private readonly personMetadataService;
|
|
7
7
|
constructor(personMetadataService: PersonMetadataService);
|
|
8
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
9
|
+
value: import("@prisma/client/runtime/library").JsonValue;
|
|
10
|
+
id: number;
|
|
11
|
+
person_id: number;
|
|
12
|
+
created_at: Date;
|
|
13
|
+
key: string;
|
|
14
|
+
}>;
|
|
9
15
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
16
|
total: any;
|
|
11
17
|
lastPage: number;
|
|
@@ -15,8 +21,14 @@ export declare class PersonMetadataController {
|
|
|
15
21
|
next: number;
|
|
16
22
|
data: any;
|
|
17
23
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
get(personId: number, id: number): Promise<{
|
|
25
|
+
value: import("@prisma/client/runtime/library").JsonValue;
|
|
26
|
+
id: number;
|
|
27
|
+
person_id: number;
|
|
28
|
+
created_at: Date;
|
|
29
|
+
key: string;
|
|
30
|
+
}>;
|
|
31
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
32
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
33
|
}
|
|
22
34
|
//# sourceMappingURL=person-metadata.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-metadata.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-metadata/person-metadata.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAEa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAI/D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-metadata.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-metadata/person-metadata.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAEa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAI/D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;;;IAMzB,IAAI,CAC+B,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA;;;;;;;;;IAMhC,GAAG,CACgC,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM;;;;;;;IAMvC,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,SAAS;IAMzB,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,EAAE,GAAG,EAAE,EAAE,SAAS;CAI7B"}
|
|
@@ -7,8 +7,20 @@ export declare class PersonMetadataService {
|
|
|
7
7
|
private readonly prismaService;
|
|
8
8
|
private readonly paginationService;
|
|
9
9
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
10
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
11
|
-
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
11
|
+
value: import("@prisma/client/runtime/library").JsonValue;
|
|
12
|
+
id: number;
|
|
13
|
+
person_id: number;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
key: string;
|
|
16
|
+
}>;
|
|
17
|
+
get(personId: number, id: number): Promise<{
|
|
18
|
+
value: import("@prisma/client/runtime/library").JsonValue;
|
|
19
|
+
id: number;
|
|
20
|
+
person_id: number;
|
|
21
|
+
created_at: Date;
|
|
22
|
+
key: string;
|
|
23
|
+
}>;
|
|
12
24
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
25
|
total: any;
|
|
14
26
|
lastPage: number;
|
|
@@ -18,7 +30,7 @@ export declare class PersonMetadataService {
|
|
|
18
30
|
next: number;
|
|
19
31
|
data: any;
|
|
20
32
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
33
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
34
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
23
35
|
}
|
|
24
36
|
//# sourceMappingURL=person-metadata.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-metadata.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-metadata/person-metadata.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-metadata.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-metadata/person-metadata.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;;;IASxC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;IAShC,IAAI,CAAC,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM;;;;;;;;;IAgBvD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAUpD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,SAAS;CAgBlD"}
|
|
@@ -5,7 +5,13 @@ import { PersonRelationService } from './person-relation.service';
|
|
|
5
5
|
export declare class PersonRelationController {
|
|
6
6
|
private readonly personRelationService;
|
|
7
7
|
constructor(personRelationService: PersonRelationService);
|
|
8
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
9
|
+
id: number;
|
|
10
|
+
person_id: number;
|
|
11
|
+
created_at: Date;
|
|
12
|
+
related_person_id: number;
|
|
13
|
+
relation_type_id: number;
|
|
14
|
+
}>;
|
|
9
15
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
16
|
total: any;
|
|
11
17
|
lastPage: number;
|
|
@@ -15,8 +21,26 @@ export declare class PersonRelationController {
|
|
|
15
21
|
next: number;
|
|
16
22
|
data: any;
|
|
17
23
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
get(personId: number, id: number): Promise<{
|
|
25
|
+
person_person_relation_related_person_idToperson: {
|
|
26
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
27
|
+
id: number;
|
|
28
|
+
created_at: Date;
|
|
29
|
+
updated_at: Date;
|
|
30
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
31
|
+
};
|
|
32
|
+
person_relation_type: {
|
|
33
|
+
code: string;
|
|
34
|
+
id: number;
|
|
35
|
+
};
|
|
36
|
+
} & {
|
|
37
|
+
id: number;
|
|
38
|
+
person_id: number;
|
|
39
|
+
created_at: Date;
|
|
40
|
+
related_person_id: number;
|
|
41
|
+
relation_type_id: number;
|
|
42
|
+
}>;
|
|
43
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
44
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
45
|
}
|
|
22
46
|
//# sourceMappingURL=person-relation.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-relation.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-relation/person-relation.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAEa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAI/D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-relation.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-relation/person-relation.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAEa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAI/D,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;;;;;;;IAMzB,IAAI,CAC+B,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA;;;;;;;;;IAMhC,GAAG,CACgC,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IAMvC,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,SAAS;IAMzB,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,EAAE,GAAG,EAAE,EAAE,SAAS;CAI7B"}
|
|
@@ -7,8 +7,32 @@ export declare class PersonRelationService {
|
|
|
7
7
|
private readonly prismaService;
|
|
8
8
|
private readonly paginationService;
|
|
9
9
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
10
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
11
|
-
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
11
|
+
id: number;
|
|
12
|
+
person_id: number;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
related_person_id: number;
|
|
15
|
+
relation_type_id: number;
|
|
16
|
+
}>;
|
|
17
|
+
get(personId: number, id: number): Promise<{
|
|
18
|
+
person_person_relation_related_person_idToperson: {
|
|
19
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
20
|
+
id: number;
|
|
21
|
+
created_at: Date;
|
|
22
|
+
updated_at: Date;
|
|
23
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
24
|
+
};
|
|
25
|
+
person_relation_type: {
|
|
26
|
+
code: string;
|
|
27
|
+
id: number;
|
|
28
|
+
};
|
|
29
|
+
} & {
|
|
30
|
+
id: number;
|
|
31
|
+
person_id: number;
|
|
32
|
+
created_at: Date;
|
|
33
|
+
related_person_id: number;
|
|
34
|
+
relation_type_id: number;
|
|
35
|
+
}>;
|
|
12
36
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
37
|
total: any;
|
|
14
38
|
lastPage: number;
|
|
@@ -18,7 +42,7 @@ export declare class PersonRelationService {
|
|
|
18
42
|
next: number;
|
|
19
43
|
data: any;
|
|
20
44
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
45
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
46
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
23
47
|
}
|
|
24
48
|
//# sourceMappingURL=person-relation.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-relation.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-relation/person-relation.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-relation.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-relation/person-relation.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;;;IASxC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IAahC,IAAI,CAAC,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM;;;;;;;;;IAoBvD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAUpD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,SAAS;CAgBlD"}
|
|
@@ -6,11 +6,11 @@ export declare class PersonController {
|
|
|
6
6
|
private readonly personService;
|
|
7
7
|
constructor(personService: PersonService);
|
|
8
8
|
getStats(): Promise<{
|
|
9
|
-
total:
|
|
10
|
-
individual:
|
|
11
|
-
company:
|
|
12
|
-
active:
|
|
13
|
-
inactive:
|
|
9
|
+
total: number;
|
|
10
|
+
individual: number;
|
|
11
|
+
company: number;
|
|
12
|
+
active: number;
|
|
13
|
+
inactive: number;
|
|
14
14
|
}>;
|
|
15
15
|
list(paginationParams: any): Promise<{
|
|
16
16
|
total: any;
|
|
@@ -21,9 +21,27 @@ export declare class PersonController {
|
|
|
21
21
|
next: number;
|
|
22
22
|
data: any;
|
|
23
23
|
}>;
|
|
24
|
-
get(id: number): Promise<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
get(id: number): Promise<{
|
|
25
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
26
|
+
id: number;
|
|
27
|
+
created_at: Date;
|
|
28
|
+
updated_at: Date;
|
|
29
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
30
|
+
}>;
|
|
31
|
+
create(data: CreateDTO): Promise<{
|
|
32
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
33
|
+
id: number;
|
|
34
|
+
created_at: Date;
|
|
35
|
+
updated_at: Date;
|
|
36
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
37
|
+
}>;
|
|
38
|
+
update(id: number, data: UpdateDTO): Promise<{
|
|
39
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
40
|
+
id: number;
|
|
41
|
+
created_at: Date;
|
|
42
|
+
updated_at: Date;
|
|
43
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
44
|
+
}>;
|
|
45
|
+
delete(data: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
28
46
|
}
|
|
29
47
|
//# sourceMappingURL=person.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.controller.d.ts","sourceRoot":"","sources":["../../src/person/person.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAEa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,QAAQ;;;;;;;IAKR,IAAI,CAAe,gBAAgB,KAAA;;;;;;;;;IAKnC,GAAG,CAA4B,EAAE,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"person.controller.d.ts","sourceRoot":"","sources":["../../src/person/person.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAEa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,QAAQ;;;;;;;IAKR,IAAI,CAAe,gBAAgB,KAAA;;;;;;;;;IAKnC,GAAG,CAA4B,EAAE,EAAE,MAAM;;;;;;;IAKzC,MAAM,CAAS,IAAI,EAAE,SAAS;;;;;;;IAK9B,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;;;;;;;IAQrE,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
|
@@ -8,11 +8,11 @@ export declare class PersonService {
|
|
|
8
8
|
private readonly paginationService;
|
|
9
9
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
10
10
|
getStats(): Promise<{
|
|
11
|
-
total:
|
|
12
|
-
individual:
|
|
13
|
-
company:
|
|
14
|
-
active:
|
|
15
|
-
inactive:
|
|
11
|
+
total: number;
|
|
12
|
+
individual: number;
|
|
13
|
+
company: number;
|
|
14
|
+
active: number;
|
|
15
|
+
inactive: number;
|
|
16
16
|
}>;
|
|
17
17
|
list(paginationParams: PaginationDTO): Promise<{
|
|
18
18
|
total: any;
|
|
@@ -23,12 +23,30 @@ export declare class PersonService {
|
|
|
23
23
|
next: number;
|
|
24
24
|
data: any;
|
|
25
25
|
}>;
|
|
26
|
-
get(id: number): Promise<
|
|
27
|
-
|
|
26
|
+
get(id: number): Promise<{
|
|
27
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
28
|
+
id: number;
|
|
29
|
+
created_at: Date;
|
|
30
|
+
updated_at: Date;
|
|
31
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
32
|
+
}>;
|
|
33
|
+
create(data: CreateDTO): Promise<{
|
|
34
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
35
|
+
id: number;
|
|
36
|
+
created_at: Date;
|
|
37
|
+
updated_at: Date;
|
|
38
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
39
|
+
}>;
|
|
28
40
|
update({ id, data }: {
|
|
29
41
|
id: number;
|
|
30
42
|
data: UpdateDTO;
|
|
31
|
-
}): Promise<
|
|
32
|
-
|
|
43
|
+
}): Promise<{
|
|
44
|
+
type: import("@prisma/client").$Enums.person_type_enum;
|
|
45
|
+
id: number;
|
|
46
|
+
created_at: Date;
|
|
47
|
+
updated_at: Date;
|
|
48
|
+
status: import("@prisma/client").$Enums.person_status_enum;
|
|
49
|
+
}>;
|
|
50
|
+
delete({ ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
33
51
|
}
|
|
34
52
|
//# sourceMappingURL=person.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.service.d.ts","sourceRoot":"","sources":["../../src/person/person.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAGtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,QAAQ;;;;;;;IAkBR,IAAI,CAAC,gBAAgB,EAAE,aAAa;;;;;;;;;IAqBpC,GAAG,CAAC,EAAE,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"person.service.d.ts","sourceRoot":"","sources":["../../src/person/person.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAGtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,QAAQ;;;;;;;IAkBR,IAAI,CAAC,gBAAgB,EAAE,aAAa;;;;;;;;;IAqBpC,GAAG,CAAC,EAAE,EAAE,MAAM;;;;;;;IAMd,MAAM,CAAC,IAAI,EAAE,SAAS;;;;;;;IAMtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;;;;;;;IAOpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;CAehC"}
|
|
@@ -17,6 +17,6 @@ export declare class PersonRelationTypeController {
|
|
|
17
17
|
get(id: number): Promise<any>;
|
|
18
18
|
create(data: CreateDTO): Promise<any>;
|
|
19
19
|
update(id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
-
delete(data: DeleteDTO): Promise<
|
|
20
|
+
delete(data: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=person-relation-type.controller.d.ts.map
|
|
@@ -26,6 +26,6 @@ export declare class PersonRelationTypeService {
|
|
|
26
26
|
id: number;
|
|
27
27
|
data: UpdateDTO;
|
|
28
28
|
}): Promise<any>;
|
|
29
|
-
delete({ ids }: DeleteDTO): Promise<
|
|
29
|
+
delete({ ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=person-relation-type.service.d.ts.map
|
package/hedhog/table/person.yaml
CHANGED