@yolo-croket-dev/amqp-access 0.0.115 → 0.0.117-hj-01

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 (71) hide show
  1. package/notification-service/amqp.notification-service.module.js +4 -0
  2. package/notification-service/dto/app-bulk-push-log/command/edit-reservation-app-bulk-push-log.dto.d.ts +8 -0
  3. package/notification-service/dto/app-bulk-push-log/command/edit-reservation-app-bulk-push-log.dto.js +40 -0
  4. package/notification-service/dto/app-bulk-push-log/command/index.d.ts +2 -0
  5. package/notification-service/dto/app-bulk-push-log/command/index.js +18 -0
  6. package/notification-service/dto/app-bulk-push-log/command/remove-reservation-app-bulk-push-log.dto.d.ts +3 -0
  7. package/notification-service/dto/app-bulk-push-log/command/remove-reservation-app-bulk-push-log.dto.js +20 -0
  8. package/notification-service/dto/app-bulk-push-log/index.d.ts +2 -0
  9. package/notification-service/dto/app-bulk-push-log/index.js +18 -0
  10. package/notification-service/dto/app-bulk-push-log/query/index.d.ts +1 -0
  11. package/notification-service/dto/app-bulk-push-log/query/index.js +17 -0
  12. package/notification-service/dto/app-bulk-push-log/query/is-exists-app-bulk-push-log-by-redis-db-key.dto.d.ts +6 -0
  13. package/notification-service/dto/app-bulk-push-log/query/is-exists-app-bulk-push-log-by-redis-db-key.dto.js +23 -0
  14. package/notification-service/dto/index.d.ts +1 -0
  15. package/notification-service/dto/index.js +1 -0
  16. package/notification-service/services/amqp.app-bulk-push-log.service.d.ts +12 -0
  17. package/notification-service/services/amqp.app-bulk-push-log.service.js +39 -0
  18. package/notification-service/services/amqp.app-bulk-push.service.d.ts +8 -0
  19. package/notification-service/services/amqp.app-bulk-push.service.js +33 -0
  20. package/notification-service/services/index.d.ts +2 -0
  21. package/notification-service/services/index.js +2 -0
  22. package/order-server/dto/purchasedinfos/query/get-partial-refund-processes-by-p-info-ids.dto.d.ts +11 -0
  23. package/order-server/dto/purchasedinfos/query/get-partial-refund-processes-by-p-info-ids.dto.js +26 -0
  24. package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
  25. package/order-server/dto/purchasedinfos/query/index.js +1 -0
  26. package/order-server/services/amqp.purchased-info.service.d.ts +2 -1
  27. package/order-server/services/amqp.purchased-info.service.js +3 -0
  28. package/package.json +2 -2
  29. package/payment-service/amqp.payment-service.module.js +2 -0
  30. package/payment-service/dto/index.d.ts +2 -0
  31. package/payment-service/dto/index.js +2 -0
  32. package/payment-service/dto/partial-refund/command/create-partial-refund.dto.d.ts +40 -0
  33. package/payment-service/dto/partial-refund/command/create-partial-refund.dto.js +105 -0
  34. package/payment-service/dto/partial-refund/command/index.d.ts +3 -0
  35. package/payment-service/dto/partial-refund/command/index.js +19 -0
  36. package/payment-service/dto/partial-refund/command/patch-partial-refund-cs-check.dto.d.ts +14 -0
  37. package/payment-service/dto/partial-refund/command/patch-partial-refund-cs-check.dto.js +35 -0
  38. package/payment-service/dto/partial-refund/command/patch-partial-refund-process.dto.d.ts +17 -0
  39. package/payment-service/dto/partial-refund/command/patch-partial-refund-process.dto.js +38 -0
  40. package/payment-service/dto/partial-refund/index.d.ts +2 -0
  41. package/payment-service/dto/partial-refund/index.js +18 -0
  42. package/payment-service/dto/partial-refund/query/index.d.ts +1 -0
  43. package/payment-service/dto/partial-refund/query/index.js +17 -0
  44. package/payment-service/dto/partial-refund/query/search-partial-refunds-for-admin.dto.d.ts +24 -0
  45. package/payment-service/dto/partial-refund/query/search-partial-refunds-for-admin.dto.js +78 -0
  46. package/payment-service/dto/purchased-info/index.d.ts +1 -0
  47. package/payment-service/dto/purchased-info/index.js +17 -0
  48. package/payment-service/dto/purchased-info/query/get-purchased-info-for-partial-refund.dto.d.ts +3 -0
  49. package/payment-service/dto/purchased-info/query/get-purchased-info-for-partial-refund.dto.js +20 -0
  50. package/payment-service/dto/purchased-info/query/index.d.ts +1 -0
  51. package/payment-service/dto/purchased-info/query/index.js +17 -0
  52. package/payment-service/services/amqp.partial-refund.service.d.ts +12 -0
  53. package/payment-service/services/amqp.partial-refund.service.js +42 -0
  54. package/payment-service/services/index.d.ts +1 -0
  55. package/payment-service/services/index.js +1 -0
  56. package/user-service/dto/store/query/get-store-ids-by-store-title.dto.d.ts +6 -0
  57. package/user-service/dto/store/query/get-store-ids-by-store-title.dto.js +24 -0
  58. package/user-service/dto/store/query/get-store-titles-by-store-ids.dto.d.ts +10 -0
  59. package/user-service/dto/store/query/get-store-titles-by-store-ids.dto.js +26 -0
  60. package/user-service/dto/store/query/index.d.ts +2 -0
  61. package/user-service/dto/store/query/index.js +2 -0
  62. package/user-service/dto/user/query/get-user-ids-by-username.dto.d.ts +6 -0
  63. package/user-service/dto/user/query/get-user-ids-by-username.dto.js +24 -0
  64. package/user-service/dto/user/query/get-user-infos-for-partial-refund.dto.d.ts +13 -0
  65. package/user-service/dto/user/query/get-user-infos-for-partial-refund.dto.js +26 -0
  66. package/user-service/dto/user/query/index.d.ts +2 -0
  67. package/user-service/dto/user/query/index.js +2 -0
  68. package/user-service/services/amqp.store.service.d.ts +3 -1
  69. package/user-service/services/amqp.store.service.js +6 -0
  70. package/user-service/services/amqp.user-entity.service.d.ts +3 -0
  71. package/user-service/services/amqp.user-entity.service.js +6 -0
