@hed-hog/contact 0.0.9 → 0.0.11
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 +7 -303
- package/dist/contact.service.d.ts.map +1 -1
- package/dist/person/person-address/person-address.controller.d.ts +4 -36
- package/dist/person/person-address/person-address.controller.d.ts.map +1 -1
- package/dist/person/person-address/person-address.service.d.ts +4 -36
- package/dist/person/person-address/person-address.service.d.ts.map +1 -1
- package/dist/person/person-contact/person-contact.controller.d.ts +4 -20
- package/dist/person/person-contact/person-contact.controller.d.ts.map +1 -1
- package/dist/person/person-contact/person-contact.service.d.ts +4 -20
- 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 +4 -26
- package/dist/person/person-document/person-document.controller.d.ts.map +1 -1
- package/dist/person/person-document/person-document.service.d.ts +4 -26
- package/dist/person/person-document/person-document.service.d.ts.map +1 -1
- package/dist/person/person-user/person-user.controller.d.ts +4 -16
- package/dist/person/person-user/person-user.controller.d.ts.map +1 -1
- package/dist/person/person-user/person-user.service.d.ts +4 -16
- package/dist/person/person-user/person-user.service.d.ts.map +1 -1
- package/dist/person/person-value/person-value.controller.d.ts +4 -16
- package/dist/person/person-value/person-value.controller.d.ts.map +1 -1
- package/dist/person/person-value/person-value.service.d.ts +4 -16
- package/dist/person/person-value/person-value.service.d.ts.map +1 -1
- package/dist/person/person.controller.d.ts +4 -28
- package/dist/person/person.controller.d.ts.map +1 -1
- package/dist/person/person.service.d.ts +4 -28
- 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/hedhog/query/000.sql +25 -0
- package/package.json +5 -5
|
@@ -10,315 +10,19 @@ 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<
|
|
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
|
-
}>;
|
|
13
|
+
getPerson(personId: number): Promise<any>;
|
|
100
14
|
getPersonOrCreateIfNotExists(type_id: number, name: string, email: string, phone: string, cpf: string, cnpj: string): Promise<{
|
|
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
|
-
};
|
|
15
|
+
person: any;
|
|
188
16
|
created: boolean;
|
|
189
17
|
code?: undefined;
|
|
190
18
|
} | {
|
|
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
|
-
};
|
|
19
|
+
person: any;
|
|
278
20
|
created: boolean;
|
|
279
21
|
code: string;
|
|
280
22
|
}>;
|
|
281
|
-
addContactIfNotExists(personId: number, value: string, typeId: number): Promise<
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
}>;
|
|
23
|
+
addContactIfNotExists(personId: number, value: string, typeId: number): Promise<any>;
|
|
24
|
+
addDocumentIfNotExists(personId: number, value: string, typeId: number, countryId?: number): Promise<any>;
|
|
25
|
+
getPersonContact(personId: number, typeId: PersonContactTypeEnum): Promise<any>;
|
|
26
|
+
getPersonDocument(personId: number, typeId: PersonDocumentTypeEnum): Promise<any>;
|
|
323
27
|
}
|
|
324
28
|
//# 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,23 +5,7 @@ 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<
|
|
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
|
-
}>;
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
25
9
|
list(personId: number, paginationParams: any): Promise<{
|
|
26
10
|
total: any;
|
|
27
11
|
lastPage: number;
|
|
@@ -31,24 +15,8 @@ export declare class PersonAddressController {
|
|
|
31
15
|
next: number;
|
|
32
16
|
data: any;
|
|
33
17
|
}>;
|
|
34
|
-
get(personId: number, id: number): Promise<
|
|
35
|
-
|
|
36
|
-
|
|
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>;
|
|
18
|
+
get(personId: number, id: number): Promise<any>;
|
|
19
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
53
21
|
}
|
|
54
22
|
//# 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,40 +7,8 @@ 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
|
-
|
|
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
|
-
}>;
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
11
|
+
get(personId: number, id: number): Promise<any>;
|
|
44
12
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
45
13
|
total: any;
|
|
46
14
|
lastPage: number;
|
|
@@ -50,7 +18,7 @@ export declare class PersonAddressService {
|
|
|
50
18
|
next: number;
|
|
51
19
|
data: any;
|
|
52
20
|
}>;
|
|
53
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
54
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
21
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
22
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
55
23
|
}
|
|
56
24
|
//# 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,15 +5,7 @@ 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<
|
|
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
|
-
}>;
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
17
9
|
list(personId: number, paginationParams: any): Promise<{
|
|
18
10
|
total: any;
|
|
19
11
|
lastPage: number;
|
|
@@ -23,16 +15,8 @@ export declare class PersonContactController {
|
|
|
23
15
|
next: number;
|
|
24
16
|
data: any;
|
|
25
17
|
}>;
|
|
26
|
-
get(personId: number, id: number): Promise<
|
|
27
|
-
|
|
28
|
-
|
|
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>;
|
|
18
|
+
get(personId: number, id: number): Promise<any>;
|
|
19
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
37
21
|
}
|
|
38
22
|
//# 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,24 +7,8 @@ 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
|
-
|
|
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
|
-
}>;
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
11
|
+
get(personId: number, id: number): Promise<any>;
|
|
28
12
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
29
13
|
total: any;
|
|
30
14
|
lastPage: number;
|
|
@@ -34,7 +18,7 @@ export declare class PersonContactService {
|
|
|
34
18
|
next: number;
|
|
35
19
|
data: any;
|
|
36
20
|
}>;
|
|
37
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
38
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
21
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
22
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
39
23
|
}
|
|
40
24
|
//# 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<any>;
|
|
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<any>;
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=person-custom.service.d.ts.map
|
|
@@ -5,18 +5,7 @@ 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<
|
|
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
|
-
}>;
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
20
9
|
list(personId: number, paginationParams: any): Promise<{
|
|
21
10
|
total: any;
|
|
22
11
|
lastPage: number;
|
|
@@ -26,19 +15,8 @@ export declare class PersonDocumentController {
|
|
|
26
15
|
next: number;
|
|
27
16
|
data: any;
|
|
28
17
|
}>;
|
|
29
|
-
get(personId: number, id: number): Promise<
|
|
30
|
-
|
|
31
|
-
|
|
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>;
|
|
18
|
+
get(personId: number, id: number): Promise<any>;
|
|
19
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
43
21
|
}
|
|
44
22
|
//# 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,30 +7,8 @@ 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
|
-
|
|
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
|
-
}>;
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
11
|
+
get(personId: number, id: number): Promise<any>;
|
|
34
12
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
35
13
|
total: any;
|
|
36
14
|
lastPage: number;
|
|
@@ -40,7 +18,7 @@ export declare class PersonDocumentService {
|
|
|
40
18
|
next: number;
|
|
41
19
|
data: any;
|
|
42
20
|
}>;
|
|
43
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
44
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
21
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
22
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
45
23
|
}
|
|
46
24
|
//# 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,13 +5,7 @@ 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<
|
|
9
|
-
id: number;
|
|
10
|
-
created_at: Date;
|
|
11
|
-
updated_at: Date;
|
|
12
|
-
user_id: number;
|
|
13
|
-
person_id: number;
|
|
14
|
-
}>;
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
15
9
|
list(personId: number, paginationParams: any): Promise<{
|
|
16
10
|
total: any;
|
|
17
11
|
lastPage: number;
|
|
@@ -21,14 +15,8 @@ export declare class PersonUserController {
|
|
|
21
15
|
next: number;
|
|
22
16
|
data: any;
|
|
23
17
|
}>;
|
|
24
|
-
get(personId: number, id: number): Promise<
|
|
25
|
-
|
|
26
|
-
|
|
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>;
|
|
18
|
+
get(personId: number, id: number): Promise<any>;
|
|
19
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
33
21
|
}
|
|
34
22
|
//# 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,20 +7,8 @@ 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
|
-
|
|
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
|
-
}>;
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
11
|
+
get(personId: number, id: number): Promise<any>;
|
|
24
12
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
25
13
|
total: any;
|
|
26
14
|
lastPage: number;
|
|
@@ -30,7 +18,7 @@ export declare class PersonUserService {
|
|
|
30
18
|
next: number;
|
|
31
19
|
data: any;
|
|
32
20
|
}>;
|
|
33
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
34
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
21
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
22
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
35
23
|
}
|
|
36
24
|
//# 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,13 +5,7 @@ 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<
|
|
9
|
-
value: string;
|
|
10
|
-
id: number;
|
|
11
|
-
created_at: Date;
|
|
12
|
-
updated_at: Date;
|
|
13
|
-
person_id: number;
|
|
14
|
-
}>;
|
|
8
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
15
9
|
list(personId: number, paginationParams: any): Promise<{
|
|
16
10
|
total: any;
|
|
17
11
|
lastPage: number;
|
|
@@ -21,14 +15,8 @@ export declare class PersonValueController {
|
|
|
21
15
|
next: number;
|
|
22
16
|
data: any;
|
|
23
17
|
}>;
|
|
24
|
-
get(personId: number, id: number): Promise<
|
|
25
|
-
|
|
26
|
-
|
|
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>;
|
|
18
|
+
get(personId: number, id: number): Promise<any>;
|
|
19
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
33
21
|
}
|
|
34
22
|
//# 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,20 +7,8 @@ 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
|
-
|
|
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
|
-
}>;
|
|
10
|
+
create(personId: number, data: CreateDTO): Promise<any>;
|
|
11
|
+
get(personId: number, id: number): Promise<any>;
|
|
24
12
|
list(paginationParams: PaginationDTO, personId?: number): Promise<{
|
|
25
13
|
total: any;
|
|
26
14
|
lastPage: number;
|
|
@@ -30,7 +18,7 @@ export declare class PersonValueService {
|
|
|
30
18
|
next: number;
|
|
31
19
|
data: any;
|
|
32
20
|
}>;
|
|
33
|
-
update(personId: number, id: number, data: UpdateDTO): Promise<
|
|
34
|
-
delete(personId: number, { ids }: DeleteDTO): Promise<
|
|
21
|
+
update(personId: number, id: number, data: UpdateDTO): Promise<any>;
|
|
22
|
+
delete(personId: number, { ids }: DeleteDTO): Promise<any>;
|
|
35
23
|
}
|
|
36
24
|
//# 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,33 +14,9 @@ export declare class PersonController {
|
|
|
14
14
|
next: number;
|
|
15
15
|
data: any;
|
|
16
16
|
}>;
|
|
17
|
-
get(id: number): Promise<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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>;
|
|
17
|
+
get(id: number): Promise<any>;
|
|
18
|
+
create(data: CreateDTO): Promise<any>;
|
|
19
|
+
update(id: number, data: UpdateDTO): Promise<any>;
|
|
20
|
+
delete(data: DeleteDTO): Promise<any>;
|
|
45
21
|
}
|
|
46
22
|
//# 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,36 +16,12 @@ export declare class PersonService {
|
|
|
16
16
|
next: number;
|
|
17
17
|
data: any;
|
|
18
18
|
}>;
|
|
19
|
-
get(id: number): Promise<
|
|
20
|
-
|
|
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
|
-
}>;
|
|
19
|
+
get(id: number): Promise<any>;
|
|
20
|
+
create(data: CreateDTO): Promise<any>;
|
|
37
21
|
update({ id, data }: {
|
|
38
22
|
id: number;
|
|
39
23
|
data: UpdateDTO;
|
|
40
|
-
}): Promise<
|
|
41
|
-
|
|
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>;
|
|
24
|
+
}): Promise<any>;
|
|
25
|
+
delete({ ids }: DeleteDTO): Promise<any>;
|
|
50
26
|
}
|
|
51
27
|
//# 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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
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<any>;
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=person-type.service.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
-- Criação da função trigger
|
|
2
|
+
CREATE OR REPLACE FUNCTION sync_person_to_user()
|
|
3
|
+
RETURNS TRIGGER AS $$
|
|
4
|
+
BEGIN
|
|
5
|
+
-- Executa apenas se for INSERT ou se name/photo_id mudaram
|
|
6
|
+
IF (TG_OP = 'INSERT') OR
|
|
7
|
+
(OLD.name IS DISTINCT FROM NEW.name) OR
|
|
8
|
+
(OLD.photo_id IS DISTINCT FROM NEW.photo_id) THEN
|
|
9
|
+
UPDATE "user"
|
|
10
|
+
SET name = NEW.name,
|
|
11
|
+
photo_id = NEW.photo_id
|
|
12
|
+
WHERE id = NEW.id;
|
|
13
|
+
END IF;
|
|
14
|
+
|
|
15
|
+
RETURN NEW;
|
|
16
|
+
END;
|
|
17
|
+
$$ LANGUAGE plpgsql;
|
|
18
|
+
|
|
19
|
+
-- Criação da trigger na tabela person
|
|
20
|
+
DROP TRIGGER IF EXISTS person_sync_user_trigger ON person;
|
|
21
|
+
|
|
22
|
+
CREATE TRIGGER person_sync_user_trigger
|
|
23
|
+
AFTER INSERT OR UPDATE OF name, photo_id ON person
|
|
24
|
+
FOR EACH ROW
|
|
25
|
+
EXECUTE FUNCTION sync_person_to_user();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"@nestjs/core": "^11",
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
|
-
"@hed-hog/admin": "0.0.30",
|
|
13
|
-
"@hed-hog/api-locale": "0.0.3",
|
|
14
12
|
"@hed-hog/country": "0.0.9",
|
|
15
|
-
"@hed-hog/api-
|
|
16
|
-
"@hed-hog/api": "0.0.3",
|
|
13
|
+
"@hed-hog/api-locale": "0.0.3",
|
|
17
14
|
"@hed-hog/api-pagination": "0.0.3",
|
|
15
|
+
"@hed-hog/api": "0.0.3",
|
|
16
|
+
"@hed-hog/api-prisma": "0.0.4",
|
|
17
|
+
"@hed-hog/admin": "0.0.36",
|
|
18
18
|
"@hed-hog/api-mail": "0.0.4"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|