@yolo-croket-dev/amqp-access 0.0.90-jun.39 → 0.0.90-jun.4

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 (57) hide show
  1. package/coupon-server/amqp.coupon-server.module.js +0 -2
  2. package/coupon-server/dto/index.d.ts +0 -1
  3. package/coupon-server/dto/index.js +0 -1
  4. package/coupon-server/services/index.d.ts +0 -1
  5. package/coupon-server/services/index.js +0 -1
  6. package/order-server/dto/bundle-p-info/index.d.ts +0 -1
  7. package/order-server/dto/bundle-p-info/index.js +0 -1
  8. package/order-server/dto/index.d.ts +0 -1
  9. package/order-server/dto/index.js +0 -1
  10. package/order-server/dto/pay-try-log/index.d.ts +1 -1
  11. package/order-server/dto/pay-try-log/index.js +1 -1
  12. package/order-server/dto/pay-try-log/{command/write-normal-store-item-pay-try-log-init.dto.d.ts → write-normal-store-item-pay-try-log-init.dto.d.ts} +5 -4
  13. package/order-server/dto/pay-try-log/{command/write-normal-store-item-pay-try-log-init.dto.js → write-normal-store-item-pay-try-log-init.dto.js} +4 -0
  14. package/order-server/services/amqp.bundle-p-info.service.d.ts +1 -2
  15. package/order-server/services/amqp.bundle-p-info.service.js +0 -3
  16. package/order-server/services/amqp.pay-try-log.service.d.ts +0 -4
  17. package/order-server/services/amqp.pay-try-log.service.js +0 -12
  18. package/package.json +3 -3
  19. package/user-service/amqp.user-service.module.js +0 -2
  20. package/user-service/dto/cart/query/get-carts-by-ids.dto.d.ts +12 -0
  21. package/user-service/dto/cart/query/get-carts-by-ids.dto.js +2 -0
  22. package/user-service/dto/cart/query/index.d.ts +1 -1
  23. package/user-service/dto/cart/query/index.js +15 -4
  24. package/user-service/dto/user/index.d.ts +0 -1
  25. package/user-service/dto/user/index.js +0 -1
  26. package/user-service/services/amqp.user-entity.service.d.ts +0 -2
  27. package/user-service/services/amqp.user-entity.service.js +0 -3
  28. package/user-service/services/index.d.ts +0 -1
  29. package/user-service/services/index.js +0 -1
  30. package/coupon-server/dto/issued-coupon/index.d.ts +0 -1
  31. package/coupon-server/dto/issued-coupon/index.js +0 -17
  32. package/coupon-server/dto/issued-coupon/query/check-can-use-coupon-for-payment.dto.d.ts +0 -6
  33. package/coupon-server/dto/issued-coupon/query/check-can-use-coupon-for-payment.dto.js +0 -33
  34. package/coupon-server/dto/issued-coupon/query/get-selected-issued-coupons-by-ids.dto.d.ts +0 -11
  35. package/coupon-server/dto/issued-coupon/query/get-selected-issued-coupons-by-ids.dto.js +0 -32
  36. package/coupon-server/dto/issued-coupon/query/index.d.ts +0 -2
  37. package/coupon-server/dto/issued-coupon/query/index.js +0 -18
  38. package/coupon-server/services/amqp.issued-coupon.service.d.ts +0 -10
  39. package/coupon-server/services/amqp.issued-coupon.service.js +0 -36
  40. package/order-server/dto/bundle-p-info/query/get-bundle-p-info-for-pay-log.dto.d.ts +0 -12
  41. package/order-server/dto/bundle-p-info/query/get-bundle-p-info-for-pay-log.dto.js +0 -23
  42. package/order-server/dto/bundle-p-info/query/index.d.ts +0 -1
  43. package/order-server/dto/bundle-p-info/query/index.js +0 -17
  44. package/order-server/dto/pay-try-log/command/index.d.ts +0 -3
  45. package/order-server/dto/pay-try-log/command/index.js +0 -19
  46. package/order-server/dto/pay-try-log/command/write-cart-store-item-pay-try-log-init.service.dto.d.ts +0 -16
  47. package/order-server/dto/pay-try-log/command/write-cart-store-item-pay-try-log-init.service.dto.js +0 -36
  48. package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.d.ts +0 -25
  49. package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.js +0 -101
  50. package/user-service/dto/cart/query/get-carts-for-write-pay.dto.d.ts +0 -56
  51. package/user-service/dto/cart/query/get-carts-for-write-pay.dto.js +0 -47
  52. package/user-service/dto/user/command/index.d.ts +0 -1
  53. package/user-service/dto/user/command/index.js +0 -17
  54. package/user-service/dto/user/command/save-shipping-address.dto.d.ts +0 -6
  55. package/user-service/dto/user/command/save-shipping-address.dto.js +0 -33
  56. package/user-service/services/amqp.cart.service.d.ts +0 -9
  57. package/user-service/services/amqp.cart.service.js +0 -33
