@yolo-croket-dev/amqp-access 0.7.235 → 0.7.237-sj

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.235",
3
+ "version": "0.7.237-sj",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -28,4 +28,4 @@
28
28
  "class-validator": "^0.13.2",
29
29
  "dotenv": "^16.3.1"
30
30
  }
31
- }
31
+ }
@@ -24,3 +24,4 @@ export * from './update-item-keywords-bulk.dto';
24
24
  export * from './update-is-required-pccc-bulk.dto';
25
25
  export * from './update-store-item-seller-memo.dto';
26
26
  export * from './resume-selling-bulk.dto';
27
+ export * from './refresh-shipping-lead-time-stats.dto';
@@ -40,3 +40,4 @@ __exportStar(require("./update-item-keywords-bulk.dto"), exports);
40
40
  __exportStar(require("./update-is-required-pccc-bulk.dto"), exports);
41
41
  __exportStar(require("./update-store-item-seller-memo.dto"), exports);
42
42
  __exportStar(require("./resume-selling-bulk.dto"), exports);
43
+ __exportStar(require("./refresh-shipping-lead-time-stats.dto"), exports);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @author sj
3
+ * @description 상품의 최근 결제 이력을 기반으로 발송 소요시간 통계를 갱신하는 요청입니다.
4
+ */
5
+ export declare class RefreshShippingLeadTimeStatsPayload {
6
+ itemId: string;
7
+ }
@@ -9,30 +9,16 @@ 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.SnsRoasSourceRow = void 0;
12
+ exports.RefreshShippingLeadTimeStatsPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  /**
15
- * @author jun
16
- * @description SNS ROAS 엑셀 생성에 사용할 광고 소재별 일자 광고비입니다.
17
- * @process 광고 소재명, 일자, USD 광고비의 형식과 범위를 검증합니다.
15
+ * @author sj
16
+ * @description 상품의 최근 결제 이력을 기반으로 발송 소요시간 통계를 갱신하는 요청입니다.
18
17
  */
19
- class SnsRoasSourceRow {
18
+ class RefreshShippingLeadTimeStatsPayload {
20
19
  }
21
- exports.SnsRoasSourceRow = SnsRoasSourceRow;
20
+ exports.RefreshShippingLeadTimeStatsPayload = RefreshShippingLeadTimeStatsPayload;
22
21
  __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
22
+ (0, class_validator_1.IsMongoId)(),
25
23
  __metadata("design:type", String)
26
- ], SnsRoasSourceRow.prototype, "adName", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsDateString)({ strict: true }),
29
- __metadata("design:type", String)
30
- ], SnsRoasSourceRow.prototype, "date", void 0);
31
- __decorate([
32
- (0, class_validator_1.IsNumber)({
33
- allowInfinity: false,
34
- allowNaN: false,
35
- }),
36
- (0, class_validator_1.Min)(0),
37
- __metadata("design:type", Number)
38
- ], SnsRoasSourceRow.prototype, "spendUsd", void 0);
24
+ ], RefreshShippingLeadTimeStatsPayload.prototype, "itemId", void 0);
@@ -32,6 +32,24 @@ __decorate([
32
32
  (0, class_transformer_1.Type)(() => UpdateItemKeywordsBulkData),
33
33
  __metadata("design:type", Array)
34
34
  ], UpdateItemKeywordsBulkPayload.prototype, "itemInfos", void 0);
35
+ // export enum ItemKeywordBulkFailureResolution {
36
+ // OVERWRITE_AVAILABLE = 'OVERWRITE_AVAILABLE',
37
+ // NOT_AVAILABLE = 'NOT_AVAILABLE',
38
+ // }
39
+ // export class ItemKeywordBulkFailure {
40
+ // itemId!: string;
41
+ // reasonCode!: string;
42
+ // reasonMessage!: string;
43
+ // resolution!: ItemKeywordBulkFailureResolution;
44
+ // existingItemKeywords!: StoreItemKeyword[];
45
+ // requestedItemKeywords!: StoreItemKeyword[];
46
+ // }
35
47
  class UpdateItemKeywordsBulkResult {
36
48
  }
37
49
  exports.UpdateItemKeywordsBulkResult = UpdateItemKeywordsBulkResult;
50
+ // export class OverwriteItemKeywordsBulkPayload {
51
+ // @IsArray()
52
+ // @ValidateNested({ each: true })
53
+ // @Type(() => UpdateItemKeywordsBulkData)
54
+ // itemInfos!: UpdateItemKeywordsBulkData[];
55
+ // }
@@ -18,6 +18,7 @@ export declare class GetItemGroupNumsPayload {
18
18
  maxPrice?: number;
19
19
  includeItemIds?: string[];
20
20
  brandName?: string;
21
+ includeUsedItems?: boolean;
21
22
  }
