@yolo-croket-dev/amqp-access 0.5.60-jun.12 → 0.5.60-jun.3

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.
Files changed (36) hide show
  1. package/coupon-server/amqp.coupon-server.module.js +0 -4
  2. package/coupon-server/services/index.d.ts +0 -2
  3. package/coupon-server/services/index.js +0 -2
  4. package/decorator/index.d.ts +0 -1
  5. package/decorator/index.js +0 -1
  6. package/notification-service/dto/notification-bulk-send/command/index.d.ts +0 -1
  7. package/notification-service/dto/notification-bulk-send/command/index.js +0 -1
  8. package/notification-service/dto/notification-bulk-send/command/send-expired-issued-receipt-coupon.dto.d.ts +1 -1
  9. package/notification-service/dto/notification-bulk-send/command/send-expired-issued-receipt-coupon.dto.js +2 -2
  10. package/notification-service/services/amqp.notification-bulk-send.service.d.ts +0 -2
  11. package/notification-service/services/amqp.notification-bulk-send.service.js +1 -4
  12. package/package.json +1 -1
  13. package/coupon-server/dto/coupon.modules/index.d.ts +0 -1
  14. package/coupon-server/dto/coupon.modules/index.js +0 -17
  15. package/coupon-server/dto/coupon.modules/issued-coupon-cron/index.d.ts +0 -1
  16. package/coupon-server/dto/coupon.modules/issued-coupon-cron/index.js +0 -17
  17. package/coupon-server/dto/coupon.modules/issued-coupon-cron/send-noti-expired-issued-coupon.dto.d.ts +0 -8
  18. package/coupon-server/dto/coupon.modules/issued-coupon-cron/send-noti-expired-issued-coupon.dto.js +0 -20
  19. package/coupon-server/dto/receipt-coupon.modules/index.d.ts +0 -1
  20. package/coupon-server/dto/receipt-coupon.modules/index.js +0 -17
  21. package/coupon-server/dto/receipt-coupon.modules/issued-receipt-coupon-cron/index.d.ts +0 -1
  22. package/coupon-server/dto/receipt-coupon.modules/issued-receipt-coupon-cron/index.js +0 -17
  23. package/coupon-server/dto/receipt-coupon.modules/issued-receipt-coupon-cron/send-noti-expired-issued-receipt-coupon.dto.d.ts +0 -8
  24. package/coupon-server/dto/receipt-coupon.modules/issued-receipt-coupon-cron/send-noti-expired-issued-receipt-coupon.dto.js +0 -20
  25. package/coupon-server/services/coupon.modules/amqp.issued-coupon-cron.service.d.ts +0 -9
  26. package/coupon-server/services/coupon.modules/amqp.issued-coupon-cron.service.js +0 -34
  27. package/coupon-server/services/coupon.modules/index.d.ts +0 -1
  28. package/coupon-server/services/coupon.modules/index.js +0 -17
  29. package/coupon-server/services/receipt-coupon.modules/amqp.issued-receipt-coupon-cron.service.d.ts +0 -9
  30. package/coupon-server/services/receipt-coupon.modules/amqp.issued-receipt-coupon-cron.service.js +0 -34
  31. package/coupon-server/services/receipt-coupon.modules/index.d.ts +0 -1
  32. package/coupon-server/services/receipt-coupon.modules/index.js +0 -17
  33. package/decorator/is-yyyy-mm-dd.decorator.d.ts +0 -10
  34. package/decorator/is-yyyy-mm-dd.decorator.js +0 -46
  35. package/notification-service/dto/notification-bulk-send/command/send-expired-issued-coupon.dto.d.ts +0 -15
  36. package/notification-service/dto/notification-bulk-send/command/send-expired-issued-coupon.dto.js +0 -50
