@yolo-croket-dev/amqp-access 0.7.182 → 0.7.183-hj-2

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/excel-upload-server/services/amqp.crm-cohort-excel.service.d.ts +0 -0
  2. package/excel-upload-server/services/amqp.crm-cohort-excel.service.js +1 -0
  3. package/notification-service/amqp.notification-service.module.js +2 -0
  4. package/notification-service/dto/amplitude-cohort-export-job/command/create-amplitude-cohort-export-job.dto.d.ts +11 -0
  5. package/notification-service/dto/amplitude-cohort-export-job/command/create-amplitude-cohort-export-job.dto.js +41 -0
  6. package/notification-service/dto/amplitude-cohort-export-job/command/index.d.ts +2 -0
  7. package/notification-service/dto/amplitude-cohort-export-job/command/index.js +18 -0
  8. package/notification-service/dto/amplitude-cohort-export-job/command/update-amplitude-cohort-export-job.dto.d.ts +15 -0
  9. package/notification-service/dto/amplitude-cohort-export-job/command/update-amplitude-cohort-export-job.dto.js +63 -0
  10. package/notification-service/dto/amplitude-cohort-export-job/index.d.ts +2 -0
  11. package/notification-service/dto/amplitude-cohort-export-job/index.js +18 -0
  12. package/notification-service/dto/amplitude-cohort-export-job/query/get-amplitude-cohort-export-job.dto.d.ts +3 -0
  13. package/notification-service/dto/amplitude-cohort-export-job/query/get-amplitude-cohort-export-job.dto.js +20 -0
  14. package/notification-service/dto/amplitude-cohort-export-job/query/index.d.ts +1 -0
  15. package/notification-service/dto/amplitude-cohort-export-job/query/index.js +17 -0
  16. package/notification-service/dto/index.d.ts +1 -0
  17. package/notification-service/dto/index.js +1 -0
  18. package/notification-service/services/amqp.amplitude-cohort-export-job.service.d.ts +12 -0
  19. package/notification-service/services/amqp.amplitude-cohort-export-job.service.js +39 -0
  20. package/notification-service/services/index.d.ts +1 -0
  21. package/notification-service/services/index.js +1 -0
  22. package/package.json +2 -2
  23. package/.claude/settings.local.json +0 -11
@@ -26,6 +26,7 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
26
26
  services_1.AmqpAppBulkPushService,
27
27
  services_1.AmqpSendNotificationService,
28
28
  services_1.AmqpNotificationBulkSendService,
29
+ services_1.AmqpAmplitudeCohortExportJobService,
29
30
  ],
30
31
  exports: [
31
32
  amqp_notification_service_provider_1.NotifiactionServiceProvider,
@@ -37,6 +38,7 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
37
38
  services_1.AmqpAppBulkPushService,
38
39
  services_1.AmqpSendNotificationService,
39
40
  services_1.AmqpNotificationBulkSendService,
41
+ services_1.AmqpAmplitudeCohortExportJobService,
40
42
  ],
41
43
  })
42
44
  ], AmqpNotificationServiceModule);