22
23
  interface CategoryGroup {
23
24
  mainCategory: string;
@@ -85,6 +85,11 @@ __decorate([
85
85
  (0, class_validator_1.IsOptional)(),
86
86
  __metadata("design:type", String)
87
87
  ], GetItemGroupNumsPayload.prototype, "brandName", void 0);
88
+ __decorate([
89
+ (0, class_validator_1.IsBoolean)(),
90
+ (0, class_validator_1.IsOptional)(),
91
+ __metadata("design:type", Boolean)
92
+ ], GetItemGroupNumsPayload.prototype, "includeUsedItems", void 0);
88
93
  class GetItemGroupNumsResult {
89
94
  }
90
95
  exports.GetItemGroupNumsResult = GetItemGroupNumsResult;
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload, GetStoreInfosByItemIdsPayload, GetStoreInfosByItemIdsResult, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload, UpdateNaverEnabledBulkPayload, UpdateIsRequiredPCCCBulkPayload, UpdateIsRequiredPCCCBulkResult, UpdateStoreItemSellerMemoPayload, UpdateStoreItemSellerMemoResult, GetStoreItemSellerMemoPayload, GetStoreItemSellerMemoResult, ResumeSellingSelectedBulkPayload, ResumeSellingAllBulkPayload, ResumeSellingBulkResult, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult } from '../dto/store-item';
3
+ import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload, GetStoreInfosByItemIdsPayload, GetStoreInfosByItemIdsResult, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload, UpdateNaverEnabledBulkPayload, UpdateIsRequiredPCCCBulkPayload, UpdateIsRequiredPCCCBulkResult, UpdateStoreItemSellerMemoPayload, UpdateStoreItemSellerMemoResult, GetStoreItemSellerMemoPayload, GetStoreItemSellerMemoResult, ResumeSellingSelectedBulkPayload, ResumeSellingAllBulkPayload, ResumeSellingBulkResult, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult, RefreshShippingLeadTimeStatsPayload } from '../dto/store-item';
4
4
  export declare class AmqpStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -24,6 +24,8 @@ export declare class AmqpStoreItemService {
24
24
  getStoreItemSellerMemo(payload: GetStoreItemSellerMemoPayload, param: AbstractParam): Promise<GetStoreItemSellerMemoResult>;
25
25
  /** 셀러 상품 관리 메모를 수정한다. */
26
26
  updateStoreItemSellerMemo(payload: UpdateStoreItemSellerMemoPayload, param: AbstractParam): Promise<UpdateStoreItemSellerMemoResult>;
27
+ /** 상품의 실제 발송 소요시간 통계를 갱신한다. */
28
+ refreshShippingLeadTimeStats(payload: RefreshShippingLeadTimeStatsPayload, param: AbstractParam): Promise<void>;
27
29
  getStoreItemsForEs(payload: GetStoreItemsForESPayload, param: AbstractParam): Promise<GetStoreItemsForESResult>;
28
30
  getStoreItemInfoById(payload: GetStoreItemInfoByIdPayload, param: AbstractParam): Promise<GetStoreItemInfoByIdResult>;
29
31
  searchStoreItemNameById(payload: SearchStoreItemNameByIdPayload, param: AbstractParam): Promise<SearchStoreItemNameByIdResult>;
@@ -58,6 +58,10 @@ let AmqpStoreItemService = class AmqpStoreItemService {
58
58
  async updateStoreItemSellerMemo(payload, param) {
59
59
  return this.amqpManager.call('셀러 상품 관리 메모 수정', 'store-item.update.seller-memo', payload, param, { isErrorThrowing: true });
60
60
  }
61
+ /** 상품의 실제 발송 소요시간 통계를 갱신한다. */
62
+ async refreshShippingLeadTimeStats(payload, param) {
63
+ return this.amqpManager.call('상품 발송 소요시간 통계 갱신', 'store-item.update.shipping-lead-time-stats', payload, param, { isErrorThrowing: true });
64
+ }
61
65
  async getStoreItemsForEs(payload, param) {
62
66
  return this.amqpManager.call('es sync 처리를 위해 상품 리스트 조회', 'store-item.get.store-items-for-es', payload, param, { isErrorThrowing: true });
63
67
  }
@@ -1,15 +0,0 @@
1
- /**
2
- * @author jun
3
- * @description SNS ROAS 엑셀 생성 AMQP 응답입니다.
4
- * @process 생성된 파일과 처리 범위 및 처리 건수를 호출 서버에 반환합니다.
5
- */
6
- export interface CreateSnsRoasReportExcelResult {
7
- downloadUrl: string;
8
- endDate: string;
9
- exchangeRateKrwPerUsd: number;
10
- fileName: string;
11
- resultRowCount: number;
12
- sourceRowCount: number;
13
- startDate: string;
14
- transactionCount: number;
15
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * @author jun
3
- * @description SNS ROAS 엑셀 생성에 사용할 광고 소재별 일자 광고비입니다.
4
- * @process 광고 소재명, 일자, USD 광고비의 형식과 범위를 검증합니다.
5
- */
6
- export declare class SnsRoasSourceRow {
7
- adName: string;
8
- date: string;
9
- spendUsd: number;
10
- }
@@ -1,34 +0,0 @@
1
- /** @description 관리자용 일괄 송장 등록/수정 개별 처리 결과 */
2
- export interface UpsertInvoiceBulkForAdminResultItem {
3
- pInfoId: string;
4
- failType?: string;
5
- reason?: string;
6
- }
7
- /**
8
- * @author jun
9
- * @description 관리자용 일괄 송장 등록/수정 payload
10
- */
11
- export declare class UpsertInvoiceBulkForAdminPayload {
12
- /** 송장을 등록하거나 수정할 결제정보 ID 목록 */
13
- pInfoIds: string[];
14
- /** 택배사명 */
15
- SCompany: string;
16
- /** 송장번호 */
17
- invoice: string;
18
- /** 배송 조회 URL */
19
- invoiceUrl?: string;
20
- /** 택배사 직접 입력 여부 */
21
- isDirectInput: boolean;
22
- /** 구매자 알림 발송 여부 */
23
- isNoti: boolean;
24
- }
25
- /**
26
- * @author jun
27
- * @description 관리자용 일괄 송장 등록/수정 결과
28
- */
29
- export declare class UpsertInvoiceBulkForAdminResult {
30
- allCount: number;
31
- successCount: number;
32
- failCount: number;
33
- results: UpsertInvoiceBulkForAdminResultItem[];
34
- }
@@ -1,56 +0,0 @@
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.UpsertInvoiceBulkForAdminResult = exports.UpsertInvoiceBulkForAdminPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- /**
15
- * @author jun
16
- * @description 관리자용 일괄 송장 등록/수정 payload
17
- */
18
- class UpsertInvoiceBulkForAdminPayload {
19
- }
20
- exports.UpsertInvoiceBulkForAdminPayload = UpsertInvoiceBulkForAdminPayload;
21
- __decorate([
22
- (0, class_validator_1.IsArray)(),
23
- (0, class_validator_1.ArrayMinSize)(1),
24
- (0, class_validator_1.ArrayMaxSize)(50),
25
- (0, class_validator_1.ArrayUnique)(),
26
- (0, class_validator_1.IsMongoId)({ each: true }),
27
- __metadata("design:type", Array)
28
- ], UpsertInvoiceBulkForAdminPayload.prototype, "pInfoIds", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsString)(),
31
- __metadata("design:type", String)
32
- ], UpsertInvoiceBulkForAdminPayload.prototype, "SCompany", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsString)(),
35
- __metadata("design:type", String)
36
- ], UpsertInvoiceBulkForAdminPayload.prototype, "invoice", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsOptional)(),
39
- (0, class_validator_1.IsString)(),
40
- __metadata("design:type", String)
41
- ], UpsertInvoiceBulkForAdminPayload.prototype, "invoiceUrl", void 0);
42
- __decorate([
43
- (0, class_validator_1.IsBoolean)(),
44
- __metadata("design:type", Boolean)
45
- ], UpsertInvoiceBulkForAdminPayload.prototype, "isDirectInput", void 0);
46
- __decorate([
47
- (0, class_validator_1.IsBoolean)(),
48
- __metadata("design:type", Boolean)
49
- ], UpsertInvoiceBulkForAdminPayload.prototype, "isNoti", void 0);
50
- /**
51
- * @author jun
52
- * @description 관리자용 일괄 송장 등록/수정 결과
53
- */
54
- class UpsertInvoiceBulkForAdminResult {
55
- }
56
- exports.UpsertInvoiceBulkForAdminResult = UpsertInvoiceBulkForAdminResult;