@studyportals/campaign-management-api-interface 9.1.1-3 → 9.1.1-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.
- package/package.json +2 -10
- package/src/domain/campaign/create/create-campaign.request.d.ts +16 -3
- package/src/domain/campaign/create/create-campaign.request.js +77 -0
- package/src/domain/campaign/create/create-campaign.request.js.map +1 -1
- package/src/domain/campaign/create/campaign-mandatory-data.d.ts +0 -15
- package/src/domain/campaign/create/campaign-mandatory-data.js +0 -3
- package/src/domain/campaign/create/campaign-mandatory-data.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/campaign-management-api-interface",
|
|
3
|
-
"version": "9.1.1-
|
|
3
|
+
"version": "9.1.1-4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"compile": "rm -fR bin && npx tsc",
|
|
6
6
|
"test-u": "jest -c jest.config.unit.json --maxWorkers=1",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"types": "bin/index.d.ts",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@studyportals/code-style": "^2.
|
|
19
|
+
"@studyportals/code-style": "^2.2.1",
|
|
20
20
|
"@testdeck/jest": "^0.3.3",
|
|
21
21
|
"@types/superagent": "^4.1.13",
|
|
22
22
|
"chai": "^4.3.4",
|
|
@@ -40,13 +40,5 @@
|
|
|
40
40
|
"class-validator": "^0.14.1",
|
|
41
41
|
"inversify": "^6.0.1",
|
|
42
42
|
"reflect-metadata": "^0.1.13"
|
|
43
|
-
},
|
|
44
|
-
"eslintConfig": {
|
|
45
|
-
"extends": [
|
|
46
|
-
"./node_modules/@studyportals/code-style/.eslintrc.js"
|
|
47
|
-
],
|
|
48
|
-
"parserOptions": {
|
|
49
|
-
"sourceType": "module"
|
|
50
|
-
}
|
|
51
43
|
}
|
|
52
44
|
}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { DeliveryMode, PartnershipType, CampaignType, Region, Currency } from "../enums";
|
|
2
|
+
export declare class CreateCampaignRequest {
|
|
3
|
+
name: string;
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
deliveryMode: DeliveryMode;
|
|
7
|
+
listingBudget: number;
|
|
8
|
+
customProductsBudget: number;
|
|
9
|
+
partnershipType: PartnershipType;
|
|
10
|
+
campaignType: CampaignType;
|
|
11
|
+
accountManagerId: number;
|
|
12
|
+
crmProjectId: number;
|
|
13
|
+
region: Region;
|
|
14
|
+
clientServicesId: number;
|
|
3
15
|
isExcludedFromCampaignLift: boolean;
|
|
4
|
-
|
|
16
|
+
currency: Currency;
|
|
17
|
+
}
|
|
@@ -1,3 +1,80 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateCampaignRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const enums_1 = require("../enums");
|
|
15
|
+
class CreateCampaignRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateCampaignRequest = CreateCampaignRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateCampaignRequest.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateCampaignRequest.prototype, "startDate", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateCampaignRequest.prototype, "endDate", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsObject)(),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], CreateCampaignRequest.prototype, "deliveryMode", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsInt)(),
|
|
36
|
+
(0, class_validator_1.Min)(0),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], CreateCampaignRequest.prototype, "listingBudget", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsInt)(),
|
|
41
|
+
(0, class_validator_1.Min)(0),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CreateCampaignRequest.prototype, "customProductsBudget", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsEnum)(enums_1.PartnershipType),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateCampaignRequest.prototype, "partnershipType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsEnum)(enums_1.CampaignType),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateCampaignRequest.prototype, "campaignType", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsInt)(),
|
|
54
|
+
(0, class_validator_1.Min)(1),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], CreateCampaignRequest.prototype, "accountManagerId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsInt)(),
|
|
59
|
+
(0, class_validator_1.Min)(1),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], CreateCampaignRequest.prototype, "crmProjectId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsEnum)(enums_1.Region),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CreateCampaignRequest.prototype, "region", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsInt)(),
|
|
68
|
+
(0, class_validator_1.Min)(1),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], CreateCampaignRequest.prototype, "clientServicesId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsInt)(),
|
|
73
|
+
(0, class_validator_1.Min)(1),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], CreateCampaignRequest.prototype, "isExcludedFromCampaignLift", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsEnum)(enums_1.Currency),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreateCampaignRequest.prototype, "currency", void 0);
|
|
3
80
|
//# sourceMappingURL=create-campaign.request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-campaign.request.js","sourceRoot":"","sources":["../../../../../src/domain/campaign/create/create-campaign.request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"create-campaign.request.js","sourceRoot":"","sources":["../../../../../src/domain/campaign/create/create-campaign.request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,oCAAyF;AAEzF,MAAa,qBAAqB;CAmCjC;AAnCD,sDAmCC;AAjCA;IADC,IAAA,0BAAQ,GAAE;;mDACE;AAEb;IADC,IAAA,0BAAQ,GAAE;;wDACO;AAElB;IADC,IAAA,0BAAQ,GAAE;;sDACK;AAEhB;IADC,IAAA,0BAAQ,GAAE;;2DACgB;AAG3B;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;4DACe;AAGtB;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;mEACsB;AAE7B;IADC,IAAA,wBAAM,EAAC,uBAAe,CAAC;;8DACS;AAEjC;IADC,IAAA,wBAAM,EAAC,oBAAY,CAAC;;2DACM;AAG3B;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;+DACkB;AAGzB;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;2DACc;AAErB;IADC,IAAA,wBAAM,EAAC,cAAM,CAAC;;qDACA;AAGf;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;+DACkB;AAGzB;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;yEAC6B;AAEpC;IADC,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;uDACE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CampaignType, DeliveryMode, PartnershipType, Region } from "../enums";
|
|
2
|
-
export type CampaignMandatoryData = {
|
|
3
|
-
name: string;
|
|
4
|
-
startDate: string;
|
|
5
|
-
endDate: string;
|
|
6
|
-
deliveryMode: DeliveryMode;
|
|
7
|
-
listingBudget: number;
|
|
8
|
-
customProductsBudget: number;
|
|
9
|
-
partnershipType: PartnershipType;
|
|
10
|
-
campaignType: CampaignType;
|
|
11
|
-
accountManagerId: number;
|
|
12
|
-
crmProjectId: number;
|
|
13
|
-
region: Region;
|
|
14
|
-
clientServicesId: number;
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"campaign-mandatory-data.js","sourceRoot":"","sources":["../../../../../src/domain/campaign/create/campaign-mandatory-data.ts"],"names":[],"mappings":""}
|