@@ -0,0 +1,11 @@
1
+ import { AmplitudeCohortExportTypeEnum } from '@yolo-croket-dev/entity-v2';
2
+ export declare class CreateAmplitudeCohortExportJobPayload {
3
+ cohortId: string;
4
+ exportType: AmplitudeCohortExportTypeEnum;
5
+ excludedExcelFileName?: string;
6
+ excludedUserFileKey?: string;
7
+ excludedUserIdCount: number;
8
+ }
9
+ export interface CreateAmplitudeCohortExportJobResult {
10
+ jobId: string;
11
+ }
@@ -0,0 +1,41 @@
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.CreateAmplitudeCohortExportJobPayload = void 0;
13
+ const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateAmplitudeCohortExportJobPayload {
16
+ }
17
+ exports.CreateAmplitudeCohortExportJobPayload = CreateAmplitudeCohortExportJobPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], CreateAmplitudeCohortExportJobPayload.prototype, "cohortId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsEnum)({ enum: entity_v2_1.AmplitudeCohortExportTypeEnum }),
25
+ __metadata("design:type", String)
26
+ ], CreateAmplitudeCohortExportJobPayload.prototype, "exportType", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], CreateAmplitudeCohortExportJobPayload.prototype, "excludedExcelFileName", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], CreateAmplitudeCohortExportJobPayload.prototype, "excludedUserFileKey", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNumber)(),
39
+ (0, class_validator_1.Min)(0),
40
+ __metadata("design:type", Number)
41
+ ], CreateAmplitudeCohortExportJobPayload.prototype, "excludedUserIdCount", void 0);
@@ -0,0 +1,2 @@
1
+ export * from './create-amplitude-cohort-export-job.dto';
2
+ export * from './update-amplitude-cohort-export-job.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-amplitude-cohort-export-job.dto"), exports);
18
+ __exportStar(require("./update-amplitude-cohort-export-job.dto"), exports);
@@ -0,0 +1,15 @@
1
+ import { AmplitudeCohortExportStatusEnum } from '@yolo-croket-dev/entity-v2';
2
+ export declare class UpdateAmplitudeCohortExportJobPayload {
3
+ jobId: string;
4
+ status: AmplitudeCohortExportStatusEnum;
5
+ amplitudeRequestId?: string;
6
+ pollCount?: number;
7
+ exportedUserCount?: number;
8
+ excludedUserCount?: number;
9
+ resultFile?: {
10
+ key: string;
11
+ url: string;
12
+ };
13
+ errorCode?: string;
14
+ errorMessage?: string;
15
+ }
@@ -0,0 +1,63 @@
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.UpdateAmplitudeCohortExportJobPayload = void 0;
13
+ const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdateAmplitudeCohortExportJobPayload {
16
+ }
17
+ exports.UpdateAmplitudeCohortExportJobPayload = UpdateAmplitudeCohortExportJobPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "jobId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)({ enum: entity_v2_1.AmplitudeCohortExportStatusEnum }),
24
+ __metadata("design:type", String)
25
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "status", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "amplitudeRequestId", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsInt)(),
34
+ (0, class_validator_1.Min)(0),
35
+ __metadata("design:type", Number)
36
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "pollCount", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsInt)(),
40
+ (0, class_validator_1.Min)(0),
41
+ __metadata("design:type", Number)
42
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "exportedUserCount", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsInt)(),
46
+ (0, class_validator_1.Min)(0),
47
+ __metadata("design:type", Number)
48
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "excludedUserCount", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsObject)(),
52
+ __metadata("design:type", Object)
53
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "resultFile", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsOptional)(),
56
+ (0, class_validator_1.IsString)(),
57
+ __metadata("design:type", String)
58
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "errorCode", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsOptional)(),
61
+ (0, class_validator_1.IsString)(),
62
+ __metadata("design:type", String)
63
+ ], UpdateAmplitudeCohortExportJobPayload.prototype, "errorMessage", void 0);
@@ -0,0 +1,2 @@
1
+ export * from './command';
2
+ export * from './query';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./command"), exports);
18
+ __exportStar(require("./query"), exports);
@@ -0,0 +1,3 @@
1
+ export declare class GetAmplitudeCohortExportJobPayload {
2
+ jobId: string;
3
+ }
@@ -0,0 +1,20 @@
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.GetAmplitudeCohortExportJobPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetAmplitudeCohortExportJobPayload {
15
+ }
16
+ exports.GetAmplitudeCohortExportJobPayload = GetAmplitudeCohortExportJobPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], GetAmplitudeCohortExportJobPayload.prototype, "jobId", void 0);
@@ -0,0 +1 @@
1
+ export * from './get-amplitude-cohort-export-job.dto';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-amplitude-cohort-export-job.dto"), exports);
@@ -2,3 +2,4 @@ export * from './mail';
2
2
  export * from './app-bulk-push-log';
3
3
  export * from './notification';
4
4
  export * from './notification-bulk-send';
5
+ export * from './amplitude-cohort-export-job';
@@ -18,3 +18,4 @@ __exportStar(require("./mail"), exports);
18
18
  __exportStar(require("./app-bulk-push-log"), exports);
