@yolo-croket-dev/amqp-access 0.3.16-sj4 → 0.3.16
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/analytics-service/amqp.analytics-service.provider.d.ts +1 -1
- package/coupon-server/amqp.coupon-server.module.js +0 -2
- package/coupon-server/amqp.coupon-server.provider.d.ts +1 -1
- package/coupon-server/dto/index.d.ts +0 -1
- package/coupon-server/dto/index.js +0 -1
- package/coupon-server/services/index.d.ts +0 -1
- package/coupon-server/services/index.js +0 -1
- package/elastic-service/amqp.elastic-service.provider.d.ts +1 -1
- package/excel-upload-server/amqp.excel-upload-server.provider.d.ts +1 -1
- package/image-server/amqp.image-server.provider.d.ts +1 -1
- package/manage-service/amqp.manage-service.provider.d.ts +1 -1
- package/notification-service/amqp.notification-service.provider.d.ts +1 -1
- package/order-server/amqp.order-server.provider.d.ts +1 -1
- package/package.json +3 -3
- package/payment-service/amqp.payment-service.provider.d.ts +1 -1
- package/selection-server/amqp.selection-server.provider.d.ts +1 -1
- package/store-item-server/amqp.store-item-server.provider.d.ts +1 -1
- package/store-item-server/dto/store-item/query/get-store-item-info-by-ids.dto.d.ts +12 -0
- package/store-item-server/dto/store-item/query/get-store-item-info-by-ids.dto.js +9 -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/services/amqp.store-item.service.d.ts +2 -1
- package/store-item-server/services/amqp.store-item.service.js +3 -0
- package/user-service/amqp.user-service.provider.d.ts +1 -1
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.js +26 -0
- package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.d.ts +0 -47
- package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.js +0 -92
- package/coupon-server/dto/receipt-coupon-template/command/index.d.ts +0 -1
- package/coupon-server/dto/receipt-coupon-template/command/index.js +0 -17
- package/coupon-server/dto/receipt-coupon-template/index.d.ts +0 -1
- package/coupon-server/dto/receipt-coupon-template/index.js +0 -17
- package/coupon-server/services/amqp.receipt-coupon-template.service.d.ts +0 -9
- package/coupon-server/services/amqp.receipt-coupon-template.service.js +0 -33
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const AnalyticsServiceProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -20,14 +20,12 @@ exports.AmqpCouponServerModule = AmqpCouponServerModule = __decorate([
|
|
|
20
20
|
services_1.AmqpCouponTemplateService,
|
|
21
21
|
services_1.AmqpBundleCouponService,
|
|
22
22
|
services_1.AmqpIssuedCouponService,
|
|
23
|
-
services_1.AmqpReceiptCouponTemplateService,
|
|
24
23
|
],
|
|
25
24
|
exports: [
|
|
26
25
|
amqp_coupon_server_provider_1.CouponServerProvider,
|
|
27
26
|
services_1.AmqpCouponTemplateService,
|
|
28
27
|
services_1.AmqpBundleCouponService,
|
|
29
28
|
services_1.AmqpIssuedCouponService,
|
|
30
|
-
services_1.AmqpReceiptCouponTemplateService,
|
|
31
29
|
],
|
|
32
30
|
})
|
|
33
31
|
], AmqpCouponServerModule);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const CouponServerProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./coupon-template"), exports);
|
|
18
18
|
__exportStar(require("./bundle-coupon"), exports);
|
|
19
19
|
__exportStar(require("./issued-coupon"), exports);
|
|
20
|
-
__exportStar(require("./receipt-coupon-template"), exports);
|
|
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./amqp.coupon-template.service"), exports);
|
|
18
18
|
__exportStar(require("./amqp.bundle-coupon.service"), exports);
|
|
19
19
|
__exportStar(require("./amqp.issued-coupon.service"), exports);
|
|
20
|
-
__exportStar(require("./amqp.receipt-coupon-template.service"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const ElasticServiceProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const ExcelUploadServerProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const ImageServerProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const ManageServiceProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const NotifiactionServiceProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const OrderServerProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.3.16
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@yolo-croket-dev/domain": "^0.0.31",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.0.162",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.1.141",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.0.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.0.127",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PaymentServiceProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const SelectionServerProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const StoreItemServerProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoreItem } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
|
+
export declare class GetStoreItemInfoByIdsPayload {
|
|
3
|
+
/** 상품 아이디 */
|
|
4
|
+
itemIds: string;
|
|
5
|
+
/** 검색 포함 필드 */
|
|
6
|
+
includeFields?: string[];
|
|
7
|
+
/** 검색 제외 필드 */
|
|
8
|
+
excludeFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class GetStoreItemInfoByIdsResult {
|
|
11
|
+
storeItems: (StoreItem | null)[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetStoreItemInfoByIdsResult = exports.GetStoreItemInfoByIdsPayload = void 0;
|
|
4
|
+
class GetStoreItemInfoByIdsPayload {
|
|
5
|
+
}
|
|
6
|
+
exports.GetStoreItemInfoByIdsPayload = GetStoreItemInfoByIdsPayload;
|
|
7
|
+
class GetStoreItemInfoByIdsResult {
|
|
8
|
+
}
|
|
9
|
+
exports.GetStoreItemInfoByIdsResult = GetStoreItemInfoByIdsResult;
|
|
@@ -25,3 +25,4 @@ __exportStar(require("./search-store-item-name-by-id.dto"), exports);
|
|
|
25
25
|
__exportStar(require("./atlas-search"), exports);
|
|
26
26
|
__exportStar(require("./get-selling-item-ids-by-catagory.dto"), exports);
|
|
27
27
|
__exportStar(require("./get-store-items-for-update-brand.dto"), exports);
|
|
28
|
+
__exportStar(require("./get-store-item-info-by-ids.dto"), 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 } 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 } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -30,4 +30,5 @@ export declare class AmqpStoreItemService {
|
|
|
30
30
|
updateBrandInfos(payload: UpdateBrandInfosPayload, param: AbstractParam): Promise<void>;
|
|
31
31
|
getStoreItemsForUpdateBrand(payload: GetStoreItemsForUpdateBrandPayload, param: AbstractParam): Promise<GetStoreItemsForUpdateBrandResult>;
|
|
32
32
|
regStoreItemBulk(payload: RegStoreItemBulkPayload, param: AbstractParam): Promise<RegStoreItemBulkResult>;
|
|
33
|
+
getStoreItemInfoIByIds(payload: GetStoreItemInfoByIdsPayload, param: AbstractParam): Promise<GetStoreItemInfoByIdsResult>;
|
|
33
34
|
}
|
|
@@ -90,6 +90,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
90
90
|
async regStoreItemBulk(payload, param) {
|
|
91
91
|
return this.amqpManager.call('상품 등록 대량', 'store-item.reg.bulk', payload, param, { isErrorThrowing: true });
|
|
92
92
|
}
|
|
93
|
+
async getStoreItemInfoIByIds(payload, param) {
|
|
94
|
+
return this.amqpManager.call('상품 아이디 리스트로 해당 상품 정보 검색', 'store-item.get.by-ids', payload, param, { isErrorThrowing: true });
|
|
95
|
+
}
|
|
93
96
|
};
|
|
94
97
|
exports.AmqpStoreItemService = AmqpStoreItemService;
|
|
95
98
|
exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const UserServiceProvider: {
|
|
2
2
|
provide: string;
|
|
3
|
-
useFactory: () => import("@nestjs/microservices").ClientProxy
|
|
3
|
+
useFactory: () => import("@nestjs/microservices").ClientProxy<Record<never, Function>, string>;
|
|
4
4
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
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.PushRedisDBPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PushRedisDBPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.PushRedisDBPayload = PushRedisDBPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MinLength)(1),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PushRedisDBPayload.prototype, "redisDBKey", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MinLength)(1),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PushRedisDBPayload.prototype, "value", void 0);
|
package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/callback" />
|
|
3
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/collection" />
|
|
4
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/connection" />
|
|
5
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/document" />
|
|
7
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/error" />
|
|
8
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/models" />
|
|
13
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/populate" />
|
|
16
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/query" />
|
|
17
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/session" />
|
|
20
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/types" />
|
|
21
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/utility" />
|
|
22
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/validation" />
|
|
23
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose" />
|
|
25
|
-
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/inferschematype" />
|
|
26
|
-
import { Types } from 'mongoose';
|
|
27
|
-
import { ReceiptCouponTemplateDiscountTypeEnum } from '@yolo-croket-dev/entity-v2/receipt-coupon-template/receipt-coupon-template.entity';
|
|
28
|
-
export declare class CreateReceiptCouponTemplatePayload {
|
|
29
|
-
isCanUserIssue: boolean;
|
|
30
|
-
discountType: ReceiptCouponTemplateDiscountTypeEnum;
|
|
31
|
-
/** @description 1~100 사이의 할인율 */
|
|
32
|
-
rate?: number;
|
|
33
|
-
maxDiscountPrice?: number;
|
|
34
|
-
price?: number;
|
|
35
|
-
couponName: string;
|
|
36
|
-
couponCode: string;
|
|
37
|
-
isInfinity: boolean;
|
|
38
|
-
canIssueStartDate: Date;
|
|
39
|
-
canIssueEndDate: Date;
|
|
40
|
-
minPrice: number;
|
|
41
|
-
maxPrice: number;
|
|
42
|
-
isLimitStoreItem: boolean;
|
|
43
|
-
ableStoreItemList: Types.ObjectId[];
|
|
44
|
-
isLimitStore: boolean;
|
|
45
|
-
ableStoreList: Types.ObjectId[];
|
|
46
|
-
isCartView: boolean;
|
|
47
|
-
}
|
package/coupon-server/dto/receipt-coupon-template/command/create-receipt-coupon-template.dto.js
DELETED
|
@@ -1,92 +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.CreateReceiptCouponTemplatePayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const receipt_coupon_template_entity_1 = require("@yolo-croket-dev/entity-v2/receipt-coupon-template/receipt-coupon-template.entity");
|
|
15
|
-
class CreateReceiptCouponTemplatePayload {
|
|
16
|
-
}
|
|
17
|
-
exports.CreateReceiptCouponTemplatePayload = CreateReceiptCouponTemplatePayload;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsBoolean)(),
|
|
20
|
-
__metadata("design:type", Boolean)
|
|
21
|
-
], CreateReceiptCouponTemplatePayload.prototype, "isCanUserIssue", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsEnum)(receipt_coupon_template_entity_1.ReceiptCouponTemplateDiscountTypeEnum),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], CreateReceiptCouponTemplatePayload.prototype, "discountType", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsNumber)(),
|
|
28
|
-
(0, class_validator_1.Min)(1),
|
|
29
|
-
(0, class_validator_1.Max)(100),
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], CreateReceiptCouponTemplatePayload.prototype, "rate", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsNumber)(),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], CreateReceiptCouponTemplatePayload.prototype, "maxDiscountPrice", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsNumber)(),
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], CreateReceiptCouponTemplatePayload.prototype, "price", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], CreateReceiptCouponTemplatePayload.prototype, "couponName", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], CreateReceiptCouponTemplatePayload.prototype, "couponCode", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsBoolean)(),
|
|
53
|
-
__metadata("design:type", Boolean)
|
|
54
|
-
], CreateReceiptCouponTemplatePayload.prototype, "isInfinity", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_validator_1.IsDateString)(),
|
|
57
|
-
__metadata("design:type", Date)
|
|
58
|
-
], CreateReceiptCouponTemplatePayload.prototype, "canIssueStartDate", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsDateString)(),
|
|
61
|
-
__metadata("design:type", Date)
|
|
62
|
-
], CreateReceiptCouponTemplatePayload.prototype, "canIssueEndDate", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsNumber)(),
|
|
65
|
-
__metadata("design:type", Number)
|
|
66
|
-
], CreateReceiptCouponTemplatePayload.prototype, "minPrice", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, class_validator_1.IsNumber)(),
|
|
69
|
-
__metadata("design:type", Number)
|
|
70
|
-
], CreateReceiptCouponTemplatePayload.prototype, "maxPrice", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_validator_1.IsBoolean)(),
|
|
73
|
-
__metadata("design:type", Boolean)
|
|
74
|
-
], CreateReceiptCouponTemplatePayload.prototype, "isLimitStoreItem", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsArray)(),
|
|
77
|
-
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
78
|
-
__metadata("design:type", Array)
|
|
79
|
-
], CreateReceiptCouponTemplatePayload.prototype, "ableStoreItemList", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_validator_1.IsBoolean)(),
|
|
82
|
-
__metadata("design:type", Boolean)
|
|
83
|
-
], CreateReceiptCouponTemplatePayload.prototype, "isLimitStore", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, class_validator_1.IsArray)(),
|
|
86
|
-
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
87
|
-
__metadata("design:type", Array)
|
|
88
|
-
], CreateReceiptCouponTemplatePayload.prototype, "ableStoreList", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, class_validator_1.IsBoolean)(),
|
|
91
|
-
__metadata("design:type", Boolean)
|
|
92
|
-
], CreateReceiptCouponTemplatePayload.prototype, "isCartView", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './create-receipt-coupon-template.dto';
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./create-receipt-coupon-template.dto"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './command';
|
|
@@ -1,17 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateReceiptCouponTemplatePayload } from '../dto/receipt-coupon-template';
|
|
4
|
-
export declare class AmqpReceiptCouponTemplateService {
|
|
5
|
-
private readonly client;
|
|
6
|
-
private readonly amqpManager;
|
|
7
|
-
constructor(client: ClientProxy);
|
|
8
|
-
createReceiptCouponTemplate(payload: CreateReceiptCouponTemplatePayload, param: AbstractParam): Promise<any>;
|
|
9
|
-
}
|
|
@@ -1,33 +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
|
-
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.AmqpReceiptCouponTemplateService = 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 AmqpReceiptCouponTemplateService = class AmqpReceiptCouponTemplateService {
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
-
}
|
|
24
|
-
async createReceiptCouponTemplate(payload, param) {
|
|
25
|
-
return this.amqpManager.call('주문서 쿠폰 템플릿 생성 -관리자-', 'receipt-coupon-template.create', payload, param, { isErrorThrowing: true });
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.AmqpReceiptCouponTemplateService = AmqpReceiptCouponTemplateService;
|
|
29
|
-
exports.AmqpReceiptCouponTemplateService = AmqpReceiptCouponTemplateService = __decorate([
|
|
30
|
-
(0, common_1.Injectable)(),
|
|
31
|
-
__param(0, (0, common_1.Inject)('COUPON_SERVER_PROVIDER')),
|
|
32
|
-
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
-
], AmqpReceiptCouponTemplateService);
|