@hed-hog/content 0.0.3 → 0.0.58
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.
|
@@ -6,17 +6,17 @@ export declare class ContentController {
|
|
|
6
6
|
private readonly contentService;
|
|
7
7
|
constructor(contentService: ContentService);
|
|
8
8
|
getContentStats(): Promise<{
|
|
9
|
-
total:
|
|
10
|
-
totalPublished:
|
|
11
|
-
totalDraft:
|
|
9
|
+
total: any;
|
|
10
|
+
totalPublished: any;
|
|
11
|
+
totalDraft: any;
|
|
12
12
|
totalEnabledLanguages: number;
|
|
13
13
|
}>;
|
|
14
14
|
getContent(id: number): Promise<{
|
|
15
|
-
id:
|
|
16
|
-
slug:
|
|
17
|
-
status:
|
|
18
|
-
created_at:
|
|
19
|
-
updated_at:
|
|
15
|
+
id: any;
|
|
16
|
+
slug: any;
|
|
17
|
+
status: any;
|
|
18
|
+
created_at: any;
|
|
19
|
+
updated_at: any;
|
|
20
20
|
locales: Record<string, {
|
|
21
21
|
title: string;
|
|
22
22
|
body: string;
|
|
@@ -31,26 +31,8 @@ export declare class ContentController {
|
|
|
31
31
|
next: number;
|
|
32
32
|
data: any;
|
|
33
33
|
}>;
|
|
34
|
-
deleteContent(locale: string, id: number): Promise<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
updated_at: Date;
|
|
38
|
-
slug: string;
|
|
39
|
-
status: import("@prisma/client").$Enums.content_status_enum;
|
|
40
|
-
}>;
|
|
41
|
-
createContent(localeStr: string, { slug, status, locale }: ContentCreateDTO): Promise<{
|
|
42
|
-
id: number;
|
|
43
|
-
created_at: Date;
|
|
44
|
-
updated_at: Date;
|
|
45
|
-
slug: string;
|
|
46
|
-
status: import("@prisma/client").$Enums.content_status_enum;
|
|
47
|
-
}>;
|
|
48
|
-
updateContent(localeStr: string, id: number, { locale, slug, status }: ContentUpdateDTO): Promise<{
|
|
49
|
-
id: number;
|
|
50
|
-
created_at: Date;
|
|
51
|
-
updated_at: Date;
|
|
52
|
-
slug: string;
|
|
53
|
-
status: import("@prisma/client").$Enums.content_status_enum;
|
|
54
|
-
}>;
|
|
34
|
+
deleteContent(locale: string, id: number): Promise<any>;
|
|
35
|
+
createContent(localeStr: string, { slug, status, locale }: ContentCreateDTO): Promise<any>;
|
|
36
|
+
updateContent(localeStr: string, id: number, { locale, slug, status }: ContentUpdateDTO): Promise<any>;
|
|
55
37
|
}
|
|
56
38
|
//# sourceMappingURL=content.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.controller.d.ts","sourceRoot":"","sources":["../src/content.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAYpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,qBACa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAI3C,eAAe;;;;;;IAKf,UAAU,CAA4B,EAAE,EAAE,MAAM;;;;;;;;;;;IAKhD,WAAW,CAAW,MAAM,EAAE,MAAM,EAAgB,gBAAgB,EAAE,aAAa,EAAW,KAAK,EAAE,GAAG;;;;;;;;;IAKxG,aAAa,CAAW,MAAM,EAAE,MAAM,EAA6B,EAAE,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"content.controller.d.ts","sourceRoot":"","sources":["../src/content.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAYpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,qBACa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAI3C,eAAe;;;;;;IAKf,UAAU,CAA4B,EAAE,EAAE,MAAM;;;;;;;;;;;IAKhD,WAAW,CAAW,MAAM,EAAE,MAAM,EAAgB,gBAAgB,EAAE,aAAa,EAAW,KAAK,EAAE,GAAG;;;;;;;;;IAKxG,aAAa,CAAW,MAAM,EAAE,MAAM,EAA6B,EAAE,EAAE,MAAM;IAK7E,aAAa,CAAW,SAAS,EAAE,MAAM,EAAU,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,gBAAgB;IAS7F,aAAa,CACP,SAAS,EAAE,MAAM,EACA,EAAE,EAAE,MAAM,EAC7B,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB;CAQrD"}
|
|
@@ -9,17 +9,17 @@ export declare class ContentService {
|
|
|
9
9
|
private readonly locale;
|
|
10
10
|
constructor(prisma: PrismaService, pagination: PaginationService, locale: LocaleService);
|
|
11
11
|
getContentStats(): Promise<{
|
|
12
|
-
total:
|
|
13
|
-
totalPublished:
|
|
14
|
-
totalDraft:
|
|
12
|
+
total: any;
|
|
13
|
+
totalPublished: any;
|
|
14
|
+
totalDraft: any;
|
|
15
15
|
totalEnabledLanguages: number;
|
|
16
16
|
}>;
|
|
17
17
|
getContent(id: number): Promise<{
|
|
18
|
-
id:
|
|
19
|
-
slug:
|
|
20
|
-
status:
|
|
21
|
-
created_at:
|
|
22
|
-
updated_at:
|
|
18
|
+
id: any;
|
|
19
|
+
slug: any;
|
|
20
|
+
status: any;
|
|
21
|
+
created_at: any;
|
|
22
|
+
updated_at: any;
|
|
23
23
|
locales: Record<string, {
|
|
24
24
|
title: string;
|
|
25
25
|
body: string;
|
|
@@ -34,26 +34,8 @@ export declare class ContentService {
|
|
|
34
34
|
next: number;
|
|
35
35
|
data: any;
|
|
36
36
|
}>;
|
|
37
|
-
deleteContent(locale: string, id: number): Promise<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
updated_at: Date;
|
|
41
|
-
slug: string;
|
|
42
|
-
status: import("@prisma/client").$Enums.content_status_enum;
|
|
43
|
-
}>;
|
|
44
|
-
createContent(localeStr: string, { locale, slug, status }: ContentCreateDTO): Promise<{
|
|
45
|
-
id: number;
|
|
46
|
-
created_at: Date;
|
|
47
|
-
updated_at: Date;
|
|
48
|
-
slug: string;
|
|
49
|
-
status: import("@prisma/client").$Enums.content_status_enum;
|
|
50
|
-
}>;
|
|
51
|
-
updateContent(localeStr: string, id: number, { locale, slug, status }: ContentUpdateDTO): Promise<{
|
|
52
|
-
id: number;
|
|
53
|
-
created_at: Date;
|
|
54
|
-
updated_at: Date;
|
|
55
|
-
slug: string;
|
|
56
|
-
status: import("@prisma/client").$Enums.content_status_enum;
|
|
57
|
-
}>;
|
|
37
|
+
deleteContent(locale: string, id: number): Promise<any>;
|
|
38
|
+
createContent(localeStr: string, { locale, slug, status }: ContentCreateDTO): Promise<any>;
|
|
39
|
+
updateContent(localeStr: string, id: number, { locale, slug, status }: ContentUpdateDTO): Promise<any>;
|
|
58
40
|
}
|
|
59
41
|
//# sourceMappingURL=content.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.service.d.ts","sourceRoot":"","sources":["../src/content.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,qBACa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAA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E,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB;IAuC3E,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB;CAmD9F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/content",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
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/
|
|
13
|
-
"@hed-hog/core": "0.0.20",
|
|
12
|
+
"@hed-hog/core": "0.0.58",
|
|
14
13
|
"@hed-hog/api-prisma": "0.0.4",
|
|
15
|
-
"@hed-hog/api": "0.0.
|
|
16
|
-
"@hed-hog/api-pagination": "0.0.3"
|
|
14
|
+
"@hed-hog/api-locale": "0.0.10",
|
|
15
|
+
"@hed-hog/api-pagination": "0.0.3",
|
|
16
|
+
"@hed-hog/api": "0.0.3"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|