19
19
  __exportStar(require("./notification"), exports);
20
20
  __exportStar(require("./notification-bulk-send"), exports);
21
+ __exportStar(require("./amplitude-cohort-export-job"), exports);
@@ -0,0 +1,12 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { AmplitudeCohortExportJobEntity } from '@yolo-croket-dev/entity-v2';
4
+ import { CreateAmplitudeCohortExportJobPayload, CreateAmplitudeCohortExportJobResult, GetAmplitudeCohortExportJobPayload, UpdateAmplitudeCohortExportJobPayload } from '../dto';
5
+ export declare class AmqpAmplitudeCohortExportJobService {
6
+ private readonly client;
7
+ private readonly amqpManager;
8
+ constructor(client: ClientProxy);
9
+ create(payload: CreateAmplitudeCohortExportJobPayload, param: AbstractParam): Promise<CreateAmplitudeCohortExportJobResult>;
10
+ update(payload: UpdateAmplitudeCohortExportJobPayload, param: AbstractParam): Promise<void>;
11
+ get(payload: GetAmplitudeCohortExportJobPayload, param: AbstractParam): Promise<AmplitudeCohortExportJobEntity>;
12
+ }
@@ -0,0 +1,39 @@
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.AmqpAmplitudeCohortExportJobService = 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 AmqpAmplitudeCohortExportJobService = class AmqpAmplitudeCohortExportJobService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async create(payload, param) {
25
+ return this.amqpManager.call('앰플리튜드 코흐트 다운로드 job 생성', 'amplitude-cohort-export-job.create', payload, param, { isErrorThrowing: true });
26
+ }
27
+ async update(payload, param) {
28
+ return this.amqpManager.call('앰플리튜드 코흐트 다운로드 job 업데이트', 'amplitude-cohort-export-job.update', payload, param, { isErrorThrowing: true });
29
+ }
30
+ async get(payload, param) {
31
+ return this.amqpManager.call('앰플리튜드 코흐트 다운로드 job 조회', 'amplitude-cohort-export-job.get', payload, param, { isErrorThrowing: true });
32
+ }
33
+ };
34
+ exports.AmqpAmplitudeCohortExportJobService = AmqpAmplitudeCohortExportJobService;
35
+ exports.AmqpAmplitudeCohortExportJobService = AmqpAmplitudeCohortExportJobService = __decorate([
36
+ (0, common_1.Injectable)(),
37
+ __param(0, (0, common_1.Inject)('NOTIFICATION_SERVICE_PROVIDER')),
38
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
39
+ ], AmqpAmplitudeCohortExportJobService);
@@ -5,3 +5,4 @@ export * from './amqp.app-bulk-push-log.service';
5
5
  export * from './amqp.app-bulk-push.service';
6
6
  export * from './amqp.send-notification.service';
7
7
  export * from './amqp.notification-bulk-send.service';
8
+ export * from './amqp.amplitude-cohort-export-job.service';
@@ -21,3 +21,4 @@ __exportStar(require("./amqp.app-bulk-push-log.service"), exports);
21
21
  __exportStar(require("./amqp.app-bulk-push.service"), exports);
22
22
  __exportStar(require("./amqp.send-notification.service"), exports);
23
23
  __exportStar(require("./amqp.notification-bulk-send.service"), exports);
24
+ __exportStar(require("./amqp.amplitude-cohort-export-job.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.182",
3
+ "version": "0.7.183-hj-2",
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.38",
23
23
  "@yolo-croket-dev/dto-v2": "^0.2.15",
24
24
  "@yolo-croket-dev/entity": "0.2.90",
25
- "@yolo-croket-dev/entity-v2": "0.2.168",
25
+ "@yolo-croket-dev/entity-v2": "0.2.169-hj-2",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Read(//Users/jun/Desktop/code/work/monorepo/**)",
5
- "Bash(npm ls:*)",
6
- "Bash(cd:*)",
7
- "WebFetch(domain:developers.nicepay.co.kr)",
8
- "Bash(npx lerna:*)"
9
- ]
10
- }
11
- }