@ketab-ir/core 1.3.1 → 1.3.3

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.
@@ -1,5 +1,5 @@
1
- import { IKtbProduct } from "./ktb-product";
2
- import { IKtbProductAuthor } from "./ktb-product-author";
1
+ import { IKtbProduct } from './ktb-product';
2
+ import { IKtbProductAuthor } from './ktb-product-author';
3
3
  export interface IKtbProductDetail {
4
4
  bookId?: number;
5
5
  bookSpecifications?: BookSpecifications;
@@ -0,0 +1,39 @@
1
+ import { IKtbAuthor, IKtbNewPagedInput, KtbCategorySubmission, KtbPublisher } from '../../models';
2
+ export interface IKtbSubmissionsForApplicant {
3
+ applicantId?: number;
4
+ authors?: null | Array<IKtbAuthor>;
5
+ bookType?: null | string;
6
+ categories?: null | Array<KtbCategorySubmission>;
7
+ id?: number;
8
+ imageAddress?: null | string;
9
+ isbn?: null | string;
10
+ mobile?: null | string;
11
+ publisher?: null | Array<KtbPublisher>;
12
+ rank?: null | string;
13
+ status?: number;
14
+ title?: null | string;
15
+ }
16
+ export declare class KtbSubmissionsForApplicant implements IKtbSubmissionsForApplicant {
17
+ applicantId?: number;
18
+ authors?: null | Array<IKtbAuthor>;
19
+ bookType?: null | string;
20
+ categories?: null | Array<KtbCategorySubmission>;
21
+ id?: number;
22
+ imageAddress?: null | string;
23
+ isbn?: null | string;
24
+ mobile?: null | string;
25
+ publisher?: null | Array<KtbPublisher>;
26
+ rank?: null | string;
27
+ status?: number;
28
+ title?: null | string;
29
+ constructor(data: IKtbSubmissionsForApplicant);
30
+ }
31
+ export interface IKtbGetSubmissionApplicantInput extends IKtbNewPagedInput {
32
+ courseId?: number;
33
+ applicantId?: number;
34
+ status?: number;
35
+ awardType?: number;
36
+ bookType?: number;
37
+ rank?: number;
38
+ categoryId?: number;
39
+ }
@@ -8,3 +8,6 @@ export * from './settings';
8
8
  export * from './input';
9
9
  export * from './kts-services.service';
10
10
  export * from './enums';
11
+ export * from './ktb-bookdto';
12
+ export * from './applicant';
13
+ export * from './referee';
@@ -0,0 +1,26 @@
1
+ import { IKtbAuthor, IKtbPublisher } from '../../models';
2
+ export interface IKtsBookDto {
3
+ authors?: null | Array<IKtbAuthor>;
4
+ bhUniqueId?: string;
5
+ bookType?: null | string;
6
+ id?: number;
7
+ imageAddress?: null | string;
8
+ isbn?: null | string;
9
+ pageCount?: number;
10
+ publishers?: null | Array<IKtbPublisher>;
11
+ sizeType?: null | string;
12
+ title?: null | string;
13
+ }
14
+ export declare class KtsBookDto implements IKtsBookDto {
15
+ authors?: null | Array<IKtbAuthor>;
16
+ bhUniqueId?: string;
17
+ bookType?: null | string;
18
+ id?: number;
19
+ imageAddress?: null | string;
20
+ isbn?: null | string;
21
+ pageCount?: number;
22
+ publishers?: null | Array<IKtbPublisher>;
23
+ sizeType?: null | string;
24
+ title?: null | string;
25
+ constructor(data: IKtsBookDto);
26
+ }
@@ -7,6 +7,9 @@ import { KtsPagedInput, KtsSubmissionInput } from './input';
7
7
  import { KtsMedia } from './media';
8
8
  import { KtsProduct } from './product';
9
9
  import { KtsNews } from './news';
10
+ import { IKtsBookDto } from './ktb-bookdto';
11
+ import { IKtbGetSubmissionApplicantInput, IKtbSubmissionsForApplicant } from './applicant';
12
+ import { IKtsCreateOrEditAnswer, IKtsCreateOrEditBulkAnswer, IKtsGetRefereeFormInput, IKtsGetSubmissionForRefereeInput, IKtsQuestion, IKtsSubmissionsForReferee } from './referee';
10
13
  export declare abstract class IKtsServices {
11
14
  abstract getCurrentCourse(): Observable<KtsCourseDetail>;
12
15
  abstract getSettings(): Observable<KtsSetting>;
@@ -21,4 +24,24 @@ export declare abstract class IKtsServices {
21
24
  abstract getNewsMostView(take?: number): Observable<KtsNews[]>;
22
25
  abstract getAllNews(input: IKtbNewPagedInput): Observable<IKtbPageResult<KtsNews>>;
23
26
  abstract getNewsDetail(id: number): Observable<KtsNews>;
27
+ abstract searchBook(input: {
28
+ title?: string;
29
+ author?: string;
30
+ isbn?: string;
31
+ publisher?: string;
32
+ }): Observable<IKtsBookDto[]>;
33
+ abstract sendApplicant(input: {
34
+ bookId?: number;
35
+ applicantId?: number;
36
+ categoryId?: number;
37
+ }): Observable<void>;
38
+ abstract getAllSubmission(input: IKtbGetSubmissionApplicantInput): Observable<IKtbPageResult<IKtbSubmissionsForApplicant>>;
39
+ abstract getAllSubmissionForReferee(input: IKtsGetSubmissionForRefereeInput): Observable<IKtbPageResult<IKtsSubmissionsForReferee>>;
40
+ abstract getSubmissionDetailForReferee(input: {
41
+ id: number;
42
+ refereeId: number;
43
+ }): Observable<IKtsSubmissionsForReferee>;
44
+ abstract getRefereeForm(input: IKtsGetRefereeFormInput): Observable<IKtbPageResult<IKtsQuestion>>;
45
+ abstract submitRefereeAnswer(input: IKtsCreateOrEditAnswer): Observable<void>;
46
+ abstract submitRefereeAnswerBulk(input: IKtsCreateOrEditBulkAnswer): Observable<void>;
24
47
  }
@@ -0,0 +1,94 @@
1
+ import { IKtbAuthor, IKtbNewPagedInput, IKtbPublisher } from '../../models';
2
+ export interface IKtsGetSubmissionForRefereeInput extends IKtbNewPagedInput {
3
+ courseId?: number;
4
+ refereeId?: number;
5
+ status?: number;
6
+ awardType?: number;
7
+ bookType?: number;
8
+ rank?: number;
9
+ categoryId?: number;
10
+ }
11
+ export interface IKtsSubmissionsForReferee {
12
+ authors?: null | Array<IKtbAuthor>;
13
+ bookType?: null | string;
14
+ category?: null | string;
15
+ categoryId?: null | number;
16
+ course?: null | string;
17
+ courseDateTime?: Date;
18
+ id?: number;
19
+ imageAddress?: null | string;
20
+ isbn?: null | string;
21
+ publisher?: null | Array<IKtbPublisher>;
22
+ rank?: null | string;
23
+ status?: number;
24
+ title?: null | string;
25
+ openningDate?: Date;
26
+ closingDate?: Date;
27
+ }
28
+ export declare class KtsSubmissionsForReferee implements IKtsSubmissionsForReferee {
29
+ authors?: null | Array<IKtbAuthor>;
30
+ bookType?: null | string;
31
+ category?: null | string;
32
+ categoryId?: null | number;
33
+ course?: null | string;
34
+ courseDateTime?: Date;
35
+ id?: number;
36
+ imageAddress?: null | string;
37
+ isbn?: null | string;
38
+ publisher?: null | Array<IKtbPublisher>;
39
+ rank?: null | string;
40
+ status?: number;
41
+ title?: null | string;
42
+ openningDate?: Date;
43
+ closingDate?: Date;
44
+ constructor(data: IKtsSubmissionsForReferee);
45
+ }
46
+ export interface IKtsGetRefereeFormInput extends IKtbNewPagedInput {
47
+ refereeId?: number;
48
+ submissionId?: number;
49
+ pageNumber?: number;
50
+ pageSize?: number;
51
+ }
52
+ export interface IKtsQuestionWithAnswer {
53
+ description?: null | string;
54
+ questionId?: number;
55
+ score?: number;
56
+ title?: null | string;
57
+ }
58
+ export interface IKtsQuestion {
59
+ description?: null | string;
60
+ questionId?: number;
61
+ questions?: null | IKtsQuestionWithAnswer[];
62
+ reason?: null | string;
63
+ title?: null | string;
64
+ }
65
+ export declare class KtsQuestion implements IKtsQuestion {
66
+ description?: null | string;
67
+ questionId?: number;
68
+ questions?: null | IKtsQuestionWithAnswer[];
69
+ reason?: null | string;
70
+ title?: null | string;
71
+ constructor(data: IKtsSubmissionsForReferee);
72
+ }
73
+ export interface IKtsCreateOrEditAnswer {
74
+ id?: null | number;
75
+ questionId?: number;
76
+ reason?: null | string;
77
+ refereeId?: number;
78
+ submissionId?: number;
79
+ value?: null | string;
80
+ }
81
+ export declare class KtsCreateOrEditAnswer implements IKtsCreateOrEditAnswer {
82
+ id?: null | number;
83
+ questionId?: number;
84
+ reason?: null | string;
85
+ refereeId?: number;
86
+ submissionId?: number;
87
+ value?: null | string;
88
+ constructor(data: IKtsCreateOrEditAnswer);
89
+ }
90
+ export interface IKtsCreateOrEditBulkAnswer {
91
+ inputs?: null | Array<IKtsCreateOrEditAnswer>;
92
+ refereeId?: number;
93
+ submissionId?: number;
94
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ketab-ir/core",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=16.0.0",