@yolo-croket-dev/amqp-access 0.3.16 → 0.3.17-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/order-server/dto/pay-try-log/command/index.d.ts +1 -0
- package/order-server/dto/pay-try-log/command/index.js +1 -0
- package/order-server/dto/pay-try-log/command/store-item-payment/coupon/index.d.ts +2 -0
- package/order-server/dto/pay-try-log/command/store-item-payment/coupon/index.js +18 -0
- package/order-server/dto/pay-try-log/command/store-item-payment/coupon/update-issued-coupon-cart.dto.d.ts +9 -0
- package/order-server/dto/pay-try-log/command/store-item-payment/coupon/update-issued-coupon-cart.dto.js +44 -0
- package/order-server/dto/pay-try-log/command/store-item-payment/coupon/update-issued-coupon-normal.dto.d.ts +5 -0
- package/{user-service/dto/redis-db/command/push-redis-db.dto.js → order-server/dto/pay-try-log/command/store-item-payment/coupon/update-issued-coupon-normal.dto.js} +12 -8
- package/order-server/dto/pay-try-log/command/store-item-payment/index.d.ts +1 -0
- package/order-server/dto/pay-try-log/command/store-item-payment/index.js +17 -0
- package/order-server/services/amqp.pay-try-log.service.d.ts +2 -1
- package/order-server/services/amqp.pay-try-log.service.js +3 -0
- package/package.json +1 -1
- package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.d.ts +7 -0
- package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.js +23 -0
- package/store-item-server/dto/store-item/query/get-store-item-info-by-ids.dto.d.ts +2 -2
- package/user-service/dto/seller-portal-channel-link-request/command/create-seller-portal-channel-link-request.dto.d.ts +7 -0
- package/user-service/dto/seller-portal-channel-link-request/command/create-seller-portal-channel-link-request.dto.js +25 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +0 -3
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +0 -7
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +0 -4
|
@@ -18,3 +18,4 @@ __exportStar(require("./write-normal-store-item-pay-try-log-init.dto"), exports)
|
|
|
18
18
|
__exportStar(require("./write-normal-store-item-pay-try-log-after.dto"), exports);
|
|
19
19
|
__exportStar(require("./write-cart-store-item-pay-try-log-init.service.dto"), exports);
|
|
20
20
|
__exportStar(require("./test-pay"), exports);
|
|
21
|
+
__exportStar(require("./store-item-payment"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./update-issued-coupon-cart.dto"), exports);
|
|
18
|
+
__exportStar(require("./update-issued-coupon-normal.dto"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
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.UpdateIssuedCouponCartPayload = exports.CartIssuedCouponInfo = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class CartIssuedCouponInfo {
|
|
16
|
+
}
|
|
17
|
+
exports.CartIssuedCouponInfo = CartIssuedCouponInfo;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CartIssuedCouponInfo.prototype, "cartId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CartIssuedCouponInfo.prototype, "ICId", void 0);
|
|
27
|
+
class UpdateIssuedCouponCartPayload {
|
|
28
|
+
}
|
|
29
|
+
exports.UpdateIssuedCouponCartPayload = UpdateIssuedCouponCartPayload;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsMongoId)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpdateIssuedCouponCartPayload.prototype, "payTryLogId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsArray)(),
|
|
36
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
37
|
+
(0, class_transformer_1.Type)(() => CartIssuedCouponInfo),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], UpdateIssuedCouponCartPayload.prototype, "issuedCouponInfos", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], UpdateIssuedCouponCartPayload.prototype, "paymentMethod", void 0);
|
|
@@ -9,18 +9,22 @@ 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.
|
|
12
|
+
exports.UpdateIssuedCouponNormalPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class UpdateIssuedCouponNormalPayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.UpdateIssuedCouponNormalPayload = UpdateIssuedCouponNormalPayload;
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
-
(
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpdateIssuedCouponNormalPayload.prototype, "payTryLogId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsMongoId)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
24
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
25
|
+
], UpdateIssuedCouponNormalPayload.prototype, "ICId", void 0);
|
|
22
26
|
__decorate([
|
|
23
27
|
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
29
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
30
|
+
], UpdateIssuedCouponNormalPayload.prototype, "paymentMethod", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './coupon';
|
|
@@ -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("./coupon"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { GetPayTryLogsForEsPayload, GetPayTryLogsForEsResult, GetPayTryLogsForEsByIdsPayload, GetPayTryLogsForEsByIdsResult } from '@yolo-croket-dev/dto-v2/order-server/pay-try-log';
|
|
4
|
-
import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult } from '../dto/pay-try-log';
|
|
4
|
+
import { WriteCartStoreItemPayTryLogInitPayload, WriteCartStoreItemPayTryLogInitResult, WriteNormalStoreItemPayTryLogAfterPayload, WriteNormalStoreItemPayTryLogInitPayload, WriteNormalStoreItemPayTryLogInitResult, ProcessStoreItemTestPaymentPayload, GetDirectTosspaymentsJsonPayload, GetDirectTosspaymentsJsonResult, UpdateIssuedCouponCartPayload } from '../dto/pay-try-log';
|
|
5
5
|
export declare class AmqpPayTryLogService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -13,4 +13,5 @@ export declare class AmqpPayTryLogService {
|
|
|
13
13
|
writeCartStoreItemPayTryLogInit(payload: WriteCartStoreItemPayTryLogInitPayload, param: AbstractParam): Promise<WriteCartStoreItemPayTryLogInitResult>;
|
|
14
14
|
processStoreItemTestPayment(payload: ProcessStoreItemTestPaymentPayload, param: AbstractParam): Promise<void>;
|
|
15
15
|
getDirectTosspaymentsJson(payload: GetDirectTosspaymentsJsonPayload, param: AbstractParam): Promise<GetDirectTosspaymentsJsonResult>;
|
|
16
|
+
updateIssuedCouponCart(payload: UpdateIssuedCouponCartPayload, param: AbstractParam): Promise<void>;
|
|
16
17
|
}
|
|
@@ -46,6 +46,9 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
|
|
|
46
46
|
async getDirectTosspaymentsJson(payload, param) {
|
|
47
47
|
return this.amqpManager.call('토스페이먼츠 결제창 json 데이터 조회', 'pay-try-log.get.direct-tosspayments-json', payload, param, { isErrorThrowing: true });
|
|
48
48
|
}
|
|
49
|
+
async updateIssuedCouponCart(payload, param) {
|
|
50
|
+
return this.amqpManager.call('장바구니 결제 사용할 쿠폰 적용', 'pay-try-log.update.issued-coupon-cart', payload, param, { isErrorThrowing: true });
|
|
51
|
+
}
|
|
49
52
|
};
|
|
50
53
|
exports.AmqpPayTryLogService = AmqpPayTryLogService;
|
|
51
54
|
exports.AmqpPayTryLogService = AmqpPayTryLogService = __decorate([
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectionFrameDataEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
|
|
3
|
+
targetSelectionDataId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
|
|
6
|
+
selectionFrameDatas: SelectionFrameDataEntity[];
|
|
7
|
+
}
|
package/selection-server/dto/selection-frame-data/query/search-complete-selection-frame-datas.dto.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload.prototype, "targetSelectionDataId", void 0);
|
|
21
|
+
class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
|
|
22
|
+
}
|
|
23
|
+
exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = SearchAllSelectionFrameDatasByTargetSelectionDataIdResult;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StoreItem } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
2
|
export declare class GetStoreItemInfoByIdsPayload {
|
|
3
3
|
/** 상품 아이디 */
|
|
4
|
-
itemIds: string;
|
|
4
|
+
itemIds: string[];
|
|
5
5
|
/** 검색 포함 필드 */
|
|
6
6
|
includeFields?: string[];
|
|
7
7
|
/** 검색 제외 필드 */
|
|
8
8
|
excludeFields?: string[];
|
|
9
9
|
}
|
|
10
10
|
export declare class GetStoreItemInfoByIdsResult {
|
|
11
|
-
storeItems: (StoreItem | null)[];
|
|
11
|
+
storeItems: (Partial<StoreItem> | null)[];
|
|
12
12
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.CreateSellerPortalChannelLinkRequestPayload = exports.RequestTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var RequestTypeEnum;
|
|
15
|
+
(function (RequestTypeEnum) {
|
|
16
|
+
RequestTypeEnum["onlyPortal"] = "onlyPortal";
|
|
17
|
+
RequestTypeEnum["portalAndAd"] = "portalAndAd";
|
|
18
|
+
})(RequestTypeEnum || (exports.RequestTypeEnum = RequestTypeEnum = {}));
|
|
19
|
+
class CreateSellerPortalChannelLinkRequestPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateSellerPortalChannelLinkRequestPayload = CreateSellerPortalChannelLinkRequestPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(RequestTypeEnum),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateSellerPortalChannelLinkRequestPayload.prototype, "requestType", void 0);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PullRedisDBPayload = void 0;
|
|
4
|
-
const push_redis_db_dto_1 = require("./push-redis-db.dto");
|
|
5
|
-
class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
|
|
6
|
-
}
|
|
7
|
-
exports.PullRedisDBPayload = PullRedisDBPayload;
|