@@ -24,8 +24,6 @@ AmqpCouponServerModule = __decorate([
24
24
  services_1.AmqpIssuedReceiptCouponService,
25
25
  services_1.AmqpIssuedReceiptCouponLogService,
26
26
  services_1.AmqpBrandBlackFridayCouponServiceByCouponServer,
27
- services_1.AmqpIssuedReceiptCouponCronService,
28
- services_1.AmqpIssuedCouponCronService,
29
27
  ],
30
28
  exports: [
31
29
  amqp_coupon_server_provider_1.CouponServerProvider,
@@ -37,8 +35,6 @@ AmqpCouponServerModule = __decorate([
37
35
  services_1.AmqpIssuedReceiptCouponService,
38
36
  services_1.AmqpIssuedReceiptCouponLogService,
39
37
  services_1.AmqpBrandBlackFridayCouponServiceByCouponServer,
40
- services_1.AmqpIssuedReceiptCouponCronService,
41
- services_1.AmqpIssuedCouponCronService,
42
38
  ],
43
39
  })
44
40
  ], AmqpCouponServerModule);
@@ -6,5 +6,3 @@ export * from './amqp.receipt-coupon-template-log.service';
6
6
  export * from './amqp.issued-receipt-coupon.service';
7
7
  export * from './amqp.issued-receipt-coupon-log.service';
8
8
  export * from './summer-black-friday.modules';
9
- export * from './receipt-coupon.modules';
10
- export * from './coupon.modules';
@@ -22,5 +22,3 @@ __exportStar(require("./amqp.receipt-coupon-template-log.service"), exports);
22
22
  __exportStar(require("./amqp.issued-receipt-coupon.service"), exports);
23
23
  __exportStar(require("./amqp.issued-receipt-coupon-log.service"), exports);
24
24
  __exportStar(require("./summer-black-friday.modules"), exports);
25
- __exportStar(require("./receipt-coupon.modules"), exports);
26
- __exportStar(require("./coupon.modules"), exports);
@@ -1,2 +1 @@
1
1
  export * from './is-iso-8601-utc.decorator';
2
- export * from './is-yyyy-mm-dd.decorator';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./is-iso-8601-utc.decorator"), exports);
18
- __exportStar(require("./is-yyyy-mm-dd.decorator"), exports);
@@ -1,2 +1 @@
1
1
  export * from './send-expired-issued-receipt-coupon.dto';
2
- export * from './send-expired-issued-coupon.dto';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./send-expired-issued-receipt-coupon.dto"), exports);
18
- __exportStar(require("./send-expired-issued-coupon.dto"), exports);
@@ -1,7 +1,7 @@
1
1
  export declare class SendExpiredIssuedReceiptCouponPayloadData {
2
2
  userId: string;
3
3
  couponTitle: string;
4
- discountAmount: string;
4
+ discountAmount: number;
5
5
  }
6
6
  export declare class SendExpiredIssuedReceiptCouponPayload {
7
7
  /** 알림 발송 데이터 */
@@ -23,8 +23,8 @@ __decorate([
23
23
  __metadata("design:type", String)
24
24
  ], SendExpiredIssuedReceiptCouponPayloadData.prototype, "couponTitle", void 0);
25
25
  __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
26
+ (0, class_validator_1.IsNumber)(),
27
+ __metadata("design:type", Number)
28
28
  ], SendExpiredIssuedReceiptCouponPayloadData.prototype, "discountAmount", void 0);
29
29
  exports.SendExpiredIssuedReceiptCouponPayloadData = SendExpiredIssuedReceiptCouponPayloadData;
