@hed-hog/contact-us 0.0.6 → 0.0.64
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.
|
@@ -7,92 +7,27 @@ export declare class ContactUsController {
|
|
|
7
7
|
constructor(contactUsService: ContactUsService);
|
|
8
8
|
getContactUsSettings(): Promise<Record<string, any>>;
|
|
9
9
|
getUserStats(): Promise<{
|
|
10
|
-
total:
|
|
10
|
+
total: any;
|
|
11
11
|
totalNew: any;
|
|
12
12
|
totalResponded: any;
|
|
13
13
|
totalProgress: any;
|
|
14
14
|
totalArchived: any;
|
|
15
15
|
}>;
|
|
16
|
-
getContactUsMessage(id: number): Promise<
|
|
17
|
-
user_contact_us_response_idTouser: {
|
|
18
|
-
name: string;
|
|
19
|
-
id: number;
|
|
20
|
-
created_at: Date;
|
|
21
|
-
updated_at: Date;
|
|
22
|
-
photo_id: number | null;
|
|
23
|
-
suspended_until: Date | null;
|
|
24
|
-
suspended_reason: string | null;
|
|
25
|
-
deactivated_at: Date | null;
|
|
26
|
-
};
|
|
27
|
-
user_contact_us_user_idTouser: {
|
|
28
|
-
name: string;
|
|
29
|
-
id: number;
|
|
30
|
-
created_at: Date;
|
|
31
|
-
updated_at: Date;
|
|
32
|
-
photo_id: number | null;
|
|
33
|
-
suspended_until: Date | null;
|
|
34
|
-
suspended_reason: string | null;
|
|
35
|
-
deactivated_at: Date | null;
|
|
36
|
-
};
|
|
37
|
-
} & {
|
|
38
|
-
name: string;
|
|
39
|
-
response: string | null;
|
|
40
|
-
id: number;
|
|
41
|
-
message: string;
|
|
42
|
-
created_at: Date;
|
|
43
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
44
|
-
email: string;
|
|
45
|
-
response_at: Date | null;
|
|
46
|
-
user_id: number | null;
|
|
47
|
-
response_id: number | null;
|
|
48
|
-
}>;
|
|
16
|
+
getContactUsMessage(id: number): Promise<any>;
|
|
49
17
|
getContactUsMessages(paginationParams: any, { status }: {
|
|
50
18
|
status: any;
|
|
51
19
|
}): Promise<{
|
|
52
20
|
data: any[];
|
|
53
|
-
total:
|
|
21
|
+
total: any;
|
|
54
22
|
page: number;
|
|
55
23
|
pageSize: any;
|
|
56
24
|
prev: number;
|
|
57
25
|
next: number;
|
|
58
26
|
lastPage: number;
|
|
59
27
|
}>;
|
|
60
|
-
deleteContactUsMessage(id: number, locale: string): Promise<
|
|
61
|
-
|
|
62
|
-
response: string | null;
|
|
63
|
-
id: number;
|
|
64
|
-
message: string;
|
|
65
|
-
created_at: Date;
|
|
66
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
67
|
-
email: string;
|
|
68
|
-
response_at: Date | null;
|
|
69
|
-
user_id: number | null;
|
|
70
|
-
response_id: number | null;
|
|
71
|
-
}>;
|
|
72
|
-
updateContactUsMessageStatus(id: number, { status }: ContactUsStatusDTO, locale: string): Promise<{
|
|
73
|
-
name: string;
|
|
74
|
-
response: string | null;
|
|
75
|
-
id: number;
|
|
76
|
-
message: string;
|
|
77
|
-
created_at: Date;
|
|
78
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
79
|
-
email: string;
|
|
80
|
-
response_at: Date | null;
|
|
81
|
-
user_id: number | null;
|
|
82
|
-
response_id: number | null;
|
|
83
|
-
}>;
|
|
28
|
+
deleteContactUsMessage(id: number, locale: string): Promise<any>;
|
|
29
|
+
updateContactUsMessageStatus(id: number, { status }: ContactUsStatusDTO, locale: string): Promise<any>;
|
|
84
30
|
respondToContactUsMessage(locale: string, id: number, { response }: ContactUsResponseDTO, user: any): Promise<string>;
|
|
85
|
-
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<
|
|
86
|
-
name: string;
|
|
87
|
-
response: string | null;
|
|
88
|
-
id: number;
|
|
89
|
-
message: string;
|
|
90
|
-
created_at: Date;
|
|
91
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
92
|
-
email: string;
|
|
93
|
-
response_at: Date | null;
|
|
94
|
-
user_id: number | null;
|
|
95
|
-
response_id: number | null;
|
|
96
|
-
}>;
|
|
31
|
+
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<any>;
|
|
97
32
|
}
|
|
98
33
|
//# sourceMappingURL=contact-us.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-us.controller.d.ts","sourceRoot":"","sources":["../src/contact-us.controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,qBACa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAK/C,oBAAoB;IAKpB,YAAY;;;;;;;IAKZ,mBAAmB,CAA4B,EAAE,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"contact-us.controller.d.ts","sourceRoot":"","sources":["../src/contact-us.controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,qBACa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAK/C,oBAAoB;IAKpB,YAAY;;;;;;;IAKZ,mBAAmB,CAA4B,EAAE,EAAE,MAAM;IAKzD,oBAAoB,CAAe,gBAAgB,KAAA,EAAW,EAAE,MAAM,EAAE;;KAAA;;;;;;;;;IAKxE,sBAAsB,CACC,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM;IAMpB,4BAA4B,CACL,EAAE,EAAE,MAAM,EAC7B,EAAE,MAAM,EAAE,EAAE,kBAAkB,EAC5B,MAAM,EAAE,MAAM;IAMpB,yBAAyB,CACnB,MAAM,EAAE,MAAM,EACG,EAAE,EAAE,MAAM,EAC7B,EAAE,QAAQ,EAAE,EAAE,oBAAoB,EAClC,IAAI,KAAA;IAOR,sBAAsB,CAChB,MAAM,EAAE,MAAM,EAChB,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,gBAAgB;CAIrD"}
|
|
@@ -10,90 +10,25 @@ export declare class ContactUsService {
|
|
|
10
10
|
constructor(prisma: PrismaService, mail: MailService, setting: SettingService);
|
|
11
11
|
getContactUsSettings(): Promise<Record<string, any>>;
|
|
12
12
|
getUserStats(): Promise<{
|
|
13
|
-
total:
|
|
13
|
+
total: any;
|
|
14
14
|
totalNew: any;
|
|
15
15
|
totalResponded: any;
|
|
16
16
|
totalProgress: any;
|
|
17
17
|
totalArchived: any;
|
|
18
18
|
}>;
|
|
19
|
-
getContactUsMessage(id: number): Promise<
|
|
20
|
-
user_contact_us_response_idTouser: {
|
|
21
|
-
name: string;
|
|
22
|
-
id: number;
|
|
23
|
-
created_at: Date;
|
|
24
|
-
updated_at: Date;
|
|
25
|
-
photo_id: number | null;
|
|
26
|
-
suspended_until: Date | null;
|
|
27
|
-
suspended_reason: string | null;
|
|
28
|
-
deactivated_at: Date | null;
|
|
29
|
-
};
|
|
30
|
-
user_contact_us_user_idTouser: {
|
|
31
|
-
name: string;
|
|
32
|
-
id: number;
|
|
33
|
-
created_at: Date;
|
|
34
|
-
updated_at: Date;
|
|
35
|
-
photo_id: number | null;
|
|
36
|
-
suspended_until: Date | null;
|
|
37
|
-
suspended_reason: string | null;
|
|
38
|
-
deactivated_at: Date | null;
|
|
39
|
-
};
|
|
40
|
-
} & {
|
|
41
|
-
name: string;
|
|
42
|
-
response: string | null;
|
|
43
|
-
id: number;
|
|
44
|
-
message: string;
|
|
45
|
-
created_at: Date;
|
|
46
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
47
|
-
email: string;
|
|
48
|
-
response_at: Date | null;
|
|
49
|
-
user_id: number | null;
|
|
50
|
-
response_id: number | null;
|
|
51
|
-
}>;
|
|
19
|
+
getContactUsMessage(id: number): Promise<any>;
|
|
52
20
|
getContactUsMessages(paginationParams: any, status: any): Promise<{
|
|
53
21
|
data: any[];
|
|
54
|
-
total:
|
|
22
|
+
total: any;
|
|
55
23
|
page: number;
|
|
56
24
|
pageSize: any;
|
|
57
25
|
prev: number;
|
|
58
26
|
next: number;
|
|
59
27
|
lastPage: number;
|
|
60
28
|
}>;
|
|
61
|
-
deleteContactUsMessage(id: number, locale?: string): Promise<
|
|
62
|
-
|
|
63
|
-
response: string | null;
|
|
64
|
-
id: number;
|
|
65
|
-
message: string;
|
|
66
|
-
created_at: Date;
|
|
67
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
68
|
-
email: string;
|
|
69
|
-
response_at: Date | null;
|
|
70
|
-
user_id: number | null;
|
|
71
|
-
response_id: number | null;
|
|
72
|
-
}>;
|
|
73
|
-
updateContactUsMessageStatus(id: number, { status }: ContactUsStatusDTO, locale?: string): Promise<{
|
|
74
|
-
name: string;
|
|
75
|
-
response: string | null;
|
|
76
|
-
id: number;
|
|
77
|
-
message: string;
|
|
78
|
-
created_at: Date;
|
|
79
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
80
|
-
email: string;
|
|
81
|
-
response_at: Date | null;
|
|
82
|
-
user_id: number | null;
|
|
83
|
-
response_id: number | null;
|
|
84
|
-
}>;
|
|
29
|
+
deleteContactUsMessage(id: number, locale?: string): Promise<any>;
|
|
30
|
+
updateContactUsMessageStatus(id: number, { status }: ContactUsStatusDTO, locale?: string): Promise<any>;
|
|
85
31
|
respondToContactUsMessage(locale: string, id: number, { response }: ContactUsResponseDTO, user: any): Promise<string>;
|
|
86
|
-
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<
|
|
87
|
-
name: string;
|
|
88
|
-
response: string | null;
|
|
89
|
-
id: number;
|
|
90
|
-
message: string;
|
|
91
|
-
created_at: Date;
|
|
92
|
-
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
93
|
-
email: string;
|
|
94
|
-
response_at: Date | null;
|
|
95
|
-
user_id: number | null;
|
|
96
|
-
response_id: number | null;
|
|
97
|
-
}>;
|
|
32
|
+
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<any>;
|
|
98
33
|
}
|
|
99
34
|
//# sourceMappingURL=contact-us.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-us.service.d.ts","sourceRoot":"","sources":["../src/contact-us.service.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"contact-us.service.d.ts","sourceRoot":"","sources":["../src/contact-us.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,qBACa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAErB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAJP,MAAM,EAAE,aAAa,EAErB,IAAI,EAAE,WAAW,EAEjB,OAAO,EAAE,cAAc;IAGpC,oBAAoB;IAOpB,YAAY;;;;;;;IAmBZ,mBAAmB,CAAC,EAAE,EAAE,MAAM;IAU9B,oBAAoB,CAAC,gBAAgB,KAAA,EAAE,MAAM,KAAA;cAsHjC,GAAG,EAAE;;;;;;;;IAUjB,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,GAAE,MAAa;IAgBxD,4BAA4B,CAChC,EAAE,EAAE,MAAM,EACV,EAAE,MAAM,EAAE,EAAE,kBAAkB,EAC9B,MAAM,GAAE,MAAa;IAsBjB,yBAAyB,CAC7B,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,EACV,EAAE,QAAQ,EAAE,EAAE,oBAAoB,EAClC,IAAI,KAAA;IAmCA,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,gBAAgB;CA2CxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-us.service.js","sourceRoot":"","sources":["../src/contact-us.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"contact-us.service.js","sourceRoot":"","sources":["../src/contact-us.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,oDAAoD;AACpD,wCAA4D;AAC5D,2CAAmF;AACnF,uCAAkC;AAM3B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,MAAqB,EAErB,IAAiB,EAEjB,OAAuB;QAJvB,WAAM,GAAN,MAAM,CAAe;QAErB,SAAI,GAAJ,IAAI,CAAa;QAEjB,YAAO,GAAP,OAAO,CAAgB;IACvC,CAAC;IAEJ,KAAK,CAAC,oBAAoB;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;YACnC,kBAAkB;YAClB,kBAAkB;SACnB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,QAAQ,GAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,OAAO,CAA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C,CAAA;qCAHhB,0BAAa;QAEf,kBAAW;QAER,qBAAc;GAP/B,gBAAgB,CAyS5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact-us",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"@nestjs/core": "^11",
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
|
-
"@hed-hog/core": "0.0.
|
|
12
|
+
"@hed-hog/core": "0.0.64",
|
|
13
13
|
"@hed-hog/api-locale": "0.0.10",
|
|
14
|
-
"@hed-hog/api-prisma": "0.0.4",
|
|
15
14
|
"@hed-hog/api-pagination": "0.0.3",
|
|
16
|
-
"@hed-hog/api": "0.0.3"
|
|
15
|
+
"@hed-hog/api": "0.0.3",
|
|
16
|
+
"@hed-hog/api-prisma": "0.0.4"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLocaleText } from '@hed-hog/api-locale';
|
|
2
|
-
import {
|
|
2
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
3
3
|
import { MailService, SettingService } from '@hed-hog/core';
|
|
4
4
|
import { forwardRef, Inject, Injectable, NotFoundException } from '@nestjs/common';
|
|
5
5
|
import { format } from 'date-fns';
|
|
@@ -30,7 +30,7 @@ export class ContactUsService {
|
|
|
30
30
|
const counts = await Promise.all(
|
|
31
31
|
statuses.map((status) =>
|
|
32
32
|
this.prisma.contact_us.count({
|
|
33
|
-
where: { status: status as
|
|
33
|
+
where: { status: status as any },
|
|
34
34
|
}),
|
|
35
35
|
),
|
|
36
36
|
);
|