@hed-hog/tag 0.0.190 → 0.0.193

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.
@@ -4,8 +4,15 @@ export declare class TagController {
4
4
  private readonly tagService;
5
5
  constructor(tagService: TagService);
6
6
  list(paginationParams: any): Promise<{
7
- data: any;
8
- total: any;
7
+ data: {
8
+ id: number;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ slug: string;
12
+ color: string;
13
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
14
+ }[];
15
+ total: number;
9
16
  page: number;
10
17
  pageSize: any;
11
18
  prev: number;
@@ -13,13 +20,41 @@ export declare class TagController {
13
20
  lastPage: number;
14
21
  }>;
15
22
  getTagStats(): Promise<{
16
- total: any;
17
- active: any;
18
- inactive: any;
23
+ total: number;
24
+ active: number;
25
+ inactive: number;
26
+ }>;
27
+ getById(id: number, locale: string): Promise<{
28
+ id: number;
29
+ created_at: Date;
30
+ updated_at: Date;
31
+ slug: string;
32
+ color: string;
33
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
34
+ }>;
35
+ create(locale: string, body: TagDTO): Promise<{
36
+ id: number;
37
+ created_at: Date;
38
+ updated_at: Date;
39
+ slug: string;
40
+ color: string;
41
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
42
+ }>;
43
+ update(id: number, body: Partial<TagDTO>, locale: string): Promise<{
44
+ id: number;
45
+ created_at: Date;
46
+ updated_at: Date;
47
+ slug: string;
48
+ color: string;
49
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
50
+ }>;
51
+ delete(id: number, locale: string): Promise<{
52
+ id: number;
53
+ created_at: Date;
54
+ updated_at: Date;
55
+ slug: string;
56
+ color: string;
57
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
19
58
  }>;
20
- getById(id: number, locale: string): Promise<any>;
21
- create(locale: string, body: TagDTO): Promise<any>;
22
- update(id: number, body: Partial<TagDTO>, locale: string): Promise<any>;
23
- delete(id: number, locale: string): Promise<any>;
24
59
  }
25
60
  //# sourceMappingURL=tag.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.controller.d.ts","sourceRoot":"","sources":["../src/tag.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,qBAEa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAG7C,IAAI,CACM,gBAAgB,KAAA;;;;;;;;;IAM1B,WAAW;;;;;IAKX,OAAO,CACgB,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM;IAMpB,MAAM,CAAW,MAAM,EAAE,MAAM,EAAU,IAAI,EAAE,MAAM;IAKrD,MAAM,CACiB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EACnB,MAAM,EAAE,MAAM;IAMpB,MAAM,CACiB,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM;CAI3B"}
1
+ {"version":3,"file":"tag.controller.d.ts","sourceRoot":"","sources":["../src/tag.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,qBAEa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAG7C,IAAI,CACM,gBAAgB,KAAA;;;;;;;;;;;;;;;;IAM1B,WAAW;;;;;IAKX,OAAO,CACgB,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM;;;;;;;;IAMpB,MAAM,CAAW,MAAM,EAAE,MAAM,EAAU,IAAI,EAAE,MAAM;;;;;;;;IAKrD,MAAM,CACiB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EACnB,MAAM,EAAE,MAAM;;;;;;;;IAMpB,MAAM,CACiB,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM;;;;;;;;CAI3B"}
@@ -4,8 +4,15 @@ export declare class TagService {
4
4
  private readonly prisma;
5
5
  constructor(prisma: PrismaService);
6
6
  list(paginationParams: any): Promise<{
7
- data: any;
8
- total: any;
7
+ data: {
8
+ id: number;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ slug: string;
12
+ color: string;
13
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
14
+ }[];
15
+ total: number;
9
16
  page: number;
10
17
  pageSize: any;
11
18
  prev: number;
@@ -13,13 +20,41 @@ export declare class TagService {
13
20
  lastPage: number;
14
21
  }>;
15
22
  getStats(): Promise<{
16
- total: any;
17
- active: any;
18
- inactive: any;
23
+ total: number;
24
+ active: number;
25
+ inactive: number;
26
+ }>;
27
+ create(locale: string, body: TagDTO): Promise<{
28
+ id: number;
29
+ created_at: Date;
30
+ updated_at: Date;
31
+ slug: string;
32
+ color: string;
33
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
34
+ }>;
35
+ getById(id: number, locale: string): Promise<{
36
+ id: number;
37
+ created_at: Date;
38
+ updated_at: Date;
39
+ slug: string;
40
+ color: string;
41
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
42
+ }>;
43
+ update(id: number, body: Partial<TagDTO>, locale: string): Promise<{
44
+ id: number;
45
+ created_at: Date;
46
+ updated_at: Date;
47
+ slug: string;
48
+ color: string;
49
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
50
+ }>;
51
+ delete(id: number, locale: string): Promise<{
52
+ id: number;
53
+ created_at: Date;
54
+ updated_at: Date;
55
+ slug: string;
56
+ color: string;
57
+ status: import("@prisma/client").$Enums.tag_status_enum | null;
19
58
  }>;
20
- create(locale: string, body: TagDTO): Promise<any>;
21
- getById(id: number, locale: string): Promise<any>;
22
- update(id: number, body: Partial<TagDTO>, locale: string): Promise<any>;
23
- delete(id: number, locale: string): Promise<any>;
24
59
  }
25
60
  //# sourceMappingURL=tag.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.service.d.ts","sourceRoot":"","sources":["../src/tag.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,qBACa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAE5C,IAAI,CAAC,gBAAgB,KAAA;;;;;;;;;IAsCrB,QAAQ;;;;;IAaR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAkBnC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAYlC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM;IAsBxD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAWxC"}
1
+ {"version":3,"file":"tag.service.d.ts","sourceRoot":"","sources":["../src/tag.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,qBACa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAE5C,IAAI,CAAC,gBAAgB,KAAA;;;;;;;;;;;;;;;;IAsCrB,QAAQ;;;;;IAaR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;;;;;IAkBnC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;IAYlC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM;;;;;;;;IAsBxD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;CAWxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/tag",
3
- "version": "0.0.190",
3
+ "version": "0.0.193",
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.193",
12
13
  "@hed-hog/api-prisma": "0.0.4",
13
- "@hed-hog/core": "0.0.190",
14
+ "@hed-hog/api": "0.0.3",
14
15
  "@hed-hog/api-pagination": "0.0.5",
15
- "@hed-hog/api-locale": "0.0.11",
16
- "@hed-hog/api": "0.0.3"
16
+ "@hed-hog/api-locale": "0.0.11"
17
17
  },
18
18
  "exports": {
19
19
  ".": {