@yolo-croket-dev/amqp-access 0.5.174 → 0.5.175
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/summer-black-friday.modules/weekly-mega-deal/query/get-items-for-coupon-hot-deal.dto.d.ts +1 -0
- package/user-service/amqp.user-service.module.js +2 -0
- package/user-service/dto/daily-random-coupon-noti-user/command/create-daily-random-coupon-noti-user.dto.d.ts +3 -0
- package/user-service/dto/daily-random-coupon-noti-user/command/create-daily-random-coupon-noti-user.dto.js +20 -0
- package/user-service/dto/daily-random-coupon-noti-user/command/index.d.ts +1 -0
- package/user-service/dto/daily-random-coupon-noti-user/command/index.js +17 -0
- package/user-service/dto/daily-random-coupon-noti-user/index.d.ts +2 -0
- package/user-service/dto/daily-random-coupon-noti-user/index.js +18 -0
- package/user-service/dto/daily-random-coupon-noti-user/query/get-daily-random-coupon-noti-user-ids.dto.d.ts +3 -0
- package/user-service/dto/daily-random-coupon-noti-user/query/get-daily-random-coupon-noti-user-ids.dto.js +20 -0
- package/user-service/dto/daily-random-coupon-noti-user/query/index.d.ts +1 -0
- package/user-service/dto/daily-random-coupon-noti-user/query/index.js +17 -0
- package/user-service/dto/index.d.ts +1 -0
- package/user-service/dto/index.js +1 -0
- package/user-service/services/amqp.daily-random-coupon-noti-user.service.d.ts +10 -0
- package/user-service/services/amqp.daily-random-coupon-noti-user.service.js +36 -0
- package/user-service/services/index.d.ts +1 -0
- package/user-service/services/index.js +1 -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.175",
|
|
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.20",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.2.41",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.2.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.2.54",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -11,6 +11,7 @@ export interface WeeklyMegaDealCouponHotDealItemData {
|
|
|
11
11
|
maxDiscountCouponPriceInfo?: MaxDiscountCouponPriceInfo;
|
|
12
12
|
isAbroadShipping: boolean;
|
|
13
13
|
regularPrice?: number;
|
|
14
|
+
isSoldOut?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class GetItemsForCouponHotDealPayload {
|
|
16
17
|
searchAfter?: string;
|
|
@@ -49,6 +49,7 @@ exports.AmqpUserServiceModule = AmqpUserServiceModule = __decorate([
|
|
|
49
49
|
services_1.AmqpStoreBrandFixedContentService,
|
|
50
50
|
services_1.AmqpStoreFixedContentService,
|
|
51
51
|
services_1.AmqpChatContentGroupService,
|
|
52
|
+
services_1.AmqpDailyRandomCouponNotiUserService,
|
|
52
53
|
],
|
|
53
54
|
exports: [
|
|
54
55
|
amqp_user_service_provider_1.UserServiceProvider,
|
|
@@ -83,6 +84,7 @@ exports.AmqpUserServiceModule = AmqpUserServiceModule = __decorate([
|
|
|
83
84
|
services_1.AmqpStoreBrandFixedContentService,
|
|
84
85
|
services_1.AmqpStoreFixedContentService,
|
|
85
86
|
services_1.AmqpChatContentGroupService,
|
|
87
|
+
services_1.AmqpDailyRandomCouponNotiUserService,
|
|
86
88
|
],
|
|
87
89
|
})
|
|
88
90
|
], AmqpUserServiceModule);
|
|
@@ -0,0 +1,20 @@
|
|
|
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.CreateDailyRandomCouponNotiUserPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateDailyRandomCouponNotiUserPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateDailyRandomCouponNotiUserPayload = CreateDailyRandomCouponNotiUserPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CreateDailyRandomCouponNotiUserPayload.prototype, "dailyRandomCouponId", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-daily-random-coupon-noti-user.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-daily-random-coupon-noti-user.dto"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|
|
18
|
+
__exportStar(require("./query"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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.GetDailyRandomCouponNotiUserIdsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetDailyRandomCouponNotiUserIdsPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetDailyRandomCouponNotiUserIdsPayload = GetDailyRandomCouponNotiUserIdsPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetDailyRandomCouponNotiUserIdsPayload.prototype, "dailyRandomCouponId", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-daily-random-coupon-noti-user-ids.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("./get-daily-random-coupon-noti-user-ids.dto"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateDailyRandomCouponNotiUserPayload, GetDailyRandomCouponNotiUserIdsPayload } from '../dto';
|
|
4
|
+
export declare class AmqpDailyRandomCouponNotiUserService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
createDailyRandomCouponNotiUser(payload: CreateDailyRandomCouponNotiUserPayload, param: AbstractParam): Promise<void>;
|
|
9
|
+
getDailyRandomCouponNotiUserIds(payload: GetDailyRandomCouponNotiUserIdsPayload, param: AbstractParam): Promise<string[]>;
|
|
10
|
+
}
|
|
@@ -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.AmqpDailyRandomCouponNotiUserService = 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 AmqpDailyRandomCouponNotiUserService = class AmqpDailyRandomCouponNotiUserService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async createDailyRandomCouponNotiUser(payload, param) {
|
|
25
|
+
return this.amqpManager.call('데일리 랜덤 쿠폰 알림 유저 생성', 'daily-random-coupon-noti-user.create', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async getDailyRandomCouponNotiUserIds(payload, param) {
|
|
28
|
+
return this.amqpManager.call('데일리 랜덤 쿠폰 알림 유저 아이디 조회', 'daily-random-coupon-noti-user.get-ids', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.AmqpDailyRandomCouponNotiUserService = AmqpDailyRandomCouponNotiUserService;
|
|
32
|
+
exports.AmqpDailyRandomCouponNotiUserService = AmqpDailyRandomCouponNotiUserService = __decorate([
|
|
33
|
+
(0, common_1.Injectable)(),
|
|
34
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
35
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
36
|
+
], AmqpDailyRandomCouponNotiUserService);
|
|
@@ -40,3 +40,4 @@ __exportStar(require("./amqp.feed.service"), exports);
|
|
|
40
40
|
__exportStar(require("./amqp.legacy-api.service"), exports);
|
|
41
41
|
__exportStar(require("./summer-black-friday.modules"), exports);
|
|
42
42
|
__exportStar(require("./chat.modules"), exports);
|
|
43
|
+
__exportStar(require("./amqp.daily-random-coupon-noti-user.service"), exports);
|