@yolo-croket-dev/amqp-access 0.6.50 → 0.6.51-hj-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.
@@ -3,3 +3,4 @@ export * from './write-normal-store-item-pay-try-log-after.dto';
3
3
  export * from './write-cart-store-item-pay-try-log-init.service.dto';
4
4
  export * from './test-pay';
5
5
  export * from './store-item-payment';
6
+ export * from './update-guest-user-author.dto';
@@ -19,3 +19,4 @@ __exportStar(require("./write-normal-store-item-pay-try-log-after.dto"), exports
19
19
  __exportStar(require("./write-cart-store-item-pay-try-log-init.service.dto"), exports);
20
20
  __exportStar(require("./test-pay"), exports);
21
21
  __exportStar(require("./store-item-payment"), exports);
22
+ __exportStar(require("./update-guest-user-author.dto"), exports);
@@ -0,0 +1,4 @@
1
+ export declare class UpdateGuestUserAuthorPayload {
2
+ payTryLogId: string;
3
+ userId: string;
4
+ }
@@ -0,0 +1,24 @@
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.UpdateGuestUserAuthorPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class UpdateGuestUserAuthorPayload {
15
+ }
16
+ exports.UpdateGuestUserAuthorPayload = UpdateGuestUserAuthorPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], UpdateGuestUserAuthorPayload.prototype, "payTryLogId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsMongoId)(),
23
+ __metadata("design:type", String)
24
+ ], UpdateGuestUserAuthorPayload.prototype, "userId", void 0);
@@ -22,5 +22,5 @@ export declare class WriteNormalStoreItemPayTryLogInitResult {
22
22
  regDate: Date;
23
23
  payProcess: string;
24
24
  payTryLogType: string;
25
- buyerId: string;
25
+ buyerId?: string;
26
26
  }
@@ -2,7 +2,7 @@ import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { GetPayTryLogsForEsPayload, GetPayTryLogsForEsResult, GetPayTryLogsForEsByIdsPayload, GetPayTryLogsForEsByIdsResult } from '@yolo-croket-dev/dto-v2/order-server/pay-try-log';
4
4
  import { BindIssuedReceiptCouponForPayment } from '@yolo-croket-dev/domain';
5
- import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult, GetPayTryLogStoreItemIdsForEventBannerPayload } from '../dto/pay-try-log';
5
+ import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload, UpdateIssuedCouponNormalPayload, UpdateIssuedReceiptCouponPayload, GetAppliedIssuedCouponPayload, GetAppliedIssuedCouponResult, GetIssuedCouponsForPaymentPayload, GetIssuedCouponsForPaymentResult, GetMaxDiscountCouponsForPaymentsPayload, GetMaxDiscountCouponsForPaymentsResult, GetIssuedReceiptCouponsForPaymentPayload, CheckAppliedIssuedCouponPayload, UpdateMaxDiscountCouponsPayload, UpdateMaxDiscountCouponsResult, GetPayTryLogStoreItemIdsForEventBannerPayload, UpdateGuestUserAuthorPayload } from '../dto/pay-try-log';
6
6
  export declare class AmqpPayTryLogService {
7
7
  private readonly client;
8
8
  private readonly amqpManager;
@@ -24,4 +24,5 @@ export declare class AmqpPayTryLogService {
24
24
  checkAppliedIssuedCoupon(payload: CheckAppliedIssuedCouponPayload, param: AbstractParam): Promise<void>;
25
25
  updateMaxDiscountCoupons(payload: UpdateMaxDiscountCouponsPayload, param: AbstractParam): Promise<UpdateMaxDiscountCouponsResult>;
26
26
  getPayTryLogStoreItemIdsByEventBanner(payload: GetPayTryLogStoreItemIdsForEventBannerPayload, param: AbstractParam): Promise<string[]>;
27
+ updateGuestUserAuthor(payload: UpdateGuestUserAuthorPayload, param: AbstractParam): Promise<void>;
27
28
  }
@@ -76,6 +76,9 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
76
76
  async getPayTryLogStoreItemIdsByEventBanner(payload, param) {
77
77
  return this.amqpManager.call('결제 시도 로그의 스토어 상품 아이디 리스트 조회 (이벤트 배너용)', 'pay-try-log.get.store-item-ids-for-event-banner', payload, param, { isErrorThrowing: true });
78
78
  }
79
+ async updateGuestUserAuthor(payload, param) {
80
+ return this.amqpManager.call('결제 시도 로그의 게스트 유저 작성자 업데이트', 'pay-try-log.update.guest-user-author', payload, param, { isErrorThrowing: true });
81
+ }
79
82
  };
80
83
  exports.AmqpPayTryLogService = AmqpPayTryLogService;
81
84
  exports.AmqpPayTryLogService = AmqpPayTryLogService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.6.50",
3
+ "version": "0.6.51-hj-1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -21,7 +21,7 @@
21
21
  "@yolo-croket-dev/core": "1.8.8",
22
22
  "@yolo-croket-dev/domain": "^0.2.12",
23
23
  "@yolo-croket-dev/dto-v2": "^0.2.2",
24
- "@yolo-croket-dev/entity": "^0.2.47",
24
+ "@yolo-croket-dev/entity": "0.2.49-hj-1",
25
25
  "@yolo-croket-dev/entity-v2": "0.2.69",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
@@ -4,3 +4,5 @@ export * from './issue-signup-reward.dto';
4
4
  export * from './patch-gender-and-birthday.dto';
5
5
  export * from './issue-inflow-signup-reward.dto';
6
6
  export * from './verification-phone-for-sns-user.dto';
7
+ export * from './sign-in-guest-user.dto';
8
+ export * from './sign-up-guest-user.dto';
@@ -20,3 +20,5 @@ __exportStar(require("./issue-signup-reward.dto"), exports);
20
20
  __exportStar(require("./patch-gender-and-birthday.dto"), exports);
21
21
  __exportStar(require("./issue-inflow-signup-reward.dto"), exports);
22
22
  __exportStar(require("./verification-phone-for-sns-user.dto"), exports);
23
+ __exportStar(require("./sign-in-guest-user.dto"), exports);
24
+ __exportStar(require("./sign-up-guest-user.dto"), exports);
@@ -0,0 +1,8 @@
1
+ export declare class SignInGuestUserPayload {
2
+ phoneNumber: string;
3
+ }
4
+ export interface SignInGuestUserResult {
5
+ access_token: string;
6
+ refresh_token: string;
7
+ userId: string;
8
+ }
@@ -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.SignInGuestUserPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SignInGuestUserPayload {
15
+ }
16
+ exports.SignInGuestUserPayload = SignInGuestUserPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], SignInGuestUserPayload.prototype, "phoneNumber", void 0);
@@ -0,0 +1,5 @@
1
+ import { SignInGuestUserPayload, SignInGuestUserResult } from './sign-in-guest-user.dto';
2
+ export declare class SignUpGuestUserPayload extends SignInGuestUserPayload {
3
+ }
4
+ export interface SignUpGuestUserResult extends SignInGuestUserResult {
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SignUpGuestUserPayload = void 0;
4
+ const sign_in_guest_user_dto_1 = require("./sign-in-guest-user.dto");
5
+ class SignUpGuestUserPayload extends sign_in_guest_user_dto_1.SignInGuestUserPayload {
6
+ }
7
+ exports.SignUpGuestUserPayload = SignUpGuestUserPayload;