@yolo-croket-dev/amqp-access 0.5.97-sj → 0.5.97

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.
Files changed (23) hide show
  1. package/manage-service/amqp.manage-service.module.js +0 -2
  2. package/manage-service/dto/index.d.ts +0 -1
  3. package/manage-service/dto/index.js +0 -1
  4. package/manage-service/services/index.d.ts +0 -1
  5. package/manage-service/services/index.js +0 -1
  6. package/package.json +2 -2
  7. package/user-service/dto/cart/query/get-carts-for-write-pay.dto.d.ts +2 -1
  8. package/user-service/dto/cart/query/get-carts-for-write-pay.dto.js +1 -0
  9. package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
  10. package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
  11. package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
  12. package/{manage-service/dto/event-banner/command/delete-event-banner.dto.js → user-service/dto/redis-db/command/push-redis-db.dto.js} +11 -6
  13. package/manage-service/dto/event-banner/command/create-event-banner.dto.d.ts +0 -18
  14. package/manage-service/dto/event-banner/command/create-event-banner.dto.js +0 -68
  15. package/manage-service/dto/event-banner/command/delete-event-banner.dto.d.ts +0 -3
  16. package/manage-service/dto/event-banner/command/index.d.ts +0 -3
  17. package/manage-service/dto/event-banner/command/index.js +0 -19
  18. package/manage-service/dto/event-banner/command/update-event-banner.dto.d.ts +0 -19
  19. package/manage-service/dto/event-banner/command/update-event-banner.dto.js +0 -73
  20. package/manage-service/dto/event-banner/index.d.ts +0 -1
  21. package/manage-service/dto/event-banner/index.js +0 -17
  22. package/manage-service/services/event-banner.service.d.ts +0 -11
  23. package/manage-service/services/event-banner.service.js +0 -39
@@ -21,7 +21,6 @@ exports.AmqpManageServiceModule = AmqpManageServiceModule = __decorate([
21
21
  services_1.AmqpManageUserService,
22
22
  services_1.AmqpExchangeRateService,
23
23
  services_1.AmqpPublicHolidayService,
24
- services_1.AmqpEventBannerService,
25
24
  ],
26
25
  exports: [
27
26
  amqp_manage_service_provider_1.ManageServiceProvider,
@@ -29,7 +28,6 @@ exports.AmqpManageServiceModule = AmqpManageServiceModule = __decorate([
29
28
  services_1.AmqpManageUserService,
30
29
  services_1.AmqpExchangeRateService,
31
30
  services_1.AmqpPublicHolidayService,
32
- services_1.AmqpEventBannerService,
33
31
  ],
34
32
  })
35
33
  ], AmqpManageServiceModule);
@@ -1,4 +1,3 @@
1
1
  export * from './link-tab';
2
2
  export * from './manage-user';
3
3
  export * from './exchange-rate';
4
- export * from './event-banner';
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./link-tab"), exports);
18
18
  __exportStar(require("./manage-user"), exports);
19
19
  __exportStar(require("./exchange-rate"), exports);
20
- __exportStar(require("./event-banner"), exports);
@@ -2,4 +2,3 @@ export * from './amqp-link-tab.service';
2
2
  export * from './amqp.manage-user.service';
3
3
  export * from './amqp-exchange-rate.service';
4
4
  export * from './amqp-public-holiday.service';
5
- export * from './event-banner.service';
@@ -18,4 +18,3 @@ __exportStar(require("./amqp-link-tab.service"), exports);
18
18
  __exportStar(require("./amqp.manage-user.service"), exports);
19
19
  __exportStar(require("./amqp-exchange-rate.service"), exports);
20
20
  __exportStar(require("./amqp-public-holiday.service"), exports);