@@ -22,6 +22,8 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
22
22
  services_1.AmqpAppPushSubscribeService,
23
23
  services_1.AmqpAppPushSubscribedUserService,
24
24
  services_1.AmqpMailService,
25
+ services_1.AmqpAppBulkPushLogService,
26
+ services_1.AmqpAppBulkPushService,
25
27
  ],
26
28
  exports: [
27
29
  amqp_notification_service_provider_1.NotifiactionServiceProvider,
@@ -29,6 +31,8 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
29
31
  services_1.AmqpAppPushSubscribeService,
30
32
  services_1.AmqpAppPushSubscribedUserService,
31
33
  services_1.AmqpMailService,
34
+ services_1.AmqpAppBulkPushLogService,
35
+ services_1.AmqpAppBulkPushService,
32
36
  ],
33
37
  })
34
38
  ], AmqpNotificationServiceModule);
@@ -0,0 +1,8 @@
1
+ export declare class EditReservationAppBulkPushLogPayload {
2
+ appPushTitle: string;
3
+ appPushContent: string;
4
+ appUrl: string;
5
+ redisDBKey: string;
6
+ isIgnoreAD: boolean;
7
+ reservationDate: string;
8
+ }
@@ -0,0 +1,40 @@
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.EditReservationAppBulkPushLogPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class EditReservationAppBulkPushLogPayload {
15
+ }
16
+ exports.EditReservationAppBulkPushLogPayload = EditReservationAppBulkPushLogPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], EditReservationAppBulkPushLogPayload.prototype, "appPushTitle", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], EditReservationAppBulkPushLogPayload.prototype, "appPushContent", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], EditReservationAppBulkPushLogPayload.prototype, "appUrl", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], EditReservationAppBulkPushLogPayload.prototype, "redisDBKey", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsBoolean)(),
35
+ __metadata("design:type", Boolean)
36
+ ], EditReservationAppBulkPushLogPayload.prototype, "isIgnoreAD", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ __metadata("design:type", String)
40
+ ], EditReservationAppBulkPushLogPayload.prototype, "reservationDate", void 0);
@@ -0,0 +1,2 @@
1
+ export * from './edit-reservation-app-bulk-push-log.dto';
2
+ export * from './remove-reservation-app-bulk-push-log.dto';
@@ -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("./edit-reservation-app-bulk-push-log.dto"), exports);
18
+ __exportStar(require("./remove-reservation-app-bulk-push-log.dto"), exports);
@@ -0,0 +1,3 @@
1
+ export declare class RemoveReservationAppBulkPushLogPayload {
2
+ redisDBKey: string;
3
+ }
@@ -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.RemoveReservationAppBulkPushLogPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class RemoveReservationAppBulkPushLogPayload {
15
+ }
16
+ exports.RemoveReservationAppBulkPushLogPayload = RemoveReservationAppBulkPushLogPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], RemoveReservationAppBulkPushLogPayload.prototype, "redisDBKey", void 0);
@@ -0,0 +1,2 @@
1
+ export * from './query';
2
+ export * from './command';
@@ -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("./query"), exports);
18
+ __exportStar(require("./command"), exports);
@@ -0,0 +1 @@
1
+ export * from './is-exists-app-bulk-push-log-by-redis-db-key.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("./is-exists-app-bulk-push-log-by-redis-db-key.dto"), exports);
@@ -0,0 +1,6 @@
1
+ export declare class IsExistsAppBulkPushLogByRedisDBKeyPayload {
2
+ redisDBKey: string;
3
+ }
4
+ export declare class IsExistsAppBulkPushLogByRedisDBKeyResult {
5
+ isExists: boolean;
6
+ }
@@ -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.IsExistsAppBulkPushLogByRedisDBKeyResult = exports.IsExistsAppBulkPushLogByRedisDBKeyPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class IsExistsAppBulkPushLogByRedisDBKeyPayload {
15
+ }
16
+ exports.IsExistsAppBulkPushLogByRedisDBKeyPayload = IsExistsAppBulkPushLogByRedisDBKeyPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], IsExistsAppBulkPushLogByRedisDBKeyPayload.prototype, "redisDBKey", void 0);
21
+ class IsExistsAppBulkPushLogByRedisDBKeyResult {
22
+ }
23
+ exports.IsExistsAppBulkPushLogByRedisDBKeyResult = IsExistsAppBulkPushLogByRedisDBKeyResult;
@@ -1 +1,2 @@
1
1
  export * from './mail';
