@hed-hog/contact 0.0.294 → 0.0.296
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/person/dto/account.dto.d.ts +28 -0
- package/dist/person/dto/account.dto.d.ts.map +1 -0
- package/dist/person/dto/account.dto.js +123 -0
- package/dist/person/dto/account.dto.js.map +1 -0
- package/dist/person/dto/activity.dto.d.ts +15 -0
- package/dist/person/dto/activity.dto.d.ts.map +1 -0
- package/dist/person/dto/activity.dto.js +65 -0
- package/dist/person/dto/activity.dto.js.map +1 -0
- package/dist/person/dto/dashboard-query.dto.d.ts +9 -0
- package/dist/person/dto/dashboard-query.dto.d.ts.map +1 -0
- package/dist/person/dto/dashboard-query.dto.js +40 -0
- package/dist/person/dto/dashboard-query.dto.js.map +1 -0
- package/dist/person/dto/followup-query.dto.d.ts +10 -0
- package/dist/person/dto/followup-query.dto.d.ts.map +1 -0
- package/dist/person/dto/followup-query.dto.js +45 -0
- package/dist/person/dto/followup-query.dto.js.map +1 -0
- package/dist/person/dto/reports-query.dto.d.ts +8 -0
- package/dist/person/dto/reports-query.dto.d.ts.map +1 -0
- package/dist/person/dto/reports-query.dto.js +33 -0
- package/dist/person/dto/reports-query.dto.js.map +1 -0
- package/dist/person/person.controller.d.ts +266 -5
- package/dist/person/person.controller.d.ts.map +1 -1
- package/dist/person/person.controller.js +164 -6
- package/dist/person/person.controller.js.map +1 -1
- package/dist/person/person.service.d.ts +295 -5
- package/dist/person/person.service.d.ts.map +1 -1
- package/dist/person/person.service.js +1752 -27
- package/dist/person/person.service.js.map +1 -1
- package/dist/person-relation-type/person-relation-type.controller.d.ts +2 -2
- package/dist/person-relation-type/person-relation-type.service.d.ts +2 -2
- package/hedhog/data/route.yaml +68 -19
- package/hedhog/frontend/app/_lib/crm-sections.tsx.ejs +9 -9
- package/hedhog/frontend/app/accounts/_components/account-form-sheet.tsx.ejs +573 -477
- package/hedhog/frontend/app/accounts/_components/account-types.ts.ejs +9 -6
- package/hedhog/frontend/app/accounts/page.tsx.ejs +970 -892
- package/hedhog/frontend/app/activities/_components/activity-detail-sheet.tsx.ejs +240 -0
- package/hedhog/frontend/app/activities/_components/activity-types.ts.ejs +66 -0
- package/hedhog/frontend/app/activities/page.tsx.ejs +460 -812
- package/hedhog/frontend/app/dashboard/_components/dashboard-types.ts.ejs +70 -0
- package/hedhog/frontend/app/dashboard/page.tsx.ejs +639 -491
- package/hedhog/frontend/app/follow-ups/page.tsx.ejs +785 -696
- package/hedhog/frontend/app/person/_components/person-interaction-dialog.tsx.ejs +10 -12
- package/hedhog/frontend/app/reports/_components/report-types.ts.ejs +84 -0
- package/hedhog/frontend/app/reports/page.tsx.ejs +1196 -15
- package/hedhog/frontend/messages/en.json +242 -38
- package/hedhog/frontend/messages/pt.json +242 -38
- package/hedhog/table/crm_activity.yaml +68 -0
- package/hedhog/table/crm_stage_history.yaml +34 -0
- package/hedhog/table/person_company.yaml +27 -5
- package/package.json +9 -9
- package/src/person/dto/account.dto.ts +100 -0
- package/src/person/dto/activity.dto.ts +54 -0
- package/src/person/dto/dashboard-query.dto.ts +25 -0
- package/src/person/dto/followup-query.dto.ts +25 -0
- package/src/person/dto/reports-query.dto.ts +25 -0
- package/src/person/person.controller.ts +176 -43
- package/src/person/person.service.ts +4825 -2226
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { DeleteDTO } from '@hed-hog/api';
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
+
import { AccountListQueryDTO, CreateAccountDTO, UpdateAccountDTO } from './dto/account.dto';
|
|
4
|
+
import { ActivityListQueryDTO } from './dto/activity.dto';
|
|
3
5
|
import { CreateFollowupDTO } from './dto/create-followup.dto';
|
|
4
6
|
import { CreateInteractionDTO } from './dto/create-interaction.dto';
|
|
5
7
|
import { CreateDTO } from './dto/create.dto';
|
|
8
|
+
import { DashboardQueryDTO } from './dto/dashboard-query.dto';
|
|
6
9
|
import { CheckPersonDuplicatesQueryDTO } from './dto/duplicates-query.dto';
|
|
10
|
+
import { FollowupListQueryDTO, FollowupStatsQueryDTO } from './dto/followup-query.dto';
|
|
7
11
|
import { MergePersonDTO } from './dto/merge.dto';
|
|
12
|
+
import { ReportsQueryDTO } from './dto/reports-query.dto';
|
|
8
13
|
import { UpdateLifecycleStageDTO } from './dto/update-lifecycle-stage.dto';
|
|
9
14
|
import { UpdateAllPersonDTO } from './dto/update.dto';
|
|
10
15
|
import { PersonService } from './person.service';
|
|
@@ -18,6 +23,119 @@ export declare class PersonController {
|
|
|
18
23
|
active: number;
|
|
19
24
|
inactive: number;
|
|
20
25
|
}>;
|
|
26
|
+
getDashboard(query: DashboardQueryDTO, locale: string): Promise<{
|
|
27
|
+
kpis: {
|
|
28
|
+
total_leads: number;
|
|
29
|
+
qualified: number;
|
|
30
|
+
proposal: number;
|
|
31
|
+
customers: number;
|
|
32
|
+
lost: number;
|
|
33
|
+
unassigned: number;
|
|
34
|
+
overdue: number;
|
|
35
|
+
next_actions: number;
|
|
36
|
+
};
|
|
37
|
+
charts: {
|
|
38
|
+
stage: Array<{
|
|
39
|
+
key: "new" | "contacted" | "qualified" | "proposal" | "negotiation" | "customer" | "lost";
|
|
40
|
+
total: number;
|
|
41
|
+
}>;
|
|
42
|
+
source: Array<{
|
|
43
|
+
key: "other" | "social" | "website" | "inbound" | "outbound" | "referral";
|
|
44
|
+
total: number;
|
|
45
|
+
}>;
|
|
46
|
+
owner_performance: {
|
|
47
|
+
owner_user_id: number;
|
|
48
|
+
owner_name: string;
|
|
49
|
+
leads: number;
|
|
50
|
+
customers: number;
|
|
51
|
+
pipeline_value: number;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
lists: {
|
|
55
|
+
next_actions: {
|
|
56
|
+
id: number;
|
|
57
|
+
name: string;
|
|
58
|
+
trade_name: string | null;
|
|
59
|
+
owner_user: {
|
|
60
|
+
id: number;
|
|
61
|
+
name: string;
|
|
62
|
+
} | null;
|
|
63
|
+
source: "other" | "social" | "website" | "inbound" | "outbound" | "referral";
|
|
64
|
+
lifecycle_stage: "new" | "contacted" | "qualified" | "proposal" | "negotiation" | "customer" | "lost";
|
|
65
|
+
next_action_at?: string;
|
|
66
|
+
created_at?: string;
|
|
67
|
+
}[];
|
|
68
|
+
unattended: {
|
|
69
|
+
id: number;
|
|
70
|
+
name: string;
|
|
71
|
+
trade_name: string | null;
|
|
72
|
+
owner_user: {
|
|
73
|
+
id: number;
|
|
74
|
+
name: string;
|
|
75
|
+
} | null;
|
|
76
|
+
source: "other" | "social" | "website" | "inbound" | "outbound" | "referral";
|
|
77
|
+
lifecycle_stage: "new" | "contacted" | "qualified" | "proposal" | "negotiation" | "customer" | "lost";
|
|
78
|
+
next_action_at?: string;
|
|
79
|
+
created_at?: string;
|
|
80
|
+
}[];
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
getReports(query: ReportsQueryDTO, locale: string): Promise<{
|
|
84
|
+
summary: {
|
|
85
|
+
new_leads: number;
|
|
86
|
+
qualified_moves: number;
|
|
87
|
+
customer_moves: number;
|
|
88
|
+
lost_moves: number;
|
|
89
|
+
interactions: number;
|
|
90
|
+
followups_completed: number;
|
|
91
|
+
conversion_rate: number;
|
|
92
|
+
};
|
|
93
|
+
timeline: ({
|
|
94
|
+
period: string;
|
|
95
|
+
label: string;
|
|
96
|
+
} & {
|
|
97
|
+
new_leads: number;
|
|
98
|
+
qualified_moves: number;
|
|
99
|
+
customer_moves: number;
|
|
100
|
+
lost_moves: number;
|
|
101
|
+
interactions: number;
|
|
102
|
+
followups_completed: number;
|
|
103
|
+
conversion_rate: number;
|
|
104
|
+
})[];
|
|
105
|
+
breakdowns: {
|
|
106
|
+
source: Array<{
|
|
107
|
+
key: "other" | "social" | "website" | "inbound" | "outbound" | "referral";
|
|
108
|
+
total: number;
|
|
109
|
+
}>;
|
|
110
|
+
current_stage: Array<{
|
|
111
|
+
key: "new" | "contacted" | "qualified" | "proposal" | "negotiation" | "customer" | "lost";
|
|
112
|
+
total: number;
|
|
113
|
+
}>;
|
|
114
|
+
activity_type: Array<{
|
|
115
|
+
key: "email" | "whatsapp" | "call" | "meeting" | "task" | "note";
|
|
116
|
+
total: number;
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
119
|
+
owners: {
|
|
120
|
+
owner_user_id: number;
|
|
121
|
+
owner_name: string;
|
|
122
|
+
interactions: number;
|
|
123
|
+
followups_completed: number;
|
|
124
|
+
customer_moves: number;
|
|
125
|
+
}[];
|
|
126
|
+
table: ({
|
|
127
|
+
period: string;
|
|
128
|
+
label: string;
|
|
129
|
+
} & {
|
|
130
|
+
new_leads: number;
|
|
131
|
+
qualified_moves: number;
|
|
132
|
+
customer_moves: number;
|
|
133
|
+
lost_moves: number;
|
|
134
|
+
interactions: number;
|
|
135
|
+
followups_completed: number;
|
|
136
|
+
conversion_rate: number;
|
|
137
|
+
})[];
|
|
138
|
+
}>;
|
|
21
139
|
getOwnerOptions(user: any): Promise<{
|
|
22
140
|
id: number;
|
|
23
141
|
name: string;
|
|
@@ -39,6 +157,149 @@ export declare class PersonController {
|
|
|
39
157
|
next: number;
|
|
40
158
|
data: any[];
|
|
41
159
|
}>;
|
|
160
|
+
listAccounts(paginationParams: any, query: AccountListQueryDTO): Promise<{
|
|
161
|
+
total: number;
|
|
162
|
+
lastPage: number;
|
|
163
|
+
page: number;
|
|
164
|
+
pageSize: number;
|
|
165
|
+
prev: number;
|
|
166
|
+
next: any;
|
|
167
|
+
data: {
|
|
168
|
+
id: number;
|
|
169
|
+
name: string;
|
|
170
|
+
trade_name: string | null;
|
|
171
|
+
status: "active" | "inactive";
|
|
172
|
+
industry: string | null;
|
|
173
|
+
website: string | null;
|
|
174
|
+
email: string | null;
|
|
175
|
+
phone: string | null;
|
|
176
|
+
owner_user_id: number | null;
|
|
177
|
+
owner_user: {
|
|
178
|
+
id: number;
|
|
179
|
+
name: string;
|
|
180
|
+
} | null;
|
|
181
|
+
annual_revenue: number | null;
|
|
182
|
+
employee_count: number | null;
|
|
183
|
+
lifecycle_stage: import("./dto/account.dto").AccountLifecycleStage | null;
|
|
184
|
+
city: string | null;
|
|
185
|
+
state: string | null;
|
|
186
|
+
created_at: string;
|
|
187
|
+
last_interaction_at: string | null;
|
|
188
|
+
}[];
|
|
189
|
+
}>;
|
|
190
|
+
getAccountStats(): Promise<{
|
|
191
|
+
total: number;
|
|
192
|
+
active: number;
|
|
193
|
+
customers: number;
|
|
194
|
+
prospects: number;
|
|
195
|
+
}>;
|
|
196
|
+
createAccount(data: CreateAccountDTO, locale: string): Promise<{
|
|
197
|
+
success: boolean;
|
|
198
|
+
id: number;
|
|
199
|
+
}>;
|
|
200
|
+
updateAccount(id: number, data: UpdateAccountDTO, locale: string): Promise<{
|
|
201
|
+
success: boolean;
|
|
202
|
+
id: number;
|
|
203
|
+
}>;
|
|
204
|
+
deleteAccounts(data: DeleteDTO, locale: string): Promise<[import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload]>;
|
|
205
|
+
listFollowups(paginationParams: any, query: FollowupListQueryDTO, user: any): Promise<{
|
|
206
|
+
total: number;
|
|
207
|
+
lastPage: number;
|
|
208
|
+
page: number;
|
|
209
|
+
pageSize: number;
|
|
210
|
+
prev: number;
|
|
211
|
+
next: any;
|
|
212
|
+
data: {
|
|
213
|
+
person: any;
|
|
214
|
+
next_action_at: string;
|
|
215
|
+
last_interaction_at: string | null;
|
|
216
|
+
status: "overdue" | "today" | "upcoming";
|
|
217
|
+
}[];
|
|
218
|
+
}>;
|
|
219
|
+
getFollowupStats(query: FollowupStatsQueryDTO, user: any): Promise<{
|
|
220
|
+
total: number;
|
|
221
|
+
today: number;
|
|
222
|
+
overdue: number;
|
|
223
|
+
upcoming: number;
|
|
224
|
+
}>;
|
|
225
|
+
listActivities(paginationParams: any, query: ActivityListQueryDTO): Promise<{
|
|
226
|
+
total: number;
|
|
227
|
+
lastPage: number;
|
|
228
|
+
page: number;
|
|
229
|
+
pageSize: number;
|
|
230
|
+
prev: number;
|
|
231
|
+
next: any;
|
|
232
|
+
data: {
|
|
233
|
+
id: number;
|
|
234
|
+
person_id: number;
|
|
235
|
+
person: {
|
|
236
|
+
id: number;
|
|
237
|
+
name: string;
|
|
238
|
+
type: "individual" | "company";
|
|
239
|
+
status: "active" | "inactive";
|
|
240
|
+
trade_name: string | null;
|
|
241
|
+
};
|
|
242
|
+
owner_user_id: number | null;
|
|
243
|
+
owner_user: {
|
|
244
|
+
id: number;
|
|
245
|
+
name: string;
|
|
246
|
+
} | null;
|
|
247
|
+
type: import("./dto/activity.dto").CrmActivityType;
|
|
248
|
+
subject: string;
|
|
249
|
+
notes: string | null;
|
|
250
|
+
due_at: string;
|
|
251
|
+
completed_at: string | null;
|
|
252
|
+
created_at: string;
|
|
253
|
+
priority: import("./dto/activity.dto").CrmActivityPriority;
|
|
254
|
+
status: import("./dto/activity.dto").CrmActivityStatus;
|
|
255
|
+
}[];
|
|
256
|
+
}>;
|
|
257
|
+
getActivityStats(): Promise<{
|
|
258
|
+
total: number;
|
|
259
|
+
pending: number;
|
|
260
|
+
overdue: number;
|
|
261
|
+
completed: number;
|
|
262
|
+
}>;
|
|
263
|
+
getActivity(id: number, locale: string): Promise<{
|
|
264
|
+
id: number;
|
|
265
|
+
person_id: number;
|
|
266
|
+
person: {
|
|
267
|
+
id: number;
|
|
268
|
+
name: string;
|
|
269
|
+
type: "individual" | "company";
|
|
270
|
+
status: "active" | "inactive";
|
|
271
|
+
trade_name: string | null;
|
|
272
|
+
};
|
|
273
|
+
owner_user_id: number | null;
|
|
274
|
+
owner_user: {
|
|
275
|
+
id: number;
|
|
276
|
+
name: string;
|
|
277
|
+
} | null;
|
|
278
|
+
type: import("./dto/activity.dto").CrmActivityType;
|
|
279
|
+
subject: string;
|
|
280
|
+
notes: string | null;
|
|
281
|
+
due_at: string;
|
|
282
|
+
completed_at: string | null;
|
|
283
|
+
created_at: string;
|
|
284
|
+
priority: import("./dto/activity.dto").CrmActivityPriority;
|
|
285
|
+
status: import("./dto/activity.dto").CrmActivityStatus;
|
|
286
|
+
} & {
|
|
287
|
+
source_kind: import("./dto/activity.dto").CrmActivitySourceKind;
|
|
288
|
+
created_by_user_id: number | null;
|
|
289
|
+
created_by_user: {
|
|
290
|
+
id: number;
|
|
291
|
+
name: string;
|
|
292
|
+
} | null;
|
|
293
|
+
completed_by_user_id: number | null;
|
|
294
|
+
completed_by_user: {
|
|
295
|
+
id: number;
|
|
296
|
+
name: string;
|
|
297
|
+
} | null;
|
|
298
|
+
}>;
|
|
299
|
+
completeActivity(id: number, locale: string, user: any): Promise<{
|
|
300
|
+
success: boolean;
|
|
301
|
+
completed_at: string;
|
|
302
|
+
}>;
|
|
42
303
|
openAvatar(id: number, res: Response, locale: string): Promise<void>;
|
|
43
304
|
get(id: number, locale: string): Promise<{
|
|
44
305
|
id: any;
|
|
@@ -49,7 +310,7 @@ export declare class PersonController {
|
|
|
49
310
|
created_at: any;
|
|
50
311
|
updated_at: any;
|
|
51
312
|
birth_date: Date;
|
|
52
|
-
gender: import(".prisma/client").$Enums.
|
|
313
|
+
gender: import(".prisma/client").$Enums.person_individual_gender_90a9e91531_enum;
|
|
53
314
|
job_title: string;
|
|
54
315
|
trade_name: string;
|
|
55
316
|
foundation_date: Date;
|
|
@@ -85,11 +346,11 @@ export declare class PersonController {
|
|
|
85
346
|
}>;
|
|
86
347
|
create(data: CreateDTO, locale: string): Promise<{
|
|
87
348
|
name: string;
|
|
88
|
-
type: import(".prisma/client").$Enums.
|
|
349
|
+
type: import(".prisma/client").$Enums.person_type_6dfa750c4d_enum;
|
|
89
350
|
id: number;
|
|
90
351
|
created_at: Date;
|
|
91
352
|
updated_at: Date;
|
|
92
|
-
status: import(".prisma/client").$Enums.
|
|
353
|
+
status: import(".prisma/client").$Enums.person_status_7efb97d61c_enum;
|
|
93
354
|
avatar_id: number | null;
|
|
94
355
|
}>;
|
|
95
356
|
merge(data: MergePersonDTO, locale: string): Promise<{
|
|
@@ -118,11 +379,11 @@ export declare class PersonController {
|
|
|
118
379
|
success: boolean;
|
|
119
380
|
next_action_at: string;
|
|
120
381
|
}>;
|
|
121
|
-
updateLifecycleStage(id: number, data: UpdateLifecycleStageDTO, locale: string): Promise<{
|
|
382
|
+
updateLifecycleStage(id: number, data: UpdateLifecycleStageDTO, locale: string, user: any): Promise<{
|
|
122
383
|
success: boolean;
|
|
123
384
|
lifecycle_stage: import("./dto/update-lifecycle-stage.dto").PersonLifecycleStageDTO;
|
|
124
385
|
}>;
|
|
125
|
-
update(id: number, data: UpdateAllPersonDTO, locale: string): Promise<{
|
|
386
|
+
update(id: number, data: UpdateAllPersonDTO, locale: string, user: any): Promise<{
|
|
126
387
|
success: boolean;
|
|
127
388
|
}>;
|
|
128
389
|
delete(data: DeleteDTO, locale: string): Promise<[import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload, import(".prisma/client").Prisma.BatchPayload]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.controller.d.ts","sourceRoot":"","sources":["../../src/person/person.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,MAAM,cAAc,CAAC;AAiB7D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAk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
@@ -19,11 +19,16 @@ const api_locale_1 = require("@hed-hog/api-locale");
|
|
|
19
19
|
const api_pagination_1 = require("@hed-hog/api-pagination");
|
|
20
20
|
const common_1 = require("@nestjs/common");
|
|
21
21
|
const express_1 = require("express");
|
|
22
|
+
const account_dto_1 = require("./dto/account.dto");
|
|
23
|
+
const activity_dto_1 = require("./dto/activity.dto");
|
|
22
24
|
const create_followup_dto_1 = require("./dto/create-followup.dto");
|
|
23
25
|
const create_interaction_dto_1 = require("./dto/create-interaction.dto");
|
|
24
26
|
const create_dto_1 = require("./dto/create.dto");
|
|
27
|
+
const dashboard_query_dto_1 = require("./dto/dashboard-query.dto");
|
|
25
28
|
const duplicates_query_dto_1 = require("./dto/duplicates-query.dto");
|
|
29
|
+
const followup_query_dto_1 = require("./dto/followup-query.dto");
|
|
26
30
|
const merge_dto_1 = require("./dto/merge.dto");
|
|
31
|
+
const reports_query_dto_1 = require("./dto/reports-query.dto");
|
|
27
32
|
const update_lifecycle_stage_dto_1 = require("./dto/update-lifecycle-stage.dto");
|
|
28
33
|
const update_dto_1 = require("./dto/update.dto");
|
|
29
34
|
const person_service_1 = require("./person.service");
|
|
@@ -34,6 +39,12 @@ let PersonController = class PersonController {
|
|
|
34
39
|
async getStats() {
|
|
35
40
|
return this.personService.getStats();
|
|
36
41
|
}
|
|
42
|
+
async getDashboard(query, locale) {
|
|
43
|
+
return this.personService.getDashboard(query, locale);
|
|
44
|
+
}
|
|
45
|
+
async getReports(query, locale) {
|
|
46
|
+
return this.personService.getReports(query, locale);
|
|
47
|
+
}
|
|
37
48
|
async getOwnerOptions(user) {
|
|
38
49
|
return this.personService.getOwnerOptions(Number((user === null || user === void 0 ? void 0 : user.id) || 0));
|
|
39
50
|
}
|
|
@@ -43,6 +54,42 @@ let PersonController = class PersonController {
|
|
|
43
54
|
async list(paginationParams, filters, user) {
|
|
44
55
|
return this.personService.list(Object.assign(Object.assign({}, paginationParams), filters), Number((user === null || user === void 0 ? void 0 : user.id) || 0));
|
|
45
56
|
}
|
|
57
|
+
async listAccounts(paginationParams, query) {
|
|
58
|
+
return this.personService.listAccounts(Object.assign(Object.assign({}, paginationParams), query));
|
|
59
|
+
}
|
|
60
|
+
async getAccountStats() {
|
|
61
|
+
return this.personService.getAccountStats();
|
|
62
|
+
}
|
|
63
|
+
async createAccount(data, locale) {
|
|
64
|
+
return this.personService.createAccount(data, locale);
|
|
65
|
+
}
|
|
66
|
+
async updateAccount(id, data, locale) {
|
|
67
|
+
return this.personService.updateAccount(id, data, locale);
|
|
68
|
+
}
|
|
69
|
+
async deleteAccounts(data, locale) {
|
|
70
|
+
return this.personService.deleteAccounts(data, locale);
|
|
71
|
+
}
|
|
72
|
+
async listFollowups(paginationParams, query, user) {
|
|
73
|
+
return this.personService.listFollowups(Object.assign(Object.assign({}, paginationParams), query), Number((user === null || user === void 0 ? void 0 : user.id) || 0));
|
|
74
|
+
}
|
|
75
|
+
async getFollowupStats(query, user) {
|
|
76
|
+
return this.personService.getFollowupStats(query, Number((user === null || user === void 0 ? void 0 : user.id) || 0));
|
|
77
|
+
}
|
|
78
|
+
async listActivities(paginationParams, query) {
|
|
79
|
+
return this.personService.listActivities(Object.assign(Object.assign({}, paginationParams), query));
|
|
80
|
+
}
|
|
81
|
+
async getActivityStats() {
|
|
82
|
+
return this.personService.getActivityStats();
|
|
83
|
+
}
|
|
84
|
+
async getActivity(id, locale) {
|
|
85
|
+
return this.personService.getActivity(id, locale);
|
|
86
|
+
}
|
|
87
|
+
async completeActivity(id, locale, user) {
|
|
88
|
+
return this.personService.completeActivity(id, locale, {
|
|
89
|
+
id: Number((user === null || user === void 0 ? void 0 : user.id) || 0),
|
|
90
|
+
name: user === null || user === void 0 ? void 0 : user.name,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
46
93
|
async openAvatar(id, res, locale) {
|
|
47
94
|
return this.personService.openPublicAvatar(locale, id, res);
|
|
48
95
|
}
|
|
@@ -70,11 +117,17 @@ let PersonController = class PersonController {
|
|
|
70
117
|
name: user === null || user === void 0 ? void 0 : user.name,
|
|
71
118
|
});
|
|
72
119
|
}
|
|
73
|
-
async updateLifecycleStage(id, data, locale) {
|
|
74
|
-
return this.personService.updateLifecycleStage(id, data, locale
|
|
120
|
+
async updateLifecycleStage(id, data, locale, user) {
|
|
121
|
+
return this.personService.updateLifecycleStage(id, data, locale, {
|
|
122
|
+
id: Number((user === null || user === void 0 ? void 0 : user.id) || 0),
|
|
123
|
+
name: user === null || user === void 0 ? void 0 : user.name,
|
|
124
|
+
});
|
|
75
125
|
}
|
|
76
|
-
async update(id, data, locale) {
|
|
77
|
-
return this.personService.update(id, data, locale
|
|
126
|
+
async update(id, data, locale, user) {
|
|
127
|
+
return this.personService.update(id, data, locale, {
|
|
128
|
+
id: Number((user === null || user === void 0 ? void 0 : user.id) || 0),
|
|
129
|
+
name: user === null || user === void 0 ? void 0 : user.name,
|
|
130
|
+
});
|
|
78
131
|
}
|
|
79
132
|
async delete(data, locale) {
|
|
80
133
|
return this.personService.delete(data, locale);
|
|
@@ -87,6 +140,22 @@ __decorate([
|
|
|
87
140
|
__metadata("design:paramtypes", []),
|
|
88
141
|
__metadata("design:returntype", Promise)
|
|
89
142
|
], PersonController.prototype, "getStats", null);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, common_1.Get)('dashboard'),
|
|
145
|
+
__param(0, (0, common_1.Query)()),
|
|
146
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
147
|
+
__metadata("design:type", Function),
|
|
148
|
+
__metadata("design:paramtypes", [dashboard_query_dto_1.DashboardQueryDTO, String]),
|
|
149
|
+
__metadata("design:returntype", Promise)
|
|
150
|
+
], PersonController.prototype, "getDashboard", null);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, common_1.Get)('reports'),
|
|
153
|
+
__param(0, (0, common_1.Query)()),
|
|
154
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
155
|
+
__metadata("design:type", Function),
|
|
156
|
+
__metadata("design:paramtypes", [reports_query_dto_1.ReportsQueryDTO, String]),
|
|
157
|
+
__metadata("design:returntype", Promise)
|
|
158
|
+
], PersonController.prototype, "getReports", null);
|
|
90
159
|
__decorate([
|
|
91
160
|
(0, common_1.Get)('owner-options'),
|
|
92
161
|
__param(0, (0, api_1.User)()),
|
|
@@ -110,6 +179,93 @@ __decorate([
|
|
|
110
179
|
__metadata("design:paramtypes", [Object, Object, Object]),
|
|
111
180
|
__metadata("design:returntype", Promise)
|
|
112
181
|
], PersonController.prototype, "list", null);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, common_1.Get)('accounts'),
|
|
184
|
+
__param(0, (0, api_pagination_1.Pagination)()),
|
|
185
|
+
__param(1, (0, common_1.Query)()),
|
|
186
|
+
__metadata("design:type", Function),
|
|
187
|
+
__metadata("design:paramtypes", [Object, account_dto_1.AccountListQueryDTO]),
|
|
188
|
+
__metadata("design:returntype", Promise)
|
|
189
|
+
], PersonController.prototype, "listAccounts", null);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, common_1.Get)('accounts/stats'),
|
|
192
|
+
__metadata("design:type", Function),
|
|
193
|
+
__metadata("design:paramtypes", []),
|
|
194
|
+
__metadata("design:returntype", Promise)
|
|
195
|
+
], PersonController.prototype, "getAccountStats", null);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, common_1.Post)('accounts'),
|
|
198
|
+
__param(0, (0, common_1.Body)()),
|
|
199
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
200
|
+
__metadata("design:type", Function),
|
|
201
|
+
__metadata("design:paramtypes", [account_dto_1.CreateAccountDTO, String]),
|
|
202
|
+
__metadata("design:returntype", Promise)
|
|
203
|
+
], PersonController.prototype, "createAccount", null);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, common_1.Patch)('accounts/:id'),
|
|
206
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
207
|
+
__param(1, (0, common_1.Body)()),
|
|
208
|
+
__param(2, (0, api_locale_1.Locale)()),
|
|
209
|
+
__metadata("design:type", Function),
|
|
210
|
+
__metadata("design:paramtypes", [Number, account_dto_1.UpdateAccountDTO, String]),
|
|
211
|
+
__metadata("design:returntype", Promise)
|
|
212
|
+
], PersonController.prototype, "updateAccount", null);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, common_1.Delete)('accounts'),
|
|
215
|
+
__param(0, (0, common_1.Body)()),
|
|
216
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
217
|
+
__metadata("design:type", Function),
|
|
218
|
+
__metadata("design:paramtypes", [api_1.DeleteDTO, String]),
|
|
219
|
+
__metadata("design:returntype", Promise)
|
|
220
|
+
], PersonController.prototype, "deleteAccounts", null);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, common_1.Get)('followups'),
|
|
223
|
+
__param(0, (0, api_pagination_1.Pagination)()),
|
|
224
|
+
__param(1, (0, common_1.Query)()),
|
|
225
|
+
__param(2, (0, api_1.User)()),
|
|
226
|
+
__metadata("design:type", Function),
|
|
227
|
+
__metadata("design:paramtypes", [Object, followup_query_dto_1.FollowupListQueryDTO, Object]),
|
|
228
|
+
__metadata("design:returntype", Promise)
|
|
229
|
+
], PersonController.prototype, "listFollowups", null);
|
|
230
|
+
__decorate([
|
|
231
|
+
(0, common_1.Get)('followups/stats'),
|
|
232
|
+
__param(0, (0, common_1.Query)()),
|
|
233
|
+
__param(1, (0, api_1.User)()),
|
|
234
|
+
__metadata("design:type", Function),
|
|
235
|
+
__metadata("design:paramtypes", [followup_query_dto_1.FollowupStatsQueryDTO, Object]),
|
|
236
|
+
__metadata("design:returntype", Promise)
|
|
237
|
+
], PersonController.prototype, "getFollowupStats", null);
|
|
238
|
+
__decorate([
|
|
239
|
+
(0, common_1.Get)('activities'),
|
|
240
|
+
__param(0, (0, api_pagination_1.Pagination)()),
|
|
241
|
+
__param(1, (0, common_1.Query)()),
|
|
242
|
+
__metadata("design:type", Function),
|
|
243
|
+
__metadata("design:paramtypes", [Object, activity_dto_1.ActivityListQueryDTO]),
|
|
244
|
+
__metadata("design:returntype", Promise)
|
|
245
|
+
], PersonController.prototype, "listActivities", null);
|
|
246
|
+
__decorate([
|
|
247
|
+
(0, common_1.Get)('activities/stats'),
|
|
248
|
+
__metadata("design:type", Function),
|
|
249
|
+
__metadata("design:paramtypes", []),
|
|
250
|
+
__metadata("design:returntype", Promise)
|
|
251
|
+
], PersonController.prototype, "getActivityStats", null);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, common_1.Get)('activities/:id'),
|
|
254
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
255
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
256
|
+
__metadata("design:type", Function),
|
|
257
|
+
__metadata("design:paramtypes", [Number, String]),
|
|
258
|
+
__metadata("design:returntype", Promise)
|
|
259
|
+
], PersonController.prototype, "getActivity", null);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, common_1.Post)('activities/:id/complete'),
|
|
262
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
263
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
264
|
+
__param(2, (0, api_1.User)()),
|
|
265
|
+
__metadata("design:type", Function),
|
|
266
|
+
__metadata("design:paramtypes", [Number, String, Object]),
|
|
267
|
+
__metadata("design:returntype", Promise)
|
|
268
|
+
], PersonController.prototype, "completeActivity", null);
|
|
113
269
|
__decorate([
|
|
114
270
|
(0, api_1.Public)(),
|
|
115
271
|
(0, common_1.Get)('avatar/:id'),
|
|
@@ -177,8 +333,9 @@ __decorate([
|
|
|
177
333
|
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
178
334
|
__param(1, (0, common_1.Body)()),
|
|
179
335
|
__param(2, (0, api_locale_1.Locale)()),
|
|
336
|
+
__param(3, (0, api_1.User)()),
|
|
180
337
|
__metadata("design:type", Function),
|
|
181
|
-
__metadata("design:paramtypes", [Number, update_lifecycle_stage_dto_1.UpdateLifecycleStageDTO, String]),
|
|
338
|
+
__metadata("design:paramtypes", [Number, update_lifecycle_stage_dto_1.UpdateLifecycleStageDTO, String, Object]),
|
|
182
339
|
__metadata("design:returntype", Promise)
|
|
183
340
|
], PersonController.prototype, "updateLifecycleStage", null);
|
|
184
341
|
__decorate([
|
|
@@ -186,8 +343,9 @@ __decorate([
|
|
|
186
343
|
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
187
344
|
__param(1, (0, common_1.Body)()),
|
|
188
345
|
__param(2, (0, api_locale_1.Locale)()),
|
|
346
|
+
__param(3, (0, api_1.User)()),
|
|
189
347
|
__metadata("design:type", Function),
|
|
190
|
-
__metadata("design:paramtypes", [Number, update_dto_1.UpdateAllPersonDTO, String]),
|
|
348
|
+
__metadata("design:paramtypes", [Number, update_dto_1.UpdateAllPersonDTO, String, Object]),
|
|
191
349
|
__metadata("design:returntype", Promise)
|
|
192
350
|
], PersonController.prototype, "update", null);
|
|
193
351
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.controller.js","sourceRoot":"","sources":["../../src/person/person.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sCAA6D;AAC7D,oDAA6C;AAC7C,4DAAqD;AACrD,2CAawB;AACxB,qCAAmC;AACnC,mEAA8D;AAC9D,yEAAoE;AACpE,iDAA6C;AAC7C,qEAA2E;AAC3E,+CAAiD;AACjD,iFAA2E;AAC3E,iDAAsD;AACtD,qDAAiD;AAI1C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAGE,AAAN,KAAK,CAAC,QAAQ;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;IACvC,CAAC;IAGK,AAAN,KAAK,CAAC,eAAe,CAAS,IAAI;QAChC,OAAO,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,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