30
30
  class SendExpiredIssuedReceiptCouponPayload {
@@ -1,11 +1,9 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { SendExpiredIssuedReceiptCouponPayload } from '../dto/notification-bulk-send/command/send-expired-issued-receipt-coupon.dto';
4
- import { SendExpiredIssuedCouponPayload } from '../dto/notification-bulk-send/command/send-expired-issued-coupon.dto';
5
4
  export declare class AmqpNotificationBulkSendService {
6
5
  private readonly client;
7
6
  private readonly amqpManager;
8
7
  constructor(client: ClientProxy);
9
8
  sendExpiredIssuedReceiptCouponOnlyPublish(payload: SendExpiredIssuedReceiptCouponPayload, param: AbstractParam): Promise<boolean>;
10
- sendExpiredIssuedCouponOnlyPublish(payload: SendExpiredIssuedCouponPayload, param: AbstractParam): Promise<boolean>;
11
9
  }
@@ -22,10 +22,7 @@ let AmqpNotificationBulkSendService = class AmqpNotificationBulkSendService {
22
22
  this.amqpManager = new functions_1.AmqpManagement(this.client);
23
23
  }
24
24
  async sendExpiredIssuedReceiptCouponOnlyPublish(payload, param) {
25
- return this.amqpManager.onlyPublish('만료 발급 쿠폰 알림 대량 보내기', 'notification-bulk-send.send.expired-issued-receipt-coupon', payload, param, { isInternal: true });
26
- }
27
- async sendExpiredIssuedCouponOnlyPublish(payload, param) {
28
- return this.amqpManager.onlyPublish('만료 발급 쿠폰 알림 대량 보내기', 'notification-bulk-send.send.expired-issued-coupon', payload, param, { isInternal: true });
25
+ return this.amqpManager.onlyPublish('만료 발급 쿠폰 알림 대량 보내기', 'notification.bulk-send.send-expired-issued-receipt-coupon', payload, param, { isInternal: true });
29
26
  }
30
27
  };
31
28
  AmqpNotificationBulkSendService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.60-jun.12",
