@yolo-croket-dev/amqp-access 0.6.97 → 0.6.98-hj-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/manage-service/dto/attribution-history/command/create-attribution-history.dto.d.ts +8 -0
- package/manage-service/dto/attribution-history/command/create-attribution-history.dto.js +39 -0
- package/manage-service/dto/attribution-history/command/index.d.ts +1 -0
- package/manage-service/dto/attribution-history/command/index.js +17 -0
- package/manage-service/dto/attribution-history/index.d.ts +1 -0
- package/manage-service/dto/attribution-history/index.js +17 -0
- package/manage-service/dto/attribution-touch/command/create-attribution-touch-external.dto.d.ts +9 -0
- package/manage-service/dto/attribution-touch/command/create-attribution-touch-external.dto.js +42 -0
- package/manage-service/dto/attribution-touch/command/create-attribution-touch-internal.dto.d.ts +8 -0
- package/manage-service/dto/attribution-touch/command/create-attribution-touch-internal.dto.js +38 -0
- package/manage-service/dto/attribution-touch/command/delete-attribution-touchs-for-create-history.dto.d.ts +3 -0
- package/manage-service/dto/attribution-touch/command/delete-attribution-touchs-for-create-history.dto.js +22 -0
- package/manage-service/dto/attribution-touch/command/index.d.ts +3 -0
- package/manage-service/dto/attribution-touch/command/index.js +19 -0
- package/manage-service/dto/attribution-touch/index.d.ts +2 -0
- package/manage-service/dto/attribution-touch/index.js +18 -0
- package/manage-service/dto/attribution-touch/query/get-attribution-id.dto.d.ts +5 -0
- package/manage-service/dto/attribution-touch/query/get-attribution-id.dto.js +22 -0
- package/manage-service/dto/attribution-touch/query/get-attributions-touchs-for-create-history.dto.d.ts +7 -0
- package/manage-service/dto/attribution-touch/query/get-attributions-touchs-for-create-history.dto.js +33 -0
- package/manage-service/dto/attribution-touch/query/index.d.ts +2 -0
- package/manage-service/dto/attribution-touch/query/index.js +18 -0
- package/manage-service/dto/index.d.ts +2 -0
- package/manage-service/dto/index.js +2 -0
- package/manage-service/services/amqp-attribution-history.service.d.ts +9 -0
- package/manage-service/services/amqp-attribution-history.service.js +33 -0
- package/manage-service/services/amqp-attribution-touch.service.d.ts +14 -0
- package/manage-service/services/amqp-attribution-touch.service.js +45 -0
- package/manage-service/services/index.d.ts +2 -0
- package/manage-service/services/index.js +2 -0
- package/order-server/dto/pay-try-log/command/write-cart-store-item-pay-try-log-init.service.dto.d.ts +3 -0
- package/order-server/dto/pay-try-log/command/write-cart-store-item-pay-try-log-init.service.dto.js +11 -0
- package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-init.dto.d.ts +3 -0
- package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-init.dto.js +11 -0
- package/package.json +2 -2
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateAttributionHistoryPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
15
|
+
class CreateAttributionHistoryPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateAttributionHistoryPayload = CreateAttributionHistoryPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], CreateAttributionHistoryPayload.prototype, "pInfoIds", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsMongoId)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateAttributionHistoryPayload.prototype, "userId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateAttributionHistoryPayload.prototype, "attributionId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateAttributionHistoryPayload.prototype, "ip", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AttributionPlatformEnum),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateAttributionHistoryPayload.prototype, "platform", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-attribution-history.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("./create-attribution-history.dto"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command';
|
|
@@ -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("./command"), exports);
|
package/manage-service/dto/attribution-touch/command/create-attribution-touch-external.dto.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AttributionPlatformEnum } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class CreateAttributionTouchExternalPayload {
|
|
3
|
+
attributionId: string;
|
|
4
|
+
url: string;
|
|
5
|
+
referrer?: string;
|
|
6
|
+
landingUrl?: string;
|
|
7
|
+
/** 서버에서 넣을 값 */
|
|
8
|
+
platform?: AttributionPlatformEnum;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CreateAttributionTouchExternalPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
15
|
+
class CreateAttributionTouchExternalPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateAttributionTouchExternalPayload = CreateAttributionTouchExternalPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateAttributionTouchExternalPayload.prototype, "attributionId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateAttributionTouchExternalPayload.prototype, "url", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateAttributionTouchExternalPayload.prototype, "referrer", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateAttributionTouchExternalPayload.prototype, "landingUrl", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AttributionPlatformEnum),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateAttributionTouchExternalPayload.prototype, "platform", void 0);
|
|
@@ -0,0 +1,38 @@
|
|
|
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.CreateAttributionTouchInternalPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
15
|
+
class CreateAttributionTouchInternalPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateAttributionTouchInternalPayload = CreateAttributionTouchInternalPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateAttributionTouchInternalPayload.prototype, "attributionId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateAttributionTouchInternalPayload.prototype, "params", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateAttributionTouchInternalPayload.prototype, "event", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AttributionPlatformEnum),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateAttributionTouchInternalPayload.prototype, "platform", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
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.DeleteAttributionTouchsForCreateHistoryPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DeleteAttributionTouchsForCreateHistoryPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.DeleteAttributionTouchsForCreateHistoryPayload = DeleteAttributionTouchsForCreateHistoryPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], DeleteAttributionTouchsForCreateHistoryPayload.prototype, "attributionTouchIds", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
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-attribution-touch-external.dto"), exports);
|
|
18
|
+
__exportStar(require("./create-attribution-touch-internal.dto"), exports);
|
|
19
|
+
__exportStar(require("./delete-attribution-touchs-for-create-history.dto"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./command"), exports);
|
|
18
|
+
__exportStar(require("./query"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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.GetAttributionIdPayload = void 0;
|
|
13
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class GetAttributionIdPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.GetAttributionIdPayload = GetAttributionIdPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AttributionPlatformEnum),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GetAttributionIdPayload.prototype, "platform", void 0);
|
package/manage-service/dto/attribution-touch/query/get-attributions-touchs-for-create-history.dto.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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.GetAttributionTouchsForCreateHistoryPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
15
|
+
class GetAttributionTouchsForCreateHistoryPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.GetAttributionTouchsForCreateHistoryPayload = GetAttributionTouchsForCreateHistoryPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetAttributionTouchsForCreateHistoryPayload.prototype, "attributionId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], GetAttributionTouchsForCreateHistoryPayload.prototype, "userId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], GetAttributionTouchsForCreateHistoryPayload.prototype, "ip", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AttributionPlatformEnum),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], GetAttributionTouchsForCreateHistoryPayload.prototype, "platform", void 0);
|
|
@@ -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("./get-attribution-id.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-attributions-touchs-for-create-history.dto"), exports);
|
|
@@ -18,3 +18,5 @@ __exportStar(require("./link-tab"), exports);
|
|
|
18
18
|
__exportStar(require("./manage-user"), exports);
|
|
19
19
|
__exportStar(require("./exchange-rate"), exports);
|
|
20
20
|
__exportStar(require("./event-banner"), exports);
|
|
21
|
+
__exportStar(require("./attribution-touch"), exports);
|
|
22
|
+
__exportStar(require("./attribution-history"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateAttributionHistoryPayload } from '../dto';
|
|
4
|
+
export declare class AmqpAttributionHistoryService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
createAttributionHistory(payload: CreateAttributionHistoryPayload, param: AbstractParam): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AmqpAttributionHistoryService = 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 AmqpAttributionHistoryService = class AmqpAttributionHistoryService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async createAttributionHistory(payload, param) {
|
|
25
|
+
return this.amqpManager.call('어트리뷰션 히스토리 생성', 'attribution-history.create', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpAttributionHistoryService = AmqpAttributionHistoryService;
|
|
29
|
+
exports.AmqpAttributionHistoryService = AmqpAttributionHistoryService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('MANAGE_SERVICE_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpAttributionHistoryService);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { AttributionTouchEntity } from '@yolo-croket-dev/entity-v2';
|
|
4
|
+
import { CreateAttributionTouchExternalPayload, CreateAttributionTouchInternalPayload, DeleteAttributionTouchsForCreateHistoryPayload, GetAttributionIdPayload, GetAttributionTouchsForCreateHistoryPayload } from '../dto';
|
|
5
|
+
export declare class AmqpAttributionTouchService {
|
|
6
|
+
private readonly client;
|
|
7
|
+
private readonly amqpManager;
|
|
8
|
+
constructor(client: ClientProxy);
|
|
9
|
+
createAttributionTouchExternal(payload: CreateAttributionTouchExternalPayload, param: AbstractParam): Promise<void>;
|
|
10
|
+
createAttributionTouchInternal(payload: CreateAttributionTouchInternalPayload, param: AbstractParam): Promise<void>;
|
|
11
|
+
deleteAttributionTouchHistories(payload: DeleteAttributionTouchsForCreateHistoryPayload, param: AbstractParam): Promise<void>;
|
|
12
|
+
getAttributionId(payload: GetAttributionIdPayload, param: AbstractParam): Promise<string>;
|
|
13
|
+
getAttributionTouchsForCreateHistory(payload: GetAttributionTouchsForCreateHistoryPayload, param: AbstractParam): Promise<AttributionTouchEntity[]>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.AmqpAttributionTouchService = 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 AmqpAttributionTouchService = class AmqpAttributionTouchService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async createAttributionTouchExternal(payload, param) {
|
|
25
|
+
return this.amqpManager.call('어트리뷰션 터치 외부 등록', 'attribution-touch.create.external', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async createAttributionTouchInternal(payload, param) {
|
|
28
|
+
return this.amqpManager.call('어트리뷰션 터치 내부 등록', 'attribution-touch.create.internal', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
async deleteAttributionTouchHistories(payload, param) {
|
|
31
|
+
return this.amqpManager.call('어트리뷰션 터치 삭제', 'attribution-touch.delete.for-create-history', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
async getAttributionId(payload, param) {
|
|
34
|
+
return this.amqpManager.call('어트리뷰션 아이디 조회', 'attribution-touch.get.attribution-id', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
36
|
+
async getAttributionTouchsForCreateHistory(payload, param) {
|
|
37
|
+
return this.amqpManager.call('어트리뷰션 터치 생성 히스토리 조회', 'attribution-touch.get.for-create-history', payload, param, { isErrorThrowing: true });
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.AmqpAttributionTouchService = AmqpAttributionTouchService;
|
|
41
|
+
exports.AmqpAttributionTouchService = AmqpAttributionTouchService = __decorate([
|
|
42
|
+
(0, common_1.Injectable)(),
|
|
43
|
+
__param(0, (0, common_1.Inject)('MANAGE_SERVICE_PROVIDER')),
|
|
44
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
45
|
+
], AmqpAttributionTouchService);
|
|
@@ -4,3 +4,5 @@ export * from './amqp-exchange-rate.service';
|
|
|
4
4
|
export * from './amqp-public-holiday.service';
|
|
5
5
|
export * from './event-banner.service';
|
|
6
6
|
export * from './amqp.file.service';
|
|
7
|
+
export * from './amqp-attribution-touch.service';
|
|
8
|
+
export * from './amqp-attribution-history.service';
|
|
@@ -20,3 +20,5 @@ __exportStar(require("./amqp-exchange-rate.service"), exports);
|
|
|
20
20
|
__exportStar(require("./amqp-public-holiday.service"), exports);
|
|
21
21
|
__exportStar(require("./event-banner.service"), exports);
|
|
22
22
|
__exportStar(require("./amqp.file.service"), exports);
|
|
23
|
+
__exportStar(require("./amqp-attribution-touch.service"), exports);
|
|
24
|
+
__exportStar(require("./amqp-attribution-history.service"), exports);
|
package/order-server/dto/pay-try-log/command/write-cart-store-item-pay-try-log-init.service.dto.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AttributionPlatformEnum } from '@yolo-croket-dev/entity-v2';
|
|
1
2
|
export declare enum WriteCartStoreItemPayTryLogCartTypeEnum {
|
|
2
3
|
shipping = "shipping",
|
|
3
4
|
direct = "direct"
|
|
@@ -7,6 +8,8 @@ export declare class WriteCartStoreItemPayTryLogInitPayload {
|
|
|
7
8
|
cartType: WriteCartStoreItemPayTryLogCartTypeEnum;
|
|
8
9
|
cartIds: string[];
|
|
9
10
|
ip?: string;
|
|
11
|
+
attributionId?: string;
|
|
12
|
+
attributionPlatform?: AttributionPlatformEnum;
|
|
10
13
|
}
|
|
11
14
|
export declare class WriteCartStoreItemPayTryLogInitResult {
|
|
12
15
|
payTryLogId: string;
|
package/order-server/dto/pay-try-log/command/write-cart-store-item-pay-try-log-init.service.dto.js
CHANGED
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.WriteCartStoreItemPayTryLogInitResult = exports.WriteCartStoreItemPayTryLogInitPayload = exports.WriteCartStoreItemPayTryLogCartTypeEnum = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
14
15
|
var WriteCartStoreItemPayTryLogCartTypeEnum;
|
|
15
16
|
(function (WriteCartStoreItemPayTryLogCartTypeEnum) {
|
|
16
17
|
WriteCartStoreItemPayTryLogCartTypeEnum["shipping"] = "shipping";
|
|
@@ -36,6 +37,16 @@ __decorate([
|
|
|
36
37
|
(0, class_validator_1.IsOptional)(),
|
|
37
38
|
__metadata("design:type", String)
|
|
38
39
|
], WriteCartStoreItemPayTryLogInitPayload.prototype, "ip", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], WriteCartStoreItemPayTryLogInitPayload.prototype, "attributionId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], WriteCartStoreItemPayTryLogInitPayload.prototype, "attributionPlatform", void 0);
|
|
39
50
|
class WriteCartStoreItemPayTryLogInitResult {
|
|
40
51
|
}
|
|
41
52
|
exports.WriteCartStoreItemPayTryLogInitResult = WriteCartStoreItemPayTryLogInitResult;
|
package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-init.dto.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AttributionPlatformEnum } from '@yolo-croket-dev/entity-v2';
|
|
1
2
|
export declare enum WriteNormalStoreItemPayTryLogDTypeEnum {
|
|
2
3
|
shipping = "shipping",
|
|
3
4
|
direct = "direct"
|
|
@@ -16,6 +17,8 @@ export declare class WriteNormalStoreItemPayTryLogInitPayload {
|
|
|
16
17
|
DType: WriteNormalStoreItemPayTryLogDTypeEnum;
|
|
17
18
|
pOptionInfo: WriteNormalStoreItemPayTryLogPOptionInfo;
|
|
18
19
|
ip?: string;
|
|
20
|
+
attributionId?: string;
|
|
21
|
+
attributionPlatform?: AttributionPlatformEnum;
|
|
19
22
|
}
|
|
20
23
|
export declare class WriteNormalStoreItemPayTryLogInitResult {
|
|
21
24
|
payTryLogId: string;
|
package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-init.dto.js
CHANGED
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WriteNormalStoreItemPayTryLogInitResult = exports.WriteNormalStoreItemPayTryLogInitPayload = exports.WriteNormalStoreItemPayTryLogPOptionInfo = exports.WriteNormalStoreItemPayTryLogPOptionInfoChild = exports.WriteNormalStoreItemPayTryLogDTypeEnum = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
15
16
|
var WriteNormalStoreItemPayTryLogDTypeEnum;
|
|
16
17
|
(function (WriteNormalStoreItemPayTryLogDTypeEnum) {
|
|
17
18
|
WriteNormalStoreItemPayTryLogDTypeEnum["shipping"] = "shipping";
|
|
@@ -70,6 +71,16 @@ __decorate([
|
|
|
70
71
|
(0, class_validator_1.IsOptional)(),
|
|
71
72
|
__metadata("design:type", String)
|
|
72
73
|
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "ip", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "attributionId", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AttributionPlatformEnum),
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], WriteNormalStoreItemPayTryLogInitPayload.prototype, "attributionPlatform", void 0);
|
|
73
84
|
class WriteNormalStoreItemPayTryLogInitResult {
|
|
74
85
|
}
|
|
75
86
|
exports.WriteNormalStoreItemPayTryLogInitResult = WriteNormalStoreItemPayTryLogInitResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.98-hj-1",
|
|
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.27",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "0.2.11",
|
|
24
24
|
"@yolo-croket-dev/entity": "0.2.58",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "0.2.97-hj-1",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|