admins-components 6.0.5 → 6.0.7

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.
@@ -0,0 +1,51 @@
1
+ export interface SearchAuthorsPayload {
2
+ siteIds: string[];
3
+ id: string | null;
4
+ legacyId: string | null;
5
+ authorName: string | null;
6
+ authorType: string | null;
7
+ webId: string | null;
8
+ email: string | null;
9
+ companyName: string | null;
10
+ authorListEnabled: boolean | null;
11
+ articleListing: boolean | null;
12
+ appearsUponArticleShare: boolean | null;
13
+ archived: boolean | null;
14
+ modifiedFrom: string | null;
15
+ modifiedTo: string | null;
16
+ createdFrom: string | null;
17
+ createdTo: string | null;
18
+ modifiedBy: string | null;
19
+ createdBy: string | null;
20
+ pageIndex: number;
21
+ pageSize: number;
22
+ }
23
+ export interface SearchAuthorsResult {
24
+ authors: Author[];
25
+ total: number;
26
+ }
27
+ export interface Author {
28
+ siteId: string;
29
+ id: string;
30
+ fullName: string;
31
+ legacyId: number;
32
+ imageUrl: string | null;
33
+ imageId: string | null;
34
+ createdAt: string;
35
+ archived: boolean;
36
+ email: string | null;
37
+ authorListEnabled: boolean;
38
+ firstName: string;
39
+ lastName: string;
40
+ webId: string;
41
+ type: string;
42
+ articleListing: boolean;
43
+ appearsUponArticleShare: boolean;
44
+ companyName: string | null;
45
+ jobTitle: string | null;
46
+ introduction: string | null;
47
+ articleCount: number | null;
48
+ }
49
+ export interface AuthorRelationsResponse {
50
+ postCount: number;
51
+ }
@@ -0,0 +1,31 @@
1
+ export interface SearchTagsPayload {
2
+ siteIds: string[] | null;
3
+ id: string | null;
4
+ name: string | null;
5
+ webId: string | null;
6
+ followable: boolean | null;
7
+ modifiedFrom: string | null;
8
+ modifiedTo: string | null;
9
+ createdFrom: string | null;
10
+ createdTo: string | null;
11
+ modifiedBy: string | null;
12
+ createdBy: string | null;
13
+ pageIndex: number;
14
+ pageSize: number;
15
+ }
16
+ export interface SearchTagsResult {
17
+ tags: Tag[];
18
+ total: number;
19
+ }
20
+ export interface Tag {
21
+ siteId: string;
22
+ id: string;
23
+ name: string;
24
+ createdAt: string;
25
+ archived: boolean;
26
+ webId: string | null;
27
+ articleCount: number | null;
28
+ }
29
+ export interface TagRelationsResponse {
30
+ postCount: number;
31
+ }
@@ -2,7 +2,15 @@ import { PartnerDetails, PartnerDetailsByIdsPayload } from '../modells/Partners'
2
2
  import { SearchPostsPayload, SearchPostsResponse } from '../modells/SearchPosts';
3
3
  import { UserInfoModel } from '../modells/User';
4
4
  import { HttpRequest } from './services';
5
+ import { SearchAuthorsPayload, SearchAuthorsResult, AuthorRelationsResponse } from '../modells/Authors';
6
+ import { SearchTagsPayload, SearchTagsResult, TagRelationsResponse } from '../modells/Tags';
5
7
  export declare function useArticleEditorService(url: string): ArticleEditorService;
8
+ export interface GetAuthorRelationsRouteParams {
9
+ id: string;
10
+ }
11
+ export interface GetTagRelationsRouteParams {
12
+ id: string;
13
+ }
6
14
  export interface GetWidgetDetailsRouteParams {
7
15
  name: string;
8
16
  }
@@ -54,6 +62,13 @@ export interface Site {
54
62
  ranks: Rank[];
55
63
  others: Other[];
56
64
  entities: Entity[];
65
+ postTypes: PostType[];
66
+ }
67
+ export interface PostType {
68
+ id: string;
69
+ name: string;
70
+ controls: string[];
71
+ properties: string[];
57
72
  }
58
73
  export interface Entity {
59
74
  type: string;
@@ -77,5 +92,9 @@ export declare class ArticleEditorService {
77
92
  lead: string;
78
93
  imageUrl: string;
79
94
  }>;
95
+ searchAuthors: HttpRequest<SearchAuthorsPayload, undefined, undefined, SearchAuthorsResult>;
96
+ searchTags: HttpRequest<SearchTagsPayload, undefined, undefined, SearchTagsResult>;
97
+ getAuthorRelations: HttpRequest<undefined, GetAuthorRelationsRouteParams, undefined, AuthorRelationsResponse>;
98
+ getTagRelations: HttpRequest<undefined, GetTagRelationsRouteParams, undefined, TagRelationsResponse>;
80
99
  constructor(articleEditorBackendUrl: string);
81
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admins-components",
3
- "version": "6.0.5",
3
+ "version": "6.0.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"