@yolo-croket-dev/amqp-access 0.7.385 → 0.7.387

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.
@@ -38,6 +38,8 @@ export interface BuymaCroketBuyer {
38
38
  username: string | null;
39
39
  }
40
40
  export interface BuymaOrderListItem extends Pick<BuymaOrderEntity, '_id' | 'buymaAccountId' | 'buymaOrderNumber' | 'buymaOrderUrl' | 'createdAt' | 'quantity' | 'buyer' | 'productRevenue' | 'shippingRevenue' | 'reportedTotalRevenue' | 'orderStatus' | 'procurementWorkStatus' | 'holdReason' | 'slackThreadUrls'> {
41
+ /** 목록에 표시하는 바이마 수령인명. 전화번호·주소는 상세 응답에서만 제공한다. */
42
+ recipient?: Pick<NonNullable<BuymaOrderEntity['recipient']>, 'name'> | null;
41
43
  productSnapshot: Pick<BuymaOrderEntity['productSnapshot'], 'storeName' | 'buymaName' | 'croketName' | 'optionName' | 'croketItemUrl' | 'buymaItemUrl'>;
42
44
  payment: Pick<BuymaOrderEntity['payment'], 'status' | 'preOrderedAt' | 'paidAt' | 'preOrderedAtDateOnly' | 'paidAtDateOnly'>;
43
45
  procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'source' | 'croketPurchasedInfoPublicId' | 'allocationStatus' | 'orderUrl' | 'purchaseCost' | 'localShipment'> | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.385",
3
+ "version": "0.7.387",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -7,8 +7,8 @@ import { EditStoreItemPayload } from '../../../store-item/command/edit-store-ite
7
7
  export declare class EditStoreItemByExcelPayloadData extends EditStoreItemPayload {
8
8
  /** worker 재시도 시 동일 수정 행을 식별하는 내부 실행 ID */
9
9
  bulkEditExecutionId?: string;
10
- /** 수정용 Excel을 생성할 당시의 상품 최종 수정 시각 */
11
- sourceLastModifyDate: string;
10
+ /** @deprecated 구버전 작업 호환용이며 상품 버전 검사에는 사용하지 않습니다. */
11
+ sourceLastModifyDate?: string;
12
12
  area: string;
13
13
  nation: string;
14
14
  city: string;
@@ -28,6 +28,7 @@ __decorate([
28
28
  ], EditStoreItemByExcelPayloadData.prototype, "bulkEditExecutionId", void 0);
29
29
  __decorate([
30
30
  (0, class_validator_1.IsDateString)(),
31
+ (0, class_validator_1.IsOptional)(),
31
32
  __metadata("design:type", String)
32
33
  ], EditStoreItemByExcelPayloadData.prototype, "sourceLastModifyDate", void 0);
33
34
  __decorate([
@@ -0,0 +1,14 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { ClaimSignupCertificationPayload, ClaimSignupCertificationResult } from '../dto/signup-certification';
4
+ /**
5
+ * @author 홍준
6
+ * @description 가입 전 본인인증 귀속 AMQP client
7
+ * @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
8
+ */
9
+ export declare class AmqpSignupCertificationService {
10
+ private readonly client;
11
+ private readonly amqpManager;
12
+ constructor(client: ClientProxy);
13
+ claim(payload: ClaimSignupCertificationPayload, param: AbstractParam): Promise<ClaimSignupCertificationResult>;
14
+ }
@@ -0,0 +1,38 @@
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.AmqpSignupCertificationService = 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
+ /**
20
+ * @author 홍준
21
+ * @description 가입 전 본인인증 귀속 AMQP client
22
+ * @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
23
+ */
24
+ let AmqpSignupCertificationService = class AmqpSignupCertificationService {
25
+ constructor(client) {
26
+ this.client = client;
27
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
28
+ }
29
+ async claim(payload, param) {
30
+ return this.amqpManager.call('가입 전 본인인증 사용자 귀속', 'signup-certification.claim', payload, param, { isErrorThrowing: true });
31
+ }
32
+ };
33
+ exports.AmqpSignupCertificationService = AmqpSignupCertificationService;
34
+ exports.AmqpSignupCertificationService = AmqpSignupCertificationService = __decorate([
35
+ (0, common_1.Injectable)(),
36
+ __param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
37
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
38
+ ], AmqpSignupCertificationService);