@yolo-croket-dev/amqp-access 0.5.146 → 0.5.147-sj
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/package.json +2 -2
- package/store-item-server/dto/brand.modules/brand/command/index.d.ts +1 -0
- package/store-item-server/dto/brand.modules/brand/command/index.js +1 -0
- package/store-item-server/dto/brand.modules/brand/command/update-brand-sub-names.dto.d.ts +4 -0
- package/store-item-server/dto/brand.modules/brand/command/update-brand-sub-names.dto.js +26 -0
- package/store-item-server/services/brand.modules/amqp.brand.service.d.ts +2 -1
- package/store-item-server/services/brand.modules/amqp.brand.service.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.147-sj",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./update-brand-name.dto"), exports);
|
|
|
19
19
|
__exportStar(require("./delete-brand.dto"), exports);
|
|
20
20
|
__exportStar(require("./create-brand.dto"), exports);
|
|
21
21
|
__exportStar(require("./brand-store-item-count.dto"), exports);
|
|
22
|
+
__exportStar(require("./update-brand-sub-names.dto"), exports);
|
|
@@ -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.UpdateBrandSubNamesPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdateBrandSubNamesPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpdateBrandSubNamesPayload = UpdateBrandSubNamesPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UpdateBrandSubNamesPayload.prototype, "brandName", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsArray)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], UpdateBrandSubNamesPayload.prototype, "subBrandNames", void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateBrandPayload, UpdateBrandNamePayload, UpdateBrandEngNamePayload, DeleteBrandPayload, GetBrandsByBrandNamesPayload, GetBrandsByBrandNamesResult, GetBrandsForAdminPayload, GetBrandsForAdminResult, GetBrandsByItemIdsResult, GetBrandsByItemIdsPayload, GetBrandRequiredCategoriesResult, GetBrandByBrandNamePayload, GetBrandByBrandNameResult, AutocompleteBrandsResult, AutocompleteBrandsPayload } from '../../dto/brand.modules/brand';
|
|
3
|
+
import { CreateBrandPayload, UpdateBrandNamePayload, UpdateBrandEngNamePayload, DeleteBrandPayload, GetBrandsByBrandNamesPayload, GetBrandsByBrandNamesResult, GetBrandsForAdminPayload, GetBrandsForAdminResult, GetBrandsByItemIdsResult, GetBrandsByItemIdsPayload, GetBrandRequiredCategoriesResult, GetBrandByBrandNamePayload, GetBrandByBrandNameResult, AutocompleteBrandsResult, AutocompleteBrandsPayload, UpdateBrandSubNamesPayload } from '../../dto/brand.modules/brand';
|
|
4
4
|
export declare class AmqpBrandService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -15,4 +15,5 @@ export declare class AmqpBrandService {
|
|
|
15
15
|
getBrandRequiredCategories(param: AbstractParam): Promise<GetBrandRequiredCategoriesResult>;
|
|
16
16
|
getBrandByBrandName(payload: GetBrandByBrandNamePayload, param: AbstractParam): Promise<GetBrandByBrandNameResult>;
|
|
17
17
|
autocompleteBrands(payload: AutocompleteBrandsPayload, param: AbstractParam): Promise<AutocompleteBrandsResult>;
|
|
18
|
+
updateBrandSubNames(payload: UpdateBrandSubNamesPayload, param: AbstractParam): Promise<void>;
|
|
18
19
|
}
|
|
@@ -51,6 +51,9 @@ let AmqpBrandService = class AmqpBrandService {
|
|
|
51
51
|
async autocompleteBrands(payload, param) {
|
|
52
52
|
return this.amqpManager.call('자동완성 브랜드 리스트 조회', 'brand.get.autocomplete', payload, param);
|
|
53
53
|
}
|
|
54
|
+
async updateBrandSubNames(payload, param) {
|
|
55
|
+
return this.amqpManager.call('브랜드 유의어 수정', 'brand.update.sub-names', payload, param);
|
|
56
|
+
}
|
|
54
57
|
};
|
|
55
58
|
exports.AmqpBrandService = AmqpBrandService;
|
|
56
59
|
exports.AmqpBrandService = AmqpBrandService = __decorate([
|