2
+ export * from './app-bulk-push-log';
@@ -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("./mail"), exports);
18
+ __exportStar(require("./app-bulk-push-log"), exports);
@@ -0,0 +1,12 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ /** @dto*/
4
+ import { IsExistsAppBulkPushLogByRedisDBKeyPayload, IsExistsAppBulkPushLogByRedisDBKeyResult, EditReservationAppBulkPushLogPayload, RemoveReservationAppBulkPushLogPayload } from '../dto/app-bulk-push-log';
5
+ export declare class AmqpAppBulkPushLogService {
6
+ private readonly client;
7
+ private readonly amqpManager;
8
+ constructor(client: ClientProxy);
9
+ isExistsAppBulkPushLogByRedisDBKey(payload: IsExistsAppBulkPushLogByRedisDBKeyPayload, param: AbstractParam): Promise<IsExistsAppBulkPushLogByRedisDBKeyResult>;
10
+ editReservationAppBulkPushLog(payload: EditReservationAppBulkPushLogPayload, param: AbstractParam): Promise<void>;
11
+ removeReservationAppBulkPushLog(payload: RemoveReservationAppBulkPushLogPayload, param: AbstractParam): Promise<void>;
12
+ }
@@ -0,0 +1,39 @@
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.AmqpAppBulkPushLogService = 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 AmqpAppBulkPushLogService = class AmqpAppBulkPushLogService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async isExistsAppBulkPushLogByRedisDBKey(payload, param) {
25
+ return this.amqpManager.call('대량 앱 푸시 존재 여부 체크', 'app-bulk-push-log.is-exists.by-redis-db-key', payload, param, { isErrorThrowing: true });
26
+ }
27
+ async editReservationAppBulkPushLog(payload, param) {
28
+ return this.amqpManager.call('예약 대량 푸시 알림 수정', 'app-bulk-push-log.edit.reservation', payload, param, { isErrorThrowing: true });
29
+ }
30
+ async removeReservationAppBulkPushLog(payload, param) {
31
+ return this.amqpManager.call('예약 대량 푸시 알림 삭제', 'app-bulk-push-log.remove.reservation', payload, param, { isErrorThrowing: true });
32
+ }
33
+ };
34
+ exports.AmqpAppBulkPushLogService = AmqpAppBulkPushLogService;
35
+ exports.AmqpAppBulkPushLogService = AmqpAppBulkPushLogService = __decorate([
36
+ (0, common_1.Injectable)(),
37
+ __param(0, (0, common_1.Inject)('NOTIFICATION_SERVICE_PROVIDER')),
38
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
39
+ ], AmqpAppBulkPushLogService);
@@ -0,0 +1,8 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ export declare class AmqpAppBulkPushService {
4
+ private readonly client;
5
+ private readonly amqpManager;
6
+ constructor(client: ClientProxy);
7
+ sendReservationBulkPush(payload: void, param: AbstractParam): Promise<boolean>;
8
+ }
@@ -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.AmqpAppBulkPushService = 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 AmqpAppBulkPushService = class AmqpAppBulkPushService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async sendReservationBulkPush(payload, param) {
25
+ return this.amqpManager.onlyPublish('예약 시간 지난 대상으로 발송 처리', 'app-bulk-push.send.reservation-bulk-push', payload, param);
26
+ }
27
+ };
28
+ exports.AmqpAppBulkPushService = AmqpAppBulkPushService;
29
+ exports.AmqpAppBulkPushService = AmqpAppBulkPushService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('NOTIFICATION_SERVICE_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpAppBulkPushService);
@@ -1,3 +1,5 @@
1
1
  export * from './amqp.app-push-subscribe.service';
2
2
  export * from './amqp.app-push-subscribed-user.service';
3
3
  export * from './amqp.mail.service';
4
+ export * from './amqp.app-bulk-push-log.service';
5
+ export * from './amqp.app-bulk-push.service';
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./amqp.app-push-subscribe.service"), exports);
18
18
  __exportStar(require("./amqp.app-push-subscribed-user.service"), exports);
19
19
  __exportStar(require("./amqp.mail.service"), exports);
20
+ __exportStar(require("./amqp.app-bulk-push-log.service"), exports);
21
+ __exportStar(require("./amqp.app-bulk-push.service"), exports);
@@ -0,0 +1,11 @@
1
+ import { PartialRefundProcessEnum } from '@yolo-croket-dev/entity-v2';
2
+ export declare class GetPartialRefundProcessesByPInfoIdsPayload {
3
+ PInfoIds: string[];
4
+ }
5
+ export declare class PartialRefundProcessByPInfoId {
6
+ PInfoId: string;
7
+ partialRefundProcess?: PartialRefundProcessEnum;
8
+ }
9
+ export declare class GetPartialRefundProcessesByPInfoIdsResult {
10
+ partialRefundProcesses: PartialRefundProcessByPInfoId[];
11
+ }
@@ -0,0 +1,26 @@
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.GetPartialRefundProcessesByPInfoIdsResult = exports.PartialRefundProcessByPInfoId = exports.GetPartialRefundProcessesByPInfoIdsPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetPartialRefundProcessesByPInfoIdsPayload {
15
+ }
16
+ exports.GetPartialRefundProcessesByPInfoIdsPayload = GetPartialRefundProcessesByPInfoIdsPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)({ each: true }),
19
+ __metadata("design:type", Array)
20
+ ], GetPartialRefundProcessesByPInfoIdsPayload.prototype, "PInfoIds", void 0);
21
+ class PartialRefundProcessByPInfoId {
22
+ }
23
+ exports.PartialRefundProcessByPInfoId = PartialRefundProcessByPInfoId;
24
+ class GetPartialRefundProcessesByPInfoIdsResult {
25
+ }
26
+ exports.GetPartialRefundProcessesByPInfoIdsResult = GetPartialRefundProcessesByPInfoIdsResult;
@@ -1,3 +1,4 @@
1
1
  export * from './search-seller-transaction-history-by-process.dto';
