@ketab-ir/core 1.3.11 → 1.3.14

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 @@
1
+ export * from './ktb-literature.service';
@@ -0,0 +1,142 @@
1
+ import { Observable } from 'rxjs';
2
+ import { KtbArticleType, KtbLiteratureSubmissionStatus } from '../../enums';
3
+ import { IKtbNewPagedInput, IKtbPageResult } from '../../models';
4
+ export interface IKtbLiteratureCreateSumbmissionInput {
5
+ id?: number;
6
+ title?: string;
7
+ additionDescription?: string;
8
+ description?: string;
9
+ showAuthorProfile?: boolean;
10
+ type?: KtbArticleType;
11
+ }
12
+ export interface IKtbLiteratureCreateArticleInput {
13
+ id?: number;
14
+ title?: string;
15
+ description?: string;
16
+ type?: KtbArticleType;
17
+ }
18
+ export declare abstract class IKtbLiteratureClienService {
19
+ abstract getAllSubmission(input?: IKtbLiteratureGetSubmissionInput): Observable<IKtbPageResult<IKtbLiteratureApplicantSubmission>>;
20
+ abstract getSubmissionDetail(input: {
21
+ id?: number;
22
+ }): Observable<IKtbLiteratureApplicantSubmissionDetail | undefined>;
23
+ abstract createOrEditSubmission(input: IKtbLiteratureCreateSumbmissionInput): Observable<void>;
24
+ abstract getAllArticles(input?: IKtbLiteratureGetSubmissionInput): Observable<IKtbPageResult<IKtbLiteratureApplicantArticle>>;
25
+ abstract createOrEditArticle(input: IKtbLiteratureCreateArticleInput): Observable<void>;
26
+ abstract getArticle(input?: {
27
+ id: number;
28
+ }): Observable<IKtbLiteratureApplicantArticleDetail>;
29
+ }
30
+ export interface IKtbLiteratureGetSubmissionInput extends IKtbNewPagedInput {
31
+ status?: KtbLiteratureSubmissionStatus;
32
+ maxCreationTime?: Date;
33
+ minCreationTime?: Date;
34
+ isPublished?: boolean;
35
+ type?: KtbArticleType;
36
+ }
37
+ export interface IKtbLiteratureApplicantSubmission {
38
+ creationTime?: Date;
39
+ firstName?: null | string;
40
+ id?: number;
41
+ lastName?: null | string;
42
+ publishDate?: null | Date;
43
+ status?: KtbLiteratureSubmissionStatus;
44
+ title?: null | string;
45
+ type?: KtbArticleType;
46
+ fullname?: string;
47
+ }
48
+ export declare class KtbLiteratureApplicantSubmission implements IKtbLiteratureApplicantSubmission {
49
+ creationTime?: Date;
50
+ firstName?: null | string;
51
+ id?: number;
52
+ lastName?: null | string;
53
+ publishDate?: null | Date;
54
+ status?: KtbLiteratureSubmissionStatus;
55
+ title?: null | string;
56
+ type?: KtbArticleType;
57
+ get fullname(): string;
58
+ constructor(data: IKtbLiteratureApplicantSubmission);
59
+ }
60
+ export interface IKtbLiteratureApplicantSubmissionDetail {
61
+ additionDescription?: null | string;
62
+ creationTime?: Date;
63
+ description?: null | string;
64
+ firstName?: null | string;
65
+ id?: number;
66
+ lastName?: null | string;
67
+ publishDate?: Date;
68
+ reviewDescription?: null | string;
69
+ reviewTitle?: null | string;
70
+ score?: number;
71
+ status?: KtbLiteratureSubmissionStatus;
72
+ title?: null | string;
73
+ type?: KtbArticleType;
74
+ }
75
+ export declare class KtbLiteratureApplicantSubmissionDetail implements IKtbLiteratureApplicantSubmissionDetail {
76
+ additionDescription?: null | string;
77
+ creationTime?: Date;
78
+ description?: null | string;
79
+ firstName?: null | string;
80
+ id?: number;
81
+ lastName?: null | string;
82
+ publishDate?: Date;
83
+ reviewDescription?: null | string;
84
+ reviewTitle?: null | string;
85
+ score?: number;
86
+ status?: KtbLiteratureSubmissionStatus;
87
+ title?: null | string;
88
+ type?: KtbArticleType;
89
+ constructor(data: IKtbLiteratureApplicantSubmissionDetail);
90
+ }
91
+ export interface IKtbLiteratureApplicantArticle {
92
+ creationTime?: Date;
93
+ id?: number;
94
+ isPublish?: boolean;
95
+ publishTime?: Date;
96
+ shortDescription?: null | string;
97
+ status?: KtbLiteratureSubmissionStatus;
98
+ title?: null | string;
99
+ type?: KtbArticleType;
100
+ viewCount?: number;
101
+ }
102
+ export declare class KtbLiteratureApplicantArticle implements IKtbLiteratureApplicantArticle {
103
+ creationTime?: Date;
104
+ id?: number;
105
+ isPublish?: boolean;
106
+ publishTime?: Date;
107
+ shortDescription?: null | string;
108
+ status?: KtbLiteratureSubmissionStatus;
109
+ title?: null | string;
110
+ type?: KtbArticleType;
111
+ viewCount?: number;
112
+ constructor(data: IKtbLiteratureApplicantArticle);
113
+ }
114
+ export interface IKtbLiteratureApplicantArticleDetail {
115
+ creationTime?: Date;
116
+ description?: null | string;
117
+ firstName?: null | string;
118
+ id?: number;
119
+ imageAddress?: null | string;
120
+ isPublished?: boolean;
121
+ lastName?: null | string;
122
+ publishTime?: Date;
123
+ reviewType?: KtbArticleType;
124
+ status?: number;
125
+ title?: null | string;
126
+ viewCount?: number;
127
+ }
128
+ export declare class KtbLiteratureApplicantArticleDetail implements IKtbLiteratureApplicantArticleDetail {
129
+ creationTime?: Date;
130
+ description?: null | string;
131
+ firstName?: null | string;
132
+ id?: number;
133
+ imageAddress?: null | string;
134
+ isPublished?: boolean;
135
+ lastName?: null | string;
136
+ publishTime?: Date;
137
+ reviewType?: KtbArticleType;
138
+ status?: number;
139
+ title?: null | string;
140
+ viewCount?: number;
141
+ constructor(data: IKtbLiteratureApplicantArticleDetail);
142
+ }
@@ -1 +1,2 @@
1
1
  export * from './ketabsal';
2
+ export * from './adabiat';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ketab-ir/core",
3
- "version": "1.3.11",
3
+ "version": "1.3.14",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=16.0.0",