@yolo-croket-dev/amqp-access 0.5.181-beta.7 → 0.5.181-beta.8-sj1
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 +3 -3
- package/payment-service/services/refund.modules/amqp.refund-admin.service.d.ts +0 -3
- package/payment-service/services/refund.modules/amqp.refund-admin.service.js +0 -4
- package/store-item-server/dto/brand.modules/brand/command/index.d.ts +2 -0
- package/store-item-server/dto/brand.modules/brand/command/index.js +2 -0
- package/store-item-server/dto/brand.modules/brand/command/update-brand-hall-by-admin.dto.d.ts +4 -0
- package/{payment-service/dto/refund.modules/refund-admin/query/get-seller-penalty-pledge-after-refunds.dto.js → store-item-server/dto/brand.modules/brand/command/update-brand-hall-by-admin.dto.js} +9 -15
- package/store-item-server/dto/brand.modules/brand/command/update-brand-info-by-admin.dto.d.ts +15 -0
- package/store-item-server/dto/brand.modules/brand/command/update-brand-info-by-admin.dto.js +65 -0
- package/store-item-server/dto/brand.modules/brand/query/get-brands-for-admin.dto.d.ts +6 -7
- package/store-item-server/dto/brand.modules/brand/query/get-brands-for-admin.dto.js +3 -2
- package/store-item-server/services/brand.modules/amqp.brand.service.d.ts +3 -1
- package/store-item-server/services/brand.modules/amqp.brand.service.js +6 -0
- package/payment-service/dto/refund.modules/refund-admin/query/get-seller-penalty-pledge-after-refunds.dto.d.ts +0 -24
- package/payment-service/dto/refund.modules/refund-admin/query/index.d.ts +0 -1
- package/payment-service/dto/refund.modules/refund-admin/query/index.js +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.5.181-beta.
|
|
3
|
+
"version": "0.5.181-beta.8-sj1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@yolo-croket-dev/domain": "^0.2.12",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.1.20",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.2.44",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.2.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.2.56-sj3",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { CreateRefundForPInfoFinishedToCancelledPayload, CreateRefundForPInfoFinishedToCancelledResult } from '../../dto/refund.modules/refund-admin';
|
|
4
|
-
import { GetSellerPenaltyPledgeAfterRefundsPayload, GetSellerPenaltyPledgeAfterRefundsResponse } from '../../dto/refund.modules/refund-admin/query';
|
|
5
4
|
export declare class AmqpRefundAdminService {
|
|
6
5
|
private readonly client;
|
|
7
6
|
private readonly amqpManager;
|
|
@@ -11,6 +10,4 @@ export declare class AmqpRefundAdminService {
|
|
|
11
10
|
* @pattern refund-sabang.get.refund-p-infos
|
|
12
11
|
*/
|
|
13
12
|
createRefundForPInfoFinishedToCancelled(payload: CreateRefundForPInfoFinishedToCancelledPayload, param: AbstractParam): Promise<CreateRefundForPInfoFinishedToCancelledResult>;
|
|
14
|
-
/** 셀러 패널티 서약 이후 환불 데이터 조회 */
|
|
15
|
-
getSellerPenaltyPledgeAfterRefunds(payload: GetSellerPenaltyPledgeAfterRefundsPayload, param: AbstractParam): Promise<GetSellerPenaltyPledgeAfterRefundsResponse>;
|
|
16
13
|
}
|
|
@@ -28,10 +28,6 @@ let AmqpRefundAdminService = class AmqpRefundAdminService {
|
|
|
28
28
|
async createRefundForPInfoFinishedToCancelled(payload, param) {
|
|
29
29
|
return this.amqpManager.call('환불 완료 상태로 변경된 결제 정보에 대해 환불 생성', 'refund-admin.create.refund-for-p-info-finished-to-cancelled', payload, param, { isErrorThrowing: true });
|
|
30
30
|
}
|
|
31
|
-
/** 셀러 패널티 서약 이후 환불 데이터 조회 */
|
|
32
|
-
async getSellerPenaltyPledgeAfterRefunds(payload, param) {
|
|
33
|
-
return this.amqpManager.call('셀러 패널티 서약 이후 환불 데이터 조회', 'refund-admin.get.seller-penalty-pledge-after-refunds', payload, param, { isErrorThrowing: true });
|
|
34
|
-
}
|
|
35
31
|
};
|
|
36
32
|
exports.AmqpRefundAdminService = AmqpRefundAdminService;
|
|
37
33
|
exports.AmqpRefundAdminService = AmqpRefundAdminService = __decorate([
|
|
@@ -20,3 +20,5 @@ __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
22
|
__exportStar(require("./update-brand-sub-names.dto"), exports);
|
|
23
|
+
__exportStar(require("./update-brand-hall-by-admin.dto"), exports);
|
|
24
|
+
__exportStar(require("./update-brand-info-by-admin.dto"), exports);
|
|
@@ -9,24 +9,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.UpdateBrandHallByAdminPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
-
class GetSellerPenaltyPledgeAfterRefundsPayload {
|
|
14
|
+
class UpdateBrandHallByAdminPayload {
|
|
16
15
|
}
|
|
17
|
-
exports.
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
|
20
|
-
(0, class_validator_1.IsBoolean)(),
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
|
-
__metadata("design:type", Boolean)
|
|
23
|
-
], GetSellerPenaltyPledgeAfterRefundsPayload.prototype, "isAll", void 0);
|
|
16
|
+
exports.UpdateBrandHallByAdminPayload = UpdateBrandHallByAdminPayload;
|
|
24
17
|
__decorate([
|
|
25
18
|
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
20
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
21
|
+
], UpdateBrandHallByAdminPayload.prototype, "brandId", void 0);
|
|
28
22
|
__decorate([
|
|
29
|
-
(0, class_validator_1.
|
|
30
|
-
(0, class_validator_1.
|
|
31
|
-
__metadata("design:type",
|
|
32
|
-
],
|
|
23
|
+
(0, class_validator_1.IsBoolean)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", Boolean)
|
|
26
|
+
], UpdateBrandHallByAdminPayload.prototype, "isBrandHall", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BrandImageInfo as IBrandImageInfo } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
declare class BrandImageInfo implements IBrandImageInfo {
|
|
3
|
+
imgUrl: string;
|
|
4
|
+
landingUrl?: string;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class UpdateBrandInfoByAdminPayload {
|
|
9
|
+
brandId: string;
|
|
10
|
+
brandDescription?: string;
|
|
11
|
+
brandBanners?: BrandImageInfo[];
|
|
12
|
+
brandLogoThumbnail?: BrandImageInfo;
|
|
13
|
+
relatedBrandIds?: string[];
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
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.UpdateBrandInfoByAdminPayload = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class BrandImageInfo {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], BrandImageInfo.prototype, "imgUrl", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BrandImageInfo.prototype, "landingUrl", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], BrandImageInfo.prototype, "width", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], BrandImageInfo.prototype, "height", void 0);
|
|
34
|
+
class UpdateBrandInfoByAdminPayload {
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateBrandInfoByAdminPayload = UpdateBrandInfoByAdminPayload;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsMongoId)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpdateBrandInfoByAdminPayload.prototype, "brandId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], UpdateBrandInfoByAdminPayload.prototype, "brandDescription", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsArray)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
51
|
+
(0, class_transformer_1.Type)(() => BrandImageInfo),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], UpdateBrandInfoByAdminPayload.prototype, "brandBanners", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.ValidateNested)(),
|
|
57
|
+
(0, class_transformer_1.Type)(() => BrandImageInfo),
|
|
58
|
+
__metadata("design:type", BrandImageInfo)
|
|
59
|
+
], UpdateBrandInfoByAdminPayload.prototype, "brandLogoThumbnail", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsArray)(),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], UpdateBrandInfoByAdminPayload.prototype, "relatedBrandIds", void 0);
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BrandForAdminEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
2
|
export declare enum BrandSearchTypeEnum {
|
|
3
3
|
MAIN = "MAIN",
|
|
4
|
-
ENG = "ENG"
|
|
4
|
+
ENG = "ENG",
|
|
5
|
+
ID = "ID"
|
|
5
6
|
}
|
|
6
7
|
export declare class GetBrandsForAdminPayload {
|
|
7
8
|
page: number;
|
|
8
9
|
limit: number;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export interface BrandAdminInfo extends Pick<BrandEntity, '_id' | 'brandName' | 'engBrandName' | 'regDate'> {
|
|
10
|
+
searchKeyword?: string;
|
|
11
|
+
searchType?: BrandSearchTypeEnum;
|
|
13
12
|
}
|
|
14
13
|
export interface GetBrandsForAdminResult {
|
|
15
|
-
brands:
|
|
14
|
+
brands: BrandForAdminEntity[];
|
|
16
15
|
totalCount: number;
|
|
17
16
|
}
|
|
@@ -15,6 +15,7 @@ var BrandSearchTypeEnum;
|
|
|
15
15
|
(function (BrandSearchTypeEnum) {
|
|
16
16
|
BrandSearchTypeEnum["MAIN"] = "MAIN";
|
|
17
17
|
BrandSearchTypeEnum["ENG"] = "ENG";
|
|
18
|
+
BrandSearchTypeEnum["ID"] = "ID";
|
|
18
19
|
})(BrandSearchTypeEnum || (exports.BrandSearchTypeEnum = BrandSearchTypeEnum = {}));
|
|
19
20
|
class GetBrandsForAdminPayload {
|
|
20
21
|
}
|
|
@@ -31,9 +32,9 @@ __decorate([
|
|
|
31
32
|
(0, class_validator_1.IsString)(),
|
|
32
33
|
(0, class_validator_1.IsOptional)(),
|
|
33
34
|
__metadata("design:type", String)
|
|
34
|
-
], GetBrandsForAdminPayload.prototype, "
|
|
35
|
+
], GetBrandsForAdminPayload.prototype, "searchKeyword", void 0);
|
|
35
36
|
__decorate([
|
|
36
37
|
(0, class_validator_1.IsEnum)(BrandSearchTypeEnum),
|
|
37
38
|
(0, class_validator_1.IsOptional)(),
|
|
38
39
|
__metadata("design:type", String)
|
|
39
|
-
], GetBrandsForAdminPayload.prototype, "
|
|
40
|
+
], GetBrandsForAdminPayload.prototype, "searchType", 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, UpdateBrandSubNamesPayload, GetBrandByNameOrSubNameForAdminResult, GetBrandByNameOrSubNameForAdminPayload } from '../../dto/brand.modules/brand';
|
|
3
|
+
import { CreateBrandPayload, UpdateBrandNamePayload, UpdateBrandEngNamePayload, DeleteBrandPayload, GetBrandsByBrandNamesPayload, GetBrandsByBrandNamesResult, GetBrandsForAdminPayload, GetBrandsForAdminResult, GetBrandsByItemIdsResult, GetBrandsByItemIdsPayload, GetBrandRequiredCategoriesResult, GetBrandByBrandNamePayload, GetBrandByBrandNameResult, AutocompleteBrandsResult, AutocompleteBrandsPayload, UpdateBrandSubNamesPayload, GetBrandByNameOrSubNameForAdminResult, GetBrandByNameOrSubNameForAdminPayload, UpdateBrandInfoByAdminPayload, UpdateBrandHallByAdminPayload } from '../../dto/brand.modules/brand';
|
|
4
4
|
export declare class AmqpBrandService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -17,4 +17,6 @@ export declare class AmqpBrandService {
|
|
|
17
17
|
autocompleteBrands(payload: AutocompleteBrandsPayload, param: AbstractParam): Promise<AutocompleteBrandsResult>;
|
|
18
18
|
updateBrandSubNames(payload: UpdateBrandSubNamesPayload, param: AbstractParam): Promise<void>;
|
|
19
19
|
getBrandByNameOrSubNameForAdmin(payload: GetBrandByNameOrSubNameForAdminPayload, param: AbstractParam): Promise<GetBrandByNameOrSubNameForAdminResult>;
|
|
20
|
+
updateBrandHallByAdmin(payload: UpdateBrandHallByAdminPayload, param: AbstractParam): Promise<void>;
|
|
21
|
+
updateBrandInfoByAdmin(payload: UpdateBrandInfoByAdminPayload, param: AbstractParam): Promise<void>;
|
|
20
22
|
}
|
|
@@ -57,6 +57,12 @@ let AmqpBrandService = class AmqpBrandService {
|
|
|
57
57
|
async getBrandByNameOrSubNameForAdmin(payload, param) {
|
|
58
58
|
return this.amqpManager.call('브랜드 이름 또는 유의어로 조회 -관리자-', 'brand.get.by-name-or-sub-name-for-admin', payload, param, { isErrorThrowing: true });
|
|
59
59
|
}
|
|
60
|
+
async updateBrandHallByAdmin(payload, param) {
|
|
61
|
+
return this.amqpManager.call('브랜드 관 여부 수정 -관리자-', 'brand.update.hall-by-admin', payload, param, { isErrorThrowing: true });
|
|
62
|
+
}
|
|
63
|
+
async updateBrandInfoByAdmin(payload, param) {
|
|
64
|
+
return this.amqpManager.call('브랜드 정보 수정 -관리자-', 'brand.update.info-by-admin', payload, param, { isErrorThrowing: true });
|
|
65
|
+
}
|
|
60
66
|
};
|
|
61
67
|
exports.AmqpBrandService = AmqpBrandService;
|
|
62
68
|
exports.AmqpBrandService = AmqpBrandService = __decorate([
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare class GetSellerPenaltyPledgeAfterRefundsPayload {
|
|
2
|
-
/** 전체 추출 여부 */
|
|
3
|
-
isAll?: boolean;
|
|
4
|
-
/** 셀러 아이디 */
|
|
5
|
-
sellerId: string;
|
|
6
|
-
/** 추출 시작 날짜 */
|
|
7
|
-
startDate?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetSellerPenaltyPledgeAfterRefundsResponse {
|
|
10
|
-
/** 셀러 아이디 */
|
|
11
|
-
sellerId: string;
|
|
12
|
-
/** 스토어명 */
|
|
13
|
-
storeTitle: string;
|
|
14
|
-
/** 입금 전 제외 모든 결제건 수 */
|
|
15
|
-
purchasedCount: number;
|
|
16
|
-
/** 위의 결제건들에 대한 실 결제액 기준 합계 */
|
|
17
|
-
paidPrice: number;
|
|
18
|
-
/** 셀러 귀책사유 환불율 */
|
|
19
|
-
sellerPenaltyRefundRate: number;
|
|
20
|
-
/** 셀러 귀책사유 환불 건수 전체 */
|
|
21
|
-
sellerPenaltyRefundCount: number;
|
|
22
|
-
/** 위 건들에 환불액 합계 */
|
|
23
|
-
sellerPenaltyRefundPrice: number;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './get-seller-penalty-pledge-after-refunds.dto';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./get-seller-penalty-pledge-after-refunds.dto"), exports);
|