@hed-hog/contact-us 0.0.67 → 0.0.102
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,27 +7,96 @@ export declare class ContactUsController {
|
|
|
7
7
|
constructor(contactUsService: ContactUsService);
|
|
8
8
|
getContactUsSettings(): Promise<Record<string, any>>;
|
|
9
9
|
getUserStats(): Promise<{
|
|
10
|
-
total:
|
|
10
|
+
total: number;
|
|
11
11
|
totalNew: any;
|
|
12
12
|
totalResponded: any;
|
|
13
13
|
totalProgress: any;
|
|
14
14
|
totalArchived: any;
|
|
15
15
|
}>;
|
|
16
|
-
getContactUsMessage(id: number): Promise<
|
|
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
|
+
updated_at: Date;
|
|
44
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
45
|
+
email: string;
|
|
46
|
+
response_at: Date | null;
|
|
47
|
+
user_id: number | null;
|
|
48
|
+
response_id: number | null;
|
|
49
|
+
}>;
|
|
17
50
|
getContactUsMessages(paginationParams: any, { status }: {
|
|
18
51
|
status: any;
|
|
19
52
|
}): Promise<{
|
|
20
53
|
data: any[];
|
|
21
|
-
total:
|
|
54
|
+
total: number;
|
|
22
55
|
page: number;
|
|
23
56
|
pageSize: any;
|
|
24
57
|
prev: number;
|
|
25
58
|
next: number;
|
|
26
59
|
lastPage: number;
|
|
27
60
|
}>;
|
|
28
|
-
deleteContactUsMessage(id: number, locale: string): Promise<
|
|
29
|
-
|
|
61
|
+
deleteContactUsMessage(id: number, locale: string): Promise<{
|
|
62
|
+
name: string;
|
|
63
|
+
response: string | null;
|
|
64
|
+
id: number;
|
|
65
|
+
message: string;
|
|
66
|
+
created_at: Date;
|
|
67
|
+
updated_at: Date;
|
|
68
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
69
|
+
email: string;
|
|
70
|
+
response_at: Date | null;
|
|
71
|
+
user_id: number | null;
|
|
72
|
+
response_id: number | null;
|
|
73
|
+
}>;
|
|
74
|
+
updateContactUsMessageStatus(id: number, { status }: ContactUsStatusDTO, locale: string): Promise<{
|
|
75
|
+
name: string;
|
|
76
|
+
response: string | null;
|
|
77
|
+
id: number;
|
|
78
|
+
message: string;
|
|
79
|
+
created_at: Date;
|
|
80
|
+
updated_at: Date;
|
|
81
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
82
|
+
email: string;
|
|
83
|
+
response_at: Date | null;
|
|
84
|
+
user_id: number | null;
|
|
85
|
+
response_id: number | null;
|
|
86
|
+
}>;
|
|
30
87
|
respondToContactUsMessage(locale: string, id: number, { response }: ContactUsResponseDTO, user: any): Promise<string>;
|
|
31
|
-
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<
|
|
88
|
+
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<{
|
|
89
|
+
name: string;
|
|
90
|
+
response: string | null;
|
|
91
|
+
id: number;
|
|
92
|
+
message: string;
|
|
93
|
+
created_at: Date;
|
|
94
|
+
updated_at: Date;
|
|
95
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
96
|
+
email: string;
|
|
97
|
+
response_at: Date | null;
|
|
98
|
+
user_id: number | null;
|
|
99
|
+
response_id: number | null;
|
|
100
|
+
}>;
|
|
32
101
|
}
|
|
33
102
|
//# 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;AACjE,qBAEa,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;AACjE,qBAEa,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,25 +10,94 @@ 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: number;
|
|
14
14
|
totalNew: any;
|
|
15
15
|
totalResponded: any;
|
|
16
16
|
totalProgress: any;
|
|
17
17
|
totalArchived: any;
|
|
18
18
|
}>;
|
|
19
|
-
getContactUsMessage(id: number): Promise<
|
|
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
|
+
updated_at: Date;
|
|
47
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
48
|
+
email: string;
|
|
49
|
+
response_at: Date | null;
|
|
50
|
+
user_id: number | null;
|
|
51
|
+
response_id: number | null;
|
|
52
|
+
}>;
|
|
20
53
|
getContactUsMessages(paginationParams: any, status: any): Promise<{
|
|
21
54
|
data: any[];
|
|
22
|
-
total:
|
|
55
|
+
total: number;
|
|
23
56
|
page: number;
|
|
24
57
|
pageSize: any;
|
|
25
58
|
prev: number;
|
|
26
59
|
next: number;
|
|
27
60
|
lastPage: number;
|
|
28
61
|
}>;
|
|
29
|
-
deleteContactUsMessage(id: number, locale?: string): Promise<
|
|
30
|
-
|
|
62
|
+
deleteContactUsMessage(id: number, locale?: string): Promise<{
|
|
63
|
+
name: string;
|
|
64
|
+
response: string | null;
|
|
65
|
+
id: number;
|
|
66
|
+
message: string;
|
|
67
|
+
created_at: Date;
|
|
68
|
+
updated_at: Date;
|
|
69
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
70
|
+
email: string;
|
|
71
|
+
response_at: Date | null;
|
|
72
|
+
user_id: number | null;
|
|
73
|
+
response_id: number | null;
|
|
74
|
+
}>;
|
|
75
|
+
updateContactUsMessageStatus(id: number, { status }: ContactUsStatusDTO, locale?: string): Promise<{
|
|
76
|
+
name: string;
|
|
77
|
+
response: string | null;
|
|
78
|
+
id: number;
|
|
79
|
+
message: string;
|
|
80
|
+
created_at: Date;
|
|
81
|
+
updated_at: Date;
|
|
82
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
83
|
+
email: string;
|
|
84
|
+
response_at: Date | null;
|
|
85
|
+
user_id: number | null;
|
|
86
|
+
response_id: number | null;
|
|
87
|
+
}>;
|
|
31
88
|
respondToContactUsMessage(locale: string, id: number, { response }: ContactUsResponseDTO, user: any): Promise<string>;
|
|
32
|
-
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<
|
|
89
|
+
createContactUsMessage(locale: string, { name, email, message }: ContactUsSendDTO): Promise<{
|
|
90
|
+
name: string;
|
|
91
|
+
response: string | null;
|
|
92
|
+
id: number;
|
|
93
|
+
message: string;
|
|
94
|
+
created_at: Date;
|
|
95
|
+
updated_at: Date;
|
|
96
|
+
status: import("@prisma/client").$Enums.contact_us_status_enum;
|
|
97
|
+
email: string;
|
|
98
|
+
response_at: Date | null;
|
|
99
|
+
user_id: number | null;
|
|
100
|
+
response_id: number | null;
|
|
101
|
+
}>;
|
|
33
102
|
}
|
|
34
103
|
//# 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,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,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yaml
CHANGED
|
@@ -4,33 +4,45 @@
|
|
|
4
4
|
role:
|
|
5
5
|
- where:
|
|
6
6
|
slug: admin
|
|
7
|
+
- where:
|
|
8
|
+
slug: admin-access
|
|
7
9
|
- url: /contact-us/stats
|
|
8
10
|
method: GET
|
|
9
11
|
relations:
|
|
10
12
|
role:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
- where:
|
|
14
|
+
slug: admin
|
|
15
|
+
- where:
|
|
16
|
+
slug: admin-access
|
|
13
17
|
- url: /contact-us/:id
|
|
14
18
|
method: GET
|
|
15
19
|
relations:
|
|
16
20
|
role:
|
|
17
21
|
- where:
|
|
18
22
|
slug: admin
|
|
23
|
+
- where:
|
|
24
|
+
slug: admin-access
|
|
19
25
|
- url: /contact-us/response/:id
|
|
20
26
|
method: POST
|
|
21
27
|
relations:
|
|
22
|
-
|
|
28
|
+
role:
|
|
23
29
|
- where:
|
|
24
30
|
slug: admin
|
|
31
|
+
- where:
|
|
32
|
+
slug: admin-access
|
|
25
33
|
- url: /contact-us/status/:id
|
|
26
34
|
method: PATCH
|
|
27
35
|
relations:
|
|
28
|
-
|
|
36
|
+
role:
|
|
29
37
|
- where:
|
|
30
38
|
slug: admin
|
|
39
|
+
- where:
|
|
40
|
+
slug: admin-access
|
|
31
41
|
- url: /contact-us/:id
|
|
32
42
|
method: DELETE
|
|
33
43
|
relations:
|
|
34
44
|
role:
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
- where:
|
|
46
|
+
slug: admin
|
|
47
|
+
- where:
|
|
48
|
+
slug: admin-access
|
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.102",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
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.102",
|
|
13
13
|
"@hed-hog/api-pagination": "0.0.4",
|
|
14
14
|
"@hed-hog/api-locale": "0.0.10",
|
|
15
15
|
"@hed-hog/api": "0.0.3",
|