2
2
  export * from './get-p-infos-for-manage-buyer.dto';
3
3
  export * from './atlas';
4
+ export * from './get-partial-refund-processes-by-p-info-ids.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./search-seller-transaction-history-by-process.dto"), exports);
18
18
  __exportStar(require("./get-p-infos-for-manage-buyer.dto"), exports);
19
19
  __exportStar(require("./atlas"), exports);
20
+ __exportStar(require("./get-partial-refund-processes-by-p-info-ids.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult } from '../dto/purchasedinfos';
3
+ import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPInfoIdsPayload, GetPartialRefundProcessesByPInfoIdsResult } from '../dto/purchasedinfos';
4
4
  export declare class AmqpPurchasedInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -11,4 +11,5 @@ export declare class AmqpPurchasedInfoService {
11
11
  getPInfoDoneSettleAmountByAtlas(payload: GetPInfoDoneSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoDoneSettleAmountByAtlasResult>;
12
12
  getPInfoExpectSettleAmountByAtlas(payload: GetPInfoExpectSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoExpectSettleAmountByAtlasResult>;
13
13
  getPInfoAccumulatedSettleAmountByAtlas(payload: GetPInfoAccumulatedSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoAccumulatedSettleAmountByAtlasResult>;
14
+ getPartialRefundProcessesByPInfoIds(payload: GetPartialRefundProcessesByPInfoIdsPayload, param: AbstractParam): Promise<GetPartialRefundProcessesByPInfoIdsResult>;
14
15
  }
@@ -39,6 +39,9 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
39
39
  async getPInfoAccumulatedSettleAmountByAtlas(payload, param) {
40
40
  return this.amqpManager.call('atlas 검색 - 스토어 누적 정산금 조회', 'purchased-info.get.accumulated-settle-amount-by-atlas', payload, param, { isErrorThrowing: true });
41
41
  }
42
+ async getPartialRefundProcessesByPInfoIds(payload, param) {
43
+ return this.amqpManager.call('결제 정보 - 부분환불 프로세스 리스트 조회 - 결제 아이디들로', 'purchased-info.get.partial-refund-processes-by-p-info-ids', payload, param, { isErrorThrowing: true });
44
+ }
42
45
  };
43
46
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
44
47
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.115",
3
+ "version": "0.0.117-hj-01",
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/core": "^1.4.52",
23
23
  "@yolo-croket-dev/dto-v2": "^0.0.149",
24
24
  "@yolo-croket-dev/entity": "^0.1.128",
25
- "@yolo-croket-dev/entity-v2": "^0.0.44",
25
+ "@yolo-croket-dev/entity-v2": "^0.0.47-hj-01",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -20,11 +20,13 @@ exports.AmqpPaymentServiceModule = AmqpPaymentServiceModule = __decorate([
20
20
  amqp_payment_service_provider_1.PaymentServiceProvider,
21
21
  amqp_payment_service_service_1.AmqpPaymentService,
22
22
  services_1.AmqpRefundService,
23
+ services_1.AmqpPartialRefundService,
23
24
  ],
24
25
  exports: [
25
26
  amqp_payment_service_provider_1.PaymentServiceProvider,
26
27
  amqp_payment_service_service_1.AmqpPaymentService,
27
28
  services_1.AmqpRefundService,
29
+ services_1.AmqpPartialRefundService,
28
30
  ],
29
31
  })
30
32
  ], AmqpPaymentServiceModule);
