@hed-hog/contact 0.0.7 → 0.0.9
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/contact.service.d.ts +303 -7
- package/dist/contact.service.d.ts.map +1 -1
- package/dist/person/person-address/person-address.controller.d.ts +36 -4
- package/dist/person/person-address/person-address.controller.d.ts.map +1 -1
- package/dist/person/person-address/person-address.service.d.ts +36 -4
- package/dist/person/person-address/person-address.service.d.ts.map +1 -1
- package/dist/person/person-contact/person-contact.controller.d.ts +20 -4
- package/dist/person/person-contact/person-contact.controller.d.ts.map +1 -1
- package/dist/person/person-contact/person-contact.service.d.ts +20 -4
- package/dist/person/person-contact/person-contact.service.d.ts.map +1 -1
- package/dist/person/person-custom/person-custom.controller.d.ts +1 -1
- package/dist/person/person-custom/person-custom.service.d.ts +1 -1
- package/dist/person/person-document/person-document.controller.d.ts +26 -4
- package/dist/person/person-document/person-document.controller.d.ts.map +1 -1
- package/dist/person/person-document/person-document.service.d.ts +26 -4
- package/dist/person/person-document/person-document.service.d.ts.map +1 -1
- package/dist/person/person-user/person-user.controller.d.ts +16 -4
- package/dist/person/person-user/person-user.controller.d.ts.map +1 -1
- package/dist/person/person-user/person-user.service.d.ts +16 -4
- package/dist/person/person-user/person-user.service.d.ts.map +1 -1
- package/dist/person/person-value/person-value.controller.d.ts +16 -4
- package/dist/person/person-value/person-value.controller.d.ts.map +1 -1
- package/dist/person/person-value/person-value.service.d.ts +16 -4
- package/dist/person/person-value/person-value.service.d.ts.map +1 -1
- package/dist/person/person.controller.d.ts +28 -4
- package/dist/person/person.controller.d.ts.map +1 -1
- package/dist/person/person.service.d.ts +28 -4
- package/dist/person/person.service.d.ts.map +1 -1
- package/dist/person-address-type/person-address-type.controller.d.ts +1 -1
- package/dist/person-address-type/person-address-type.service.d.ts +1 -1
- package/dist/person-contact-type/person-contact-type.controller.d.ts +1 -1
- package/dist/person-contact-type/person-contact-type.service.d.ts +1 -1
- package/dist/person-custom-type/person-custom-type.controller.d.ts +1 -1
- package/dist/person-custom-type/person-custom-type.service.d.ts +1 -1
- package/dist/person-document-type/person-document-type.controller.d.ts +1 -1
- package/dist/person-document-type/person-document-type.service.d.ts +1 -1
- package/dist/person-type/person-type.controller.d.ts +1 -1
- package/dist/person-type/person-type.service.d.ts +1 -1
- package/package.json +5 -6
- package/hedhog/data/screen.yaml +0 -96
|
@@ -10,19 +10,315 @@ 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
|
+
person_address: {
|
|
15
|
+
number: string | null;
|
|
16
|
+
reference: string | null;
|
|
17
|
+
id: number;
|
|
18
|
+
created_at: Date;
|
|
19
|
+
updated_at: Date;
|
|
20
|
+
country_id: number;
|
|
21
|
+
type_id: number;
|
|
22
|
+
person_id: number;
|
|
23
|
+
primary: boolean;
|
|
24
|
+
street: string;
|
|
25
|
+
complement: string | null;
|
|
26
|
+
district: string;
|
|
27
|
+
city: string;
|
|
28
|
+
state: string;
|
|
29
|
+
postal_code: string;
|
|
30
|
+
}[];
|
|
31
|
+
person_document: {
|
|
32
|
+
value: string;
|
|
33
|
+
id: number;
|
|
34
|
+
created_at: Date;
|
|
35
|
+
updated_at: Date;
|
|
36
|
+
country_id: number;
|
|
37
|
+
type_id: number;
|
|
38
|
+
person_id: number;
|
|
39
|
+
primary: boolean;
|
|
40
|
+
issued_at: Date | null;
|
|
41
|
+
expiry_at: Date | null;
|
|
42
|
+
}[];
|
|
43
|
+
file: {
|
|
44
|
+
path: string;
|
|
45
|
+
id: number;
|
|
46
|
+
created_at: Date;
|
|
47
|
+
updated_at: Date;
|
|
48
|
+
filename: string;
|
|
49
|
+
provider_id: number;
|
|
50
|
+
location: string;
|
|
51
|
+
mimetype_id: number;
|
|
52
|
+
size: number;
|
|
53
|
+
};
|
|
54
|
+
person_type: {
|
|
55
|
+
id: number;
|
|
56
|
+
created_at: Date;
|
|
57
|
+
updated_at: Date;
|
|
58
|
+
slug: string;
|
|
59
|
+
};
|
|
60
|
+
person_contact: {
|
|
61
|
+
value: string;
|
|
62
|
+
id: number;
|
|
63
|
+
created_at: Date;
|
|
64
|
+
updated_at: Date;
|
|
65
|
+
type_id: number;
|
|
66
|
+
person_id: number;
|
|
67
|
+
primary: boolean;
|
|
68
|
+
}[];
|
|
69
|
+
person_custom: {
|
|
70
|
+
value: string | null;
|
|
71
|
+
id: number;
|
|
72
|
+
created_at: Date;
|
|
73
|
+
updated_at: Date;
|
|
74
|
+
type_id: number;
|
|
75
|
+
person_id: number;
|
|
76
|
+
}[];
|
|
77
|
+
person_user: {
|
|
78
|
+
id: number;
|
|
79
|
+
created_at: Date;
|
|
80
|
+
updated_at: Date;
|
|
81
|
+
user_id: number;
|
|
82
|
+
person_id: number;
|
|
83
|
+
}[];
|
|
84
|
+
person_value: {
|
|
85
|
+
value: string;
|
|
86
|
+
id: number;
|
|
87
|
+
created_at: Date;
|
|
88
|
+
updated_at: Date;
|
|
89
|
+
person_id: number;
|
|
90
|
+
}[];
|
|
91
|
+
} & {
|
|
92
|
+
name: string;
|
|
93
|
+
id: number;
|
|
94
|
+
created_at: Date;
|
|
95
|
+
updated_at: Date;
|
|
96
|
+
photo_id: number | null;
|
|
97
|
+
type_id: number;
|
|
98
|
+
birth_at: Date | null;
|
|
99
|
+
}>;
|
|
14
100
|
getPersonOrCreateIfNotExists(type_id: number, name: string, email: string, phone: string, cpf: string, cnpj: string): Promise<{
|
|
15
|
-
person:
|
|
101
|
+
person: {
|
|
102
|
+
person_address: {
|
|
103
|
+
number: string | null;
|
|
104
|
+
reference: string | null;
|
|
105
|
+
id: number;
|
|
106
|
+
created_at: Date;
|
|
107
|
+
updated_at: Date;
|
|
108
|
+
country_id: number;
|
|
109
|
+
type_id: number;
|
|
110
|
+
person_id: number;
|
|
111
|
+
primary: boolean;
|
|
112
|
+
street: string;
|
|
113
|
+
complement: string | null;
|
|
114
|
+
district: string;
|
|
115
|
+
city: string;
|
|
116
|
+
state: string;
|
|
117
|
+
postal_code: string;
|
|
118
|
+
}[];
|
|
119
|
+
person_document: {
|
|
120
|
+
value: string;
|
|
121
|
+
id: number;
|
|
122
|
+
created_at: Date;
|
|
123
|
+
updated_at: Date;
|
|
124
|
+
country_id: number;
|
|
125
|
+
type_id: number;
|
|
126
|
+
person_id: number;
|
|
127
|
+
primary: boolean;
|
|
128
|
+
issued_at: Date | null;
|
|
129
|
+
expiry_at: Date | null;
|
|
130
|
+
}[];
|
|
131
|
+
file: {
|
|
132
|
+
path: string;
|
|
133
|
+
id: number;
|
|
134
|
+
created_at: Date;
|
|
135
|
+
updated_at: Date;
|
|
136
|
+
filename: string;
|
|
137
|
+
provider_id: number;
|
|
138
|
+
location: string;
|
|
139
|
+
mimetype_id: number;
|
|
140
|
+
size: number;
|
|
141
|
+
};
|
|
142
|
+
person_type: {
|
|
143
|
+
id: number;
|
|
144
|
+
created_at: Date;
|
|
145
|
+
updated_at: Date;
|
|
146
|
+
slug: string;
|
|
147
|
+
};
|
|
148
|
+
person_contact: {
|
|
149
|
+
value: string;
|
|
150
|
+
id: number;
|
|
151
|
+
created_at: Date;
|
|
152
|
+
updated_at: Date;
|
|
153
|
+
type_id: number;
|
|
154
|
+
person_id: number;
|
|
155
|
+
primary: boolean;
|
|
156
|
+
}[];
|
|
157
|
+
person_custom: {
|
|
158
|
+
value: string | null;
|
|
159
|
+
id: number;
|
|
160
|
+
created_at: Date;
|
|
161
|
+
updated_at: Date;
|
|
162
|
+
type_id: number;
|
|
163
|
+
person_id: number;
|
|
164
|
+
}[];
|
|
165
|
+
person_user: {
|
|
166
|
+
id: number;
|
|
167
|
+
created_at: Date;
|
|
168
|
+
updated_at: Date;
|
|
169
|
+
user_id: number;
|
|
170
|
+
person_id: number;
|
|
171
|
+
}[];
|
|
172
|
+
person_value: {
|
|
173
|
+
value: string;
|
|
174
|
+
id: number;
|
|
175
|
+
created_at: Date;
|
|
176
|
+
updated_at: Date;
|
|
177
|
+
person_id: number;
|
|
178
|
+
}[];
|
|
179
|
+
} & {
|
|
180
|
+
name: string;
|
|
181
|
+
id: number;
|
|
182
|
+
created_at: Date;
|
|
183
|
+
updated_at: Date;
|
|
184
|
+
photo_id: number | null;
|
|
185
|
+
type_id: number;
|
|
186
|
+
birth_at: Date | null;
|
|
187
|
+
};
|
|
16
188
|
created: boolean;
|
|
17
189
|
code?: undefined;
|
|
18
190
|
} | {
|
|
19
|
-
person:
|
|
191
|
+
person: {
|
|
192
|
+
person_address: {
|
|
193
|
+
number: string | null;
|
|
194
|
+
reference: string | null;
|
|
195
|
+
id: number;
|
|
196
|
+
created_at: Date;
|
|
197
|
+
updated_at: Date;
|
|
198
|
+
country_id: number;
|
|
199
|
+
type_id: number;
|
|
200
|
+
person_id: number;
|
|
201
|
+
primary: boolean;
|
|
202
|
+
street: string;
|
|
203
|
+
complement: string | null;
|
|
204
|
+
district: string;
|
|
205
|
+
city: string;
|
|
206
|
+
state: string;
|
|
207
|
+
postal_code: string;
|
|
208
|
+
}[];
|
|
209
|
+
person_document: {
|
|
210
|
+
value: string;
|
|
211
|
+
id: number;
|
|
212
|
+
created_at: Date;
|
|
213
|
+
updated_at: Date;
|
|
214
|
+
country_id: number;
|
|
215
|
+
type_id: number;
|
|
216
|
+
person_id: number;
|
|
217
|
+
primary: boolean;
|
|
218
|
+
issued_at: Date | null;
|
|
219
|
+
expiry_at: Date | null;
|
|
220
|
+
}[];
|
|
221
|
+
file: {
|
|
222
|
+
path: string;
|
|
223
|
+
id: number;
|
|
224
|
+
created_at: Date;
|
|
225
|
+
updated_at: Date;
|
|
226
|
+
filename: string;
|
|
227
|
+
provider_id: number;
|
|
228
|
+
location: string;
|
|
229
|
+
mimetype_id: number;
|
|
230
|
+
size: number;
|
|
231
|
+
};
|
|
232
|
+
person_type: {
|
|
233
|
+
id: number;
|
|
234
|
+
created_at: Date;
|
|
235
|
+
updated_at: Date;
|
|
236
|
+
slug: string;
|
|
237
|
+
};
|
|
238
|
+
person_contact: {
|
|
239
|
+
value: string;
|
|
240
|
+
id: number;
|
|
241
|
+
created_at: Date;
|
|
242
|
+
updated_at: Date;
|
|
243
|
+
type_id: number;
|
|
244
|
+
person_id: number;
|
|
245
|
+
primary: boolean;
|
|
246
|
+
}[];
|
|
247
|
+
person_custom: {
|
|
248
|
+
value: string | null;
|
|
249
|
+
id: number;
|
|
250
|
+
created_at: Date;
|
|
251
|
+
updated_at: Date;
|
|
252
|
+
type_id: number;
|
|
253
|
+
person_id: number;
|
|
254
|
+
}[];
|
|
255
|
+
person_user: {
|
|
256
|
+
id: number;
|
|
257
|
+
created_at: Date;
|
|
258
|
+
updated_at: Date;
|
|
259
|
+
user_id: number;
|
|
260
|
+
person_id: number;
|
|
261
|
+
}[];
|
|
262
|
+
person_value: {
|
|
263
|
+
value: string;
|
|
264
|
+
id: number;
|
|
265
|
+
created_at: Date;
|
|
266
|
+
updated_at: Date;
|
|
267
|
+
person_id: number;
|
|
268
|
+
}[];
|
|
269
|
+
} & {
|
|
270
|
+
name: string;
|
|
271
|
+
id: number;
|
|
272
|
+
created_at: Date;
|
|
273
|
+
updated_at: Date;
|
|
274
|
+
photo_id: number | null;
|
|
275
|
+
type_id: number;
|
|
276
|
+
birth_at: Date | null;
|
|
277
|
+
};
|
|
20
278
|
created: boolean;
|
|
21
279
|
code: string;
|
|
22
280
|
}>;
|
|
23
|
-
addContactIfNotExists(personId: number, value: string, typeId: number): Promise<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
281
|
+
addContactIfNotExists(personId: number, value: string, typeId: number): Promise<{
|
|
282
|
+
value: string;
|
|
283
|
+
id: number;
|
|
284
|
+
created_at: Date;
|
|
285
|
+
updated_at: Date;
|
|
286
|
+
type_id: number;
|
|
287
|
+
person_id: number;
|
|
288
|
+
primary: boolean;
|
|
289
|
+
}>;
|
|
290
|
+
addDocumentIfNotExists(personId: number, value: string, typeId: number, countryId?: number): Promise<{
|
|
291
|
+
value: string;
|
|
292
|
+
id: number;
|
|
293
|
+
created_at: Date;
|
|
294
|
+
updated_at: Date;
|
|
295
|
+
country_id: number;
|
|
296
|
+
type_id: number;
|
|
297
|
+
person_id: number;
|
|
298
|
+
primary: boolean;
|
|
299
|
+
issued_at: Date | null;
|
|
300
|
+
expiry_at: Date | null;
|
|
301
|
+
}>;
|
|
302
|
+
getPersonContact(personId: number, typeId: PersonContactTypeEnum): Promise<{
|
|
303
|
+
value: string;
|
|
304
|
+
id: number;
|
|
305
|
+
created_at: Date;
|
|
306
|
+
updated_at: Date;
|
|
307
|
+
type_id: number;
|
|
308
|
+
person_id: number;
|
|
309
|
+
primary: boolean;
|
|
310
|
+
}>;
|
|
311
|
+
getPersonDocument(personId: number, typeId: PersonDocumentTypeEnum): Promise<{
|
|
312
|
+
value: string;
|
|
313
|
+
id: number;
|
|
314
|
+
created_at: Date;
|
|
315
|
+
updated_at: Date;
|
|
316
|
+
country_id: number;
|
|
317
|
+
type_id: number;
|
|
318
|
+
person_id: number;
|
|
319
|
+
primary: boolean;
|
|
320
|
+
issued_at: Date | null;
|
|
321
|
+
expiry_at: Date | null;
|
|
322
|
+
}>;
|
|
27
323
|
}
|
|
28
324
|
//# 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;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAE1F,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;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAE1F,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkB1B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsHR,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,EACd,SAAS,SAAI;;;;;;;;;;;;IAwBT,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB;;;;;;;;;IAShE,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB;;;;;;;;;;;;CAQzE"}
|
|
@@ -5,7 +5,23 @@ import { DeleteDTO } from '@hed-hog/api';
|
|
|
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
|
+
number: string | null;
|
|
10
|
+
reference: string | null;
|
|
11
|
+
id: number;
|
|
12
|
+
created_at: Date;
|
|
13
|
+
updated_at: Date;
|
|
14
|
+
country_id: number;
|
|
15
|
+
type_id: number;
|
|
16
|
+
person_id: number;
|
|
17
|
+
primary: boolean;
|
|
18
|
+
street: string;
|
|
19
|
+
complement: string | null;
|
|
20
|
+
district: string;
|
|
21
|
+
city: string;
|
|
22
|
+
state: string;
|
|
23
|
+
postal_code: string;
|
|
24
|
+
}>;
|
|
9
25
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
26
|
total: any;
|
|
11
27
|
lastPage: number;
|
|
@@ -15,8 +31,24 @@ export declare class PersonAddressController {
|
|
|
15
31
|
next: number;
|
|
16
32
|
data: any;
|
|
17
33
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
34
|
+
get(personId: number, id: number): Promise<{
|
|
35
|
+
number: string | null;
|
|
36
|
+
reference: string | null;
|
|
37
|
+
id: number;
|
|
38
|
+
created_at: Date;
|
|
39
|
+
updated_at: Date;
|
|
40
|
+
country_id: number;
|
|
41
|
+
type_id: number;
|
|
42
|
+
person_id: number;
|
|
43
|
+
primary: boolean;
|
|
44
|
+
street: string;
|
|
45
|
+
complement: string | null;
|
|
46
|
+
district: string;
|
|
47
|
+
city: string;
|
|
48
|
+
state: string;
|
|
49
|
+
postal_code: string;
|
|
50
|
+
}>;
|
|
51
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
52
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
53
|
}
|
|
22
54
|
//# sourceMappingURL=person-address.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-address.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-address/person-address.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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-address.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-address/person-address.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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,40 @@ 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
|
+
number: string | null;
|
|
12
|
+
reference: string | null;
|
|
13
|
+
id: number;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
country_id: number;
|
|
17
|
+
type_id: number;
|
|
18
|
+
person_id: number;
|
|
19
|
+
primary: boolean;
|
|
20
|
+
street: string;
|
|
21
|
+
complement: string | null;
|
|
22
|
+
district: string;
|
|
23
|
+
city: string;
|
|
24
|
+
state: string;
|
|
25
|
+
postal_code: string;
|
|
26
|
+
}>;
|
|
27
|
+
get(personId: number, id: number): Promise<{
|
|
28
|
+
number: string | null;
|
|
29
|
+
reference: string | null;
|
|
30
|
+
id: number;
|
|
31
|
+
created_at: Date;
|
|
32
|
+
updated_at: Date;
|
|
33
|
+
country_id: number;
|
|
34
|
+
type_id: number;
|
|
35
|
+
person_id: number;
|
|
36
|
+
primary: boolean;
|
|
37
|
+
street: string;
|
|
38
|
+
complement: string | null;
|
|
39
|
+
district: string;
|
|
40
|
+
city: string;
|
|
41
|
+
state: string;
|
|
42
|
+
postal_code: string;
|
|
43
|
+
}>;
|
|
12
44
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
45
|
total: any;
|
|
14
46
|
lastPage: number;
|
|
@@ -18,7 +50,7 @@ export declare class PersonAddressService {
|
|
|
18
50
|
next: number;
|
|
19
51
|
data: any;
|
|
20
52
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
53
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
54
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
23
55
|
}
|
|
24
56
|
//# sourceMappingURL=person-address.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-address.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-address/person-address.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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":"person-address.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-address/person-address.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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,15 @@ import { DeleteDTO } from '@hed-hog/api';
|
|
|
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
|
+
created_at: Date;
|
|
12
|
+
updated_at: Date;
|
|
13
|
+
type_id: number;
|
|
14
|
+
person_id: number;
|
|
15
|
+
primary: boolean;
|
|
16
|
+
}>;
|
|
9
17
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
18
|
total: any;
|
|
11
19
|
lastPage: number;
|
|
@@ -15,8 +23,16 @@ export declare class PersonContactController {
|
|
|
15
23
|
next: number;
|
|
16
24
|
data: any;
|
|
17
25
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
get(personId: number, id: number): Promise<{
|
|
27
|
+
value: string;
|
|
28
|
+
id: number;
|
|
29
|
+
created_at: Date;
|
|
30
|
+
updated_at: Date;
|
|
31
|
+
type_id: number;
|
|
32
|
+
person_id: number;
|
|
33
|
+
primary: boolean;
|
|
34
|
+
}>;
|
|
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>;
|
|
21
37
|
}
|
|
22
38
|
//# sourceMappingURL=person-contact.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-contact.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-contact/person-contact.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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-contact.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-contact/person-contact.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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,24 @@ 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
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
|
+
type_id: number;
|
|
16
|
+
person_id: number;
|
|
17
|
+
primary: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
get(personId: number, id: number): Promise<{
|
|
20
|
+
value: string;
|
|
21
|
+
id: number;
|
|
22
|
+
created_at: Date;
|
|
23
|
+
updated_at: Date;
|
|
24
|
+
type_id: number;
|
|
25
|
+
person_id: number;
|
|
26
|
+
primary: boolean;
|
|
27
|
+
}>;
|
|
12
28
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
29
|
total: any;
|
|
14
30
|
lastPage: number;
|
|
@@ -18,7 +34,7 @@ export declare class PersonContactService {
|
|
|
18
34
|
next: number;
|
|
19
35
|
data: any;
|
|
20
36
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
37
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
38
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
23
39
|
}
|
|
24
40
|
//# sourceMappingURL=person-contact.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-contact.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-contact/person-contact.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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":"person-contact.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-contact/person-contact.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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"}
|
|
@@ -16,6 +16,6 @@ export declare class PersonCustomController {
|
|
|
16
16
|
data: any;
|
|
17
17
|
}>;
|
|
18
18
|
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
19
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
19
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=person-custom.controller.d.ts.map
|
|
@@ -23,6 +23,6 @@ export declare class PersonCustomService {
|
|
|
23
23
|
get(id: number): Promise<any>;
|
|
24
24
|
create(personId: number, data: CreateDTO): Promise<any>;
|
|
25
25
|
update(id: number, personId: number, data: UpdateDTO): Promise<any>;
|
|
26
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
26
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=person-custom.service.d.ts.map
|
|
@@ -5,7 +5,18 @@ import { DeleteDTO } from '@hed-hog/api';
|
|
|
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
|
+
created_at: Date;
|
|
12
|
+
updated_at: Date;
|
|
13
|
+
country_id: number;
|
|
14
|
+
type_id: number;
|
|
15
|
+
person_id: number;
|
|
16
|
+
primary: boolean;
|
|
17
|
+
issued_at: Date | null;
|
|
18
|
+
expiry_at: Date | null;
|
|
19
|
+
}>;
|
|
9
20
|
list(personId: number, paginationParams: any): Promise<{
|
|
10
21
|
total: any;
|
|
11
22
|
lastPage: number;
|
|
@@ -15,8 +26,19 @@ export declare class PersonDocumentController {
|
|
|
15
26
|
next: number;
|
|
16
27
|
data: any;
|
|
17
28
|
}>;
|
|
18
|
-
get(personId: number, id: number): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
29
|
+
get(personId: number, id: number): Promise<{
|
|
30
|
+
value: string;
|
|
31
|
+
id: number;
|
|
32
|
+
created_at: Date;
|
|
33
|
+
updated_at: Date;
|
|
34
|
+
country_id: number;
|
|
35
|
+
type_id: number;
|
|
36
|
+
person_id: number;
|
|
37
|
+
primary: boolean;
|
|
38
|
+
issued_at: Date | null;
|
|
39
|
+
expiry_at: Date | null;
|
|
40
|
+
}>;
|
|
41
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
42
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
43
|
}
|
|
22
44
|
//# sourceMappingURL=person-document.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-document.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-document/person-document.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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-document.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-document/person-document.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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,30 @@ 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
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
|
+
country_id: number;
|
|
16
|
+
type_id: number;
|
|
17
|
+
person_id: number;
|
|
18
|
+
primary: boolean;
|
|
19
|
+
issued_at: Date | null;
|
|
20
|
+
expiry_at: Date | null;
|
|
21
|
+
}>;
|
|
22
|
+
get(personId: number, id: number): Promise<{
|
|
23
|
+
value: string;
|
|
24
|
+
id: number;
|
|
25
|
+
created_at: Date;
|
|
26
|
+
updated_at: Date;
|
|
27
|
+
country_id: number;
|
|
28
|
+
type_id: number;
|
|
29
|
+
person_id: number;
|
|
30
|
+
primary: boolean;
|
|
31
|
+
issued_at: Date | null;
|
|
32
|
+
expiry_at: Date | null;
|
|
33
|
+
}>;
|
|
12
34
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
13
35
|
total: any;
|
|
14
36
|
lastPage: number;
|
|
@@ -18,7 +40,7 @@ export declare class PersonDocumentService {
|
|
|
18
40
|
next: number;
|
|
19
41
|
data: any;
|
|
20
42
|
}>;
|
|
21
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
22
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
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>;
|
|
23
45
|
}
|
|
24
46
|
//# sourceMappingURL=person-document.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-document.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-document/person-document.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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-document.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-document/person-document.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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 { DeleteDTO } from '@hed-hog/api';
|
|
|
5
5
|
export declare class PersonUserController {
|
|
6
6
|
private readonly personUserService;
|
|
7
7
|
constructor(personUserService: PersonUserService);
|
|
8
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
9
|
+
id: number;
|
|
10
|
+
created_at: Date;
|
|
11
|
+
updated_at: Date;
|
|
12
|
+
user_id: number;
|
|
13
|
+
person_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 PersonUserController {
|
|
|
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
|
+
id: number;
|
|
26
|
+
created_at: Date;
|
|
27
|
+
updated_at: Date;
|
|
28
|
+
user_id: number;
|
|
29
|
+
person_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=person-user.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-user.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-user/person-user.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAEa,oBAAoB;IAG7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAIvD,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-user.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-user/person-user.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAEa,oBAAoB;IAG7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAIvD,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 PersonUserService {
|
|
|
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
|
+
created_at: Date;
|
|
13
|
+
updated_at: Date;
|
|
14
|
+
user_id: number;
|
|
15
|
+
person_id: number;
|
|
16
|
+
}>;
|
|
17
|
+
get(personId: number, id: number): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
created_at: Date;
|
|
20
|
+
updated_at: Date;
|
|
21
|
+
user_id: number;
|
|
22
|
+
person_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 PersonUserService {
|
|
|
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-user.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-user.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-user/person-user.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBACa,iBAAiB;IAE1B,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-user.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-user/person-user.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBACa,iBAAiB;IAE1B,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 { DeleteDTO } from '@hed-hog/api';
|
|
|
5
5
|
export declare class PersonValueController {
|
|
6
6
|
private readonly personValueService;
|
|
7
7
|
constructor(personValueService: PersonValueService);
|
|
8
|
-
create(personId: number, data: CreateDTO): Promise<
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<{
|
|
9
|
+
value: string;
|
|
10
|
+
id: number;
|
|
11
|
+
created_at: Date;
|
|
12
|
+
updated_at: Date;
|
|
13
|
+
person_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 PersonValueController {
|
|
|
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
|
+
created_at: Date;
|
|
28
|
+
updated_at: Date;
|
|
29
|
+
person_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=person-value.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-value.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-value/person-value.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAEa,qBAAqB;IAG9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,kBAAkB;IAIzD,MAAM,CAC6B,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"person-value.controller.d.ts","sourceRoot":"","sources":["../../../src/person/person-value/person-value.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAEa,qBAAqB;IAG9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,kBAAkB;IAIzD,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 PersonValueService {
|
|
|
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
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
|
+
person_id: number;
|
|
16
|
+
}>;
|
|
17
|
+
get(personId: number, id: number): Promise<{
|
|
18
|
+
value: string;
|
|
19
|
+
id: number;
|
|
20
|
+
created_at: Date;
|
|
21
|
+
updated_at: Date;
|
|
22
|
+
person_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 PersonValueService {
|
|
|
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-value.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-value.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-value/person-value.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBACa,kBAAkB;IAE3B,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-value.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-value/person-value.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBACa,kBAAkB;IAE3B,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"}
|
|
@@ -14,9 +14,33 @@ export declare class PersonController {
|
|
|
14
14
|
next: number;
|
|
15
15
|
data: any;
|
|
16
16
|
}>;
|
|
17
|
-
get(id: number): Promise<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
get(id: number): Promise<{
|
|
18
|
+
name: string;
|
|
19
|
+
id: number;
|
|
20
|
+
created_at: Date;
|
|
21
|
+
updated_at: Date;
|
|
22
|
+
photo_id: number | null;
|
|
23
|
+
type_id: number;
|
|
24
|
+
birth_at: Date | null;
|
|
25
|
+
}>;
|
|
26
|
+
create(data: CreateDTO): Promise<{
|
|
27
|
+
name: string;
|
|
28
|
+
id: number;
|
|
29
|
+
created_at: Date;
|
|
30
|
+
updated_at: Date;
|
|
31
|
+
photo_id: number | null;
|
|
32
|
+
type_id: number;
|
|
33
|
+
birth_at: Date | null;
|
|
34
|
+
}>;
|
|
35
|
+
update(id: number, data: UpdateDTO): Promise<{
|
|
36
|
+
name: string;
|
|
37
|
+
id: number;
|
|
38
|
+
created_at: Date;
|
|
39
|
+
updated_at: Date;
|
|
40
|
+
photo_id: number | null;
|
|
41
|
+
type_id: number;
|
|
42
|
+
birth_at: Date | null;
|
|
43
|
+
}>;
|
|
44
|
+
delete(data: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
21
45
|
}
|
|
22
46
|
//# 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":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAEa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,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":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAEa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,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"}
|
|
@@ -16,12 +16,36 @@ export declare class PersonService {
|
|
|
16
16
|
next: number;
|
|
17
17
|
data: any;
|
|
18
18
|
}>;
|
|
19
|
-
get(id: number): Promise<
|
|
20
|
-
|
|
19
|
+
get(id: number): Promise<{
|
|
20
|
+
name: string;
|
|
21
|
+
id: number;
|
|
22
|
+
created_at: Date;
|
|
23
|
+
updated_at: Date;
|
|
24
|
+
photo_id: number | null;
|
|
25
|
+
type_id: number;
|
|
26
|
+
birth_at: Date | null;
|
|
27
|
+
}>;
|
|
28
|
+
create(data: CreateDTO): Promise<{
|
|
29
|
+
name: string;
|
|
30
|
+
id: number;
|
|
31
|
+
created_at: Date;
|
|
32
|
+
updated_at: Date;
|
|
33
|
+
photo_id: number | null;
|
|
34
|
+
type_id: number;
|
|
35
|
+
birth_at: Date | null;
|
|
36
|
+
}>;
|
|
21
37
|
update({ id, data }: {
|
|
22
38
|
id: number;
|
|
23
39
|
data: UpdateDTO;
|
|
24
|
-
}): Promise<
|
|
25
|
-
|
|
40
|
+
}): Promise<{
|
|
41
|
+
name: string;
|
|
42
|
+
id: number;
|
|
43
|
+
created_at: Date;
|
|
44
|
+
updated_at: Date;
|
|
45
|
+
photo_id: number | null;
|
|
46
|
+
type_id: number;
|
|
47
|
+
birth_at: Date | null;
|
|
48
|
+
}>;
|
|
49
|
+
delete({ ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
26
50
|
}
|
|
27
51
|
//# 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,IAAI,CAAC,gBAAgB,EAAE,aAAa;;;;;;;;;IA2BpC,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,IAAI,CAAC,gBAAgB,EAAE,aAAa;;;;;;;;;IA2BpC,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 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=person-address-type.controller.d.ts.map
|
|
@@ -26,6 +26,6 @@ export declare class PersonAddressTypeService {
|
|
|
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-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=person-contact-type.controller.d.ts.map
|
|
@@ -26,6 +26,6 @@ export declare class PersonContactTypeService {
|
|
|
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-contact-type.service.d.ts.map
|
|
@@ -17,6 +17,6 @@ export declare class PersonCustomTypeController {
|
|
|
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-custom-type.controller.d.ts.map
|
|
@@ -26,6 +26,6 @@ export declare class PersonCustomTypeService {
|
|
|
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-custom-type.service.d.ts.map
|
|
@@ -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=person-document-type.controller.d.ts.map
|
|
@@ -26,6 +26,6 @@ export declare class PersonDocumentTypeService {
|
|
|
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-document-type.service.d.ts.map
|
|
@@ -17,6 +17,6 @@ export declare class PersonTypeController {
|
|
|
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-type.controller.d.ts.map
|
|
@@ -26,6 +26,6 @@ export declare class PersonTypeService {
|
|
|
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-type.service.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,12 +9,11 @@
|
|
|
9
9
|
"@nestjs/core": "^11",
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
|
-
"@hed-hog/admin": "0.0.
|
|
13
|
-
"@hed-hog/api": "0.0.3",
|
|
14
|
-
"@hed-hog/file": "0.0.13",
|
|
15
|
-
"@hed-hog/api-prisma": "0.0.4",
|
|
12
|
+
"@hed-hog/admin": "0.0.30",
|
|
16
13
|
"@hed-hog/api-locale": "0.0.3",
|
|
17
|
-
"@hed-hog/country": "0.0.
|
|
14
|
+
"@hed-hog/country": "0.0.9",
|
|
15
|
+
"@hed-hog/api-prisma": "0.0.4",
|
|
16
|
+
"@hed-hog/api": "0.0.3",
|
|
18
17
|
"@hed-hog/api-pagination": "0.0.3",
|
|
19
18
|
"@hed-hog/api-mail": "0.0.4"
|
|
20
19
|
},
|
package/hedhog/data/screen.yaml
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
- name:
|
|
2
|
-
en: PersonValue
|
|
3
|
-
pt: PersonValue
|
|
4
|
-
slug: person-value
|
|
5
|
-
description:
|
|
6
|
-
en: Screen to manage person_value
|
|
7
|
-
pt: Tela para gerenciar person_value
|
|
8
|
-
icon: file
|
|
9
|
-
- name:
|
|
10
|
-
en: PersonType
|
|
11
|
-
pt: PersonType
|
|
12
|
-
slug: person-type
|
|
13
|
-
description:
|
|
14
|
-
en: Screen to manage person_type
|
|
15
|
-
pt: Tela para gerenciar person_type
|
|
16
|
-
icon: file
|
|
17
|
-
- name:
|
|
18
|
-
en: Person
|
|
19
|
-
pt: Person
|
|
20
|
-
slug: person
|
|
21
|
-
description:
|
|
22
|
-
en: Screen to manage person
|
|
23
|
-
pt: Tela para gerenciar person
|
|
24
|
-
icon: file
|
|
25
|
-
- name:
|
|
26
|
-
en: PersonDocumentType
|
|
27
|
-
pt: PersonDocumentType
|
|
28
|
-
slug: person-document-type
|
|
29
|
-
description:
|
|
30
|
-
en: Screen to manage person_document_type
|
|
31
|
-
pt: Tela para gerenciar person_document_type
|
|
32
|
-
icon: file
|
|
33
|
-
- name:
|
|
34
|
-
en: PersonDocument
|
|
35
|
-
pt: PersonDocument
|
|
36
|
-
slug: person-document
|
|
37
|
-
description:
|
|
38
|
-
en: Screen to manage person_document
|
|
39
|
-
pt: Tela para gerenciar person_document
|
|
40
|
-
icon: file
|
|
41
|
-
- name:
|
|
42
|
-
en: PersonContactType
|
|
43
|
-
pt: PersonContactType
|
|
44
|
-
slug: person-contact-type
|
|
45
|
-
description:
|
|
46
|
-
en: Screen to manage person_contact_type
|
|
47
|
-
pt: Tela para gerenciar person_contact_type
|
|
48
|
-
icon: file
|
|
49
|
-
- name:
|
|
50
|
-
en: PersonContact
|
|
51
|
-
pt: PersonContact
|
|
52
|
-
slug: person-contact
|
|
53
|
-
description:
|
|
54
|
-
en: Screen to manage person_contact
|
|
55
|
-
pt: Tela para gerenciar person_contact
|
|
56
|
-
icon: file
|
|
57
|
-
- name:
|
|
58
|
-
en: PersonAddressType
|
|
59
|
-
pt: PersonAddressType
|
|
60
|
-
slug: person-address-type
|
|
61
|
-
description:
|
|
62
|
-
en: Screen to manage person_address_type
|
|
63
|
-
pt: Tela para gerenciar person_address_type
|
|
64
|
-
icon: file
|
|
65
|
-
- name:
|
|
66
|
-
en: PersonAddress
|
|
67
|
-
pt: PersonAddress
|
|
68
|
-
slug: person-address
|
|
69
|
-
description:
|
|
70
|
-
en: Screen to manage person_address
|
|
71
|
-
pt: Tela para gerenciar person_address
|
|
72
|
-
icon: file
|
|
73
|
-
- name:
|
|
74
|
-
en: PersonCustomType
|
|
75
|
-
pt: PersonCustomType
|
|
76
|
-
slug: person-custom-type
|
|
77
|
-
description:
|
|
78
|
-
en: Screen to manage person_custom_type
|
|
79
|
-
pt: Tela para gerenciar person_custom_type
|
|
80
|
-
icon: file
|
|
81
|
-
- name:
|
|
82
|
-
en: PersonCustom
|
|
83
|
-
pt: PersonCustom
|
|
84
|
-
slug: person-custom
|
|
85
|
-
description:
|
|
86
|
-
en: Screen to manage person_custom
|
|
87
|
-
pt: Tela para gerenciar person_custom
|
|
88
|
-
icon: file
|
|
89
|
-
- name:
|
|
90
|
-
en: PersonUser
|
|
91
|
-
pt: PersonUser
|
|
92
|
-
slug: person-user
|
|
93
|
-
description:
|
|
94
|
-
en: Screen to manage person_user
|
|
95
|
-
pt: Tela para gerenciar person_user
|
|
96
|
-
icon: file
|