@serene-dev/la-nest-library 0.0.159 → 0.0.161
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.
- package/dist/libs/la-library/src/controllers/base.controller.d.ts +1 -1
- package/dist/libs/la-library/src/dtos/search.dto.d.ts +1 -0
- package/dist/libs/la-library/src/dtos/search.dto.js +5 -1
- package/dist/libs/la-library/src/dtos/search.dto.js.map +1 -1
- package/dist/libs/la-library/src/enums/base.enum.d.ts +1 -0
- package/dist/libs/la-library/src/enums/base.enum.js +1 -0
- package/dist/libs/la-library/src/enums/base.enum.js.map +1 -1
- package/dist/libs/la-library/src/index.d.ts +2 -0
- package/dist/libs/la-library/src/index.js +4 -0
- package/dist/libs/la-library/src/index.js.map +1 -1
- package/dist/libs/la-library/src/interfaces/base.interface.d.ts +9 -0
- package/dist/libs/la-library/src/modules/base.module.js.map +1 -1
- package/dist/libs/la-library/src/modules/category/category.service.d.ts +3 -3
- package/dist/libs/la-library/src/modules/category/category.service.js +2 -1
- package/dist/libs/la-library/src/modules/category/category.service.js.map +1 -1
- package/dist/libs/la-library/src/modules/wallet/wallet.controller.d.ts +1 -0
- package/dist/libs/la-library/src/modules/wallet/wallet.controller.js +9 -9
- package/dist/libs/la-library/src/modules/wallet/wallet.controller.js.map +1 -1
- package/dist/libs/la-library/src/modules/wordpress/wordpress-category.dto.d.ts +17 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-category.dto.js +66 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-category.dto.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-page.dto.d.ts +30 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-page.dto.js +114 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-page.dto.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-post.dto.d.ts +38 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-post.dto.js +154 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-post.dto.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-tag.dto.d.ts +9 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-tag.dto.js +26 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress-tag.dto.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.controller.d.ts +33 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.controller.js +253 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.controller.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.controller.spec.d.ts +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.controller.spec.js +17 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.controller.spec.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.dto.d.ts +57 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.dto.js +167 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.dto.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.entity.d.ts +6 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.entity.js +34 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.entity.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.enum.d.ts +5 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.enum.js +10 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.enum.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.index.d.ts +9 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.index.js +26 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.index.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.module.d.ts +9 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.module.js +30 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.module.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.service.d.ts +57 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.service.js +215 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.service.js.map +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.service.spec.d.ts +1 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.service.spec.js +17 -0
- package/dist/libs/la-library/src/modules/wordpress/wordpress.service.spec.js.map +1 -0
- package/dist/libs/la-library/src/services/base.service.d.ts +1 -1
- package/dist/libs/la-library/src/services/base.service.js +2 -1
- package/dist/libs/la-library/src/services/base.service.js.map +1 -1
- package/dist/libs/la-library/src/services/custom-repository.service.d.ts +14 -0
- package/dist/libs/la-library/src/services/custom-repository.service.js +64 -0
- package/dist/libs/la-library/src/services/custom-repository.service.js.map +1 -0
- package/dist/libs/la-library/src/services/search.service.js +3 -2
- package/dist/libs/la-library/src/services/search.service.js.map +1 -1
- package/dist/libs/la-library/src/services/utility.service.js +1 -0
- package/dist/libs/la-library/src/services/utility.service.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WPPostListQuery = exports.WPPostSearchResponseDto = exports.WPPost = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const search_dto_1 = require("../../dtos/search.dto");
|
|
15
|
+
const wordpress_dto_1 = require("./wordpress.dto");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
class WPPost {
|
|
18
|
+
}
|
|
19
|
+
exports.WPPost = WPPost;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], WPPost.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], WPPost.prototype, "date", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WPPost.prototype, "date_gmt", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ type: wordpress_dto_1.WPContent }),
|
|
34
|
+
__metadata("design:type", wordpress_dto_1.WPContent)
|
|
35
|
+
], WPPost.prototype, "guid", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], WPPost.prototype, "modified", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], WPPost.prototype, "modified_gmt", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], WPPost.prototype, "slug", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], WPPost.prototype, "status", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], WPPost.prototype, "type", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], WPPost.prototype, "link", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({ type: wordpress_dto_1.WPContent }),
|
|
62
|
+
__metadata("design:type", wordpress_dto_1.WPContent)
|
|
63
|
+
], WPPost.prototype, "title", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)({ type: wordpress_dto_1.WPContent }),
|
|
66
|
+
__metadata("design:type", wordpress_dto_1.WPContent)
|
|
67
|
+
], WPPost.prototype, "content", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({ type: wordpress_dto_1.WPContent }),
|
|
70
|
+
__metadata("design:type", wordpress_dto_1.WPContent)
|
|
71
|
+
], WPPost.prototype, "excerpt", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], WPPost.prototype, "author", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)(),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], WPPost.prototype, "featured_media", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], WPPost.prototype, "comment_status", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], WPPost.prototype, "ping_status", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, swagger_1.ApiProperty)(),
|
|
90
|
+
__metadata("design:type", Boolean)
|
|
91
|
+
], WPPost.prototype, "sticky", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], WPPost.prototype, "template", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)(),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], WPPost.prototype, "format", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, swagger_1.ApiProperty)({ type: wordpress_dto_1.WPMeta }),
|
|
102
|
+
__metadata("design:type", wordpress_dto_1.WPMeta)
|
|
103
|
+
], WPPost.prototype, "meta", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)({ type: [Number] }),
|
|
106
|
+
__metadata("design:type", Array)
|
|
107
|
+
], WPPost.prototype, "categories", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)({ type: [Number] }),
|
|
110
|
+
__metadata("design:type", Array)
|
|
111
|
+
], WPPost.prototype, "tags", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, swagger_1.ApiProperty)({ type: [String] }),
|
|
114
|
+
__metadata("design:type", Array)
|
|
115
|
+
], WPPost.prototype, "class_list", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiProperty)({ type: wordpress_dto_1.WPLinks }),
|
|
118
|
+
__metadata("design:type", wordpress_dto_1.WPLinks)
|
|
119
|
+
], WPPost.prototype, "_links", void 0);
|
|
120
|
+
class WPPostSearchResponseDto extends search_dto_1.SearchResponseDto {
|
|
121
|
+
}
|
|
122
|
+
exports.WPPostSearchResponseDto = WPPostSearchResponseDto;
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)({ type: [WPPost] }),
|
|
125
|
+
__metadata("design:type", Array)
|
|
126
|
+
], WPPostSearchResponseDto.prototype, "data", void 0);
|
|
127
|
+
class WPPostListQuery extends wordpress_dto_1.WPListQuery {
|
|
128
|
+
}
|
|
129
|
+
exports.WPPostListQuery = WPPostListQuery;
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [String] }),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], WPPostListQuery.prototype, "categorySlug", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [Number] }),
|
|
138
|
+
(0, class_validator_1.IsOptional)(),
|
|
139
|
+
(0, class_validator_1.IsNumberString)(null, { each: true }),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], WPPostListQuery.prototype, "categoryID", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [String] }),
|
|
144
|
+
(0, class_validator_1.IsOptional)(),
|
|
145
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], WPPostListQuery.prototype, "tagSlug", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [Number] }),
|
|
150
|
+
(0, class_validator_1.IsOptional)(),
|
|
151
|
+
(0, class_validator_1.IsNumberString)(null, { each: true }),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], WPPostListQuery.prototype, "tagID", void 0);
|
|
154
|
+
//# sourceMappingURL=wordpress-post.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordpress-post.dto.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/wordpress/wordpress-post.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,sDAA0D;AAC1D,mDAA0E;AAC1E,qDAAuE;AAEvE,MAAa,MAAM;CA0BlB;AA1BD,wBA0BC;AAzBg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
2
|
+
import { WPCategory } from './wordpress-category.dto';
|
|
3
|
+
declare const WPTag_base: import("@nestjs/common").Type<Omit<WPCategory, "parent">>;
|
|
4
|
+
export declare class WPTag extends WPTag_base {
|
|
5
|
+
}
|
|
6
|
+
export declare class WPTagSearchResponseDto extends SearchResponseDto {
|
|
7
|
+
data: WPTag[];
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WPTagSearchResponseDto = exports.WPTag = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const search_dto_1 = require("../../dtos/search.dto");
|
|
15
|
+
const wordpress_category_dto_1 = require("./wordpress-category.dto");
|
|
16
|
+
class WPTag extends (0, swagger_1.OmitType)(wordpress_category_dto_1.WPCategory, ['parent']) {
|
|
17
|
+
}
|
|
18
|
+
exports.WPTag = WPTag;
|
|
19
|
+
class WPTagSearchResponseDto extends search_dto_1.SearchResponseDto {
|
|
20
|
+
}
|
|
21
|
+
exports.WPTagSearchResponseDto = WPTagSearchResponseDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ type: [WPTag] }),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], WPTagSearchResponseDto.prototype, "data", void 0);
|
|
26
|
+
//# sourceMappingURL=wordpress-tag.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordpress-tag.dto.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/wordpress/wordpress-tag.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,sDAA0D;AAC1D,qEAAsD;AAEtD,MAAa,KAAM,SAAQ,IAAA,kBAAQ,EAAC,mCAAU,EAAE,CAAC,QAAQ,CAAC,CAAC;CAC1D;AADD,sBACC;AAED,MAAa,sBAAuB,SAAQ,8BAAiB;CAE5D;AAFD,wDAEC;AAD0C;IAAxC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;;oDAAwB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { WPSiteEntity } from './wordpress.entity';
|
|
2
|
+
import { BaseCRUDController } from '../../controllers/base.controller';
|
|
3
|
+
import { CreateWPSiteDTO, SearchWPSiteDTO, UpdateWPSiteDTO, WPCheckDomainDTO, WPItemQuery, WPListQuery } from './wordpress.dto';
|
|
4
|
+
import { WordpressService } from './wordpress.service';
|
|
5
|
+
import { IAuthParam } from '../authentication/authentication.interface';
|
|
6
|
+
import { IDDto } from '../../dtos/base.dto';
|
|
7
|
+
import { WPPost, WPPostListQuery, WPPostSearchResponseDto } from './wordpress-post.dto';
|
|
8
|
+
import { WPPage, WPPageSearchResponseDto } from './wordpress-page.dto';
|
|
9
|
+
import { WPCategory, WPCategorySearchResponseDto } from './wordpress-category.dto';
|
|
10
|
+
import { WPTag, WPTagSearchResponseDto } from './wordpress-tag.dto';
|
|
11
|
+
export declare class WordpressController extends BaseCRUDController<WPSiteEntity, SearchWPSiteDTO> {
|
|
12
|
+
protected readonly service: WordpressService;
|
|
13
|
+
constructor(service: WordpressService);
|
|
14
|
+
create(body: CreateWPSiteDTO, auth: IAuthParam): string | Promise<WPSiteEntity>;
|
|
15
|
+
updateByID(param: IDDto, body: UpdateWPSiteDTO, auth: IAuthParam): string | Promise<WPSiteEntity>;
|
|
16
|
+
search(query: SearchWPSiteDTO): Promise<string | import("../..").ISearchResponse<WPSiteEntity>>;
|
|
17
|
+
checkDomain(query: WPCheckDomainDTO): Promise<string | {
|
|
18
|
+
status: boolean;
|
|
19
|
+
message: any;
|
|
20
|
+
}>;
|
|
21
|
+
getCategories(query: WPListQuery): Promise<string | WPCategorySearchResponseDto>;
|
|
22
|
+
getCategory(query: WPItemQuery): Promise<string | WPCategory>;
|
|
23
|
+
getPosts(query: WPPostListQuery): Promise<string | WPPostSearchResponseDto>;
|
|
24
|
+
getPost(query: WPItemQuery): Promise<string | WPPost>;
|
|
25
|
+
getPages(query: WPListQuery): Promise<string | WPPageSearchResponseDto>;
|
|
26
|
+
getPage(query: WPItemQuery): Promise<string | WPPage>;
|
|
27
|
+
getTags(query: WPListQuery): Promise<string | WPTagSearchResponseDto>;
|
|
28
|
+
getTag(query: WPItemQuery): Promise<string | WPTag>;
|
|
29
|
+
getWPAPI(): Promise<string | {
|
|
30
|
+
currentSite: WPSiteEntity;
|
|
31
|
+
currentWPAPI?: import("wpapi");
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.WordpressController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const base_controller_1 = require("../../controllers/base.controller");
|
|
18
|
+
const wordpress_dto_1 = require("./wordpress.dto");
|
|
19
|
+
const wordpress_service_1 = require("./wordpress.service");
|
|
20
|
+
const authentication_guard_1 = require("../authentication/authentication.guard");
|
|
21
|
+
const base_dto_1 = require("../../dtos/base.dto");
|
|
22
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
23
|
+
const search_dto_1 = require("../../dtos/search.dto");
|
|
24
|
+
const utility_service_1 = require("../../services/utility.service");
|
|
25
|
+
const wordpress_post_dto_1 = require("./wordpress-post.dto");
|
|
26
|
+
const wordpress_page_dto_1 = require("./wordpress-page.dto");
|
|
27
|
+
const wordpress_category_dto_1 = require("./wordpress-category.dto");
|
|
28
|
+
const wordpress_tag_dto_1 = require("./wordpress-tag.dto");
|
|
29
|
+
let WordpressController = class WordpressController extends base_controller_1.BaseCRUDController {
|
|
30
|
+
constructor(service) {
|
|
31
|
+
super(service);
|
|
32
|
+
this.service = service;
|
|
33
|
+
}
|
|
34
|
+
create(body, auth) {
|
|
35
|
+
return super.create(body, auth);
|
|
36
|
+
}
|
|
37
|
+
updateByID(param, body, auth) {
|
|
38
|
+
return super.updateByID(param, body, auth);
|
|
39
|
+
}
|
|
40
|
+
async search(query) {
|
|
41
|
+
return super.search(query);
|
|
42
|
+
}
|
|
43
|
+
async checkDomain(query) {
|
|
44
|
+
try {
|
|
45
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
46
|
+
data: await this.service.checkDomain(query),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
async getCategories(query) {
|
|
54
|
+
try {
|
|
55
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
56
|
+
data: await this.service.getCategories(query),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async getCategory(query) {
|
|
64
|
+
try {
|
|
65
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
66
|
+
data: await this.service.getCategory(query),
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async getPosts(query) {
|
|
74
|
+
try {
|
|
75
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
76
|
+
data: await this.service.getPosts(query),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async getPost(query) {
|
|
84
|
+
try {
|
|
85
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
86
|
+
data: await this.service.getPost(query),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async getPages(query) {
|
|
94
|
+
try {
|
|
95
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
96
|
+
data: await this.service.getPages(query),
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async getPage(query) {
|
|
104
|
+
try {
|
|
105
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
106
|
+
data: await this.service.getPage(query),
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
async getTags(query) {
|
|
114
|
+
try {
|
|
115
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
116
|
+
data: await this.service.getTags(query),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
async getTag(query) {
|
|
124
|
+
try {
|
|
125
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
126
|
+
data: await this.service.getTag(query),
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async getWPAPI() {
|
|
134
|
+
try {
|
|
135
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
136
|
+
data: await this.service.getWPAPI(),
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
exports.WordpressController = WordpressController;
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, common_1.Post)(''),
|
|
147
|
+
__param(0, (0, common_1.Body)()),
|
|
148
|
+
__param(1, (0, authentication_guard_1.AuthParam)()),
|
|
149
|
+
__metadata("design:type", Function),
|
|
150
|
+
__metadata("design:paramtypes", [wordpress_dto_1.CreateWPSiteDTO, Object]),
|
|
151
|
+
__metadata("design:returntype", void 0)
|
|
152
|
+
], WordpressController.prototype, "create", null);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, common_1.Put)(':id'),
|
|
155
|
+
__param(0, (0, common_1.Param)()),
|
|
156
|
+
__param(1, (0, common_1.Body)()),
|
|
157
|
+
__param(2, (0, authentication_guard_1.AuthParam)()),
|
|
158
|
+
__metadata("design:type", Function),
|
|
159
|
+
__metadata("design:paramtypes", [base_dto_1.IDDto,
|
|
160
|
+
wordpress_dto_1.UpdateWPSiteDTO, Object]),
|
|
161
|
+
__metadata("design:returntype", void 0)
|
|
162
|
+
], WordpressController.prototype, "updateByID", null);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, common_1.Get)('search'),
|
|
165
|
+
(0, swagger_1.ApiResponse)({ type: search_dto_1.SearchResponseDto }),
|
|
166
|
+
__param(0, (0, common_1.Query)()),
|
|
167
|
+
__metadata("design:type", Function),
|
|
168
|
+
__metadata("design:paramtypes", [wordpress_dto_1.SearchWPSiteDTO]),
|
|
169
|
+
__metadata("design:returntype", Promise)
|
|
170
|
+
], WordpressController.prototype, "search", null);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, common_1.Get)('check-domain'),
|
|
173
|
+
__param(0, (0, common_1.Query)()),
|
|
174
|
+
__metadata("design:type", Function),
|
|
175
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPCheckDomainDTO]),
|
|
176
|
+
__metadata("design:returntype", Promise)
|
|
177
|
+
], WordpressController.prototype, "checkDomain", null);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, common_1.Get)('categories/search'),
|
|
180
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_category_dto_1.WPCategorySearchResponseDto }),
|
|
181
|
+
__param(0, (0, common_1.Query)()),
|
|
182
|
+
__metadata("design:type", Function),
|
|
183
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPListQuery]),
|
|
184
|
+
__metadata("design:returntype", Promise)
|
|
185
|
+
], WordpressController.prototype, "getCategories", null);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, common_1.Get)('categories/single'),
|
|
188
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_category_dto_1.WPCategory }),
|
|
189
|
+
__param(0, (0, common_1.Query)()),
|
|
190
|
+
__metadata("design:type", Function),
|
|
191
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPItemQuery]),
|
|
192
|
+
__metadata("design:returntype", Promise)
|
|
193
|
+
], WordpressController.prototype, "getCategory", null);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, common_1.Get)('posts/search'),
|
|
196
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_post_dto_1.WPPostSearchResponseDto }),
|
|
197
|
+
__param(0, (0, common_1.Query)()),
|
|
198
|
+
__metadata("design:type", Function),
|
|
199
|
+
__metadata("design:paramtypes", [wordpress_post_dto_1.WPPostListQuery]),
|
|
200
|
+
__metadata("design:returntype", Promise)
|
|
201
|
+
], WordpressController.prototype, "getPosts", null);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, common_1.Get)('posts/single'),
|
|
204
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_post_dto_1.WPPost }),
|
|
205
|
+
__param(0, (0, common_1.Query)()),
|
|
206
|
+
__metadata("design:type", Function),
|
|
207
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPItemQuery]),
|
|
208
|
+
__metadata("design:returntype", Promise)
|
|
209
|
+
], WordpressController.prototype, "getPost", null);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, common_1.Get)('pages/search'),
|
|
212
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_page_dto_1.WPPageSearchResponseDto }),
|
|
213
|
+
__param(0, (0, common_1.Query)()),
|
|
214
|
+
__metadata("design:type", Function),
|
|
215
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPListQuery]),
|
|
216
|
+
__metadata("design:returntype", Promise)
|
|
217
|
+
], WordpressController.prototype, "getPages", null);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, common_1.Get)('pages/single'),
|
|
220
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_page_dto_1.WPPage }),
|
|
221
|
+
__param(0, (0, common_1.Query)()),
|
|
222
|
+
__metadata("design:type", Function),
|
|
223
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPItemQuery]),
|
|
224
|
+
__metadata("design:returntype", Promise)
|
|
225
|
+
], WordpressController.prototype, "getPage", null);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, common_1.Get)('tags/search'),
|
|
228
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_tag_dto_1.WPTagSearchResponseDto }),
|
|
229
|
+
__param(0, (0, common_1.Query)()),
|
|
230
|
+
__metadata("design:type", Function),
|
|
231
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPListQuery]),
|
|
232
|
+
__metadata("design:returntype", Promise)
|
|
233
|
+
], WordpressController.prototype, "getTags", null);
|
|
234
|
+
__decorate([
|
|
235
|
+
(0, common_1.Get)('tags/single'),
|
|
236
|
+
(0, swagger_1.ApiResponse)({ type: wordpress_tag_dto_1.WPTag }),
|
|
237
|
+
__param(0, (0, common_1.Query)()),
|
|
238
|
+
__metadata("design:type", Function),
|
|
239
|
+
__metadata("design:paramtypes", [wordpress_dto_1.WPItemQuery]),
|
|
240
|
+
__metadata("design:returntype", Promise)
|
|
241
|
+
], WordpressController.prototype, "getTag", null);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, common_1.Get)('active'),
|
|
244
|
+
__metadata("design:type", Function),
|
|
245
|
+
__metadata("design:paramtypes", []),
|
|
246
|
+
__metadata("design:returntype", Promise)
|
|
247
|
+
], WordpressController.prototype, "getWPAPI", null);
|
|
248
|
+
exports.WordpressController = WordpressController = __decorate([
|
|
249
|
+
(0, swagger_1.ApiTags)('Wordpress'),
|
|
250
|
+
(0, common_1.Controller)('wordpress'),
|
|
251
|
+
__metadata("design:paramtypes", [wordpress_service_1.WordpressService])
|
|
252
|
+
], WordpressController);
|
|
253
|
+
//# sourceMappingURL=wordpress.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordpress.controller.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/wordpress/wordpress.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgF;AAEhF,uEAAuE;AACvE,mDAOyB;AACzB,2DAAuD;AACvD,iFAAmE;AAEnE,kDAA4C;AAC5C,6CAAuD;AACvD,sDAA0D;AAC1D,oEAA8D;AAC9D,6DAI8B;AAC9B,6DAAuE;AACvE,qEAGkC;AAClC,2DAAoE;AAI7D,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,oCAGxC;IACC,YAAwC,OAAyB;QAC/D,KAAK,CAAC,OAAO,CAAC,CAAC;QADuB,YAAO,GAAP,OAAO,CAAkB;IAEjE,CAAC;IAGQ,MAAM,CACL,IAAqB,EAChB,IAAgB;QAE7B,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAGQ,UAAU,CACR,KAAY,EAErB,IAAqB,EACR,IAAgB;QAE7B,OAAO,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAIc,AAAN,KAAK,CAAC,MAAM,CAAU,KAAsB;QACnD,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CAAU,KAAuB;QAChD,IAAI,CAAC;YACH,OAAO,8BAAY,CAAC,aAAa,CAAC;gBAChC,IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC;aAC5C,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,8BAAY,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;IACH,C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+1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const testing_1 = require("@nestjs/testing");
|
|
4
|
+
const wordpress_controller_1 = require("./wordpress.controller");
|
|
5
|
+
describe('WordpressController', () => {
|
|
6
|
+
let controller;
|
|
7
|
+
beforeEach(async () => {
|
|
8
|
+
const module = await testing_1.Test.createTestingModule({
|
|
9
|
+
controllers: [wordpress_controller_1.WordpressController],
|
|
10
|
+
}).compile();
|
|
11
|
+
controller = module.get(wordpress_controller_1.WordpressController);
|
|
12
|
+
});
|
|
13
|
+
it('should be defined', () => {
|
|
14
|
+
expect(controller).toBeDefined();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=wordpress.controller.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordpress.controller.spec.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/wordpress/wordpress.controller.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,iEAA6D;AAE7D,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,UAA+B,CAAC;IAEpC,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,WAAW,EAAE,CAAC,0CAAmB,CAAC;SACnC,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,UAAU,GAAG,MAAM,CAAC,GAAG,CAAsB,0CAAmB,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3B,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SearchQueryDto } from '../../dtos/search.dto';
|
|
2
|
+
import { BaseDto } from '../../dtos/base.dto';
|
|
3
|
+
import { WPSiteEntity } from './wordpress.entity';
|
|
4
|
+
export declare class CreateWPSiteDTO extends BaseDto implements WPSiteEntity {
|
|
5
|
+
name: string;
|
|
6
|
+
domain: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
}
|
|
9
|
+
declare const UpdateWPSiteDTO_base: import("@nestjs/common").Type<Partial<CreateWPSiteDTO>>;
|
|
10
|
+
export declare class UpdateWPSiteDTO extends UpdateWPSiteDTO_base {
|
|
11
|
+
}
|
|
12
|
+
declare const SearchWPSiteDTO_base: import("@nestjs/common").Type<UpdateWPSiteDTO & SearchQueryDto<unknown>>;
|
|
13
|
+
export declare class SearchWPSiteDTO extends SearchWPSiteDTO_base {
|
|
14
|
+
}
|
|
15
|
+
export declare class WPCheckDomainDTO {
|
|
16
|
+
domain: string;
|
|
17
|
+
}
|
|
18
|
+
declare const WPListQuery_base: import("@nestjs/common").Type<Pick<SearchQueryDto<unknown>, "createdFrom" | "createdTo" | "pageNumber" | "pageSize" | "sortField" | "sortDirection">>;
|
|
19
|
+
export declare class WPListQuery extends WPListQuery_base {
|
|
20
|
+
pageNumber: number;
|
|
21
|
+
pageSize: number;
|
|
22
|
+
categorySlug?: string | string[];
|
|
23
|
+
categoryID?: number | number[];
|
|
24
|
+
tagSlug?: string | string[];
|
|
25
|
+
tagID?: number | number[];
|
|
26
|
+
}
|
|
27
|
+
export declare class WPItemQuery {
|
|
28
|
+
id?: number;
|
|
29
|
+
slug?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class WPLinkItem {
|
|
32
|
+
name?: string;
|
|
33
|
+
href: string;
|
|
34
|
+
templated?: boolean;
|
|
35
|
+
id?: number;
|
|
36
|
+
count?: number;
|
|
37
|
+
embeddable?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare class WPMeta {
|
|
40
|
+
footnotes: string;
|
|
41
|
+
}
|
|
42
|
+
export declare class WPLinks {
|
|
43
|
+
self: WPLinkItem[];
|
|
44
|
+
collection: WPLinkItem[];
|
|
45
|
+
about: WPLinkItem[];
|
|
46
|
+
author: WPLinkItem[];
|
|
47
|
+
replies: WPLinkItem[];
|
|
48
|
+
'version-history': WPLinkItem[];
|
|
49
|
+
'predecessor-version': WPLinkItem[];
|
|
50
|
+
'wp:attachment': WPLinkItem[];
|
|
51
|
+
curies: WPLinkItem[];
|
|
52
|
+
}
|
|
53
|
+
export declare class WPContent {
|
|
54
|
+
rendered: string;
|
|
55
|
+
protected: boolean;
|
|
56
|
+
}
|
|
57
|
+
export {};
|