@@ -1,2 +1,4 @@
1
1
  export * from './command';
2
2
  export * from './query';
3
+ export * from './partial-refund';
4
+ export * from './purchased-info';
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./command"), exports);
18
18
  __exportStar(require("./query"), exports);
19
+ __exportStar(require("./partial-refund"), exports);
20
+ __exportStar(require("./purchased-info"), exports);
@@ -0,0 +1,40 @@
1
+ import { PartialRefundReasonTypeEnum, PartialRefundTypeEnum, ReturnFeeBearerEnum } from '@yolo-croket-dev/entity-v2';
2
+ export declare class RefundOption {
3
+ optionName: string;
4
+ refundNums: number;
5
+ }
6
+ export declare class RefundOptionInfo {
7
+ refundOptionList: RefundOption[];
8
+ }
9
+ export declare class CreatePartialRefundPayload {
10
+ PInfoId: string;
11
+ refundType: PartialRefundTypeEnum;
12
+ refundOptionInfo?: RefundOptionInfo;
13
+ refundReasonType: PartialRefundReasonTypeEnum;
14
+ refundReasonEtc?: string;
15
+ returnFeeExists: boolean;
16
+ refundPrice?: number;
17
+ returnFee?: number;
18
+ negotiated: boolean;
19
+ returnFeeBearer?: ReturnFeeBearerEnum;
20
+ }
21
+ export declare enum CreatePartialRefundErrorTypeEnum {
22
+ /** @description 이미 부분환불 진행중 */
23
+ ALREADY_PROGRESS = "ALREADY_PROGRESS",
24
+ /** @description 결제정보 없음 */
25
+ NOT_FOUND_P_INFO = "NOT_FOUND_P_INFO",
26
+ /** @description 권한 없음 (구매자나 판매자가 아님) */
27
+ NO_PERMISSION = "NO_PERMISSION",
28
+ /** @description 부분환불을 할 수 없는 결제 프로세스 상태 */
29
+ INVALID_PAYMENT_PROCESS = "INVALID_PAYMENT_PROCESS",
30
+ /** @description 환불할 옵션 정보가 잘못됨 (옵션명 존재 X or 구매수 보다 환불할 수량이 더 많음) */
31
+ INVALID_REFUND_OPTION = "INVALID_REFUND_OPTION",
32
+ /** @description 환불금액 누락 */
33
+ NOT_EXISTS_REFUND_PRICE = "NOT_EXISTS_REFUND_PRICE",
34
+ /** @description 환불금액이 결제한 금액보다 높음 */
35
+ LIMIT_OVER_REFUND_PRICE = "LIMIT_OVER_REFUND_PRICE",
36
+ /** @description 반품비 누락 */
37
+ NOT_EXISTS_RETURN_PRICE = "NOT_EXISTS_RETURN_PRICE",
38
+ /** @description 환불사유 기타 누락 */
39
+ REFUND_REASON_ETC_EMPTY = "REFUND_REASON_ETC_EMPTY"
40
+ }
@@ -0,0 +1,105 @@
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.CreatePartialRefundErrorTypeEnum = exports.CreatePartialRefundPayload = exports.RefundOptionInfo = exports.RefundOption = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
15
+ const class_transformer_1 = require("class-transformer");
16
+ class RefundOption {
17
+ }
18
+ exports.RefundOption = RefundOption;
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ __metadata("design:type", String)
23
+ ], RefundOption.prototype, "optionName", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsNumber)(),
26
+ __metadata("design:type", Number)
27
+ ], RefundOption.prototype, "refundNums", void 0);
28
+ class RefundOptionInfo {
29
+ }
30
+ exports.RefundOptionInfo = RefundOptionInfo;
31
+ __decorate([
32
+ (0, class_validator_1.ValidateNested)({ each: true }),
33
+ (0, class_transformer_1.Type)(() => RefundOption),
34
+ __metadata("design:type", Array)
35
+ ], RefundOptionInfo.prototype, "refundOptionList", void 0);
36
+ class CreatePartialRefundPayload {
37
+ }
38
+ exports.CreatePartialRefundPayload = CreatePartialRefundPayload;
39
+ __decorate([
40
+ (0, class_validator_1.IsMongoId)(),
41
+ __metadata("design:type", String)
42
+ ], CreatePartialRefundPayload.prototype, "PInfoId", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsEnum)(entity_v2_1.PartialRefundTypeEnum),
45
+ __metadata("design:type", String)
46
+ ], CreatePartialRefundPayload.prototype, "refundType", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_transformer_1.Type)(() => RefundOptionInfo),
50
+ __metadata("design:type", RefundOptionInfo)
51
+ ], CreatePartialRefundPayload.prototype, "refundOptionInfo", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsEnum)(entity_v2_1.PartialRefundReasonTypeEnum),
54
+ __metadata("design:type", String)
55
+ ], CreatePartialRefundPayload.prototype, "refundReasonType", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsString)(),
58
+ (0, class_validator_1.IsOptional)(),
59
+ (0, class_validator_1.IsNotEmpty)(),
60
+ __metadata("design:type", String)
61
+ ], CreatePartialRefundPayload.prototype, "refundReasonEtc", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsBoolean)(),
64
+ __metadata("design:type", Boolean)
65
+ ], CreatePartialRefundPayload.prototype, "returnFeeExists", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsNumber)(),
68
+ (0, class_validator_1.IsOptional)(),
69
+ __metadata("design:type", Number)
70
+ ], CreatePartialRefundPayload.prototype, "refundPrice", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsNumber)(),
73
+ (0, class_validator_1.IsOptional)(),
74
+ __metadata("design:type", Number)
75
+ ], CreatePartialRefundPayload.prototype, "returnFee", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.IsBoolean)(),
78
+ __metadata("design:type", Boolean)
79
+ ], CreatePartialRefundPayload.prototype, "negotiated", void 0);
80
+ __decorate([
81
+ (0, class_validator_1.IsEnum)(entity_v2_1.ReturnFeeBearerEnum),
82
+ (0, class_validator_1.IsOptional)(),
83
+ __metadata("design:type", String)
84
+ ], CreatePartialRefundPayload.prototype, "returnFeeBearer", void 0);
85
+ var CreatePartialRefundErrorTypeEnum;
86
+ (function (CreatePartialRefundErrorTypeEnum) {
87
+ /** @description 이미 부분환불 진행중 */
88
+ CreatePartialRefundErrorTypeEnum["ALREADY_PROGRESS"] = "ALREADY_PROGRESS";
89
+ /** @description 결제정보 없음 */
90
+ CreatePartialRefundErrorTypeEnum["NOT_FOUND_P_INFO"] = "NOT_FOUND_P_INFO";
91
+ /** @description 권한 없음 (구매자나 판매자가 아님) */
92
+ CreatePartialRefundErrorTypeEnum["NO_PERMISSION"] = "NO_PERMISSION";
93
+ /** @description 부분환불을 할 수 없는 결제 프로세스 상태 */
94
+ CreatePartialRefundErrorTypeEnum["INVALID_PAYMENT_PROCESS"] = "INVALID_PAYMENT_PROCESS";
95
+ /** @description 환불할 옵션 정보가 잘못됨 (옵션명 존재 X or 구매수 보다 환불할 수량이 더 많음) */
96
+ CreatePartialRefundErrorTypeEnum["INVALID_REFUND_OPTION"] = "INVALID_REFUND_OPTION";
97
+ /** @description 환불금액 누락 */
98
+ CreatePartialRefundErrorTypeEnum["NOT_EXISTS_REFUND_PRICE"] = "NOT_EXISTS_REFUND_PRICE";
99
+ /** @description 환불금액이 결제한 금액보다 높음 */
100
+ CreatePartialRefundErrorTypeEnum["LIMIT_OVER_REFUND_PRICE"] = "LIMIT_OVER_REFUND_PRICE";
101
+ /** @description 반품비 누락 */
102
+ CreatePartialRefundErrorTypeEnum["NOT_EXISTS_RETURN_PRICE"] = "NOT_EXISTS_RETURN_PRICE";
103
+ /** @description 환불사유 기타 누락 */
104
+ CreatePartialRefundErrorTypeEnum["REFUND_REASON_ETC_EMPTY"] = "REFUND_REASON_ETC_EMPTY";
105
+ })(CreatePartialRefundErrorTypeEnum || (exports.CreatePartialRefundErrorTypeEnum = CreatePartialRefundErrorTypeEnum = {}));
@@ -0,0 +1,3 @@
1
+ export * from './create-partial-refund.dto';
2
+ export * from './patch-partial-refund-cs-check.dto';
3
+ export * from './patch-partial-refund-process.dto';
@@ -0,0 +1,19 @@
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-partial-refund.dto"), exports);
18
+ __exportStar(require("./patch-partial-refund-cs-check.dto"), exports);
19
+ __exportStar(require("./patch-partial-refund-process.dto"), exports);