@@ -18,13 +18,11 @@ AmqpCouponServerModule = __decorate([
18
18
  amqp_coupon_server_provider_1.CouponServerProvider,
19
19
  services_1.AmqpCouponTemplateService,
20
20
  services_1.AmqpBundleCouponService,
21
- services_1.AmqpIssuedCouponService,
22
21
  ],
23
22
  exports: [
24
23
  amqp_coupon_server_provider_1.CouponServerProvider,
25
24
  services_1.AmqpCouponTemplateService,
26
25
  services_1.AmqpBundleCouponService,
27
- services_1.AmqpIssuedCouponService,
28
26
  ],
29
27
  })
30
28
  ], AmqpCouponServerModule);
@@ -1,3 +1,2 @@
1
1
  export * from './coupon-template';
2
2
  export * from './bundle-coupon';
3
- export * from './issued-coupon';
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./coupon-template"), exports);
18
18
  __exportStar(require("./bundle-coupon"), exports);
19
- __exportStar(require("./issued-coupon"), exports);
@@ -1,3 +1,2 @@
1
1
  export * from './amqp.coupon-template.service';
2
2
  export * from './amqp.bundle-coupon.service';
3
- export * from './amqp.issued-coupon.service';
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  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
- __exportStar(require("./amqp.issued-coupon.service"), exports);
@@ -1,2 +1 @@
1
1
  export * from './command';
2
- export * from './query';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./command"), exports);
18
- __exportStar(require("./query"), exports);
@@ -1,3 +1,2 @@
1
1
  export * from './bundle-p-info';
2
2
  export * from './purchasedinfos';
3
- export * from './pay-try-log';
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./bundle-p-info"), exports);
18
18
  __exportStar(require("./purchasedinfos"), exports);
19
- __exportStar(require("./pay-try-log"), exports);
@@ -1 +1 @@
1
- export * from './command';
1
+ export * from './write-normal-store-item-pay-try-log-init.dto';
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./command"), exports);
17
+ __exportStar(require("./write-normal-store-item-pay-try-log-init.dto"), exports);
@@ -12,14 +12,15 @@ export declare class WriteNormalStoreItemPayTryLogPOptionInfo {
12
12
  }
13
13
  export declare class WriteNormalStoreItemPayTryLogInitPayload {
14
14
  paidPrice: number;
15
+ buyerId: string;
15
16
  itemId: string;
16
17
  DType: WriteNormalStoreItemPayTryLogDTypeEnum;
17
18
  pOptionInfo: WriteNormalStoreItemPayTryLogPOptionInfo;
18
19
  }
19
20
  export declare class WriteNormalStoreItemPayTryLogInitResult {
20
- payTryLogId: string;
21
- regDate: Date;
21
+ PTLId: string;
22
+ date: Date;
22
23
  payProcess: string;
23
- payTryLogType: string;
24
- buyerId: string;
24
+ type: string;
25
+ _author: string;
25
26
  }
@@ -46,6 +46,10 @@ __decorate([
46
46
  (0, class_validator_1.IsNumber)(),
47
47
  __metadata("design:type", Number)
48
48
  ], WriteNormalStoreItemPayTryLogInitPayload.prototype, "paidPrice", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsMongoId)(),
51
+ __metadata("design:type", String)
52
+ ], WriteNormalStoreItemPayTryLogInitPayload.prototype, "buyerId", void 0);
49
53
  __decorate([
50
54
  (0, class_validator_1.IsMongoId)(),
51
55
  __metadata("design:type", String)
@@ -1,11 +1,10 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { AddBundlePInfoPayload, RegBundlePInfoPayload, GetBundlePInfoForPayLogPayload, GetBundlePInfoForPayLogResult } from '../dto/bundle-p-info';
3
+ import { AddBundlePInfoPayload, RegBundlePInfoPayload } from '../dto/bundle-p-info';
4
4
  export declare class AmqpBundlePInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  addBundlePInfo(payload: AddBundlePInfoPayload, param: AbstractParam): Promise<void>;
9
9
  regBundlePInfo(payload: RegBundlePInfoPayload, param: AbstractParam): Promise<void>;
10
- getBundlePInfoForPayLog(payload: GetBundlePInfoForPayLogPayload, param: AbstractParam): Promise<GetBundlePInfoForPayLogResult>;
11
10
  }
@@ -29,9 +29,6 @@ let AmqpBundlePInfoService = class AmqpBundlePInfoService {
29
29
  // eslint-disable-next-line max-len
30
30
  return this.amqpManager.call('묶음 결제 생성', 'bundle-p-info.create', payload, param, { isErrorThrowing: true });
31
31
  }
32
- async getBundlePInfoForPayLog(payload, param) {
33
- return this.amqpManager.call('묶음 결제 검색 for pay log', 'bundle-p-info.get.for-pay-log', payload, param, { isErrorThrowing: true });
34
- }
35
32
  };
