@serene-dev/la-nest-library 0.0.127 → 0.0.129
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 +12 -1
- package/dist/libs/la-library/src/controllers/base.controller.js +94 -2
- package/dist/libs/la-library/src/controllers/base.controller.js.map +1 -1
- package/dist/libs/la-library/src/enums/base.enum.d.ts +2 -1
- 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 +11 -2
- package/dist/libs/la-library/src/index.js +25 -3
- package/dist/libs/la-library/src/index.js.map +1 -1
- package/dist/libs/la-library/src/modules/base.module.js.map +1 -1
- package/dist/libs/la-library/src/modules/category/category.controller.d.ts +13 -0
- package/dist/libs/la-library/src/modules/category/category.controller.js +90 -0
- package/dist/libs/la-library/src/modules/category/category.controller.js.map +1 -0
- package/dist/libs/la-library/src/modules/category/category.controller.spec.d.ts +1 -0
- package/dist/libs/la-library/src/modules/category/category.controller.spec.js +19 -0
- package/dist/libs/la-library/src/modules/category/category.controller.spec.js.map +1 -0
- package/dist/libs/la-library/src/modules/category/category.dto.d.ts +26 -0
- package/dist/libs/la-library/src/modules/category/category.dto.js +87 -0
- package/dist/libs/la-library/src/modules/category/category.dto.js.map +1 -0
- package/dist/libs/la-library/src/modules/category/category.entity.d.ts +10 -0
- package/dist/libs/la-library/src/modules/category/category.entity.js +46 -0
- package/dist/libs/la-library/src/modules/category/category.entity.js.map +1 -0
- package/dist/libs/la-library/src/modules/category/category.module.d.ts +9 -0
- package/dist/libs/la-library/src/modules/category/category.module.js +29 -0
- package/dist/libs/la-library/src/modules/category/category.module.js.map +1 -0
- package/dist/libs/la-library/src/modules/category/category.service.d.ts +11 -0
- package/dist/libs/la-library/src/modules/category/category.service.js +95 -0
- package/dist/libs/la-library/src/modules/category/category.service.js.map +1 -0
- package/dist/libs/la-library/src/modules/category/category.service.spec.d.ts +1 -0
- package/dist/libs/la-library/src/modules/category/category.service.spec.js +17 -0
- package/dist/libs/la-library/src/modules/category/category.service.spec.js.map +1 -0
- package/dist/libs/la-library/src/modules/cron/cron.controller.d.ts +1 -1
- package/dist/libs/la-library/src/modules/form-generator/form-generator.controller.d.ts +4 -4
- package/dist/libs/la-library/src/modules/form-generator/form-generator.entity.d.ts +3 -1
- package/dist/libs/la-library/src/modules/form-generator/form-generator.entity.js +8 -0
- package/dist/libs/la-library/src/modules/form-generator/form-generator.entity.js.map +1 -1
- package/dist/libs/la-library/src/modules/form-generator/form-generator.service.d.ts +5 -5
- package/dist/libs/la-library/src/modules/logs/logs.controller.d.ts +1 -1
- package/dist/libs/la-library/src/modules/messages/messages.controller.d.ts +1 -1
- package/dist/libs/la-library/src/modules/notifications/notification.controller.d.ts +1 -1
- package/dist/libs/la-library/src/modules/telnet/telnet.controller.d.ts +17 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.controller.js +99 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.controller.js.map +1 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.dto.d.ts +4 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.dto.js +28 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.dto.js.map +1 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.module.d.ts +7 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.module.js +26 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.module.js.map +1 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.service.d.ts +20 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.service.js +101 -0
- package/dist/libs/la-library/src/modules/telnet/telnet.service.js.map +1 -0
- package/dist/libs/la-library/src/services/base.service.d.ts +6 -0
- package/dist/libs/la-library/src/services/base.service.js +29 -4
- package/dist/libs/la-library/src/services/base.service.js.map +1 -1
- package/package.json +2 -1
|
@@ -2,11 +2,22 @@ import { BaseEntity } from '../entities/base.entity';
|
|
|
2
2
|
import { SearchQueryDto } from '../dtos/search.dto';
|
|
3
3
|
import { BaseService } from '../services/base.service';
|
|
4
4
|
import { IItemID } from '../interfaces/index.interface';
|
|
5
|
+
import { BatchDeleteDto, IDDto } from '../dtos/base.dto';
|
|
6
|
+
import { IAuthParam } from '../modules/authentication/authentication.interface';
|
|
5
7
|
export declare class BaseController<TEntity extends BaseEntity, TSearchDto extends SearchQueryDto = SearchQueryDto> {
|
|
6
8
|
protected readonly service: BaseService<TEntity, TSearchDto>;
|
|
7
9
|
subject: string;
|
|
8
10
|
idParam: string;
|
|
9
11
|
constructor(service: BaseService<TEntity, TSearchDto>);
|
|
10
12
|
getByID(params: IItemID): Promise<string | TEntity>;
|
|
11
|
-
search(query: TSearchDto): Promise<import("..").ISearchResponse<TEntity>>;
|
|
13
|
+
search(query: TSearchDto): Promise<string | import("..").ISearchResponse<TEntity>>;
|
|
14
|
+
}
|
|
15
|
+
export declare class BaseCRUController<TEntity extends BaseEntity, TSearchDto extends SearchQueryDto = SearchQueryDto> extends BaseController<TEntity, TSearchDto> {
|
|
16
|
+
create<TAuthParam extends IAuthParam>(body: any, auth: TAuthParam, createFunction?: (data: any) => Promise<TEntity>): string | Promise<TEntity>;
|
|
17
|
+
updateByID<TUpdateDto extends Partial<TEntity>, TAuthParam extends IAuthParam>(param: IDDto, body: TUpdateDto, auth: TAuthParam, updateFunction?: (id: string, data: TUpdateDto) => Promise<TEntity>): string | Promise<TEntity>;
|
|
18
|
+
update<TUpdateFunction extends (...params: any) => Promise<any>>(updateFunction: TUpdateFunction, ...params: Parameters<TUpdateFunction>): string | Promise<any>;
|
|
19
|
+
}
|
|
20
|
+
export declare class BaseCRUDController<TEntity extends BaseEntity, TSearchDto extends SearchQueryDto = SearchQueryDto> extends BaseCRUController<TEntity, TSearchDto> {
|
|
21
|
+
deleteByID(param: IDDto, deleteFunction?: (id: string) => Promise<any>): string | Promise<any>;
|
|
22
|
+
deleteByIDs(body: BatchDeleteDto, deleteFunction?: (ids: string[]) => Promise<boolean>): string | Promise<boolean>;
|
|
12
23
|
}
|
|
@@ -11,11 +11,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
|
+
var _a;
|
|
14
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.BaseController = void 0;
|
|
16
|
+
exports.BaseCRUDController = exports.BaseCRUController = exports.BaseController = void 0;
|
|
16
17
|
const common_1 = require("@nestjs/common");
|
|
17
18
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
const search_dto_1 = require("../dtos/search.dto");
|
|
18
20
|
const utility_service_1 = require("../services/utility.service");
|
|
21
|
+
const base_dto_1 = require("../dtos/base.dto");
|
|
22
|
+
const authentication_guard_1 = require("../modules/authentication/authentication.guard");
|
|
19
23
|
class BaseController {
|
|
20
24
|
constructor(service) {
|
|
21
25
|
this.service = service;
|
|
@@ -28,7 +32,14 @@ class BaseController {
|
|
|
28
32
|
});
|
|
29
33
|
}
|
|
30
34
|
async search(query) {
|
|
31
|
-
|
|
35
|
+
try {
|
|
36
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
37
|
+
data: this.service.search(query),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
42
|
+
}
|
|
32
43
|
}
|
|
33
44
|
}
|
|
34
45
|
exports.BaseController = BaseController;
|
|
@@ -45,9 +56,90 @@ __decorate([
|
|
|
45
56
|
], BaseController.prototype, "getByID", null);
|
|
46
57
|
__decorate([
|
|
47
58
|
(0, common_1.Get)('search'),
|
|
59
|
+
(0, swagger_1.ApiResponse)({ type: search_dto_1.SearchResponseDto }),
|
|
48
60
|
__param(0, (0, common_1.Query)()),
|
|
49
61
|
__metadata("design:type", Function),
|
|
50
62
|
__metadata("design:paramtypes", [Object]),
|
|
51
63
|
__metadata("design:returntype", Promise)
|
|
52
64
|
], BaseController.prototype, "search", null);
|
|
65
|
+
class BaseCRUController extends BaseController {
|
|
66
|
+
create(body, auth, createFunction = (data) => this.service._create(data)) {
|
|
67
|
+
try {
|
|
68
|
+
utility_service_1.UtilityClass.patchCreator(body, auth);
|
|
69
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
70
|
+
data: createFunction(body),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
updateByID(param, body, auth, updateFunction = (id, data) => this.service._updateByID(id, data)) {
|
|
78
|
+
try {
|
|
79
|
+
utility_service_1.UtilityClass.patchUpdater(body, auth);
|
|
80
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
81
|
+
data: updateFunction(param.id, body),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
update(updateFunction, ...params) {
|
|
89
|
+
try {
|
|
90
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
91
|
+
data: updateFunction(params),
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.BaseCRUController = BaseCRUController;
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, common_1.Post)(),
|
|
102
|
+
__param(0, (0, common_1.Body)()),
|
|
103
|
+
__param(1, (0, authentication_guard_1.AuthParam)()),
|
|
104
|
+
__metadata("design:type", Function),
|
|
105
|
+
__metadata("design:paramtypes", [Object, typeof (_a = typeof TAuthParam !== "undefined" && TAuthParam) === "function" ? _a : Object, Function]),
|
|
106
|
+
__metadata("design:returntype", void 0)
|
|
107
|
+
], BaseCRUController.prototype, "create", null);
|
|
108
|
+
class BaseCRUDController extends BaseCRUController {
|
|
109
|
+
deleteByID(param, deleteFunction = (id) => this.service._deleteByID(id)) {
|
|
110
|
+
try {
|
|
111
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
112
|
+
data: deleteFunction(param.id),
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
deleteByIDs(body, deleteFunction = (ids) => this.service._deleteByIDs(ids)) {
|
|
120
|
+
try {
|
|
121
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
122
|
+
data: deleteFunction(body.ids),
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.BaseCRUDController = BaseCRUDController;
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, common_1.Delete)(':id'),
|
|
133
|
+
__param(0, (0, common_1.Param)()),
|
|
134
|
+
__metadata("design:type", Function),
|
|
135
|
+
__metadata("design:paramtypes", [base_dto_1.IDDto, Function]),
|
|
136
|
+
__metadata("design:returntype", void 0)
|
|
137
|
+
], BaseCRUDController.prototype, "deleteByID", null);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, common_1.Delete)(''),
|
|
140
|
+
__param(0, (0, common_1.Body)()),
|
|
141
|
+
__metadata("design:type", Function),
|
|
142
|
+
__metadata("design:paramtypes", [base_dto_1.BatchDeleteDto, Function]),
|
|
143
|
+
__metadata("design:returntype", void 0)
|
|
144
|
+
], BaseCRUDController.prototype, "deleteByIDs", null);
|
|
53
145
|
//# sourceMappingURL=base.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../../../../libs/la-library/src/controllers/base.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../../../../libs/la-library/src/controllers/base.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAuE;AACvE,6CAAwD;AAExD,mDAAuE;AAEvE,iEAA2D;AAE3D,+CAAyD;AAEzD,yFAA2E;AAE3E,MAAa,cAAc;IAMzB,YAA+B,OAAyC;QAAzC,YAAO,GAAP,OAAO,CAAkC;QAFxE,YAAO,GAAG,MAAM,CAAC;QACjB,YAAO,GAAG,IAAI,CAAC;IAC4D,CAAC;IAOtE,AAAN,KAAK,CAAC,OAAO,CAAU,MAAe;QACpC,OAAO,8BAAY,CAAC,aAAa,CAAC;YAChC,IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CAAU,KAAiB;QACrC,IAAI,CAAC;YACH,OAAO,8BAAY,CAAC,aAAa,CAAC;gBAChC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;aACjC,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,8BAAY,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;CACF;AA9BD,wCA8BC;AAjBO;IALL,IAAA,YAAG,EAAC,aAAa,CAAC;IAClB,IAAA,kBAAQ,EAAC;QACR,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;IACa,WAAA,IAAA,cAAK,GAAE,CAAA;;;;6CAIrB;AAIK;IAFL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACb,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,8BAAiB,EAAE,CAAC;IAC3B,WAAA,IAAA,cAAK,GA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us = "notification_status",
|
|
21
21
|
formField = "form_field",
|
|
22
22
|
form = "form",
|
|
23
|
-
formFieldBank = "form_field_bank"
|
|
23
|
+
formFieldBank = "form_field_bank",
|
|
24
|
+
category = "category"
|
|
24
25
|
}
|
|
25
26
|
export declare enum ERefCat {
|
|
26
27
|
file = "file"
|
|
@@ -25,6 +25,7 @@ var ETableName;
|
|
|
25
25
|
ETableName["formField"] = "form_field";
|
|
26
26
|
ETableName["form"] = "form";
|
|
27
27
|
ETableName["formFieldBank"] = "form_field_bank";
|
|
28
|
+
ETableName["category"] = "category";
|
|
28
29
|
})(ETableName || (exports.ETableName = ETableName = {}));
|
|
29
30
|
var ERefCat;
|
|
30
31
|
(function (ERefCat) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.enum.js","sourceRoot":"","sources":["../../../../../libs/la-library/src/enums/base.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"base.enum.js","sourceRoot":"","sources":["../../../../../libs/la-library/src/enums/base.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAwBX;AAxBD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,yDAA2C,CAAA;IAC3C,sDAAwC,CAAA;IACxC,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,oDAAsC,CAAA;IACtC,6BAAe,CAAA;IACf,2CAA6B,CAAA;IAC7B,+CAAiC,CAAA;IACjC,8CAAgC,CAAA;IAChC,4CAA8B,CAAA;IAC9B,oDAAsC,CAAA;IACtC,kCAAoB,CAAA;IACpB,2BAAa,CAAA;IACb,2CAA6B,CAAA;IAC7B,wDAA0C,CAAA;IAC1C,sCAAwB,CAAA;IACxB,2BAAa,CAAA;IACb,+CAAiC,CAAA;IACjC,mCAAqB,CAAA;AACvB,CAAC,EAxBW,UAAU,0BAAV,UAAU,QAwBrB;AAED,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,wBAAa,CAAA;AACf,CAAC,EAFW,OAAO,uBAAP,OAAO,QAElB"}
|
|
@@ -17,7 +17,7 @@ export { AuthSessionEntity as SDKAuthSessionEntity } from './modules/authenticat
|
|
|
17
17
|
export * from './modules/authentication/authentication.interface';
|
|
18
18
|
export * from './modules/authentication/authentication.enum';
|
|
19
19
|
export { LoginDTO as SDKLoginDTO, LogoutDTO as SDKLogoutDTO, RegisterDTO as SDKRegisterDTO, SystemLogoutDTO as SDKSystemLogoutDTO, ToggleAuthDTO as SDKToggleAuthDTO, RequestPasswordResetDTO as SDKRequestPasswordResetDTO, ResetPasswordDTO as SDKResetPasswordDTO, VerifyResetPasswordTokenDTO as SDKVerifyResetPasswordTokenDTO, VerifyResetPasswordTokenResponseDTO as SDKVerifyResetPasswordTokenResponseDTO, } from './modules/authentication/authentication.dto';
|
|
20
|
-
export { BaseController as SDKBaseController } from './controllers/base.controller';
|
|
20
|
+
export { BaseController as SDKBaseController, BaseCRUController as SDKBaseCRUController, BaseCRUDController as SDKBaseCRUDController, } from './controllers/base.controller';
|
|
21
21
|
export { SDKBaseService } from './services/base.service';
|
|
22
22
|
export { BaseEntity } from './entities/base.entity';
|
|
23
23
|
export { BaseDto as SDKBaseDto } from './dtos/base.dto';
|
|
@@ -33,6 +33,11 @@ export { FileBinEntity } from './entities/file-bin.entity';
|
|
|
33
33
|
export { FileEntity } from './entities/file.entity';
|
|
34
34
|
export { FileService as SDKFileService } from './services/file.service';
|
|
35
35
|
export { LikesService as SDKLikesService } from './services/likes.service';
|
|
36
|
+
export { CategoryController as SDKCategoryController } from './modules/category/category.controller';
|
|
37
|
+
export { CreateCategoryDto as SDKCreateCategoryDto, SearchCategoryDto as SDKSearchCategoryDto, UpdateCategoryDto as SDKUpdateCategoryDto, } from './modules/category/category.dto';
|
|
38
|
+
export { CategoryEntity as SDKCategoryEntity } from './modules/category/category.entity';
|
|
39
|
+
export { CategoryModule as SDKCategoryModule } from './modules/category/category.module';
|
|
40
|
+
export { CategoryService as SDKCategoryService } from './modules/category/category.service';
|
|
36
41
|
export { logger, stream, initLogger } from './services/logger.service';
|
|
37
42
|
export { LogsModule as SDKLogsModule } from './modules/logs/logs.module';
|
|
38
43
|
export { LogsService as SDKLogsService } from './modules/logs/logs.service';
|
|
@@ -50,7 +55,7 @@ export { FormEntity as SDKFormEntity, FormFieldBankEntity as SDKFormFieldBankEnt
|
|
|
50
55
|
export { FormGeneratorModule as SDKFormGeneratorModule } from './modules/form-generator/form-generator.module';
|
|
51
56
|
export { FormGeneratorService as SDKFormGeneratorService } from './modules/form-generator/form-generator.service';
|
|
52
57
|
export { EInputType as SDKEInputType } from './modules/form-generator/form-generator.enum';
|
|
53
|
-
export { FormIDDto as SDKFormIDDto, RequirementOption as SDKRequirementOption, SaveFormDTO as SDKSaveFormDTO, SaveFormFieldBankDTO as SDKSaveFormFieldBankDTO, SaveFormFieldDTO as SDKSaveFormFieldDTO, UpdateFormDTO as SDKUpdateFormDTO, UpdateFormFieldBankDTO as SDKUpdateFormFieldBankDTO, UpdateFormFieldDTO as SDKUpdateFormFieldDTO, SearchFormDTO as SDKSearchFormDTO, SearchFormFieldBankDTO as SDKSearchFormFieldBankDTO, SearchFormFieldDTO as SDKSearchFormFieldDTO, FormFieldBankDTO as SDKFormFieldBankDTO } from './modules/form-generator/form-generator.dto';
|
|
58
|
+
export { FormIDDto as SDKFormIDDto, RequirementOption as SDKRequirementOption, SaveFormDTO as SDKSaveFormDTO, SaveFormFieldBankDTO as SDKSaveFormFieldBankDTO, SaveFormFieldDTO as SDKSaveFormFieldDTO, UpdateFormDTO as SDKUpdateFormDTO, UpdateFormFieldBankDTO as SDKUpdateFormFieldBankDTO, UpdateFormFieldDTO as SDKUpdateFormFieldDTO, SearchFormDTO as SDKSearchFormDTO, SearchFormFieldBankDTO as SDKSearchFormFieldBankDTO, SearchFormFieldDTO as SDKSearchFormFieldDTO, FormFieldBankDTO as SDKFormFieldBankDTO, } from './modules/form-generator/form-generator.dto';
|
|
54
59
|
export { MessageController } from './modules/messages/messages.controller';
|
|
55
60
|
export * from './modules/messages/messages.dto';
|
|
56
61
|
export { MessageEntity, MessageRecipientEntity, } from './modules/messages/messages.entity';
|
|
@@ -62,6 +67,10 @@ export { CreateNotificationDTO as SDKCreateNotificationDTO, NotificationItemQuer
|
|
|
62
67
|
export { NotificationEntity as SDKNotificationEntity, NotificationItemEntity as SDKNotificationItemEntity, notificationEntities as SDKnotificationEntities, } from './modules/notifications/notification.entity';
|
|
63
68
|
export { NotificationModule as SDKNotificationModule } from './modules/notifications/notification.module';
|
|
64
69
|
export { NotificationService as SDKNotificationService, NotificationItemService as SDKNotificationItemService, } from './modules/notifications/notification.service';
|
|
70
|
+
export { TelnetController as SDKTelnetController } from './modules/telnet/telnet.controller';
|
|
71
|
+
export { TelnetRequestDTO as SDKTelnetRequestDTO } from './modules/telnet/telnet.dto';
|
|
72
|
+
export { TelnetModule as SDKTelnetModule } from './modules/telnet/telnet.module';
|
|
73
|
+
export { TelnetService as SDKTelnetService } from './modules/telnet/telnet.service';
|
|
65
74
|
export { ListsModule as SDKListsModule } from './modules/lists/lists.module';
|
|
66
75
|
export { ListsService as SDKListsService } from './modules/lists/lists.service';
|
|
67
76
|
export { SaveListGroupDTO as SDKSaveListGroupDTO, SaveListOption as SDKSaveListOption, } from './modules/lists/lists.dto';
|
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.SDKCustomValidationPipe = exports.SDKUtilityController = exports.ESortOrder = exports.ESearchCondition = exports.SDKSearchService = exports.SearchQueryDto = exports.SDKFileUploadDto = exports.SDKFileUpdateDto = exports.SDKFileSearchDto = exports.SDKFileActionDto = exports.SDKListsEntity = exports.SDKListOptionsEntity = exports.SDKListsController = exports.SDKSaveListOption = exports.SDKSaveListGroupDTO = exports.SDKListsService = exports.SDKListsModule = exports.SDKNotificationItemService = exports.SDKNotificationService = exports.SDKNotificationModule = void 0;
|
|
17
|
+
exports.SDKUpdateCategoryDto = exports.SDKSearchCategoryDto = exports.SDKCreateCategoryDto = exports.SDKCategoryController = exports.SDKLikesService = exports.SDKFileService = exports.FileEntity = exports.FileBinEntity = exports.LikesEntity = exports.SDKFileController = exports.SDKEFileSizeUnit = exports.SDKSample = exports.SDKBaseDto = exports.BaseEntity = exports.SDKBaseService = exports.SDKBaseCRUDController = exports.SDKBaseCRUController = exports.SDKBaseController = exports.SDKVerifyResetPasswordTokenResponseDTO = exports.SDKVerifyResetPasswordTokenDTO = exports.SDKResetPasswordDTO = exports.SDKRequestPasswordResetDTO = exports.SDKToggleAuthDTO = exports.SDKSystemLogoutDTO = exports.SDKRegisterDTO = exports.SDKLogoutDTO = exports.SDKLoginDTO = exports.SDKAuthSessionEntity = exports.SDKAuthEntity = exports.SDKAuthenticationController = exports.SDKAuthenticationSessionService = exports.SDKAuthenticationService = exports.AuthParam = exports.SDKPublicAuth = exports.SDKAuthenticationGuard = exports.SDKAuthenticationModule = exports.SDKTokenSessionEntity = exports.SDKTokenSessionService = exports.SDKTokenService = exports.SDKAPIService = exports.SMSService = exports.MailService = exports.SDKUtilityClass = exports.SDKETableName = exports.SDKERefCat = exports.SDKEvt = exports.setSDKEnvironment = exports.ISDKEnvironment = exports.SDKEnvironmentService = exports.SDKConfig = void 0;
|
|
18
|
+
exports.MessageModule = exports.MessageRecipientEntity = exports.MessageEntity = exports.MessageController = exports.SDKFormFieldBankDTO = exports.SDKSearchFormFieldDTO = exports.SDKSearchFormFieldBankDTO = exports.SDKSearchFormDTO = exports.SDKUpdateFormFieldDTO = exports.SDKUpdateFormFieldBankDTO = exports.SDKUpdateFormDTO = exports.SDKSaveFormFieldDTO = exports.SDKSaveFormFieldBankDTO = exports.SDKSaveFormDTO = exports.SDKRequirementOption = exports.SDKFormIDDto = exports.SDKEInputType = exports.SDKFormGeneratorService = exports.SDKFormGeneratorModule = exports.SDKFormFieldEntity = exports.SDKFormFieldBankEntity = exports.SDKFormEntity = exports.SDKFormGeneratorController = exports.SDKWalletService = exports.SDKETransactionType = exports.SDKETransMethod = exports.SDKECurrency = exports.SDKWalletTransaction = exports.SDKWalletNetBalanceView = exports.SDKWalletGrossBalanceView = exports.SDKWalletExternalBank = exports.SDKWalletEntity = exports.SDKWalletEntities = exports.SDKWalletSearchDTO = exports.SDKSaveWalletDTO = exports.SDKWalletController = exports.SDKWalletModule = exports.SDKLogEntity = exports.SDKLogsController = exports.SDKLogCreateSingleDTO = exports.SDKLogCreateMultipleDTO = exports.SDKLogSerarchDTO = exports.SDKLogsService = exports.SDKLogsModule = exports.initLogger = exports.stream = exports.logger = exports.SDKCategoryService = exports.SDKCategoryModule = exports.SDKCategoryEntity = void 0;
|
|
19
|
+
exports.SDKCustomValidationPipe = exports.SDKUtilityController = exports.ESortOrder = exports.ESearchCondition = exports.SDKSearchService = exports.SearchQueryDto = exports.SDKFileUploadDto = exports.SDKFileUpdateDto = exports.SDKFileSearchDto = exports.SDKFileActionDto = exports.SDKListsEntity = exports.SDKListOptionsEntity = exports.SDKListsController = exports.SDKSaveListOption = exports.SDKSaveListGroupDTO = exports.SDKListsService = exports.SDKListsModule = exports.SDKTelnetService = exports.SDKTelnetModule = exports.SDKTelnetRequestDTO = exports.SDKTelnetController = exports.SDKNotificationItemService = exports.SDKNotificationService = exports.SDKNotificationModule = exports.SDKnotificationEntities = exports.SDKNotificationItemEntity = exports.SDKNotificationEntity = exports.SDKNotificationToggleActiveStatusDTO = exports.SDKNotificationQueryDTO = exports.SDKNotificationItemQueryDTO = exports.SDKCreateNotificationDTO = exports.SDKNotificationController = exports.MessageService = void 0;
|
|
20
20
|
__exportStar(require("./la-library.module"), exports);
|
|
21
21
|
var index_config_1 = require("./configs/index.config");
|
|
22
22
|
Object.defineProperty(exports, "SDKConfig", { enumerable: true, get: function () { return index_config_1.SDKConfig; } });
|
|
@@ -70,6 +70,8 @@ Object.defineProperty(exports, "SDKVerifyResetPasswordTokenDTO", { enumerable: t
|
|
|
70
70
|
Object.defineProperty(exports, "SDKVerifyResetPasswordTokenResponseDTO", { enumerable: true, get: function () { return authentication_dto_1.VerifyResetPasswordTokenResponseDTO; } });
|
|
71
71
|
var base_controller_1 = require("./controllers/base.controller");
|
|
72
72
|
Object.defineProperty(exports, "SDKBaseController", { enumerable: true, get: function () { return base_controller_1.BaseController; } });
|
|
73
|
+
Object.defineProperty(exports, "SDKBaseCRUController", { enumerable: true, get: function () { return base_controller_1.BaseCRUController; } });
|
|
74
|
+
Object.defineProperty(exports, "SDKBaseCRUDController", { enumerable: true, get: function () { return base_controller_1.BaseCRUDController; } });
|
|
73
75
|
var base_service_1 = require("./services/base.service");
|
|
74
76
|
Object.defineProperty(exports, "SDKBaseService", { enumerable: true, get: function () { return base_service_1.SDKBaseService; } });
|
|
75
77
|
var base_entity_1 = require("./entities/base.entity");
|
|
@@ -95,6 +97,18 @@ var file_service_1 = require("./services/file.service");
|
|
|
95
97
|
Object.defineProperty(exports, "SDKFileService", { enumerable: true, get: function () { return file_service_1.FileService; } });
|
|
96
98
|
var likes_service_1 = require("./services/likes.service");
|
|
97
99
|
Object.defineProperty(exports, "SDKLikesService", { enumerable: true, get: function () { return likes_service_1.LikesService; } });
|
|
100
|
+
var category_controller_1 = require("./modules/category/category.controller");
|
|
101
|
+
Object.defineProperty(exports, "SDKCategoryController", { enumerable: true, get: function () { return category_controller_1.CategoryController; } });
|
|
102
|
+
var category_dto_1 = require("./modules/category/category.dto");
|
|
103
|
+
Object.defineProperty(exports, "SDKCreateCategoryDto", { enumerable: true, get: function () { return category_dto_1.CreateCategoryDto; } });
|
|
104
|
+
Object.defineProperty(exports, "SDKSearchCategoryDto", { enumerable: true, get: function () { return category_dto_1.SearchCategoryDto; } });
|
|
105
|
+
Object.defineProperty(exports, "SDKUpdateCategoryDto", { enumerable: true, get: function () { return category_dto_1.UpdateCategoryDto; } });
|
|
106
|
+
var category_entity_1 = require("./modules/category/category.entity");
|
|
107
|
+
Object.defineProperty(exports, "SDKCategoryEntity", { enumerable: true, get: function () { return category_entity_1.CategoryEntity; } });
|
|
108
|
+
var category_module_1 = require("./modules/category/category.module");
|
|
109
|
+
Object.defineProperty(exports, "SDKCategoryModule", { enumerable: true, get: function () { return category_module_1.CategoryModule; } });
|
|
110
|
+
var category_service_1 = require("./modules/category/category.service");
|
|
111
|
+
Object.defineProperty(exports, "SDKCategoryService", { enumerable: true, get: function () { return category_service_1.CategoryService; } });
|
|
98
112
|
var logger_service_1 = require("./services/logger.service");
|
|
99
113
|
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_service_1.logger; } });
|
|
100
114
|
Object.defineProperty(exports, "stream", { enumerable: true, get: function () { return logger_service_1.stream; } });
|
|
@@ -183,6 +197,14 @@ Object.defineProperty(exports, "SDKNotificationModule", { enumerable: true, get:
|
|
|
183
197
|
var notification_service_1 = require("./modules/notifications/notification.service");
|
|
184
198
|
Object.defineProperty(exports, "SDKNotificationService", { enumerable: true, get: function () { return notification_service_1.NotificationService; } });
|
|
185
199
|
Object.defineProperty(exports, "SDKNotificationItemService", { enumerable: true, get: function () { return notification_service_1.NotificationItemService; } });
|
|
200
|
+
var telnet_controller_1 = require("./modules/telnet/telnet.controller");
|
|
201
|
+
Object.defineProperty(exports, "SDKTelnetController", { enumerable: true, get: function () { return telnet_controller_1.TelnetController; } });
|
|
202
|
+
var telnet_dto_1 = require("./modules/telnet/telnet.dto");
|
|
203
|
+
Object.defineProperty(exports, "SDKTelnetRequestDTO", { enumerable: true, get: function () { return telnet_dto_1.TelnetRequestDTO; } });
|
|
204
|
+
var telnet_module_1 = require("./modules/telnet/telnet.module");
|
|
205
|
+
Object.defineProperty(exports, "SDKTelnetModule", { enumerable: true, get: function () { return telnet_module_1.TelnetModule; } });
|
|
206
|
+
var telnet_service_1 = require("./modules/telnet/telnet.service");
|
|
207
|
+
Object.defineProperty(exports, "SDKTelnetService", { enumerable: true, get: function () { return telnet_service_1.TelnetService; } });
|
|
186
208
|
var lists_module_1 = require("./modules/lists/lists.module");
|
|
187
209
|
Object.defineProperty(exports, "SDKListsModule", { enumerable: true, get: function () { return lists_module_1.ListsModule; } });
|
|
188
210
|
var lists_service_1 = require("./modules/lists/lists.service");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/la-library/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,sDAAoC;AAEpC,uDAAmD;AAA1C,yGAAA,SAAS,OAAA;AAClB,sEAKwC;AAJtC,4HAAA,qBAAqB,OAAA;AACrB,sHAAA,eAAe,OAAA;AACf,wHAAA,iBAAiB,OAAA;AACjB,6GAAA,GAAG,OAAU;AAEf,+CAG2B;AAFzB,uGAAA,OAAO,OAAc;AACrB,0GAAA,UAAU,OAAiB;AAE7B,8DAA6E;AAApE,kHAAA,YAAY,OAAmB;AACxC,wDAAsD;AAA7C,2GAAA,WAAW,OAAA;AACpB,0DAAwD;AAA/C,yGAAA,UAAU,OAAA;AACnB,sDAAqE;AAA5D,4GAAA,UAAU,OAAiB;AAGpC,0DAGkC;AAFhC,gHAAA,YAAY,OAAmB;AAC/B,uHAAA,mBAAmB,OAA0B;AAE/C,wEAA8F;AAArF,6HAAA,kBAAkB,OAAyB;AAIpD,wFAAiH;AAAxG,gIAAA,oBAAoB,OAA2B;AACxD,sFAIuD;AAHrD,8HAAA,mBAAmB,OAA0B;AAC7C,qHAAA,UAAU,OAAiB;AAC3B,iHAAA,SAAS,OAAA;AAEX,0FAGyD;AAFvD,kIAAA,qBAAqB,OAA4B;AACjD,yIAAA,kBAAkB,OAAmC;AAEvD,gGAA6H;AAApH,wIAAA,wBAAwB,OAA+B;AAChE,wFAA6F;AAApF,sHAAA,UAAU,OAA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AACvC,8GAAA,cAAc,OAAqB;AAErC,qEAAyF;AAAhF,sHAAA,eAAe,OAAsB;AAC9C,6DAGsC;AAFpC,oHAAA,iBAAiB,OAAwB;AACzC,8GAAA,WAAW,OAAkB;AAK/B,4CAKyB;AAJvB,4GAAA,aAAa,OAAoB;AACjC,4GAAA,aAAa,OAAoB;AACjC,4GAAA,aAAa,OAAoB;AACjC,4GAAA,aAAa,OAAoB;AAEnC,gDAAmD;AAA1C,4GAAA,cAAc,OAAA;AACvB,4DAA8E;AAArE,kHAAA,aAAa,OAAoB;AAC1C,mDAAmE;AAA1D,+GAAA,gBAAgB,OAAA;AAAE,yGAAA,UAAU,OAAA;AACrC,gEAA8C;AAG9C,uEAA6F;AAApF,0HAAA,iBAAiB,OAAwB;AAClD,iEAAgG;AAAvF,0HAAA,oBAAoB,OAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.module.js","sourceRoot":"","sources":["../../../../../libs/la-library/src/modules/base.module.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"base.module.js","sourceRoot":"","sources":["../../../../../libs/la-library/src/modules/base.module.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;CAItB;AAJD,gCAIC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CategoryService } from './category.service';
|
|
2
|
+
import { CreateCategoryDto, GetCategoryBySlugDto, GetCategoryBySlugQueryDto, SearchCategoryDto, UpdateCategoryDto } from './category.dto';
|
|
3
|
+
import { CategoryEntity } from './category.entity';
|
|
4
|
+
import { BaseCRUDController } from '../../controllers/base.controller';
|
|
5
|
+
import { IDDto } from '../../dtos/base.dto';
|
|
6
|
+
export declare class CategoryController extends BaseCRUDController<CategoryEntity, SearchCategoryDto> {
|
|
7
|
+
protected readonly service: CategoryService;
|
|
8
|
+
constructor(service: CategoryService);
|
|
9
|
+
create(createCategoryDto: CreateCategoryDto, auth: any): string | Promise<CategoryEntity>;
|
|
10
|
+
search(query: SearchCategoryDto): Promise<string | import("../..").ISearchResponse<CategoryEntity>>;
|
|
11
|
+
getBySlug(query: GetCategoryBySlugQueryDto): string | Promise<GetCategoryBySlugDto[]>;
|
|
12
|
+
updateByID(param: IDDto, updateCategoryDto: UpdateCategoryDto, auth: any): string | Promise<CategoryEntity>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.CategoryController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const category_service_1 = require("./category.service");
|
|
18
|
+
const category_dto_1 = require("./category.dto");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
20
|
+
const base_controller_1 = require("../../controllers/base.controller");
|
|
21
|
+
const authentication_guard_1 = require("../authentication/authentication.guard");
|
|
22
|
+
const base_dto_1 = require("../../dtos/base.dto");
|
|
23
|
+
const utility_service_1 = require("../../services/utility.service");
|
|
24
|
+
const search_dto_1 = require("../../dtos/search.dto");
|
|
25
|
+
let CategoryController = class CategoryController extends base_controller_1.BaseCRUDController {
|
|
26
|
+
constructor(service) {
|
|
27
|
+
super(service);
|
|
28
|
+
this.service = service;
|
|
29
|
+
}
|
|
30
|
+
create(createCategoryDto, auth) {
|
|
31
|
+
return super.create(createCategoryDto, auth);
|
|
32
|
+
}
|
|
33
|
+
search(query) {
|
|
34
|
+
return super.search(query);
|
|
35
|
+
}
|
|
36
|
+
getBySlug(query) {
|
|
37
|
+
try {
|
|
38
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
39
|
+
data: this.service.getBySlug(query),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
return utility_service_1.UtilityClass.handleError(error);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
updateByID(param, updateCategoryDto, auth) {
|
|
47
|
+
return super.updateByID(param, updateCategoryDto, auth);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.CategoryController = CategoryController;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, common_1.Post)(),
|
|
53
|
+
__param(0, (0, common_1.Body)()),
|
|
54
|
+
__param(1, (0, authentication_guard_1.AuthParam)()),
|
|
55
|
+
__metadata("design:type", Function),
|
|
56
|
+
__metadata("design:paramtypes", [category_dto_1.CreateCategoryDto, Object]),
|
|
57
|
+
__metadata("design:returntype", void 0)
|
|
58
|
+
], CategoryController.prototype, "create", null);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, common_1.Get)('search'),
|
|
61
|
+
(0, swagger_1.ApiResponse)({ type: search_dto_1.SearchResponseDto }),
|
|
62
|
+
__param(0, (0, common_1.Query)()),
|
|
63
|
+
__metadata("design:type", Function),
|
|
64
|
+
__metadata("design:paramtypes", [category_dto_1.SearchCategoryDto]),
|
|
65
|
+
__metadata("design:returntype", void 0)
|
|
66
|
+
], CategoryController.prototype, "search", null);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, common_1.Get)('slug'),
|
|
69
|
+
(0, swagger_1.ApiResponse)({ type: [category_dto_1.GetCategoryBySlugDto] }),
|
|
70
|
+
__param(0, (0, common_1.Query)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [category_dto_1.GetCategoryBySlugQueryDto]),
|
|
73
|
+
__metadata("design:returntype", void 0)
|
|
74
|
+
], CategoryController.prototype, "getBySlug", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, common_1.Patch)(':id'),
|
|
77
|
+
__param(0, (0, common_1.Param)()),
|
|
78
|
+
__param(1, (0, common_1.Body)()),
|
|
79
|
+
__param(2, (0, authentication_guard_1.AuthParam)()),
|
|
80
|
+
__metadata("design:type", Function),
|
|
81
|
+
__metadata("design:paramtypes", [base_dto_1.IDDto,
|
|
82
|
+
category_dto_1.UpdateCategoryDto, Object]),
|
|
83
|
+
__metadata("design:returntype", void 0)
|
|
84
|
+
], CategoryController.prototype, "updateByID", null);
|
|
85
|
+
exports.CategoryController = CategoryController = __decorate([
|
|
86
|
+
(0, swagger_1.ApiTags)('Category'),
|
|
87
|
+
(0, common_1.Controller)('category'),
|
|
88
|
+
__metadata("design:paramtypes", [category_service_1.CategoryService])
|
|
89
|
+
], CategoryController);
|
|
90
|
+
//# sourceMappingURL=category.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.controller.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/category/category.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,yDAAqD;AACrD,iDAMwB;AAExB,6CAAuD;AACvD,uEAAuE;AACvE,iFAAmE;AACnE,kDAA4C;AAC5C,oEAA8D;AAC9D,sDAA0D;AAInD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oCAGvC;IACC,YAAwC,OAAwB;QAC9D,KAAK,CAAC,OAAO,CAAC,CAAC;QADuB,YAAO,GAAP,OAAO,CAAiB;IAEh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AA;IACP,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,gCAAS,GAAE,CAAA;;qCAFI,gBAAK;QACM,gCAAiB;;oDAI7C;6BAzCU,kBAAkB;IAF9B,IAAA,iBAAO,EAAC,UAAU,CAAC;IACnB,IAAA,mBAAU,EAAC,UAAU,CAAC;qCAK4B,kCAAe;GAJrD,kBAAkB,CA0C9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const testing_1 = require("@nestjs/testing");
|
|
4
|
+
const category_controller_1 = require("./category.controller");
|
|
5
|
+
const category_service_1 = require("./category.service");
|
|
6
|
+
describe('CategoryController', () => {
|
|
7
|
+
let controller;
|
|
8
|
+
beforeEach(async () => {
|
|
9
|
+
const module = await testing_1.Test.createTestingModule({
|
|
10
|
+
controllers: [category_controller_1.CategoryController],
|
|
11
|
+
providers: [category_service_1.CategoryService],
|
|
12
|
+
}).compile();
|
|
13
|
+
controller = module.get(category_controller_1.CategoryController);
|
|
14
|
+
});
|
|
15
|
+
it('should be defined', () => {
|
|
16
|
+
expect(controller).toBeDefined();
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=category.controller.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.controller.spec.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/category/category.controller.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,+DAA2D;AAC3D,yDAAqD;AAErD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAI,UAA8B,CAAC;IAEnC,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,WAAW,EAAE,CAAC,wCAAkB,CAAC;YACjC,SAAS,EAAE,CAAC,kCAAe,CAAC;SAC7B,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,UAAU,GAAG,MAAM,CAAC,GAAG,CAAqB,wCAAkB,CAAC,CAAC;IAClE,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,26 @@
|
|
|
1
|
+
import { SearchQueryDto } from '../../dtos/search.dto';
|
|
2
|
+
import { CategoryEntity } from './category.entity';
|
|
3
|
+
export declare class CreateCategoryDto implements CategoryEntity {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
parentId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const UpdateCategoryDto_base: import("@nestjs/common").Type<Partial<CreateCategoryDto>>;
|
|
10
|
+
export declare class UpdateCategoryDto extends UpdateCategoryDto_base {
|
|
11
|
+
}
|
|
12
|
+
declare const SearchCategoryDto_base: import("@nestjs/common").Type<UpdateCategoryDto & SearchQueryDto<CategoryEntity>>;
|
|
13
|
+
export declare class SearchCategoryDto extends SearchCategoryDto_base implements Partial<CategoryEntity> {
|
|
14
|
+
parentSlug?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class GetCategoryBySlugQueryDto {
|
|
17
|
+
slug?: string;
|
|
18
|
+
parentSlug?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class GetCategoryBySlugDto implements Partial<CategoryEntity> {
|
|
21
|
+
title: string;
|
|
22
|
+
id: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
description: string;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
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.GetCategoryBySlugDto = exports.GetCategoryBySlugQueryDto = exports.SearchCategoryDto = exports.UpdateCategoryDto = exports.CreateCategoryDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const search_dto_1 = require("../../dtos/search.dto");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class CreateCategoryDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateCategoryDto = CreateCategoryDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateCategoryDto.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateCategoryDto.prototype, "description", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateCategoryDto.prototype, "slug", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateCategoryDto.prototype, "parentId", void 0);
|
|
41
|
+
class UpdateCategoryDto extends (0, swagger_1.PartialType)(CreateCategoryDto) {
|
|
42
|
+
}
|
|
43
|
+
exports.UpdateCategoryDto = UpdateCategoryDto;
|
|
44
|
+
class SearchCategoryDto extends (0, swagger_1.IntersectionType)((search_dto_1.SearchQueryDto), UpdateCategoryDto) {
|
|
45
|
+
}
|
|
46
|
+
exports.SearchCategoryDto = SearchCategoryDto;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], SearchCategoryDto.prototype, "parentSlug", void 0);
|
|
53
|
+
class GetCategoryBySlugQueryDto {
|
|
54
|
+
}
|
|
55
|
+
exports.GetCategoryBySlugQueryDto = GetCategoryBySlugQueryDto;
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], GetCategoryBySlugQueryDto.prototype, "slug", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], GetCategoryBySlugQueryDto.prototype, "parentSlug", void 0);
|
|
68
|
+
class GetCategoryBySlugDto {
|
|
69
|
+
}
|
|
70
|
+
exports.GetCategoryBySlugDto = GetCategoryBySlugDto;
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], GetCategoryBySlugDto.prototype, "title", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], GetCategoryBySlugDto.prototype, "id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], GetCategoryBySlugDto.prototype, "slug", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], GetCategoryBySlugDto.prototype, "description", void 0);
|
|
87
|
+
//# sourceMappingURL=category.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.dto.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/category/category.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAKyB;AACzB,sDAAuD;AAEvD,qDAAuD;AAEvD,MAAa,iBAAiB;CAK7B;AALD,8CAKC;AAJ4B;IAA1B,IAAA,qBAAW,GAAE;IAAE,IAAA,0BAAQ,GAAE;;gDAAe;AACQ;IAAhD,IAAA,6BAAmB,GAAE;IAAE,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;sDAAsB;AAC3C;IAA1B,IAAA,qBAAW,GAAE;IAAE,IAAA,0BAAQ,GAAE;;+CAAc;AACS;IAAhD,IAAA,6BAAmB,GAAE;IAAE,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;mDAAmB;AAGrE,MAAa,iBAAkB,SAAQ,IAAA,qBAAW,EAAC,iBAAiB,CAAC;CAAG;AAAxE,8CAAwE;AAExE,MAAa,iBACX,SAAQ,IAAA,0BAAgB,EAAC,CAAA,2BAA8B,CAAA,EAAE,iBAAiB,CAAC;CAI5E;AALD,8CAKC;AADkD;IAAhD,IAAA,6BAAmB,GAAE;IAAE,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;qDAAqB;AAGvE,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AAFkD;IAAhD,IAAA,6BAAmB,GAAE;IAAE,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;uDAAe;AACd;IAAhD,IAAA,6BAAmB,GAAE;IAAE,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;6DAAqB;AAGvE,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAJwB;IAAtB,IAAA,6BAAmB,GAAE;;mDAAe;AACd;IAAtB,IAAA,6BAAmB,GAAE;;gDAAY;AACX;IAAtB,IAAA,6BAAmB,GAAE;;kDAAc;AACb;IAAtB,IAAA,6BAAmB,GAAE;;yDAAqB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Relation } from 'typeorm';
|
|
2
|
+
import { BaseEntity } from '../../entities/base.entity';
|
|
3
|
+
export declare class CategoryEntity extends BaseEntity<CategoryEntity> {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
parentId?: string;
|
|
8
|
+
parent?: Relation<CategoryEntity>;
|
|
9
|
+
children?: Relation<CategoryEntity[]>;
|
|
10
|
+
}
|