21
- __exportStar(require("./event-banner.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.97-sj",
3
+ "version": "0.5.97",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,7 +22,7 @@
22
22
  "@yolo-croket-dev/domain": "^0.2.12",
23
23
  "@yolo-croket-dev/dto-v2": "^0.1.10",
24
24
  "@yolo-croket-dev/entity": "^0.2.24",
25
- "@yolo-croket-dev/entity-v2": "^0.2.39-sj",
25
+ "@yolo-croket-dev/entity-v2": "^0.2.38",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -2,7 +2,7 @@ import { CartEntity } from '@yolo-croket-dev/entity-v2/cart';
2
2
  import { StoreItem } from '@yolo-croket-dev/entity/src/store-item/store-item.entity';
3
3
  import { UserEntity } from '@yolo-croket-dev/entity-v2/user/user.entity';
4
4
  type SearchedUserForWritePay = Pick<UserEntity, '_id' | 'username'>;
5
- type SearchedStoreItemForWritePay = Pick<StoreItem, '_id' | 'selectionInfos' | 'itemPrice' | 'insuranceInfo' | 'mainCategory' | 'subCategory' | 'sellerId' | 'isLimitSale' | 'itemName' | 'itemPriceForBuyer' | 'sellingInfo' | 'adultItemInfo' | 'limitSaleInfo' | 'itemImg' | 'purchased' | 'storeId'> & {
5
+ type SearchedStoreItemForWritePay = Pick<StoreItem, '_id' | 'selectionInfos' | 'itemPrice' | 'insuranceInfo' | 'mainCategory' | 'subCategory' | 'sellerId' | 'isLimitSale' | 'itemName' | 'itemPriceForBuyer' | 'sellingInfo' | 'adultItemInfo' | 'limitSaleInfo' | 'itemImg' | 'purchased' | 'storeId' | 'isSecret'> & {
6
6
  _seller: SearchedUserForWritePay;
7
7
  };
8
8
  export type CartForWritePay = Pick<CartEntity, '_id' | 'itemId' | 'storeId' | 'pOption' | 'pOptionInfo' | 'itemName_past' | 'itemPrice_past' | 'sellingInfo_past' | 'cartType' | 'ownerId' | 'isChecked' | 'requirement' | 'lastModifyDate' | 'directAddress_custom'> & {
@@ -30,6 +30,7 @@ export declare const SearchedStoreItemForWritePaySelect: {
30
30
  purchased: number;
31
31
  storeId: number;
32
32
  _seller: number;
33
+ isSecret: number;
33
34
  };
34
35
  export declare const CartForWritePaySelect: {
35
36
  _id: number;
@@ -23,6 +23,7 @@ exports.SearchedStoreItemForWritePaySelect = {
23
23
  purchased: 1,
24
24
  storeId: 1,
25
25
  _seller: 1,
26
+ isSecret: 1,
26
27
  };
27
28
  exports.CartForWritePaySelect = {
28
29
  _id: 1,
@@ -0,0 +1,3 @@
1
+ import { PushRedisDBPayload } from './push-redis-db.dto';
2
+ export declare class PullRedisDBPayload extends PushRedisDBPayload {
3
+ }
@@ -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,4 @@
1
+ export declare class PushRedisDBPayload {
2
+ redisDBKey: string;
3
+ value: string;
4
+ }
@@ -9,13 +9,18 @@ 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.DeleteEventBannerPayload = void 0;
12
+ exports.PushRedisDBPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class DeleteEventBannerPayload {
14
+ class PushRedisDBPayload {
15
15
  }
16
- exports.DeleteEventBannerPayload = DeleteEventBannerPayload;
16
+ exports.PushRedisDBPayload = PushRedisDBPayload;
17
17
  __decorate([
18
- (0, class_validator_1.IsMongoId)(),
19
- (0, class_validator_1.IsNotEmpty)(),
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MinLength)(1),
20
20
  __metadata("design:type", String)
21
- ], DeleteEventBannerPayload.prototype, "eventBannerId", void 0);
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);
@@ -1,18 +0,0 @@
1
- import { BannerPlatformInfo as IBannerPlatformInfo } from '@yolo-croket-dev/entity-v2/store-item-banner';
2
- import { EventBannerType } from '@yolo-croket-dev/entity-v2/event-banner';
3
- declare class BannerPlatformInfo implements IBannerPlatformInfo {
4
- imgUrl: string;
5
- landingUrl: string;
6
- width: number;
7
- height: number;
8
- }
9
- export declare class CreateEventBannerPayload {
10
- type: EventBannerType;
11
- description: string;
12
- web: BannerPlatformInfo;
13
- app: BannerPlatformInfo;
14
- isView: boolean;
15
- displayStartDate?: string;
16
- displayEndDate?: string;
17
- }
18
- export {};
@@ -1,68 +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.CreateEventBannerPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const event_banner_1 = require("@yolo-croket-dev/entity-v2/event-banner");
15
- class BannerPlatformInfo {
16
- }
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], BannerPlatformInfo.prototype, "imgUrl", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], BannerPlatformInfo.prototype, "landingUrl", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsNumber)(),
29
- __metadata("design:type", Number)
30
- ], BannerPlatformInfo.prototype, "width", void 0);
31
- __decorate([
32
- (0, class_validator_1.IsNumber)(),
33
- __metadata("design:type", Number)
34
- ], BannerPlatformInfo.prototype, "height", void 0);
35
- class CreateEventBannerPayload {
36
- }
37
- exports.CreateEventBannerPayload = CreateEventBannerPayload;
38
- __decorate([
39
- (0, class_validator_1.IsEnum)(event_banner_1.EventBannerType),
40
- __metadata("design:type", String)
41
- ], CreateEventBannerPayload.prototype, "type", void 0);
42
- __decorate([
43
- (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.IsNotEmpty)(),
45
- __metadata("design:type", String)
46
- ], CreateEventBannerPayload.prototype, "description", void 0);
47
- __decorate([
48
- (0, class_validator_1.IsNotEmpty)(),
49
- __metadata("design:type", BannerPlatformInfo)
50
- ], CreateEventBannerPayload.prototype, "web", void 0);
51
- __decorate([
52
- (0, class_validator_1.IsNotEmpty)(),
53
- __metadata("design:type", BannerPlatformInfo)
54
- ], CreateEventBannerPayload.prototype, "app", void 0);
55
- __decorate([
56
- (0, class_validator_1.IsBoolean)(),
57
- __metadata("design:type", Boolean)
58
- ], CreateEventBannerPayload.prototype, "isView", void 0);
59
- __decorate([
60
- (0, class_validator_1.IsDateString)(),
61
- (0, class_validator_1.IsOptional)(),
62
- __metadata("design:type", String)
63
- ], CreateEventBannerPayload.prototype, "displayStartDate", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsDateString)(),
66
- (0, class_validator_1.IsOptional)(),
67
- __metadata("design:type", String)
68
- ], CreateEventBannerPayload.prototype, "displayEndDate", void 0);
@@ -1,3 +0,0 @@
1
- export declare class DeleteEventBannerPayload {
2
- eventBannerId: string;
3
- }
@@ -1,3 +0,0 @@
1
- export * from './create-event-banner.dto';
2
- export * from './delete-event-banner.dto';
3
- export * from './update-event-banner.dto';
@@ -1,19 +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-event-banner.dto"), exports);
18
- __exportStar(require("./delete-event-banner.dto"), exports);
19
- __exportStar(require("./update-event-banner.dto"), exports);
@@ -1,19 +0,0 @@
1
- import { BannerPlatformInfo as IBannerPlatformInfo } from '@yolo-croket-dev/entity-v2/store-item-banner';
2
- import { EventBannerType } from '@yolo-croket-dev/entity-v2/event-banner';
3
- declare class BannerPlatformInfo implements IBannerPlatformInfo {
4
- imgUrl: string;
5
- landingUrl: string;
6
- width: number;
7
- height: number;
8
- }
9
- export declare class UpdateEventBannerPayload {
10
- eventBannerId: string;
11
- type: EventBannerType;
12
- description: string;
13
- web: BannerPlatformInfo;
14
- app: BannerPlatformInfo;
15
- isView: boolean;
16
- displayStartDate?: string;
17
- displayEndDate?: string;
18
- }
19
- export {};
@@ -1,73 +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.UpdateEventBannerPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const event_banner_1 = require("@yolo-croket-dev/entity-v2/event-banner");
15
- class BannerPlatformInfo {
16
- }
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], BannerPlatformInfo.prototype, "imgUrl", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], BannerPlatformInfo.prototype, "landingUrl", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsNumber)(),
29
- __metadata("design:type", Number)
30
- ], BannerPlatformInfo.prototype, "width", void 0);
31
- __decorate([
32
- (0, class_validator_1.IsNumber)(),
33
- __metadata("design:type", Number)
34
- ], BannerPlatformInfo.prototype, "height", void 0);
35
- class UpdateEventBannerPayload {
36
- }
37
- exports.UpdateEventBannerPayload = UpdateEventBannerPayload;
38
- __decorate([
39
- (0, class_validator_1.IsMongoId)(),
40
- (0, class_validator_1.IsNotEmpty)(),
41
- __metadata("design:type", String)
42
- ], UpdateEventBannerPayload.prototype, "eventBannerId", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsEnum)(event_banner_1.EventBannerType),
45
- __metadata("design:type", String)
46
- ], UpdateEventBannerPayload.prototype, "type", void 0);
47
- __decorate([
48
- (0, class_validator_1.IsString)(),
49
- (0, class_validator_1.IsNotEmpty)(),
50
- __metadata("design:type", String)
51
- ], UpdateEventBannerPayload.prototype, "description", void 0);
52
- __decorate([
53
- (0, class_validator_1.IsNotEmpty)(),
54
- __metadata("design:type", BannerPlatformInfo)
55
- ], UpdateEventBannerPayload.prototype, "web", void 0);
56
- __decorate([
57
- (0, class_validator_1.IsNotEmpty)(),
58
- __metadata("design:type", BannerPlatformInfo)
59
- ], UpdateEventBannerPayload.prototype, "app", void 0);
60
- __decorate([
61
- (0, class_validator_1.IsBoolean)(),
62
- __metadata("design:type", Boolean)
63
- ], UpdateEventBannerPayload.prototype, "isView", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsDateString)(),
66
- (0, class_validator_1.IsOptional)(),
67
- __metadata("design:type", String)
68
- ], UpdateEventBannerPayload.prototype, "displayStartDate", void 0);
69
- __decorate([
70
- (0, class_validator_1.IsDateString)(),
71
- (0, class_validator_1.IsOptional)(),
72
- __metadata("design:type", String)
73
- ], UpdateEventBannerPayload.prototype, "displayEndDate", void 0);
@@ -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,11 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { CreateEventBannerPayload, DeleteEventBannerPayload, UpdateEventBannerPayload } from '../dto';
4
- export declare class AmqpEventBannerService {
5
- private readonly client;
6
- private readonly amqpManager;
7
- constructor(client: ClientProxy);
8
- createEventBanner(payload: CreateEventBannerPayload, param: AbstractParam): Promise<void>;
9
- updateEventBanner(payload: UpdateEventBannerPayload, param: AbstractParam): Promise<void>;
10
- deleteEventBanner(payload: DeleteEventBannerPayload, param: AbstractParam): Promise<void>;
11
- }
@@ -1,39 +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.AmqpEventBannerService = 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 AmqpEventBannerService = class AmqpEventBannerService {
20
- constructor(client) {
21
- this.client = client;
22
- this.amqpManager = new functions_1.AmqpManagement(this.client);
23
- }
24
- async createEventBanner(payload, param) {
25
- return this.amqpManager.call('이벤트 배너 등록', 'event-banner.create', payload, param, { isErrorThrowing: true });
26
- }
27
- async updateEventBanner(payload, param) {
28
- return this.amqpManager.call('이벤트 배너 수정', 'event-banner.update', payload, param, { isErrorThrowing: true });
29
- }
30
- async deleteEventBanner(payload, param) {
31
- return this.amqpManager.call('이벤트 배너 삭제', 'event-banner.delete', payload, param, { isErrorThrowing: true });
32
- }
33
- };
34
- exports.AmqpEventBannerService = AmqpEventBannerService;
35
- exports.AmqpEventBannerService = AmqpEventBannerService = __decorate([
36
- (0, common_1.Injectable)(),
37
- __param(0, (0, common_1.Inject)('MANAGE_SERVICE_PROVIDER')),
38
- __metadata("design:paramtypes", [microservices_1.ClientProxy])
39
- ], AmqpEventBannerService);