@yolo-croket-dev/amqp-access 0.5.97-sj → 0.5.98
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/manage-service/amqp.manage-service.module.js +0 -2
- package/manage-service/dto/index.d.ts +0 -1
- package/manage-service/dto/index.js +0 -1
- package/manage-service/services/index.d.ts +0 -1
- package/manage-service/services/index.js +0 -1
- package/package.json +2 -2
- package/payment-service/dto/refund/query/check-for-immediate-refund-availability-v2.dto.d.ts +10 -0
- package/payment-service/dto/refund/query/check-for-immediate-refund-availability-v2.dto.js +37 -0
- package/payment-service/dto/refund/query/index.d.ts +1 -0
- package/payment-service/dto/refund/query/index.js +1 -0
- package/payment-service/services/amqp.refund.service.d.ts +2 -1
- package/payment-service/services/amqp.refund.service.js +3 -0
- package/payment-service/services/index.d.ts +1 -0
- package/payment-service/services/index.js +1 -0
- package/user-service/dto/cart/query/get-carts-for-write-pay.dto.d.ts +2 -1
- package/user-service/dto/cart/query/get-carts-for-write-pay.dto.js +1 -0
- package/manage-service/dto/event-banner/command/create-event-banner.dto.d.ts +0 -18
- package/manage-service/dto/event-banner/command/create-event-banner.dto.js +0 -68
- package/manage-service/dto/event-banner/command/delete-event-banner.dto.d.ts +0 -3
- package/manage-service/dto/event-banner/command/delete-event-banner.dto.js +0 -21
- package/manage-service/dto/event-banner/command/index.d.ts +0 -3
- package/manage-service/dto/event-banner/command/index.js +0 -19
- package/manage-service/dto/event-banner/command/update-event-banner.dto.d.ts +0 -19
- package/manage-service/dto/event-banner/command/update-event-banner.dto.js +0 -73
- package/manage-service/dto/event-banner/index.d.ts +0 -1
- package/manage-service/dto/event-banner/index.js +0 -17
- package/manage-service/services/event-banner.service.d.ts +0 -11
- package/manage-service/services/event-banner.service.js +0 -39
|
@@ -21,7 +21,6 @@ exports.AmqpManageServiceModule = AmqpManageServiceModule = __decorate([
|
|
|
21
21
|
services_1.AmqpManageUserService,
|
|
22
22
|
services_1.AmqpExchangeRateService,
|
|
23
23
|
services_1.AmqpPublicHolidayService,
|
|
24
|
-
services_1.AmqpEventBannerService,
|
|
25
24
|
],
|
|
26
25
|
exports: [
|
|
27
26
|
amqp_manage_service_provider_1.ManageServiceProvider,
|
|
@@ -29,7 +28,6 @@ exports.AmqpManageServiceModule = AmqpManageServiceModule = __decorate([
|
|
|
29
28
|
services_1.AmqpManageUserService,
|
|
30
29
|
services_1.AmqpExchangeRateService,
|
|
31
30
|
services_1.AmqpPublicHolidayService,
|
|
32
|
-
services_1.AmqpEventBannerService,
|
|
33
31
|
],
|
|
34
32
|
})
|
|
35
33
|
], AmqpManageServiceModule);
|
|
@@ -18,4 +18,3 @@ __exportStar(require("./amqp-link-tab.service"), exports);
|
|
|
18
18
|
__exportStar(require("./amqp.manage-user.service"), exports);
|
|
19
19
|
__exportStar(require("./amqp-exchange-rate.service"), exports);
|
|
20
20
|
__exportStar(require("./amqp-public-holiday.service"), exports);
|
|
21
|
-
__exportStar(require("./event-banner.service"), exports);
|
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.98",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@yolo-croket-dev/domain": "^0.2.12",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.1.10",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.2.24",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.2.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.2.38",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class CheckForImmediateRefundAvailabilityV2Payload {
|
|
2
|
+
/** @description 결제 아이디 */
|
|
3
|
+
PInfoId: string;
|
|
4
|
+
/** @description 환불 사유 코드 */
|
|
5
|
+
refundTypeCode?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class CheckForImmediateRefundAvailabilityV2Result {
|
|
8
|
+
isCanRefundImmediate: boolean;
|
|
9
|
+
isHolyDaySoon: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.CheckForImmediateRefundAvailabilityV2Result = exports.CheckForImmediateRefundAvailabilityV2Payload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CheckForImmediateRefundAvailabilityV2Payload {
|
|
15
|
+
}
|
|
16
|
+
exports.CheckForImmediateRefundAvailabilityV2Payload = CheckForImmediateRefundAvailabilityV2Payload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CheckForImmediateRefundAvailabilityV2Payload.prototype, "PInfoId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CheckForImmediateRefundAvailabilityV2Payload.prototype, "refundTypeCode", void 0);
|
|
27
|
+
class CheckForImmediateRefundAvailabilityV2Result {
|
|
28
|
+
}
|
|
29
|
+
exports.CheckForImmediateRefundAvailabilityV2Result = CheckForImmediateRefundAvailabilityV2Result;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsBoolean)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], CheckForImmediateRefundAvailabilityV2Result.prototype, "isCanRefundImmediate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsBoolean)(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], CheckForImmediateRefundAvailabilityV2Result.prototype, "isHolyDaySoon", void 0);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-refunds-analytics-aggregation-refunding-top3.dto"), exports);
|
|
18
|
+
__exportStar(require("./check-for-immediate-refund-availability-v2.dto"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { ReProcessTosspaymentsRefundByRefundErrorPayload, ResolveTosspaymentsRefundByRefundErrorPayload } from '../dto';
|
|
4
|
-
import { GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result } from '../dto/refund/query';
|
|
4
|
+
import { CheckForImmediateRefundAvailabilityV2Payload, CheckForImmediateRefundAvailabilityV2Result, GetRefundsAnalyticsAggregationRefundingTop3Payload, GetRefundsAnalyticsAggregationRefundingTop3Result } from '../dto/refund/query';
|
|
5
5
|
export declare class AmqpRefundService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -10,4 +10,5 @@ export declare class AmqpRefundService {
|
|
|
10
10
|
resolveTosspaymentsRefundByRefundError(payload: ResolveTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
11
11
|
reProcessTosspaymentsRefundByRefundError(payload: ReProcessTosspaymentsRefundByRefundErrorPayload, param: AbstractParam): Promise<void>;
|
|
12
12
|
getRefundsAnalyticsAggregationRefundingTop3(payload: GetRefundsAnalyticsAggregationRefundingTop3Payload, param: AbstractParam): Promise<GetRefundsAnalyticsAggregationRefundingTop3Result>;
|
|
13
|
+
checkForImmediateRefundAvailabilityV2(payload: CheckForImmediateRefundAvailabilityV2Payload, param: AbstractParam): Promise<CheckForImmediateRefundAvailabilityV2Result>;
|
|
13
14
|
}
|
|
@@ -34,6 +34,9 @@ let AmqpRefundService = class AmqpRefundService {
|
|
|
34
34
|
async getRefundsAnalyticsAggregationRefundingTop3(payload, param) {
|
|
35
35
|
return this.amqpManager.call('환불 요청이 가장 많은 Top 3 상품 조회', 'refund.get.analytics-aggregation-refunding-top3', payload, param);
|
|
36
36
|
}
|
|
37
|
+
async checkForImmediateRefundAvailabilityV2(payload, param) {
|
|
38
|
+
return this.amqpManager.call('환불 가능 여부 조회', 'refund.check.for-immediate-refund-availability-v2', payload, param, { isErrorThrowing: true });
|
|
39
|
+
}
|
|
37
40
|
};
|
|
38
41
|
exports.AmqpRefundService = AmqpRefundService;
|
|
39
42
|
exports.AmqpRefundService = AmqpRefundService = __decorate([
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./amqp.refund.service"), exports);
|
|
|
18
18
|
__exportStar(require("./amqp.partial-refund.service"), exports);
|
|
19
19
|
__exportStar(require("./amqp.ad-center-settle.service"), exports);
|
|
20
20
|
__exportStar(require("./refund.modules"), exports);
|
|
21
|
+
__exportStar(require("./amqp.refund.service"), exports);
|
|
@@ -2,7 +2,7 @@ import { CartEntity } from '@yolo-croket-dev/entity-v2/cart';
|
|
|
2
2
|
import { StoreItem } from '@yolo-croket-dev/entity/src/store-item/store-item.entity';
|
|
3
3
|
import { UserEntity } from '@yolo-croket-dev/entity-v2/user/user.entity';
|
|
4
4
|
type SearchedUserForWritePay = Pick<UserEntity, '_id' | 'username'>;
|
|
5
|
-
type SearchedStoreItemForWritePay = Pick<StoreItem, '_id' | 'selectionInfos' | 'itemPrice' | 'insuranceInfo' | 'mainCategory' | 'subCategory' | 'sellerId' | 'isLimitSale' | 'itemName' | 'itemPriceForBuyer' | 'sellingInfo' | 'adultItemInfo' | 'limitSaleInfo' | 'itemImg' | 'purchased' | 'storeId'> & {
|
|
5
|
+
type SearchedStoreItemForWritePay = Pick<StoreItem, '_id' | 'selectionInfos' | 'itemPrice' | 'insuranceInfo' | 'mainCategory' | 'subCategory' | 'sellerId' | 'isLimitSale' | 'itemName' | 'itemPriceForBuyer' | 'sellingInfo' | 'adultItemInfo' | 'limitSaleInfo' | 'itemImg' | 'purchased' | 'storeId' | 'isSecret'> & {
|
|
6
6
|
_seller: SearchedUserForWritePay;
|
|
7
7
|
};
|
|
8
8
|
export type CartForWritePay = Pick<CartEntity, '_id' | 'itemId' | 'storeId' | 'pOption' | 'pOptionInfo' | 'itemName_past' | 'itemPrice_past' | 'sellingInfo_past' | 'cartType' | 'ownerId' | 'isChecked' | 'requirement' | 'lastModifyDate' | 'directAddress_custom'> & {
|
|
@@ -30,6 +30,7 @@ export declare const SearchedStoreItemForWritePaySelect: {
|
|
|
30
30
|
purchased: number;
|
|
31
31
|
storeId: number;
|
|
32
32
|
_seller: number;
|
|
33
|
+
isSecret: number;
|
|
33
34
|
};
|
|
34
35
|
export declare const CartForWritePaySelect: {
|
|
35
36
|
_id: number;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BannerPlatformInfo as IBannerPlatformInfo } from '@yolo-croket-dev/entity-v2/store-item-banner';
|
|
2
|
-
import { EventBannerType } from '@yolo-croket-dev/entity-v2/event-banner';
|
|
3
|
-
declare class BannerPlatformInfo implements IBannerPlatformInfo {
|
|
4
|
-
imgUrl: string;
|
|
5
|
-
landingUrl: string;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
export declare class CreateEventBannerPayload {
|
|
10
|
-
type: EventBannerType;
|
|
11
|
-
description: string;
|
|
12
|
-
web: BannerPlatformInfo;
|
|
13
|
-
app: BannerPlatformInfo;
|
|
14
|
-
isView: boolean;
|
|
15
|
-
displayStartDate?: string;
|
|
16
|
-
displayEndDate?: string;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
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.CreateEventBannerPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const event_banner_1 = require("@yolo-croket-dev/entity-v2/event-banner");
|
|
15
|
-
class BannerPlatformInfo {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], BannerPlatformInfo.prototype, "imgUrl", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], BannerPlatformInfo.prototype, "landingUrl", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsNumber)(),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], BannerPlatformInfo.prototype, "width", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsNumber)(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], BannerPlatformInfo.prototype, "height", void 0);
|
|
35
|
-
class CreateEventBannerPayload {
|
|
36
|
-
}
|
|
37
|
-
exports.CreateEventBannerPayload = CreateEventBannerPayload;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsEnum)(event_banner_1.EventBannerType),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], CreateEventBannerPayload.prototype, "type", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], CreateEventBannerPayload.prototype, "description", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
-
__metadata("design:type", BannerPlatformInfo)
|
|
50
|
-
], CreateEventBannerPayload.prototype, "web", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
53
|
-
__metadata("design:type", BannerPlatformInfo)
|
|
54
|
-
], CreateEventBannerPayload.prototype, "app", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_validator_1.IsBoolean)(),
|
|
57
|
-
__metadata("design:type", Boolean)
|
|
58
|
-
], CreateEventBannerPayload.prototype, "isView", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsDateString)(),
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], CreateEventBannerPayload.prototype, "displayStartDate", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_validator_1.IsDateString)(),
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], CreateEventBannerPayload.prototype, "displayEndDate", void 0);
|
|
@@ -1,21 +0,0 @@
|
|
|
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.DeleteEventBannerPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class DeleteEventBannerPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.DeleteEventBannerPayload = DeleteEventBannerPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsMongoId)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], DeleteEventBannerPayload.prototype, "eventBannerId", void 0);
|
|
@@ -1,19 +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("./create-event-banner.dto"), exports);
|
|
18
|
-
__exportStar(require("./delete-event-banner.dto"), exports);
|
|
19
|
-
__exportStar(require("./update-event-banner.dto"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BannerPlatformInfo as IBannerPlatformInfo } from '@yolo-croket-dev/entity-v2/store-item-banner';
|
|
2
|
-
import { EventBannerType } from '@yolo-croket-dev/entity-v2/event-banner';
|
|
3
|
-
declare class BannerPlatformInfo implements IBannerPlatformInfo {
|
|
4
|
-
imgUrl: string;
|
|
5
|
-
landingUrl: string;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
export declare class UpdateEventBannerPayload {
|
|
10
|
-
eventBannerId: string;
|
|
11
|
-
type: EventBannerType;
|
|
12
|
-
description: string;
|
|
13
|
-
web: BannerPlatformInfo;
|
|
14
|
-
app: BannerPlatformInfo;
|
|
15
|
-
isView: boolean;
|
|
16
|
-
displayStartDate?: string;
|
|
17
|
-
displayEndDate?: string;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
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.UpdateEventBannerPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const event_banner_1 = require("@yolo-croket-dev/entity-v2/event-banner");
|
|
15
|
-
class BannerPlatformInfo {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], BannerPlatformInfo.prototype, "imgUrl", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], BannerPlatformInfo.prototype, "landingUrl", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsNumber)(),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], BannerPlatformInfo.prototype, "width", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsNumber)(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], BannerPlatformInfo.prototype, "height", void 0);
|
|
35
|
-
class UpdateEventBannerPayload {
|
|
36
|
-
}
|
|
37
|
-
exports.UpdateEventBannerPayload = UpdateEventBannerPayload;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsMongoId)(),
|
|
40
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], UpdateEventBannerPayload.prototype, "eventBannerId", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsEnum)(event_banner_1.EventBannerType),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], UpdateEventBannerPayload.prototype, "type", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], UpdateEventBannerPayload.prototype, "description", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
54
|
-
__metadata("design:type", BannerPlatformInfo)
|
|
55
|
-
], UpdateEventBannerPayload.prototype, "web", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
58
|
-
__metadata("design:type", BannerPlatformInfo)
|
|
59
|
-
], UpdateEventBannerPayload.prototype, "app", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_validator_1.IsBoolean)(),
|
|
62
|
-
__metadata("design:type", Boolean)
|
|
63
|
-
], UpdateEventBannerPayload.prototype, "isView", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_validator_1.IsDateString)(),
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], UpdateEventBannerPayload.prototype, "displayStartDate", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsDateString)(),
|
|
71
|
-
(0, class_validator_1.IsOptional)(),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], UpdateEventBannerPayload.prototype, "displayEndDate", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './command';
|
|
@@ -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("./command"), exports);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateEventBannerPayload, DeleteEventBannerPayload, UpdateEventBannerPayload } from '../dto';
|
|
4
|
-
export declare class AmqpEventBannerService {
|
|
5
|
-
private readonly client;
|
|
6
|
-
private readonly amqpManager;
|
|
7
|
-
constructor(client: ClientProxy);
|
|
8
|
-
createEventBanner(payload: CreateEventBannerPayload, param: AbstractParam): Promise<void>;
|
|
9
|
-
updateEventBanner(payload: UpdateEventBannerPayload, param: AbstractParam): Promise<void>;
|
|
10
|
-
deleteEventBanner(payload: DeleteEventBannerPayload, param: AbstractParam): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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.AmqpEventBannerService = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
-
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
-
let AmqpEventBannerService = class AmqpEventBannerService {
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
-
}
|
|
24
|
-
async createEventBanner(payload, param) {
|
|
25
|
-
return this.amqpManager.call('이벤트 배너 등록', 'event-banner.create', payload, param, { isErrorThrowing: true });
|
|
26
|
-
}
|
|
27
|
-
async updateEventBanner(payload, param) {
|
|
28
|
-
return this.amqpManager.call('이벤트 배너 수정', 'event-banner.update', payload, param, { isErrorThrowing: true });
|
|
29
|
-
}
|
|
30
|
-
async deleteEventBanner(payload, param) {
|
|
31
|
-
return this.amqpManager.call('이벤트 배너 삭제', 'event-banner.delete', payload, param, { isErrorThrowing: true });
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.AmqpEventBannerService = AmqpEventBannerService;
|
|
35
|
-
exports.AmqpEventBannerService = AmqpEventBannerService = __decorate([
|
|
36
|
-
(0, common_1.Injectable)(),
|
|
37
|
-
__param(0, (0, common_1.Inject)('MANAGE_SERVICE_PROVIDER')),
|
|
38
|
-
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
39
|
-
], AmqpEventBannerService);
|