36
33
  AmqpBundlePInfoService = __decorate([
37
34
  (0, common_1.Injectable)(),
@@ -1,14 +1,10 @@
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 } from '../dto/pay-try-log';
5
4
  export declare class AmqpPayTryLogService {
6
5
  private readonly client;
7
6
  private readonly amqpManager;
8
7
  constructor(client: ClientProxy);
9
8
  getPayTryLogsForEs(payload: GetPayTryLogsForEsPayload, param: AbstractParam): Promise<GetPayTryLogsForEsResult>;
10
9
  getPayTryLogsForEsByIds(payload: GetPayTryLogsForEsByIdsPayload, param: AbstractParam): Promise<GetPayTryLogsForEsByIdsResult>;
11
- writeNormalStoreItemPayTryLogInit(payload: WriteNormalStoreItemPayTryLogInitPayload, param: AbstractParam): Promise<WriteNormalStoreItemPayTryLogInitResult>;
12
- writeNormalStoreItemPayTryLogAfter(payload: WriteNormalStoreItemPayTryLogAfterPayload, param: AbstractParam): Promise<void>;
13
- writeCartStoreItemPayTryLogInit(payload: WriteCartStoreItemPayTryLogInitPayload, param: AbstractParam): Promise<WriteCartStoreItemPayTryLogInitResult>;
14
10
  }
@@ -29,18 +29,6 @@ let AmqpPayTryLogService = class AmqpPayTryLogService {
29
29
  // eslint-disable-next-line max-len
30
30
  return this.amqpManager.call('es를 위한 결제 시도 로그 리스트 조회 by ids', 'pay-try-log.search.for-es-by-ids', payload, param, { isErrorThrowing: true });
31
31
  }
32
- async writeNormalStoreItemPayTryLogInit(payload, param) {
33
- // eslint-disable-next-line max-len
34
- return this.amqpManager.call('일반 상품 결제 시도 로그 초기화', 'pay-try-log.create.normal-store-item-pay-init', payload, param, { isErrorThrowing: true });
35
- }
36
- async writeNormalStoreItemPayTryLogAfter(payload, param) {
37
- // eslint-disable-next-line max-len
38
- return this.amqpManager.call('일반 상품 결제 시도 로그 후 작성', 'pay-try-log.create.normal-store-item-pay-after', payload, param, { isErrorThrowing: true });
39
- }
40
- async writeCartStoreItemPayTryLogInit(payload, param) {
41
- // eslint-disable-next-line max-len
42
- return this.amqpManager.call('장바구니 상품 결제 시도 로그 초기화', 'pay-try-log.create.cart-store-item-pay-init', payload, param, { isErrorThrowing: true });
43
- }
44
32
  };
