@yolo-croket-dev/amqp-access 0.4.40 → 0.4.41-jun.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/image-server/dto/image/command/html-to-img.dto.d.ts +15 -0
- package/image-server/dto/image/command/html-to-img.dto.js +40 -0
- package/image-server/dto/image/command/index.d.ts +1 -0
- package/image-server/dto/image/command/index.js +1 -0
- package/image-server/services/amqp.image.service.d.ts +2 -1
- package/image-server/services/amqp.image.service.js +3 -0
- package/package.json +1 -1
- package/store-item-server/dto/selling-info-log/query/index.d.ts +1 -0
- package/store-item-server/dto/selling-info-log/query/index.js +1 -0
- package/store-item-server/dto/selling-info-log/query/search-selling-info-log-info-for-sabang.dto.d.ts +10 -0
- package/store-item-server/dto/selling-info-log/query/search-selling-info-log-info-for-sabang.dto.js +49 -0
- package/store-item-server/dto/store-item/command/reg-store-item.dto.d.ts +1 -0
- package/store-item-server/dto/store-item/command/reg-store-item.dto.js +5 -0
- package/store-item-server/dto/store-item/query/get-stale-store-items-for-excel.dto.d.ts +21 -0
- package/store-item-server/dto/store-item/query/get-stale-store-items-for-excel.dto.js +27 -0
- package/store-item-server/dto/store-item/query/index.d.ts +1 -0
- package/store-item-server/dto/store-item/query/index.js +1 -0
- package/store-item-server/dto/store-item-sabang/command/index.d.ts +1 -0
- package/store-item-server/dto/store-item-sabang/command/index.js +17 -0
- package/store-item-server/dto/store-item-sabang/command/reg-store-item-by-sabang.dto.d.ts +46 -0
- package/store-item-server/dto/store-item-sabang/command/reg-store-item-by-sabang.dto.js +181 -0
- package/store-item-server/dto/store-item-sabang/index.d.ts +1 -0
- package/store-item-server/dto/store-item-sabang/index.js +17 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +2 -1
- package/store-item-server/services/amqp.store-item.service.js +3 -0
- package/user-service/dto/redis-db/command/redis-db-set-data-app-batch-push.dto.d.ts +12 -0
- package/user-service/dto/redis-db/command/redis-db-set-data-app-batch-push.dto.js +42 -0
- package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.d.ts +9 -0
- package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.js +33 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ImgUploadResult } from '@yolo-croket-dev/amqp-access/image-server/dto';
|
|
2
|
+
export declare class HtmlToImgData {
|
|
3
|
+
html: string;
|
|
4
|
+
index: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class HtmlToImgPayload {
|
|
7
|
+
datas: HtmlToImgData[];
|
|
8
|
+
}
|
|
9
|
+
export declare class HtmlToImgResultData {
|
|
10
|
+
index: number;
|
|
11
|
+
imgUploadResult: ImgUploadResult;
|
|
12
|
+
}
|
|
13
|
+
export declare class HtmlToImgResult {
|
|
14
|
+
results: HtmlToImgResultData[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.HtmlToImgResult = exports.HtmlToImgResultData = exports.HtmlToImgPayload = exports.HtmlToImgData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class HtmlToImgData {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], HtmlToImgData.prototype, "html", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], HtmlToImgData.prototype, "index", void 0);
|
|
25
|
+
exports.HtmlToImgData = HtmlToImgData;
|
|
26
|
+
class HtmlToImgPayload {
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
31
|
+
(0, class_transformer_1.Type)(() => HtmlToImgData),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], HtmlToImgPayload.prototype, "datas", void 0);
|
|
34
|
+
exports.HtmlToImgPayload = HtmlToImgPayload;
|
|
35
|
+
class HtmlToImgResultData {
|
|
36
|
+
}
|
|
37
|
+
exports.HtmlToImgResultData = HtmlToImgResultData;
|
|
38
|
+
class HtmlToImgResult {
|
|
39
|
+
}
|
|
40
|
+
exports.HtmlToImgResult = HtmlToImgResult;
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./upload-img.dto"), exports);
|
|
18
18
|
__exportStar(require("./migration-image.dto"), exports);
|
|
19
19
|
__exportStar(require("./copy-img.dto"), exports);
|
|
20
|
+
__exportStar(require("./html-to-img.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { UploadImgPayload, UploadImgResult, GetImgETagPayload, GetImgETagResult, GetImgMetadataPayload, GetImgMetadataResult, MigrationImagePayload, MigrationImageResult, GetImageSizesByCloudflarePayload, GetImageSizesByCloudflareResult, CopyImgPayload, CopyImgResult } from '../dto/image';
|
|
3
|
+
import { UploadImgPayload, UploadImgResult, GetImgETagPayload, GetImgETagResult, GetImgMetadataPayload, GetImgMetadataResult, MigrationImagePayload, MigrationImageResult, GetImageSizesByCloudflarePayload, GetImageSizesByCloudflareResult, CopyImgPayload, CopyImgResult, HtmlToImgPayload, HtmlToImgResult } from '../dto/image';
|
|
4
4
|
export declare class AmqpImageService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -11,4 +11,5 @@ export declare class AmqpImageService {
|
|
|
11
11
|
migrationImage(payload: MigrationImagePayload, param: AbstractParam): Promise<MigrationImageResult>;
|
|
12
12
|
getImageSizesByCloudflare(payload: GetImageSizesByCloudflarePayload, param: AbstractParam): Promise<GetImageSizesByCloudflareResult>;
|
|
13
13
|
copyImg(payload: CopyImgPayload, param: AbstractParam): Promise<CopyImgResult>;
|
|
14
|
+
htmlToImg(payload: HtmlToImgPayload, param: AbstractParam): Promise<HtmlToImgResult>;
|
|
14
15
|
}
|
|
@@ -41,6 +41,9 @@ let AmqpImageService = class AmqpImageService {
|
|
|
41
41
|
async copyImg(payload, param) {
|
|
42
42
|
return this.amqpManager.call('이미지 복사', 'image.copy', payload, param, { isErrorThrowing: true });
|
|
43
43
|
}
|
|
44
|
+
async htmlToImg(payload, param) {
|
|
45
|
+
return this.amqpManager.call('html 이미지 변환', 'image.upload.html-to-img', payload, param, { isErrorThrowing: true });
|
|
46
|
+
}
|
|
44
47
|
};
|
|
45
48
|
AmqpImageService = __decorate([
|
|
46
49
|
(0, common_1.Injectable)(),
|
package/package.json
CHANGED
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./search-selling-info-log-info.dto"), exports);
|
|
18
|
+
__exportStar(require("./search-selling-info-log-info-for-sabang.dto"), exports);
|
package/store-item-server/dto/selling-info-log/query/search-selling-info-log-info-for-sabang.dto.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
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.SearchSellingInfoLogInfoForSabangPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SearchSellingInfoLogInfoForSabangPayload {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsString)(),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "area", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "nation", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "city", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsNumber)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "expectedSendDays", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "isAbroadShipping", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNumber)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "shippingFee", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsBoolean)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "isBundleShipping", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsNumber)(),
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], SearchSellingInfoLogInfoForSabangPayload.prototype, "bundleShippingFee", void 0);
|
|
49
|
+
exports.SearchSellingInfoLogInfoForSabangPayload = SearchSellingInfoLogInfoForSabangPayload;
|
|
@@ -39,6 +39,7 @@ export declare class RegStoreItemPayload {
|
|
|
39
39
|
precautionCodeList?: PrecautionCodeEnum[] | string[];
|
|
40
40
|
precautionEtc?: string;
|
|
41
41
|
contentsDataList?: RegStoreItemContentsData[];
|
|
42
|
+
htmlContent?: string;
|
|
42
43
|
}
|
|
43
44
|
export declare class RegStoreItemResult {
|
|
44
45
|
itemId: string;
|
|
@@ -164,6 +164,11 @@ __decorate([
|
|
|
164
164
|
(0, class_transformer_1.Type)(() => RegStoreItemContentsData),
|
|
165
165
|
__metadata("design:type", Array)
|
|
166
166
|
], RegStoreItemPayload.prototype, "contentsDataList", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, class_validator_1.IsString)(),
|
|
169
|
+
(0, class_validator_1.IsOptional)(),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], RegStoreItemPayload.prototype, "htmlContent", void 0);
|
|
167
172
|
exports.RegStoreItemPayload = RegStoreItemPayload;
|
|
168
173
|
class RegStoreItemResult {
|
|
169
174
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoreItemOptionInfo, StoreItemSellingInfo } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
|
+
export declare class StaleStoreItem {
|
|
3
|
+
_id: string;
|
|
4
|
+
itemName: string;
|
|
5
|
+
itemPrice: number;
|
|
6
|
+
isSelling: boolean;
|
|
7
|
+
mainCategory: string;
|
|
8
|
+
subCategory: string;
|
|
9
|
+
regDate: Date;
|
|
10
|
+
lastModifyDate: Date;
|
|
11
|
+
sellingInfo: StoreItemSellingInfo;
|
|
12
|
+
optionInfo: StoreItemOptionInfo;
|
|
13
|
+
paymentDate?: Date;
|
|
14
|
+
}
|
|
15
|
+
export declare class GetStaleStoreItemsForExcelPayload {
|
|
16
|
+
sellerId: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class GetStaleStoreItemsForExcelResult {
|
|
19
|
+
storeItems: StaleStoreItem[];
|
|
20
|
+
storeTitle: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.GetStaleStoreItemsForExcelResult = exports.GetStaleStoreItemsForExcelPayload = exports.StaleStoreItem = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class StaleStoreItem {
|
|
15
|
+
}
|
|
16
|
+
exports.StaleStoreItem = StaleStoreItem;
|
|
17
|
+
class GetStaleStoreItemsForExcelPayload {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsMongoId)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GetStaleStoreItemsForExcelPayload.prototype, "sellerId", void 0);
|
|
24
|
+
exports.GetStaleStoreItemsForExcelPayload = GetStaleStoreItemsForExcelPayload;
|
|
25
|
+
class GetStaleStoreItemsForExcelResult {
|
|
26
|
+
}
|
|
27
|
+
exports.GetStaleStoreItemsForExcelResult = GetStaleStoreItemsForExcelResult;
|
|
@@ -12,3 +12,4 @@ export * from './get-store-items-for-update-brand.dto';
|
|
|
12
12
|
export * from './get-store-item-info-by-ids.dto';
|
|
13
13
|
export * from './search-store-items-for-seduce-add-cart.dto';
|
|
14
14
|
export * from './get-store-item-bind-issued-coupon-for-payment.dto';
|
|
15
|
+
export * from './get-stale-store-items-for-excel.dto';
|
|
@@ -28,3 +28,4 @@ __exportStar(require("./get-store-items-for-update-brand.dto"), exports);
|
|
|
28
28
|
__exportStar(require("./get-store-item-info-by-ids.dto"), exports);
|
|
29
29
|
__exportStar(require("./search-store-items-for-seduce-add-cart.dto"), exports);
|
|
30
30
|
__exportStar(require("./get-store-item-bind-issued-coupon-for-payment.dto"), exports);
|
|
31
|
+
__exportStar(require("./get-stale-store-items-for-excel.dto"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reg-store-item-by-sabang.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./reg-store-item-by-sabang.dto"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { StoreItemOptionTypeEnum } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
|
+
export declare class RegStoreItemBySabangContentsData {
|
|
3
|
+
title: string;
|
|
4
|
+
explanation: string;
|
|
5
|
+
imgUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class RegStoreItemBySabangSingleOptionInfo {
|
|
8
|
+
optionNameList: string[];
|
|
9
|
+
optionNumList: number[];
|
|
10
|
+
}
|
|
11
|
+
export declare class RegStoreItemBySabangOptionFrameList {
|
|
12
|
+
optionTitle: string;
|
|
13
|
+
optionFrameValueList: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare class RegStoreItemBySabangGroupOptionInfo {
|
|
16
|
+
optionFrameList: RegStoreItemBySabangOptionFrameList[];
|
|
17
|
+
optionNums: number;
|
|
18
|
+
}
|
|
19
|
+
export declare class RegStoreItemBySabangPayload {
|
|
20
|
+
itemName: string;
|
|
21
|
+
itemPrice: number;
|
|
22
|
+
itemImgUrls: string[];
|
|
23
|
+
isSelling: boolean;
|
|
24
|
+
contents?: string;
|
|
25
|
+
htmlContents?: string;
|
|
26
|
+
contentsDataList?: RegStoreItemBySabangContentsData[];
|
|
27
|
+
optionType: StoreItemOptionTypeEnum;
|
|
28
|
+
singleOptionInfo?: RegStoreItemBySabangSingleOptionInfo;
|
|
29
|
+
groupOptionInfo?: RegStoreItemBySabangGroupOptionInfo;
|
|
30
|
+
precautionCodeList?: string[];
|
|
31
|
+
precautionEtc?: string;
|
|
32
|
+
purchasedDate?: string;
|
|
33
|
+
mainCategory: string;
|
|
34
|
+
subCategory: string;
|
|
35
|
+
area: string;
|
|
36
|
+
nation: string;
|
|
37
|
+
city: string;
|
|
38
|
+
expectedSendDays: number;
|
|
39
|
+
isAbroadShipping: boolean;
|
|
40
|
+
shippingFee: number;
|
|
41
|
+
isBundleShipping: boolean;
|
|
42
|
+
bundleShippingFee?: number;
|
|
43
|
+
}
|
|
44
|
+
export declare class RegStoreItemBySabangResult {
|
|
45
|
+
itemId: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
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.RegStoreItemBySabangResult = exports.RegStoreItemBySabangPayload = exports.RegStoreItemBySabangGroupOptionInfo = exports.RegStoreItemBySabangOptionFrameList = exports.RegStoreItemBySabangSingleOptionInfo = exports.RegStoreItemBySabangContentsData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const store_item_1 = require("@yolo-croket-dev/entity/src/store-item");
|
|
16
|
+
class RegStoreItemBySabangContentsData {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], RegStoreItemBySabangContentsData.prototype, "title", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], RegStoreItemBySabangContentsData.prototype, "explanation", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RegStoreItemBySabangContentsData.prototype, "imgUrl", void 0);
|
|
30
|
+
exports.RegStoreItemBySabangContentsData = RegStoreItemBySabangContentsData;
|
|
31
|
+
class RegStoreItemBySabangSingleOptionInfo {
|
|
32
|
+
}
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsArray)(),
|
|
35
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], RegStoreItemBySabangSingleOptionInfo.prototype, "optionNameList", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsArray)(),
|
|
40
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], RegStoreItemBySabangSingleOptionInfo.prototype, "optionNumList", void 0);
|
|
43
|
+
exports.RegStoreItemBySabangSingleOptionInfo = RegStoreItemBySabangSingleOptionInfo;
|
|
44
|
+
class RegStoreItemBySabangOptionFrameList {
|
|
45
|
+
}
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], RegStoreItemBySabangOptionFrameList.prototype, "optionTitle", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsArray)(),
|
|
52
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], RegStoreItemBySabangOptionFrameList.prototype, "optionFrameValueList", void 0);
|
|
55
|
+
exports.RegStoreItemBySabangOptionFrameList = RegStoreItemBySabangOptionFrameList;
|
|
56
|
+
class RegStoreItemBySabangGroupOptionInfo {
|
|
57
|
+
}
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsArray)(),
|
|
60
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
61
|
+
(0, class_transformer_1.Type)(() => RegStoreItemBySabangOptionFrameList),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], RegStoreItemBySabangGroupOptionInfo.prototype, "optionFrameList", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsNumber)(),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], RegStoreItemBySabangGroupOptionInfo.prototype, "optionNums", void 0);
|
|
68
|
+
exports.RegStoreItemBySabangGroupOptionInfo = RegStoreItemBySabangGroupOptionInfo;
|
|
69
|
+
class RegStoreItemBySabangPayload {
|
|
70
|
+
}
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], RegStoreItemBySabangPayload.prototype, "itemName", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsNumber)(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], RegStoreItemBySabangPayload.prototype, "itemPrice", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsArray)(),
|
|
81
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
82
|
+
__metadata("design:type", Array)
|
|
83
|
+
], RegStoreItemBySabangPayload.prototype, "itemImgUrls", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsBoolean)(),
|
|
86
|
+
__metadata("design:type", Boolean)
|
|
87
|
+
], RegStoreItemBySabangPayload.prototype, "isSelling", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsString)(),
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], RegStoreItemBySabangPayload.prototype, "contents", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsString)(),
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], RegStoreItemBySabangPayload.prototype, "htmlContents", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsArray)(),
|
|
100
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
101
|
+
(0, class_transformer_1.Type)(() => RegStoreItemBySabangContentsData),
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
__metadata("design:type", Array)
|
|
104
|
+
], RegStoreItemBySabangPayload.prototype, "contentsDataList", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsEnum)(store_item_1.StoreItemOptionTypeEnum),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], RegStoreItemBySabangPayload.prototype, "optionType", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_validator_1.IsOptional)(),
|
|
111
|
+
(0, class_validator_1.ValidateNested)(),
|
|
112
|
+
(0, class_transformer_1.Type)(() => RegStoreItemBySabangSingleOptionInfo),
|
|
113
|
+
__metadata("design:type", RegStoreItemBySabangSingleOptionInfo)
|
|
114
|
+
], RegStoreItemBySabangPayload.prototype, "singleOptionInfo", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_validator_1.IsOptional)(),
|
|
117
|
+
(0, class_validator_1.ValidateNested)(),
|
|
118
|
+
(0, class_transformer_1.Type)(() => RegStoreItemBySabangGroupOptionInfo),
|
|
119
|
+
__metadata("design:type", RegStoreItemBySabangGroupOptionInfo)
|
|
120
|
+
], RegStoreItemBySabangPayload.prototype, "groupOptionInfo", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, class_validator_1.IsOptional)(),
|
|
123
|
+
(0, class_validator_1.IsArray)(),
|
|
124
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
125
|
+
__metadata("design:type", Array)
|
|
126
|
+
], RegStoreItemBySabangPayload.prototype, "precautionCodeList", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_validator_1.IsOptional)(),
|
|
129
|
+
(0, class_validator_1.IsString)(),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], RegStoreItemBySabangPayload.prototype, "precautionEtc", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, class_validator_1.IsOptional)(),
|
|
134
|
+
(0, class_validator_1.IsString)(),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], RegStoreItemBySabangPayload.prototype, "purchasedDate", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, class_validator_1.IsString)(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], RegStoreItemBySabangPayload.prototype, "mainCategory", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_validator_1.IsString)(),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], RegStoreItemBySabangPayload.prototype, "subCategory", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_validator_1.IsString)(),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], RegStoreItemBySabangPayload.prototype, "area", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, class_validator_1.IsString)(),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], RegStoreItemBySabangPayload.prototype, "nation", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, class_validator_1.IsString)(),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], RegStoreItemBySabangPayload.prototype, "city", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, class_validator_1.IsNumber)(),
|
|
159
|
+
__metadata("design:type", Number)
|
|
160
|
+
], RegStoreItemBySabangPayload.prototype, "expectedSendDays", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, class_validator_1.IsBoolean)(),
|
|
163
|
+
__metadata("design:type", Boolean)
|
|
164
|
+
], RegStoreItemBySabangPayload.prototype, "isAbroadShipping", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, class_validator_1.IsNumber)(),
|
|
167
|
+
__metadata("design:type", Number)
|
|
168
|
+
], RegStoreItemBySabangPayload.prototype, "shippingFee", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, class_validator_1.IsBoolean)(),
|
|
171
|
+
__metadata("design:type", Boolean)
|
|
172
|
+
], RegStoreItemBySabangPayload.prototype, "isBundleShipping", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, class_validator_1.IsNumber)(),
|
|
175
|
+
(0, class_validator_1.IsOptional)(),
|
|
176
|
+
__metadata("design:type", Number)
|
|
177
|
+
], RegStoreItemBySabangPayload.prototype, "bundleShippingFee", void 0);
|
|
178
|
+
exports.RegStoreItemBySabangPayload = RegStoreItemBySabangPayload;
|
|
179
|
+
class RegStoreItemBySabangResult {
|
|
180
|
+
}
|
|
181
|
+
exports.RegStoreItemBySabangResult = RegStoreItemBySabangResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./command"), exports);
|
|
@@ -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, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult } 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, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -35,4 +35,5 @@ export declare class AmqpStoreItemService {
|
|
|
35
35
|
getStoreItemInfoIByIds(payload: GetStoreItemInfoByIdsPayload, param: AbstractParam): Promise<GetStoreItemInfoByIdsResult>;
|
|
36
36
|
searchStoreItemsForSeduceAddCart(payload: SearchStoreItemsForSeduceAddCartPayload, param: AbstractParam): Promise<SearchStoreItemsForSeduceAddCartResult>;
|
|
37
37
|
getStoreItemBindIssuedCouponForPayment(payload: GetStoreItemBindIssuedCouponForPaymentPayload, param: AbstractParam): Promise<GetStoreItemBindIssuedCouponForPaymentResult>;
|
|
38
|
+
getStaleStoreItemsForExcel(payload: GetStaleStoreItemsForExcelPayload, param: AbstractParam): Promise<GetStaleStoreItemsForExcelResult>;
|
|
38
39
|
}
|
|
@@ -105,6 +105,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
105
105
|
async getStoreItemBindIssuedCouponForPayment(payload, param) {
|
|
106
106
|
return this.amqpManager.call('결제용 바인딩된 쿠폰 조회용 상품 조회', 'store-item.get.store-item-bind-issued-coupon-for-payment', payload, param, { isErrorThrowing: true });
|
|
107
107
|
}
|
|
108
|
+
async getStaleStoreItemsForExcel(payload, param) {
|
|
109
|
+
return this.amqpManager.call('셀러 판매 상품 관리 리스트 호출', 'store-item.get.stale-store-items-for-excel', payload, param, { isErrorThrowing: true });
|
|
110
|
+
}
|
|
108
111
|
};
|
|
109
112
|
AmqpStoreItemService = __decorate([
|
|
110
113
|
(0, common_1.Injectable)(),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue {
|
|
2
|
+
purchaseReceiptId: string;
|
|
3
|
+
itemName: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload {
|
|
6
|
+
key: string;
|
|
7
|
+
value: SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue;
|
|
8
|
+
ttl?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushResult {
|
|
11
|
+
result: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload = exports.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue.prototype, "purchaseReceiptId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue.prototype, "itemName", void 0);
|
|
25
|
+
exports.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue = SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue;
|
|
26
|
+
class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload {
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload.prototype, "key", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsObject)(),
|
|
34
|
+
(0, class_validator_1.ValidateNested)({}),
|
|
35
|
+
(0, class_transformer_1.Type)(() => SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue),
|
|
36
|
+
__metadata("design:type", SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue)
|
|
37
|
+
], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload.prototype, "value", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload.prototype, "ttl", void 0);
|
|
42
|
+
exports.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload = SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { ExpireAppBulkPushToUserIdsPayload, ExpireAppBulkPushToUserIdsResult } from '../../dto/redis-db/expire-app-bulk-push-to-user-ids.dto';
|
|
4
|
+
export declare class AmqpRedisDbAppBatchPushService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
expireAppBulkPushToUserIds(payload: ExpireAppBulkPushToUserIdsPayload, param: AbstractParam): Promise<ExpireAppBulkPushToUserIdsResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AmqpRedisDbAppBatchPushService = 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
|
+
let AmqpRedisDbAppBatchPushService = class AmqpRedisDbAppBatchPushService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async expireAppBulkPushToUserIds(payload, param) {
|
|
25
|
+
return this.amqpManager.call('redis db에 appBulkPus 관련 유저 아이디 expired 처리', 'redis-db.expire.app-bulk-push-to-user-ids', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
AmqpRedisDbAppBatchPushService = __decorate([
|
|
29
|
+
(0, common_1.Injectable)(),
|
|
30
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
31
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
32
|
+
], AmqpRedisDbAppBatchPushService);
|
|
33
|
+
exports.AmqpRedisDbAppBatchPushService = AmqpRedisDbAppBatchPushService;
|