@ketab-ir/core 1.3.1 → 1.3.2

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,5 @@ 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';
@@ -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,8 @@ 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';
10
12
  export declare abstract class IKtsServices {
11
13
  abstract getCurrentCourse(): Observable<KtsCourseDetail>;
12
14
  abstract getSettings(): Observable<KtsSetting>;
@@ -21,4 +23,16 @@ export declare abstract class IKtsServices {
21
23
  abstract getNewsMostView(take?: number): Observable<KtsNews[]>;
22
24
  abstract getAllNews(input: IKtbNewPagedInput): Observable<IKtbPageResult<KtsNews>>;
23
25
  abstract getNewsDetail(id: number): Observable<KtsNews>;
26
+ abstract searchBook(input: {
27
+ title?: string;
28
+ author?: string;
29
+ isbn?: string;
30
+ publisher?: string;
31
+ }): Observable<IKtsBookDto[]>;
32
+ abstract sendApplicant(input: {
33
+ bookId?: number;
34
+ applicantId?: number;
35
+ categoryId?: number;
36
+ }): Observable<void>;
37
+ abstract getAllSubmission(input: IKtbGetSubmissionApplicantInput): Observable<IKtbPageResult<IKtbSubmissionsForApplicant>>;
24
38
  }
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.2",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=16.0.0",