45
33
  AmqpPayTryLogService = __decorate([
46
34
  (0, common_1.Injectable)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.90-jun.39",
3
+ "version": "0.0.90-jun.4",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -21,8 +21,8 @@
21
21
  "@nestjs/microservices": "9.0.8",
22
22
  "@yolo-croket-dev/core": "^1.4.52",
23
23
  "@yolo-croket-dev/dto-v2": "^0.0.149",
24
- "@yolo-croket-dev/entity": "0.1.119-jun.34",
25
- "@yolo-croket-dev/entity-v2": "^0.0.37",
24
+ "@yolo-croket-dev/entity": "^0.1.108",
25
+ "@yolo-croket-dev/entity-v2": "^0.0.36",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -27,7 +27,6 @@ AmqpUserServiceModule = __decorate([
27
27
  services_1.AmqpStoreService,
28
28
  services_1.AmqpAskService,
29
29
  services_1.AmqpInflowSessionByUserService,
30
- services_1.AmqpCartService,
31
30
  ],
32
31
  exports: [
33
32
  amqp_user_service_provider_1.UserServiceProvider,
@@ -41,7 +40,6 @@ AmqpUserServiceModule = __decorate([
41
40
  services_1.AmqpStoreService,
42
41
  services_1.AmqpAskService,
43
42
  services_1.AmqpInflowSessionByUserService,
44
- services_1.AmqpCartService,
45
43
  ],
46
44
  })
47
45
  ], AmqpUserServiceModule);
@@ -0,0 +1,12 @@
1
+ import { CartEntity } from '@yolo-croket-dev/entity-v2/cart';
2
+ export declare class GetCartsByIdsPayload {
3
+ /** 장바구니 아이디 리스트 */
4
+ cartIds: string[];
5
+ /** 검색 포함 필드 */
6
+ includeFields?: string[];
7
+ /** 검색 제외 필드 */
8
+ excludeFields?: string[];
9
+ }
10
+ export declare class GetCartsByIdsResult {
11
+ carts: CartEntity[];
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export { GetCartsForWritePayPayload, GetCartsForWritePayResult, } from './get-carts-for-write-pay.dto';
1
+ export * from './get-carts-by-ids.dto';
@@ -1,6 +1,17 @@
1
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
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetCartsForWritePayResult = exports.GetCartsForWritePayPayload = void 0;
4
- var get_carts_for_write_pay_dto_1 = require("./get-carts-for-write-pay.dto");
5
- Object.defineProperty(exports, "GetCartsForWritePayPayload", { enumerable: true, get: function () { return get_carts_for_write_pay_dto_1.GetCartsForWritePayPayload; } });
6
- Object.defineProperty(exports, "GetCartsForWritePayResult", { enumerable: true, get: function () { return get_carts_for_write_pay_dto_1.GetCartsForWritePayResult; } });
17
+ __exportStar(require("./get-carts-by-ids.dto"), exports);
@@ -1,2 +1 @@
1
1
  export * from './query';
2
- export * from './command';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./query"), exports);
18
- __exportStar(require("./command"), exports);
@@ -2,12 +2,10 @@ import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  /** @dto -v2 */
4
4
  import { DecodePhoneNumbersPayload, PhoneDecodedData } from '@yolo-croket-dev/dto-v2/user-service';
5
- import { SaveShippingAddressPayload } from '../dto/user/command/save-shipping-address.dto';
6
5
  /** 기존 userService 와 이름이 겹쳐 userEntityService로 임시 사용 */
7
6
  export declare class AmqpUserEntityService {
8
7
  private readonly client;
9
8
  private readonly amqpManager;
10
9
  constructor(client: ClientProxy);
11
10
  decodePhoneNumbers(payload: DecodePhoneNumbersPayload, param: AbstractParam): Promise<PhoneDecodedData[]>;
12
- saveShippingAddress(payload: SaveShippingAddressPayload, param: AbstractParam): Promise<void>;
13
11
  }
@@ -25,9 +25,6 @@ let AmqpUserEntityService = class AmqpUserEntityService {
25
25
  async decodePhoneNumbers(payload, param) {
26
26
  return this.amqpManager.call('휴대폰 번호들 decode', 'user.decode.phone-numbers', payload, param, { isErrorThrowing: true });
27
27
  }
28
- async saveShippingAddress(payload, param) {
29
- return this.amqpManager.call('유저 - 배송 주소 정보 저장', 'user.save.shipping-address', payload, param, { isErrorThrowing: true });
30
- }
31
28
  };
32
29
  AmqpUserEntityService = __decorate([
33
30
  (0, common_1.Injectable)(),
@@ -7,4 +7,3 @@ export * from './amqp.user-entity.service';
7
7
  export * from './amqp.store.service';
8
8
  export * from './ask';
9
9
  export * from './amqp.inflow-session.service';
10
- export * from './amqp.cart.service';
@@ -23,4 +23,3 @@ __exportStar(require("./amqp.user-entity.service"), exports);
23
23
  __exportStar(require("./amqp.store.service"), exports);
24
24
  __exportStar(require("./ask"), exports);
25
25
  __exportStar(require("./amqp.inflow-session.service"), exports);
26
- __exportStar(require("./amqp.cart.service"), exports);
@@ -1 +0,0 @@
1
- export * from './query';
@@ -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("./query"), exports);
@@ -1,6 +0,0 @@
1
- export declare class CheckCanUseCouponForPaymentPayload {
2
- purchasedNums: number;
3
- storeItemId: string;
4
- issuedCouponId: string;
5
- paymentMethod?: string;
6
- }
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CheckCanUseCouponForPaymentPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class CheckCanUseCouponForPaymentPayload {
15
- }
16
- __decorate([
17
- (0, class_validator_1.IsNumber)(),
18
- __metadata("design:type", Number)
19
- ], CheckCanUseCouponForPaymentPayload.prototype, "purchasedNums", void 0);
20
- __decorate([
21
- (0, class_validator_1.IsMongoId)(),
22
- __metadata("design:type", String)
23
- ], CheckCanUseCouponForPaymentPayload.prototype, "storeItemId", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsMongoId)(),
26
- __metadata("design:type", String)
27
- ], CheckCanUseCouponForPaymentPayload.prototype, "issuedCouponId", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsString)(),
30
- (0, class_validator_1.IsOptional)(),
31
- __metadata("design:type", String)
32
- ], CheckCanUseCouponForPaymentPayload.prototype, "paymentMethod", void 0);
33
- exports.CheckCanUseCouponForPaymentPayload = CheckCanUseCouponForPaymentPayload;
@@ -1,11 +0,0 @@
1
- import { IssuedCouponEntity } from '@yolo-croket-dev/entity/src/issued-coupon/issued-coupon.entity';
2
- export declare class GetSelectedIssuedCouponsByIdsPayload {
3
- issuedCouponIds: string[];
4
- /** 검색 포함 필드 */
5
- includeFields: string[];
6
- /** 검색 제외 필드 */
7
- excludeFields?: string[];
8
- }
9
- export declare class GetSelectedIssuedCouponsByIdsResult {
10
- issuedCoupons: IssuedCouponEntity[];
11
- }
@@ -1,32 +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.GetSelectedIssuedCouponsByIdsResult = exports.GetSelectedIssuedCouponsByIdsPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GetSelectedIssuedCouponsByIdsPayload {
15
- }
16
- __decorate([
17
- (0, class_validator_1.IsMongoId)({ each: true }),
18
- __metadata("design:type", Array)
19
- ], GetSelectedIssuedCouponsByIdsPayload.prototype, "issuedCouponIds", void 0);
20
- __decorate([
21
- (0, class_validator_1.IsString)({ each: true }),
22
- __metadata("design:type", Array)
23
- ], GetSelectedIssuedCouponsByIdsPayload.prototype, "includeFields", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsOptional)(),
26
- (0, class_validator_1.IsString)({ each: true }),
27
- __metadata("design:type", Array)
28
- ], GetSelectedIssuedCouponsByIdsPayload.prototype, "excludeFields", void 0);
29
- exports.GetSelectedIssuedCouponsByIdsPayload = GetSelectedIssuedCouponsByIdsPayload;
30
- class GetSelectedIssuedCouponsByIdsResult {
31
- }
32
- exports.GetSelectedIssuedCouponsByIdsResult = GetSelectedIssuedCouponsByIdsResult;
@@ -1,2 +0,0 @@
1
- export * from './check-can-use-coupon-for-payment.dto';
2
- export * from './get-selected-issued-coupons-by-ids.dto';
@@ -1,18 +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("./check-can-use-coupon-for-payment.dto"), exports);
18
- __exportStar(require("./get-selected-issued-coupons-by-ids.dto"), exports);
@@ -1,10 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { CheckCanUseCouponForPaymentPayload, GetSelectedIssuedCouponsByIdsPayload, GetSelectedIssuedCouponsByIdsResult } from '../dto/issued-coupon';
4
- export declare class AmqpIssuedCouponService {
5
- private readonly client;
6
- private readonly amqpManager;
7
- constructor(client: ClientProxy);
8
- checkCanUseCouponForPayment(payload: CheckCanUseCouponForPaymentPayload, param: AbstractParam): Promise<void>;
9
- getSelectedIssuedCouponsByIds(payload: GetSelectedIssuedCouponsByIdsPayload, param: AbstractParam): Promise<GetSelectedIssuedCouponsByIdsResult>;
10
- }
@@ -1,36 +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.AmqpIssuedCouponService = 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 AmqpIssuedCouponService = class AmqpIssuedCouponService {
20
- constructor(client) {
21
- this.client = client;
22
- this.amqpManager = new functions_1.AmqpManagement(this.client);
23
- }
24
- async checkCanUseCouponForPayment(payload, param) {
25
- return this.amqpManager.call('결제시 해당 쿠폰 사용가능한지 체크', 'coupon-template.get.datas-for-item-max-discount-coupon', payload, param, { isErrorThrowing: true });
26
- }
27
- async getSelectedIssuedCouponsByIds(payload, param) {
28
- return this.amqpManager.call('발급된 쿠폰 중 선택한 데이터만 가져오기', 'issued-coupon.get.selected-issued-coupons-by-ids', payload, param, { isErrorThrowing: true });
29
- }
30
- };
31
- AmqpIssuedCouponService = __decorate([
32
- (0, common_1.Injectable)(),
33
- __param(0, (0, common_1.Inject)('COUPON_SERVER_PROVIDER')),
34
- __metadata("design:paramtypes", [microservices_1.ClientProxy])
35
- ], AmqpIssuedCouponService);
36
- exports.AmqpIssuedCouponService = AmqpIssuedCouponService;
@@ -1,12 +0,0 @@
1
- import { BundlePurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/bundle-purchased-info';
2
- import { PurchasedInfoEntity } from '@yolo-croket-dev/entity/src/purchased-info/purchased-info.entity';
3
- export declare class GetBundlePInfoForPayLogPayload {
4
- pInfoId: string;
5
- }
6
- export declare class GetBundlePInfoForPayLogResult {
7
- bundlePInfo: SearchedBundlePInfo;
8
- }
9
- export declare type SearchedBundlePInfo = Pick<BundlePurchasedInfoEntity, '_id' | 'PInfoList'> & {
10
- _purchasedInfos: SearchedPurchasedInfo[];
11
- };
12
- export declare type SearchedPurchasedInfo = Pick<PurchasedInfoEntity, '_id' | 'buyerId' | 'storeId' | 'pastStoreItemInfo' | 'deliveryMethod'>;
@@ -1,23 +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.GetBundlePInfoForPayLogResult = exports.GetBundlePInfoForPayLogPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GetBundlePInfoForPayLogPayload {
15
- }
16
- __decorate([
17
- (0, class_validator_1.IsMongoId)(),
18
- __metadata("design:type", String)
19
- ], GetBundlePInfoForPayLogPayload.prototype, "pInfoId", void 0);
20
- exports.GetBundlePInfoForPayLogPayload = GetBundlePInfoForPayLogPayload;
21
- class GetBundlePInfoForPayLogResult {
22
- }
23
- exports.GetBundlePInfoForPayLogResult = GetBundlePInfoForPayLogResult;
@@ -1 +0,0 @@
1
- export * from './get-bundle-p-info-for-pay-log.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("./get-bundle-p-info-for-pay-log.dto"), exports);
@@ -1,3 +0,0 @@
1
- export * from './write-normal-store-item-pay-try-log-init.dto';
2
- export * from './write-normal-store-item-pay-try-log-after.dto';
3
- export * from './write-cart-store-item-pay-try-log-init.service.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("./write-normal-store-item-pay-try-log-init.dto"), exports);
18
- __exportStar(require("./write-normal-store-item-pay-try-log-after.dto"), exports);
19
- __exportStar(require("./write-cart-store-item-pay-try-log-init.service.dto"), exports);
@@ -1,16 +0,0 @@
1
- export declare enum WriteCartStoreItemPayTryLogCartTypeEnum {
2
- shipping = "shipping",
3
- direct = "direct"
4
- }
5
- export declare class WriteCartStoreItemPayTryLogInitPayload {
6
- paidPrice: number;
7
- cartType: WriteCartStoreItemPayTryLogCartTypeEnum;
8
- cartIds: string[];
9
- }
10
- export declare class WriteCartStoreItemPayTryLogInitResult {
11
- payTryLogId: string;
12
- regDate: Date;
13
- payProcess: string;
14
- payTryLogType: string;
15
- buyerId: string;
16
- }
@@ -1,36 +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.WriteCartStoreItemPayTryLogInitResult = exports.WriteCartStoreItemPayTryLogInitPayload = exports.WriteCartStoreItemPayTryLogCartTypeEnum = void 0;
13
- const class_validator_1 = require("class-validator");
14
- var WriteCartStoreItemPayTryLogCartTypeEnum;
15
- (function (WriteCartStoreItemPayTryLogCartTypeEnum) {
16
- WriteCartStoreItemPayTryLogCartTypeEnum["shipping"] = "shipping";
17
- WriteCartStoreItemPayTryLogCartTypeEnum["direct"] = "direct";
18
- })(WriteCartStoreItemPayTryLogCartTypeEnum = exports.WriteCartStoreItemPayTryLogCartTypeEnum || (exports.WriteCartStoreItemPayTryLogCartTypeEnum = {}));
19
- class WriteCartStoreItemPayTryLogInitPayload {
20
- }
21
- __decorate([
22
- (0, class_validator_1.IsNumber)(),
23
- __metadata("design:type", Number)
24
- ], WriteCartStoreItemPayTryLogInitPayload.prototype, "paidPrice", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsEnum)(WriteCartStoreItemPayTryLogCartTypeEnum),
27
- __metadata("design:type", String)
28
- ], WriteCartStoreItemPayTryLogInitPayload.prototype, "cartType", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsMongoId)({ each: true }),
31
- __metadata("design:type", Array)
32
- ], WriteCartStoreItemPayTryLogInitPayload.prototype, "cartIds", void 0);
33
- exports.WriteCartStoreItemPayTryLogInitPayload = WriteCartStoreItemPayTryLogInitPayload;
34
- class WriteCartStoreItemPayTryLogInitResult {
35
- }
36
- exports.WriteCartStoreItemPayTryLogInitResult = WriteCartStoreItemPayTryLogInitResult;
@@ -1,25 +0,0 @@
1
- import { PayTryLogPayMethodTypeEnum } from '@yolo-croket-dev/entity/src/pay-try-log/pay-try-log.entity';
2
- export declare enum WriteNormalStoreItemPayTryLogAfterDTypeEnum {
3
- 'bundle' = "bundle",
4
- 'shipping' = "shipping",
5
- 'direct' = "direct"
6
- }
7
- export declare class WriteNormalStoreItemPayTryLogAfterPayload {
8
- payTryLogId: string;
9
- payMethod: PayTryLogPayMethodTypeEnum;
10
- paidPrice: number;
11
- paidPrice_exceptPaymentFee: number;
12
- DType: WriteNormalStoreItemPayTryLogAfterDTypeEnum;
13
- usedCredit?: number;
14
- requirement?: string;
15
- bundlePInfoId?: string;
16
- ICId?: string;
17
- isAbroadShipping?: boolean;
18
- PCCC?: string;
19
- buyerName: string;
20
- buyerPhoneNumber: string;
21
- buyerPostCode?: string;
22
- buyerAddress1?: string;
23
- buyerAddress2?: string;
24
- buyerDirectAddress?: string;
25
- }
@@ -1,101 +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.WriteNormalStoreItemPayTryLogAfterPayload = exports.WriteNormalStoreItemPayTryLogAfterDTypeEnum = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const pay_try_log_entity_1 = require("@yolo-croket-dev/entity/src/pay-try-log/pay-try-log.entity");
15
- var WriteNormalStoreItemPayTryLogAfterDTypeEnum;
16
- (function (WriteNormalStoreItemPayTryLogAfterDTypeEnum) {
17
- WriteNormalStoreItemPayTryLogAfterDTypeEnum["bundle"] = "bundle";
18
- WriteNormalStoreItemPayTryLogAfterDTypeEnum["shipping"] = "shipping";
19
- WriteNormalStoreItemPayTryLogAfterDTypeEnum["direct"] = "direct";
20
- })(WriteNormalStoreItemPayTryLogAfterDTypeEnum = exports.WriteNormalStoreItemPayTryLogAfterDTypeEnum || (exports.WriteNormalStoreItemPayTryLogAfterDTypeEnum = {}));
21
- class WriteNormalStoreItemPayTryLogAfterPayload {
22
- }
23
- __decorate([
24
- (0, class_validator_1.IsMongoId)(),
25
- __metadata("design:type", String)
26
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "payTryLogId", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsEnum)(pay_try_log_entity_1.PayTryLogPayMethodTypeEnum),
29
- __metadata("design:type", String)
30
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "payMethod", void 0);
31
- __decorate([
32
- (0, class_validator_1.IsNumber)(),
33
- __metadata("design:type", Number)
34
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "paidPrice", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsNumber)(),
37
- __metadata("design:type", Number)
38
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "paidPrice_exceptPaymentFee", void 0);
39
- __decorate([
40
- (0, class_validator_1.IsEnum)(WriteNormalStoreItemPayTryLogAfterDTypeEnum),
41
- __metadata("design:type", String)
42
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "DType", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsNumber)(),
45
- (0, class_validator_1.IsOptional)(),
46
- __metadata("design:type", Number)
47
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "usedCredit", void 0);
48
- __decorate([
49
- (0, class_validator_1.IsNumber)(),
50
- (0, class_validator_1.IsOptional)(),
51
- __metadata("design:type", String)
52
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "requirement", void 0);
53
- __decorate([
54
- (0, class_validator_1.IsMongoId)(),
55
- (0, class_validator_1.IsOptional)(),
56
- __metadata("design:type", String)
57
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "bundlePInfoId", void 0);
58
- __decorate([
59
- (0, class_validator_1.IsMongoId)(),
60
- (0, class_validator_1.IsOptional)(),
61
- __metadata("design:type", String)
62
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "ICId", void 0);
63
- __decorate([
64
- (0, class_validator_1.IsBoolean)(),
65
- (0, class_validator_1.IsOptional)(),
66
- __metadata("design:type", Boolean)
67
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "isAbroadShipping", void 0);
68
- __decorate([
69
- (0, class_validator_1.IsString)(),
70
- (0, class_validator_1.IsOptional)(),
71
- __metadata("design:type", String)
72
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "PCCC", void 0);
73
- __decorate([
74
- (0, class_validator_1.IsString)(),
75
- __metadata("design:type", String)
76
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "buyerName", void 0);
77
- __decorate([
78
- (0, class_validator_1.IsString)(),
79
- __metadata("design:type", String)
80
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "buyerPhoneNumber", void 0);
81
- __decorate([
82
- (0, class_validator_1.IsString)(),
83
- (0, class_validator_1.IsOptional)(),
84
- __metadata("design:type", String)
85
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "buyerPostCode", void 0);
86
- __decorate([
87
- (0, class_validator_1.IsString)(),
88
- (0, class_validator_1.IsOptional)(),
89
- __metadata("design:type", String)
90
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "buyerAddress1", void 0);
91
- __decorate([
92
- (0, class_validator_1.IsString)(),
93
- (0, class_validator_1.IsOptional)(),
94
- __metadata("design:type", String)
95
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "buyerAddress2", void 0);
96
- __decorate([
97
- (0, class_validator_1.IsString)(),
98
- (0, class_validator_1.IsOptional)(),
99
- __metadata("design:type", String)
100
- ], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "buyerDirectAddress", void 0);
101
- exports.WriteNormalStoreItemPayTryLogAfterPayload = WriteNormalStoreItemPayTryLogAfterPayload;
@@ -1,56 +0,0 @@
1
- import { CartEntity } from '@yolo-croket-dev/entity-v2/cart';
2
- import { StoreItem } from '@yolo-croket-dev/entity/src/store-item/store-item.entity';
3
- import { UserEntity } from '@yolo-croket-dev/entity-v2/user/user.entity';
4
- declare type SearchedUserForWritePay = Pick<UserEntity, '_id' | 'username'>;
5
- declare type SearchedStoreItemForWritePay = Pick<StoreItem, '_id' | 'selectionInfos' | 'itemPrice' | 'insuranceInfo' | 'mainCategory' | 'subCategory' | 'sellerId' | 'isLimitSale' | 'itemName' | 'itemPriceForBuyer' | 'sellingInfo' | 'adultItemInfo' | 'limitSaleInfo' | 'itemImg' | 'purchased' | 'storeId'> & {
6
- _seller: SearchedUserForWritePay;
7
- };
8
- export declare type CartForWritePay = Pick<CartEntity, '_id' | 'itemId' | 'storeId' | 'pOption' | 'pOptionInfo' | 'itemName_past' | 'itemPrice_past' | 'sellingInfo_past' | 'cartType' | 'ownerId' | 'isChecked' | 'requirement' | 'lastModifyDate' | 'directAddress_custom'> & {
9
- _item: SearchedStoreItemForWritePay;
10
- };
11
- export declare const SearchedUserForWritePaySelect: {
12
- _id: number;
13
- username: number;
14
- };
15
- export declare const SearchedStoreItemForWritePaySelect: {
16
- _id: number;
17
- selectionInfos: number;
18
- itemPrice: number;
19
- insuranceInfo: number;
20
- mainCategory: number;
21
- subCategory: number;
22
- sellerId: number;
23
- isLimitSale: number;
24
- itemName: number;
25
- itemPriceForBuyer: number;
26
- sellingInfo: number;
27
- adultItemInfo: number;
28
- limitSaleInfo: number;
29
- itemImg: number;
30
- purchased: number;
31
- storeId: number;
32
- };
33
- export declare const CartForWritePaySelect: {
34
- _id: number;
35
- itemId: number;
36
- storeId: number;
37
- pOption: number;
38
- pOptionInfo: number;
39
- itemName_past: number;
40
- itemPrice_past: number;
41
- sellingInfo_past: number;
42
- cartType: number;
43
- ownerId: number;
44
- isChecked: number;
45
- requirement: number;
46
- lastModifyDate: number;
47
- directAddress_custom: number;
48
- };
49
- export declare class GetCartsForWritePayPayload {
50
- /** 장바구니 아이디 리스트 */
51
- cartIds: string[];
52
- }
53
- export declare class GetCartsForWritePayResult {
54
- carts: CartForWritePay[];
55
- }
56
- export {};
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetCartsForWritePayResult = exports.GetCartsForWritePayPayload = exports.CartForWritePaySelect = exports.SearchedStoreItemForWritePaySelect = exports.SearchedUserForWritePaySelect = void 0;
4
- exports.SearchedUserForWritePaySelect = {
5
- _id: 1,
6
- username: 1,
7
- };
8
- exports.SearchedStoreItemForWritePaySelect = {
9
- _id: 1,
10
- selectionInfos: 1,
11
- itemPrice: 1,
12
- insuranceInfo: 1,
13
- mainCategory: 1,
14
- subCategory: 1,
15
- sellerId: 1,
16
- isLimitSale: 1,
17
- itemName: 1,
18
- itemPriceForBuyer: 1,
19
- sellingInfo: 1,
20
- adultItemInfo: 1,
21
- limitSaleInfo: 1,
22
- itemImg: 1,
23
- purchased: 1,
24
- storeId: 1,
25
- };
26
- exports.CartForWritePaySelect = {
27
- _id: 1,
28
- itemId: 1,
29
- storeId: 1,
30
- pOption: 1,
31
- pOptionInfo: 1,
32
- itemName_past: 1,
33
- itemPrice_past: 1,
34
- sellingInfo_past: 1,
35
- cartType: 1,
36
- ownerId: 1,
37
- isChecked: 1,
38
- requirement: 1,
39
- lastModifyDate: 1,
40
- directAddress_custom: 1,
41
- };
42
- class GetCartsForWritePayPayload {
43
- }
44
- exports.GetCartsForWritePayPayload = GetCartsForWritePayPayload;
45
- class GetCartsForWritePayResult {
46
- }
47
- exports.GetCartsForWritePayResult = GetCartsForWritePayResult;
@@ -1 +0,0 @@
1
- export * from './save-shipping-address.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("./save-shipping-address.dto"), exports);
@@ -1,6 +0,0 @@
1
- export declare class SaveShippingAddressPayload {
2
- userId: string;
3
- postCode: string;
4
- address1: string;
5
- address2?: string;
6
- }
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SaveShippingAddressPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class SaveShippingAddressPayload {
15
- }
16
- __decorate([
17
- (0, class_validator_1.IsMongoId)(),
18
- __metadata("design:type", String)
19
- ], SaveShippingAddressPayload.prototype, "userId", void 0);
20
- __decorate([
21
- (0, class_validator_1.IsString)(),
22
- __metadata("design:type", String)
23
- ], SaveShippingAddressPayload.prototype, "postCode", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsString)(),
26
- __metadata("design:type", String)
27
- ], SaveShippingAddressPayload.prototype, "address1", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsString)(),
30
- (0, class_validator_1.IsOptional)(),
31
- __metadata("design:type", String)
32
- ], SaveShippingAddressPayload.prototype, "address2", void 0);
33
- exports.SaveShippingAddressPayload = SaveShippingAddressPayload;
@@ -1,9 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetCartsForWritePayPayload, GetCartsForWritePayResult } from '@yolo-croket-dev/amqp-access/user-service/dto/cart';
4
- export declare class AmqpCartService {
5
- private readonly client;
6
- private readonly amqpManager;
7
- constructor(client: ClientProxy);
8
- getCartsByIds(payload: GetCartsForWritePayPayload, param: AbstractParam): Promise<GetCartsForWritePayResult>;
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.AmqpCartService = 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 AmqpCartService = class AmqpCartService {
20
- constructor(client) {
21
- this.client = client;
22
- this.amqpManager = new functions_1.AmqpManagement(this.client);
23
- }
24
- async getCartsByIds(payload, param) {
25
- return this.amqpManager.call('장바구니 아이디로 데이터 조회', 'cart.get.carts-by-ids', payload, param, { isErrorThrowing: true });
26
- }
27
- };
28
- AmqpCartService = __decorate([
29
- (0, common_1.Injectable)(),
30
- __param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
31
- __metadata("design:paramtypes", [microservices_1.ClientProxy])
32
- ], AmqpCartService);
33
- exports.AmqpCartService = AmqpCartService;