@yolo-croket-dev/amqp-access 0.7.86 → 0.7.87-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.86",
3
+ "version": "0.7.87-hj-1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -7,3 +7,4 @@ export * from './get-seller-email.dto';
7
7
  export * from './get-duplicate-users-by-phone-number.dto';
8
8
  export * from './get-user-ids-for-time-deal-push.dto';
9
9
  export * from './get-marketing-receive-by-phone-numbers.dto';
10
+ export * from './is-unlimited-benefit-user-id.dto';
@@ -23,3 +23,4 @@ __exportStar(require("./get-seller-email.dto"), exports);
23
23
  __exportStar(require("./get-duplicate-users-by-phone-number.dto"), exports);
24
24
  __exportStar(require("./get-user-ids-for-time-deal-push.dto"), exports);
25
25
  __exportStar(require("./get-marketing-receive-by-phone-numbers.dto"), exports);
26
+ __exportStar(require("./is-unlimited-benefit-user-id.dto"), exports);
@@ -0,0 +1,3 @@
1
+ export declare class IsUnlimitedBenefitUserIdPayload {
2
+ userId: 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.IsUnlimitedBenefitUserIdPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class IsUnlimitedBenefitUserIdPayload {
15
+ }
16
+ exports.IsUnlimitedBenefitUserIdPayload = IsUnlimitedBenefitUserIdPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], IsUnlimitedBenefitUserIdPayload.prototype, "userId", void 0);
@@ -3,7 +3,7 @@ import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  /** @dto -v2 */
4
4
  import { DecodePhoneNumbersPayload, PhoneDecodedData } from '@yolo-croket-dev/dto-v2/user-service';
5
5
  import { SaveShippingAddressPayload } from '../dto/user/command/save-shipping-address.dto';
6
- import { GetDuplicateUsersByPhoneNumberPayload, GetDuplicateUsersByPhoneNumberResult, GetUserIdsByUsernamePayload, GetUserIdsByUsernameResult, GetUserInfosForPartialRefundPayload, GetUserInfosForPartialRefundResult, IssueSignupRewardPayload, IssueSignupRewardResult, PatchGenderAndBirthdayPayload, SaveSystemAppPushAcceptPayload, IssueInflowSignupRewardResult, VerificationPhoneForSnsUserPayload, SignInGuestUserPayload, SignInGuestUserResult, UpdateGuestUsernamePayload, AppSwitchingRewardPayload, AppSwitchingRewardResult, GetUserIdsForTimeDealPushPayload, GetUserIdsForTimeDealPushResult, GetMarketingReceiveByPhoneNumbersResult, GetMarketingReceiveByPhoneNumbersPayload } from '../dto';
6
+ import { GetDuplicateUsersByPhoneNumberPayload, GetDuplicateUsersByPhoneNumberResult, GetUserIdsByUsernamePayload, GetUserIdsByUsernameResult, GetUserInfosForPartialRefundPayload, GetUserInfosForPartialRefundResult, IssueSignupRewardPayload, IssueSignupRewardResult, PatchGenderAndBirthdayPayload, SaveSystemAppPushAcceptPayload, IssueInflowSignupRewardResult, VerificationPhoneForSnsUserPayload, SignInGuestUserPayload, SignInGuestUserResult, UpdateGuestUsernamePayload, AppSwitchingRewardPayload, AppSwitchingRewardResult, GetUserIdsForTimeDealPushPayload, GetUserIdsForTimeDealPushResult, GetMarketingReceiveByPhoneNumbersResult, GetMarketingReceiveByPhoneNumbersPayload, IsUnlimitedBenefitUserIdPayload } from '../dto';
7
7
  /** 기존 userService 와 이름이 겹쳐 userEntityService로 임시 사용 */
8
8
  export declare class AmqpUserEntityService {
9
9
  private readonly client;
@@ -24,4 +24,5 @@ export declare class AmqpUserEntityService {
24
24
  appSwitchingReward(payload: AppSwitchingRewardPayload, param: AbstractParam): Promise<AppSwitchingRewardResult>;
25
25
  getUserIdsForTimeDealPush(payload: GetUserIdsForTimeDealPushPayload, param: AbstractParam): Promise<GetUserIdsForTimeDealPushResult>;
26
26
  getMarketingReceiveByPhoneNumbers(payload: GetMarketingReceiveByPhoneNumbersPayload, param: AbstractParam): Promise<GetMarketingReceiveByPhoneNumbersResult[]>;
27
+ isUnlimitedBenefitUserId(payload: IsUnlimitedBenefitUserIdPayload, param: AbstractParam): Promise<boolean>;
27
28
  }
@@ -67,6 +67,9 @@ let AmqpUserEntityService = class AmqpUserEntityService {
67
67
  async getMarketingReceiveByPhoneNumbers(payload, param) {
68
68
  return this.amqpManager.call('유저 - 마케팅 수신 동의 여부 조회', 'user.get.marketing-receive-by-phone-numbers', payload, param, { isErrorThrowing: true });
69
69
  }
70
+ async isUnlimitedBenefitUserId(payload, param) {
71
+ return this.amqpManager.call('유저 - 크레딧, 쿠폰 제한 없는 유저 여부 조회', 'user.get.is-unlimited-benefit-user-id', payload, param, { isErrorThrowing: true });
72
+ }
70
73
  };
71
74
  exports.AmqpUserEntityService = AmqpUserEntityService;
72
75
  exports.AmqpUserEntityService = AmqpUserEntityService = __decorate([
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Read(//Users/jun/Desktop/code/work/monorepo/**)",
5
- "Bash(npm ls:*)",
6
- "Bash(cd:*)",
7
- "WebFetch(domain:developers.nicepay.co.kr)",
8
- "Bash(npx lerna:*)"
9
- ]
10
- }
11
- }