@yolo-croket-dev/amqp-access 0.2.37 → 0.2.38-jun.1
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/coupon-server/dto/coupon-template/query/item-max-discount-coupon/get-coupon-templates-for-item-max-discount-coupon.dto.d.ts +5 -0
- package/coupon-server/dto/coupon-template/query/item-max-discount-coupon/get-coupon-templates-for-item-max-discount-coupon.dto.js +18 -1
- package/package.json +2 -2
- package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.d.ts +7 -0
- package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.js +23 -0
- package/user-service/amqp.user-service.module.js +2 -0
- package/user-service/dto/index.d.ts +1 -0
- package/user-service/dto/index.js +1 -0
- package/user-service/dto/seller-ad-coupon-request-log/command/create-seller-ad-coupon-request-log.dto.d.ts +14 -0
- package/user-service/dto/seller-ad-coupon-request-log/command/create-seller-ad-coupon-request-log.dto.js +67 -0
- package/user-service/dto/seller-ad-coupon-request-log/command/index.d.ts +1 -0
- package/user-service/dto/seller-ad-coupon-request-log/command/index.js +17 -0
- package/user-service/dto/seller-ad-coupon-request-log/index.d.ts +1 -0
- package/user-service/dto/seller-ad-coupon-request-log/index.js +17 -0
- package/user-service/services/amqp.md-theme.service.d.ts +11 -0
- package/user-service/services/amqp.md-theme.service.js +36 -0
- package/user-service/services/amqp.seller-ad-coupon-request-log.service.d.ts +9 -0
- package/user-service/services/amqp.seller-ad-coupon-request-log.service.js +33 -0
- package/user-service/services/index.d.ts +1 -0
- package/user-service/services/index.js +1 -0
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { CouponTemplateEntity } from '@yolo-croket-dev/entity/src/coupon-template/coupon-template.entity';
|
|
2
2
|
export type CouponTemplateForMaxDisCount = Pick<CouponTemplateEntity, '_id' | 'useConditionInfo' | 'discountType' | 'discountValue' | 'discountRate' | 'couponCode' | 'periodInfo' | 'maxDiscountValue'>;
|
|
3
|
+
export declare class CategoryInfo {
|
|
4
|
+
mainCategory: string;
|
|
5
|
+
subCategory: string;
|
|
6
|
+
}
|
|
3
7
|
export declare class IdInfo {
|
|
4
8
|
itemId: string;
|
|
5
9
|
storeId?: string;
|
|
6
10
|
themeIds?: string[];
|
|
7
11
|
selectionFrameIds?: string[];
|
|
12
|
+
category?: CategoryInfo;
|
|
8
13
|
}
|
|
9
14
|
export declare class GetCouponTemplatesForItemMaxDiscountCouponPayload {
|
|
10
15
|
idInfos: IdInfo[];
|
|
@@ -9,10 +9,21 @@ 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.GetCouponTemplatesForItemMaxDiscountCouponPayload = exports.IdInfo = void 0;
|
|
12
|
+
exports.GetCouponTemplatesForItemMaxDiscountCouponPayload = exports.IdInfo = exports.CategoryInfo = void 0;
|
|
13
13
|
/* eslint-disable max-len */
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
class CategoryInfo {
|
|
17
|
+
}
|
|
18
|
+
exports.CategoryInfo = CategoryInfo;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CategoryInfo.prototype, "mainCategory", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CategoryInfo.prototype, "subCategory", void 0);
|
|
16
27
|
class IdInfo {
|
|
17
28
|
}
|
|
18
29
|
exports.IdInfo = IdInfo;
|
|
@@ -37,6 +48,12 @@ __decorate([
|
|
|
37
48
|
(0, class_validator_1.IsOptional)(),
|
|
38
49
|
__metadata("design:type", Array)
|
|
39
50
|
], IdInfo.prototype, "selectionFrameIds", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsObject)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_transformer_1.Type)(() => CategoryInfo),
|
|
55
|
+
__metadata("design:type", CategoryInfo)
|
|
56
|
+
], IdInfo.prototype, "category", void 0);
|
|
40
57
|
class GetCouponTemplatesForItemMaxDiscountCouponPayload {
|
|
41
58
|
}
|
|
42
59
|
exports.GetCouponTemplatesForItemMaxDiscountCouponPayload = GetCouponTemplatesForItemMaxDiscountCouponPayload;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38-jun.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
"class-validator": "^0.13.2",
|
|
29
29
|
"dotenv": "^16.3.1"
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectionFrameDataEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
|
|
3
|
+
targetSelectionDataId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
|
|
6
|
+
selectionFrameDatas: SelectionFrameDataEntity[];
|
|
7
|
+
}
|
package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload.prototype, "targetSelectionDataId", void 0);
|
|
21
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
|
|
22
|
+
}
|
|
23
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = SearchAllSelectionFrameDatasByTargetSelectionDataIdResult;
|
|
@@ -35,6 +35,7 @@ exports.AmqpUserServiceModule = AmqpUserServiceModule = __decorate([
|
|
|
35
35
|
services_1.AmqpSellerAutoReplyService,
|
|
36
36
|
services_1.AmqpChatContentService,
|
|
37
37
|
services_1.AmqpChatRoomService,
|
|
38
|
+
services_1.AmqpSellerAdCouponRequestLogService,
|
|
38
39
|
],
|
|
39
40
|
exports: [
|
|
40
41
|
amqp_user_service_provider_1.UserServiceProvider,
|
|
@@ -55,6 +56,7 @@ exports.AmqpUserServiceModule = AmqpUserServiceModule = __decorate([
|
|
|
55
56
|
services_1.AmqpSellerAutoReplyService,
|
|
56
57
|
services_1.AmqpChatContentService,
|
|
57
58
|
services_1.AmqpChatRoomService,
|
|
59
|
+
services_1.AmqpSellerAdCouponRequestLogService,
|
|
58
60
|
],
|
|
59
61
|
})
|
|
60
62
|
], AmqpUserServiceModule);
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./store"), exports);
|
|
|
23
23
|
__exportStar(require("./store-md-theme"), exports);
|
|
24
24
|
__exportStar(require("./seller-auto-reply"), exports);
|
|
25
25
|
__exportStar(require("./chat-content"), exports);
|
|
26
|
+
__exportStar(require("./seller-ad-coupon-request-log"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SellerAdCouponRequestLogTargetEnum, SellerAdCouponRequestLogCouponTypeEnum } from '@yolo-croket-dev/entity-v2/seller-ad-coupon-request-log/seller-ad-coupon-request-log.entity';
|
|
2
|
+
export declare class CreateSellerAdCouponRequestLogPayload {
|
|
3
|
+
target: SellerAdCouponRequestLogTargetEnum;
|
|
4
|
+
itemId?: string;
|
|
5
|
+
adCouponType: SellerAdCouponRequestLogCouponTypeEnum;
|
|
6
|
+
price?: number;
|
|
7
|
+
rate?: number;
|
|
8
|
+
discountMaxLimit?: number;
|
|
9
|
+
isAdCouponItemPriceRange: boolean;
|
|
10
|
+
adCouponItemMinPrice?: number;
|
|
11
|
+
adCouponItemMaxPrice?: number;
|
|
12
|
+
adCouponStartDate: Date;
|
|
13
|
+
adCouponEndDate: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.CreateSellerAdCouponRequestLogPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const seller_ad_coupon_request_log_entity_1 = require("@yolo-croket-dev/entity-v2/seller-ad-coupon-request-log/seller-ad-coupon-request-log.entity");
|
|
15
|
+
class CreateSellerAdCouponRequestLogPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateSellerAdCouponRequestLogPayload = CreateSellerAdCouponRequestLogPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEnum)(seller_ad_coupon_request_log_entity_1.SellerAdCouponRequestLogTargetEnum),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "target", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "itemId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsEnum)(seller_ad_coupon_request_log_entity_1.SellerAdCouponRequestLogCouponTypeEnum),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "adCouponType", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNumber)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "price", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNumber)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "rate", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNumber)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "discountMaxLimit", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsBoolean)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "isAdCouponItemPriceRange", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsNumber)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "adCouponItemMinPrice", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsNumber)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "adCouponItemMaxPrice", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsDateString)(),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "adCouponStartDate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsDateString)(),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], CreateSellerAdCouponRequestLogPayload.prototype, "adCouponEndDate", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-seller-ad-coupon-request-log.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
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-seller-ad-coupon-request-log.dto"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command';
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { StoreMDThemeEntity } from '@yolo-croket-dev/entity/src/storemdtheme';
|
|
4
|
+
import { GetStoreMDThemeByIdPayload, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult } from '../dto/store-md-theme';
|
|
5
|
+
export declare class AmqpStoreMdThemeService {
|
|
6
|
+
private readonly client;
|
|
7
|
+
private readonly amqpManager;
|
|
8
|
+
constructor(client: ClientProxy);
|
|
9
|
+
getStoreMDThemeById(payload: GetStoreMDThemeByIdPayload, param: AbstractParam): Promise<StoreMDThemeEntity>;
|
|
10
|
+
searchStoreMDThemeDetailById(payload: SearchStoreMDThemeDetailByIdPayload, param: AbstractParam): Promise<SearchStoreMDThemeDetailByIdResult>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.AmqpStoreMdThemeService = 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 AmqpStoreMdThemeService = class AmqpStoreMdThemeService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async getStoreMDThemeById(payload, param) {
|
|
25
|
+
return this.amqpManager.call('MDTheme 조회', 'storemdtheme.get.by-id', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async searchStoreMDThemeDetailById(payload, param) {
|
|
28
|
+
return this.amqpManager.call('MDTheme 상세 조회', 'store-md-theme.get.detail-by-id', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
AmqpStoreMdThemeService = __decorate([
|
|
32
|
+
(0, common_1.Injectable)(),
|
|
33
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
34
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
35
|
+
], AmqpStoreMdThemeService);
|
|
36
|
+
exports.AmqpStoreMdThemeService = AmqpStoreMdThemeService;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateSellerAdCouponRequestLogPayload } from '../dto/seller-ad-coupon-request-log';
|
|
4
|
+
export declare class AmqpSellerAdCouponRequestLogService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
createSellerAdCouponRequestLog(payload: CreateSellerAdCouponRequestLogPayload, param: AbstractParam): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AmqpSellerAdCouponRequestLogService = 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 AmqpSellerAdCouponRequestLogService = class AmqpSellerAdCouponRequestLogService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async createSellerAdCouponRequestLog(payload, param) {
|
|
25
|
+
return this.amqpManager.call('판매자 광고 쿠폰 요청 로그 생성', 'seller-ad-coupon-request-log.create', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpSellerAdCouponRequestLogService = AmqpSellerAdCouponRequestLogService;
|
|
29
|
+
exports.AmqpSellerAdCouponRequestLogService = AmqpSellerAdCouponRequestLogService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpSellerAdCouponRequestLogService);
|
|
@@ -30,3 +30,4 @@ __exportStar(require("./amqp.store-business.service"), exports);
|
|
|
30
30
|
__exportStar(require("./amqp.seller-auto-reply.service"), exports);
|
|
31
31
|
__exportStar(require("./amqp.chat-content.service"), exports);
|
|
32
32
|
__exportStar(require("./amqp.chat-room.service"), exports);
|
|
33
|
+
__exportStar(require("./amqp.seller-ad-coupon-request-log.service"), exports);
|