@yolo-croket-dev/amqp-access 0.7.419 → 0.7.421

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.
@@ -136,3 +136,13 @@ export interface ReceiveBuymaWebhookResult {
136
136
  duplicate: boolean;
137
137
  result: 'APPLIED' | 'EXCLUDED';
138
138
  }
139
+ /** @author jun @description 기존 n8n 주문 알림 링크 추가. @process 주문 반영 후 별도 인증 경로에서 호출하며 고객 원문을 전달하지 않는다. */
140
+ export declare class AppendBuymaSlackLinkPayload {
141
+ buymaAccountId: string;
142
+ buymaOrderNumber: string;
143
+ slackThreadUrl: string;
144
+ }
145
+ export interface AppendBuymaSlackLinkResult {
146
+ orderId: string;
147
+ added: boolean;
148
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ReceiveBuymaWebhookPayload = exports.RecordBuymaRefundPayload = exports.ChangeBuymaOrderStatusPayload = exports.ConnectBuymaProcurementPayload = exports.ConfirmBuymaPaymentPayload = exports.UpdateBuymaOrderPayload = exports.BuymaOrderCommandPayload = exports.BuymaManualFieldsPayload = exports.BuymaInternationalShipmentPayload = exports.BuymaProcurementDetailsPayload = exports.BuymaLocalShipmentPayload = exports.BuymaProductMetadataPayload = exports.BuymaRecipientPayload = exports.BuymaSettlementPayload = exports.BuymaSettlementMoneyPayload = exports.BuymaMoneyPayload = void 0;
12
+ exports.AppendBuymaSlackLinkPayload = exports.ReceiveBuymaWebhookPayload = exports.RecordBuymaRefundPayload = exports.ChangeBuymaOrderStatusPayload = exports.ConnectBuymaProcurementPayload = exports.ConfirmBuymaPaymentPayload = exports.UpdateBuymaOrderPayload = exports.BuymaOrderCommandPayload = exports.BuymaManualFieldsPayload = exports.BuymaInternationalShipmentPayload = exports.BuymaProcurementDetailsPayload = exports.BuymaLocalShipmentPayload = exports.BuymaProductMetadataPayload = exports.BuymaRecipientPayload = exports.BuymaSettlementPayload = exports.BuymaSettlementMoneyPayload = exports.BuymaMoneyPayload = void 0;
13
13
  /** @author jun @description Buyma 변경 계약. @process 허용 필드·수정 버전·담당자와 선택 입력을 정의한다. */
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
@@ -585,3 +585,23 @@ __decorate([
585
585
  (0, class_validator_1.Matches)(/^[a-f0-9]{64}$/),
586
586
  __metadata("design:type", String)
587
587
  ], ReceiveBuymaWebhookPayload.prototype, "rawSha256", void 0);
588
+ /** @author jun @description 기존 n8n 주문 알림 링크 추가. @process 주문 반영 후 별도 인증 경로에서 호출하며 고객 원문을 전달하지 않는다. */
589
+ class AppendBuymaSlackLinkPayload {
590
+ }
591
+ exports.AppendBuymaSlackLinkPayload = AppendBuymaSlackLinkPayload;
592
+ __decorate([
593
+ (0, class_validator_1.IsString)(),
594
+ (0, class_validator_1.Matches)(/^\d{1,100}$/),
595
+ __metadata("design:type", String)
596
+ ], AppendBuymaSlackLinkPayload.prototype, "buymaAccountId", void 0);
597
+ __decorate([
598
+ (0, class_validator_1.IsString)(),
599
+ (0, class_validator_1.Matches)(/^\d{1,100}$/),
600
+ __metadata("design:type", String)
601
+ ], AppendBuymaSlackLinkPayload.prototype, "buymaOrderNumber", void 0);
602
+ __decorate([
603
+ (0, class_validator_1.IsString)(),
604
+ (0, class_validator_1.MaxLength)(500),
605
+ (0, class_validator_1.Matches)(/^https:\/\/yeogooworkspace\.slack\.com\/archives\/C07NJLSQSLB\/p\d{16,20}$/),
606
+ __metadata("design:type", String)
607
+ ], AppendBuymaSlackLinkPayload.prototype, "slackThreadUrl", void 0);
@@ -37,10 +37,10 @@ export interface BuymaCroketBuyer {
37
37
  buyerId: string | null;
38
38
  username: string | null;
39
39
  }
40
- export interface BuymaOrderListItem extends Pick<BuymaOrderEntity, '_id' | 'buymaAccountId' | 'buymaOrderNumber' | 'buymaOrderUrl' | 'createdAt' | 'quantity' | 'buyer' | 'productRevenue' | 'shippingRevenue' | 'reportedTotalRevenue' | 'orderStatus' | 'procurementWorkStatus' | 'slackThreadUrls'> {
40
+ export interface BuymaOrderListItem extends Pick<BuymaOrderEntity, '_id' | 'buymaAccountId' | 'buymaOrderNumber' | 'buymaOrderUrl' | 'createdAt' | 'quantity' | 'buyer' | 'productRevenue' | 'shippingRevenue' | 'reportedTotalRevenue' | 'orderStatus' | 'procurementWorkStatus' | 'slackThreadUrls' | 'buymaShippingServiceName'> {
41
41
  /** 목록에 표시하는 바이마 수령인명. 전화번호·주소는 상세 응답에서만 제공한다. */
42
42
  recipient?: Pick<NonNullable<BuymaOrderEntity['recipient']>, 'name'> | null;
43
- productSnapshot: Pick<BuymaOrderEntity['productSnapshot'], 'storeName' | 'buymaName' | 'croketName' | 'optionName' | 'croketItemUrl' | 'buymaItemUrl'>;
43
+ productSnapshot: Pick<BuymaOrderEntity['productSnapshot'], 'storeName' | 'buymaName' | 'croketName' | 'optionName' | 'croketItemUrl' | 'buymaItemUrl' | 'buymaProductId'>;
44
44
  payment: Pick<BuymaOrderEntity['payment'], 'status' | 'preOrderedAt' | 'paidAt' | 'preOrderedAtDateOnly' | 'paidAtDateOnly'>;
45
45
  procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'source' | 'croketPurchasedInfoPublicId' | 'allocationStatus' | 'orderUrl' | 'purchaseCost' | 'localShipment'> | null;
46
46
  internationalShipment: Pick<NonNullable<BuymaOrderEntity['internationalShipment']>, 'carrierName' | 'trackingNumber' | 'trackingUrl' | 'shippingCost'> | null;
@@ -14,4 +14,5 @@ export declare class AmqpBuymaOrderService {
14
14
  changeStatus(payload: DTO.ChangeBuymaOrderStatusPayload, param: AbstractParam): Promise<DTO.UpdateBuymaOrderResult>;
15
15
  recordRefund(payload: DTO.RecordBuymaRefundPayload, param: AbstractParam): Promise<DTO.UpdateBuymaOrderResult>;
16
16
  receiveWebhook(payload: DTO.ReceiveBuymaWebhookPayload, param: AbstractParam): Promise<DTO.ReceiveBuymaWebhookResult>;
17
+ appendSlackLink(payload: DTO.AppendBuymaSlackLinkPayload, param: AbstractParam): Promise<DTO.AppendBuymaSlackLinkResult>;
17
18
  }
@@ -51,6 +51,9 @@ let AmqpBuymaOrderService = class AmqpBuymaOrderService {
51
51
  receiveWebhook(payload, param) {
52
52
  return this.manager.call('Buyma 웹훅 접수', 'buyma-order.receive.webhook', payload, param, { isErrorThrowing: true });
53
53
  }
54
+ appendSlackLink(payload, param) {
55
+ return this.manager.call('Buyma Slack 이력 자동 연결', 'buyma-order.append.slack-link', payload, param, { isErrorThrowing: true });
56
+ }
54
57
  };
55
58
  exports.AmqpBuymaOrderService = AmqpBuymaOrderService;
56
59
  exports.AmqpBuymaOrderService = AmqpBuymaOrderService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.419",
3
+ "version": "0.7.421",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -24,7 +24,7 @@
24
24
  "@yolo-croket-dev/domain": "0.2.50",
25
25
  "@yolo-croket-dev/dto-v2": "0.2.37",
26
26
  "@yolo-croket-dev/entity": "0.2.111",
27
- "@yolo-croket-dev/entity-v2": "0.3.69",
27
+ "@yolo-croket-dev/entity-v2": "0.3.70",
28
28
  "class-transformer": "^0.5.1",
29
29
  "class-validator": "^0.13.2",
30
30
  "dotenv": "^16.3.1"
@@ -1,6 +1,6 @@
1
1
  import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
2
2
  import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
3
- declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
3
+ declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
4
4
  /** 구글 시트용 광고센터정산 데이터 */
5
5
  export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
6
6
  storeInfo: {