3
+ "version": "0.5.60-jun.3",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1 +0,0 @@
1
- export * from './issued-coupon-cron';
@@ -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("./issued-coupon-cron"), exports);
@@ -1 +0,0 @@
1
- export * from './send-noti-expired-issued-coupon.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("./send-noti-expired-issued-coupon.dto"), exports);
@@ -1,8 +0,0 @@
1
- export declare class SendNotiExpiredIssuedCouponPayload {
2
- /**
3
- * @description 만료일 날짜 (한국시간 기준)
4
- * @형식 YYYY-MM-DD
5
- * @예시 2025-08-13 -> 2025-08-13에 만료되는 쿠폰만 조회
6
- * */
7
- expiredDate: string;
8
- }
@@ -1,20 +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.SendNotiExpiredIssuedCouponPayload = void 0;
13
- const decorator_1 = require("@yolo-croket-dev/amqp-access/decorator");
14
- class SendNotiExpiredIssuedCouponPayload {
15
- }
16
- __decorate([
17
- (0, decorator_1.IsYyyyMmDd)(),
18
- __metadata("design:type", String)
19
- ], SendNotiExpiredIssuedCouponPayload.prototype, "expiredDate", void 0);
20
- exports.SendNotiExpiredIssuedCouponPayload = SendNotiExpiredIssuedCouponPayload;
@@ -1 +0,0 @@
1
- export * from './issued-receipt-coupon-cron';
@@ -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("./issued-receipt-coupon-cron"), exports);
@@ -1 +0,0 @@
1
- export * from './send-noti-expired-issued-receipt-coupon.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("./send-noti-expired-issued-receipt-coupon.dto"), exports);
@@ -1,8 +0,0 @@
1
- export declare class SendNotiExpiredIssuedReceiptCouponPayload {
2
- /**
3
- * @description 만료일 날짜 (한국시간 기준)
4
- * @형식 YYYY-MM-DD
5
- * @예시 2025-08-13 -> 2025-08-13에 만료되는 쿠폰만 조회
6
- * */
7
- expiredDate: string;
8
- }
@@ -1,20 +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.SendNotiExpiredIssuedReceiptCouponPayload = void 0;
13
- const decorator_1 = require("@yolo-croket-dev/amqp-access/decorator");
14
- class SendNotiExpiredIssuedReceiptCouponPayload {
15
- }
16
- __decorate([
17
- (0, decorator_1.IsYyyyMmDd)(),
18
- __metadata("design:type", String)
19
- ], SendNotiExpiredIssuedReceiptCouponPayload.prototype, "expiredDate", void 0);
20
- exports.SendNotiExpiredIssuedReceiptCouponPayload = SendNotiExpiredIssuedReceiptCouponPayload;
@@ -1,9 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { SendNotiExpiredIssuedCouponPayload } from '../../dto/coupon.modules/issued-coupon-cron';
4
- export declare class AmqpIssuedCouponCronService {
5
- private readonly client;
6
- private readonly amqpManager;
7
- constructor(client: ClientProxy);
8
- sendNotiExpiredIssuedCoupon(payload: SendNotiExpiredIssuedCouponPayload, param: AbstractParam): Promise<any>;
9
- }
@@ -1,34 +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.AmqpIssuedCouponCronService = void 0;
16
- /* eslint-disable max-len */
17
- const common_1 = require("@nestjs/common");
18
- const microservices_1 = require("@nestjs/microservices");
19
- const functions_1 = require("@yolo-croket-dev/core/functions");
20
- let AmqpIssuedCouponCronService = class AmqpIssuedCouponCronService {
21
- constructor(client) {
22
- this.client = client;
23
- this.amqpManager = new functions_1.AmqpManagement(this.client);
24
- }
25
- async sendNotiExpiredIssuedCoupon(payload, param) {
26
- return this.amqpManager.call('만료 발급 쿠폰 알림 대량 보내기', 'issued-coupon-cron.send-noti.expired', payload, param, { isErrorThrowing: true });
27
- }
28
- };
29
- AmqpIssuedCouponCronService = __decorate([
30
- (0, common_1.Injectable)(),
31
- __param(0, (0, common_1.Inject)('COUPON_SERVER_PROVIDER')),
32
- __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
- ], AmqpIssuedCouponCronService);
34
- exports.AmqpIssuedCouponCronService = AmqpIssuedCouponCronService;
@@ -1 +0,0 @@
1
- export * from './amqp.issued-coupon-cron.service';
@@ -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("./amqp.issued-coupon-cron.service"), exports);
@@ -1,9 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { SendNotiExpiredIssuedReceiptCouponPayload } from '../../dto/receipt-coupon.modules/issued-receipt-coupon-cron';
4
- export declare class AmqpIssuedReceiptCouponCronService {
5
- private readonly client;
6
- private readonly amqpManager;
7
- constructor(client: ClientProxy);
8
- sendNotiExpiredIssuedReceiptCoupon(payload: SendNotiExpiredIssuedReceiptCouponPayload, param: AbstractParam): Promise<any>;
9
- }
@@ -1,34 +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.AmqpIssuedReceiptCouponCronService = void 0;
16
- /* eslint-disable max-len */
17
- const common_1 = require("@nestjs/common");
18
- const microservices_1 = require("@nestjs/microservices");
19
- const functions_1 = require("@yolo-croket-dev/core/functions");
20
- let AmqpIssuedReceiptCouponCronService = class AmqpIssuedReceiptCouponCronService {
21
- constructor(client) {
22
- this.client = client;
23
- this.amqpManager = new functions_1.AmqpManagement(this.client);
24
- }
25
- async sendNotiExpiredIssuedReceiptCoupon(payload, param) {
26
- return this.amqpManager.call('만료 발급 쿠폰 알림 대량 보내기', 'issued-receipt-coupon-cron.send-noti.expired', payload, param, { isErrorThrowing: true });
27
- }
28
- };
29
- AmqpIssuedReceiptCouponCronService = __decorate([
30
- (0, common_1.Injectable)(),
31
- __param(0, (0, common_1.Inject)('COUPON_SERVER_PROVIDER')),
32
- __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
- ], AmqpIssuedReceiptCouponCronService);
34
- exports.AmqpIssuedReceiptCouponCronService = AmqpIssuedReceiptCouponCronService;
@@ -1 +0,0 @@
1
- export * from './amqp.issued-receipt-coupon-cron.service';
@@ -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("./amqp.issued-receipt-coupon-cron.service"), exports);
@@ -1,10 +0,0 @@
1
- import { ValidationOptions } from 'class-validator';
2
- /**
3
- * @author jun
4
- * YYYY-MM-DD 형식을 검증하는 데코레이터
5
- *
6
- * @example
7
- * @IsYyyyMmDd()
8
- * date: string; // "2025-08-13"
9
- */
10
- export declare function IsYyyyMmDd(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IsYyyyMmDd = void 0;
4
- const class_validator_1 = require("class-validator");
5
- /**
6
- * @author jun
7
- * YYYY-MM-DD 형식을 검증하는 데코레이터
8
- *
9
- * @example
10
- * @IsYyyyMmDd()
11
- * date: string; // "2025-08-13"
12
- */
13
- function IsYyyyMmDd(validationOptions) {
14
- return function (object, propertyName) {
15
- (0, class_validator_1.registerDecorator)({
16
- name: 'isYyyyMmDd',
17
- target: object.constructor,
18
- propertyName,
19
- options: validationOptions,
20
- validator: {
21
- validate(value) {
22
- if (typeof value !== 'string') {
23
- return false;
24
- }
25
- // YYYY-MM-DD 형식 검증
26
- const yyyyMmDdRegex = /^\d{4}-\d{2}-\d{2}$/;
27
- if (!yyyyMmDdRegex.test(value)) {
28
- return false;
29
- }
30
- // 실제로 유효한 날짜인지 확인 (예: 2025-02-30 같은 잘못된 날짜 방지)
31
- const date = new Date(value);
32
- const [year, month, day,] = value.split('-').map(Number);
33
- // Date 객체는 2025-02-30을 2025-03-02로 자동 변환하므로,
34
- // 생성된 날짜의 년/월/일이 입력된 년/월/일과 일치하는지 확인해야 함
35
- return (date.getFullYear() === year
36
- && date.getMonth() === month - 1 // getMonth()는 0부터 시작
37
- && date.getDate() === day);
38
- },
39
- defaultMessage(args) {
40
- return `${args.property}는 YYYY-MM-DD 형식(예: 2025-08-13)이어야 합니다.`;
41
- },
42
- },
43
- });
44
- };
45
- }
46
- exports.IsYyyyMmDd = IsYyyyMmDd;
@@ -1,15 +0,0 @@
1
- export declare class SendExpiredIssuedCouponPayloadData {
2
- userId: string;
3
- couponTitle: string;
4
- discountAmount: string;
5
- }
6
- export declare class SendExpiredIssuedCouponPayload {
7
- /** 알림 발송 데이터 */
8
- datas: SendExpiredIssuedCouponPayloadData[];
9
- /** 만료일자 년도 */
10
- year: string;
11
- /** 만료일자 월 */
12
- month: string;
13
- /** 만료일자 일 */
14
- day: string;
15
- }
@@ -1,50 +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.SendExpiredIssuedCouponPayload = exports.SendExpiredIssuedCouponPayloadData = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- class SendExpiredIssuedCouponPayloadData {
16
- }
17
- __decorate([
18
- (0, class_validator_1.IsMongoId)(),
19
- __metadata("design:type", String)
20
- ], SendExpiredIssuedCouponPayloadData.prototype, "userId", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsString)(),
23
- __metadata("design:type", String)
24
- ], SendExpiredIssuedCouponPayloadData.prototype, "couponTitle", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], SendExpiredIssuedCouponPayloadData.prototype, "discountAmount", void 0);
29
- exports.SendExpiredIssuedCouponPayloadData = SendExpiredIssuedCouponPayloadData;
30
- class SendExpiredIssuedCouponPayload {
31
- }
32
- __decorate([
33
- (0, class_validator_1.IsArray)(),
34
- (0, class_validator_1.ValidateNested)({ each: true }),
35
- (0, class_transformer_1.Type)(() => SendExpiredIssuedCouponPayloadData),
36
- __metadata("design:type", Array)
37
- ], SendExpiredIssuedCouponPayload.prototype, "datas", void 0);
38
- __decorate([
39
- (0, class_validator_1.IsString)(),
40
- __metadata("design:type", String)
41
- ], SendExpiredIssuedCouponPayload.prototype, "year", void 0);
42
- __decorate([
43
- (0, class_validator_1.IsString)(),
44
- __metadata("design:type", String)
45
- ], SendExpiredIssuedCouponPayload.prototype, "month", void 0);
46
- __decorate([
47
- (0, class_validator_1.IsString)(),
48
- __metadata("design:type", String)
49
- ], SendExpiredIssuedCouponPayload.prototype, "day", void 0);
50
- exports.SendExpiredIssuedCouponPayload = SendExpiredIssuedCouponPayload;