@studyportals/campaign-management-api-interface 11.4.4-0 → 11.4.4-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.
- package/package.json +4 -3
- package/src/domain/campaign/enriched-campaign-geotargeting.dto.d.ts +4 -3
- package/src/domain/campaign/enriched-campaign-geotargeting.dto.js.map +1 -1
- package/src/domain/campaign/enriched-organisation-geotargeting.dto.d.ts +6 -0
- package/src/domain/campaign/enriched-organisation-geotargeting.dto.js +3 -0
- package/src/domain/campaign/enriched-organisation-geotargeting.dto.js.map +1 -0
- package/src/domain/campaign/enriched-study-geotargeting.dto.d.ts +9 -0
- package/src/domain/campaign/{enriched-entity-geotargeting.dto.js → enriched-study-geotargeting.dto.js} +1 -1
- package/src/domain/campaign/enriched-study-geotargeting.dto.js.map +1 -0
- package/src/domain/campaign/enums/{entity-type.enum.d.ts → geotarginator-entity-type.enum.d.ts} +1 -1
- package/src/domain/campaign/enums/geotarginator-entity-type.enum.js +9 -0
- package/src/domain/campaign/enums/geotarginator-entity-type.enum.js.map +1 -0
- package/src/domain/campaign/enums/index.d.ts +2 -2
- package/src/domain/campaign/enums/index.js +3 -3
- package/src/domain/campaign/enums/index.js.map +1 -1
- package/src/domain/campaign/index.d.ts +3 -2
- package/src/domain/campaign/index.js.map +1 -1
- package/src/domain/campaign/enriched-entity-geotargeting.dto.d.ts +0 -8
- package/src/domain/campaign/enriched-entity-geotargeting.dto.js.map +0 -1
- package/src/domain/campaign/enums/entity-type.enum.js +0 -9
- package/src/domain/campaign/enums/entity-type.enum.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/campaign-management-api-interface",
|
|
3
|
-
"version": "11.4.4-
|
|
3
|
+
"version": "11.4.4-2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"compile": "rm -fR bin && npx tsc",
|
|
6
6
|
"test-u": "jest -c jest.config.unit.json --maxWorkers=1",
|
|
7
7
|
"test-i": "nyc mocha src tests-i",
|
|
8
8
|
"prepare-deployment": "npm run test-u && npm run compile && cp package.json bin/package.json && rm -fR bin/tests-u",
|
|
9
|
-
"
|
|
9
|
+
"predeploy": "npm run prepare-deployment",
|
|
10
|
+
"deploy": "npm publish ./bin --access=public",
|
|
10
11
|
"deploy-patch": "npm version patch && npm run deploy",
|
|
11
12
|
"deploy-minor": "npm version minor && npm run deploy",
|
|
12
13
|
"deploy-major": "npm version major && npm run deploy",
|
|
13
|
-
"deploy-beta": "npm version prerelease && npm run
|
|
14
|
+
"deploy-beta": "npm version prerelease && npm run deploy -- --tag beta"
|
|
14
15
|
},
|
|
15
16
|
"author": "SPNightsWatch",
|
|
16
17
|
"license": "ISC",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnrichedOrganisationGeotargetingDto } from "./enriched-organisation-geotargeting.dto";
|
|
2
|
+
import { EnrichedStudyGeotargetingDto } from "./enriched-study-geotargeting.dto";
|
|
2
3
|
export declare class EnrichedCampaignGeotargetingDto {
|
|
3
4
|
campaign_id: number;
|
|
4
5
|
update_date: number;
|
|
5
6
|
expiry_date: number;
|
|
6
|
-
studies:
|
|
7
|
-
organisations:
|
|
7
|
+
studies: EnrichedStudyGeotargetingDto[];
|
|
8
|
+
organisations: EnrichedOrganisationGeotargetingDto[];
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enriched-campaign-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/enriched-campaign-geotargeting.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"enriched-campaign-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/enriched-campaign-geotargeting.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,+BAA+B;CAM3C;AAND,0EAMC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EntityGeotargetingDto } from "./entity-geotargeting.dto";
|
|
2
|
+
import { GeotarginatorEntityType } from "./enums";
|
|
3
|
+
export type EnrichedOrganisationGeotargetingDto = EntityGeotargetingDto & {
|
|
4
|
+
name: string;
|
|
5
|
+
entityType: GeotarginatorEntityType.ORGANISATION;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enriched-organisation-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/enriched-organisation-geotargeting.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityGeotargetingDto } from "./entity-geotargeting.dto";
|
|
2
|
+
import { BachelorDegrees, GeotarginatorEntityType, MasterDegrees, PHDDegrees, PreparationDegrees, ShortDegrees, StudyTypes } from "./enums";
|
|
3
|
+
export type StudyDegrees = BachelorDegrees | MasterDegrees | PHDDegrees | PreparationDegrees | ShortDegrees;
|
|
4
|
+
export type EnrichedStudyGeotargetingDto = EntityGeotargetingDto & {
|
|
5
|
+
name: string;
|
|
6
|
+
degree: StudyDegrees | null;
|
|
7
|
+
level: StudyTypes;
|
|
8
|
+
entityType: GeotarginatorEntityType.STUDY;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enriched-study-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/enriched-study-geotargeting.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeotarginatorEntityType = void 0;
|
|
4
|
+
var GeotarginatorEntityType;
|
|
5
|
+
(function (GeotarginatorEntityType) {
|
|
6
|
+
GeotarginatorEntityType["ORGANISATION"] = "organisation";
|
|
7
|
+
GeotarginatorEntityType["STUDY"] = "study";
|
|
8
|
+
})(GeotarginatorEntityType || (exports.GeotarginatorEntityType = GeotarginatorEntityType = {}));
|
|
9
|
+
//# sourceMappingURL=geotarginator-entity-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geotarginator-entity-type.enum.js","sourceRoot":"","sources":["../../../../../src/domain/campaign/enums/geotarginator-entity-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,wDAA6B,CAAA;IAC7B,0CAAe,CAAA;AAChB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC"}
|
|
@@ -7,6 +7,6 @@ import { DeliveryMode } from "./delivery-mode";
|
|
|
7
7
|
import { PremiumLevels } from "./premium-levels.enum";
|
|
8
8
|
import { Region } from "./region.enum";
|
|
9
9
|
import { StudyTypes } from "./study-types.enum";
|
|
10
|
-
import {
|
|
10
|
+
import { GeotarginatorEntityType } from "./geotarginator-entity-type.enum";
|
|
11
11
|
export * from "./degrees";
|
|
12
|
-
export { CampaignChangeEnum, CampaignType, Currency, CustomProductTypes, DeliveryMode, PartnershipTypeString, PartnershipType, PremiumLevels, Region, StudyTypes,
|
|
12
|
+
export { CampaignChangeEnum, CampaignType, Currency, CustomProductTypes, DeliveryMode, PartnershipTypeString, PartnershipType, PremiumLevels, Region, StudyTypes, GeotarginatorEntityType };
|
|
@@ -14,7 +14,7 @@ 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
|
-
exports.
|
|
17
|
+
exports.GeotarginatorEntityType = exports.StudyTypes = exports.Region = exports.PremiumLevels = exports.PartnershipType = exports.PartnershipTypeString = exports.CustomProductTypes = exports.Currency = exports.CampaignType = exports.CampaignChangeEnum = void 0;
|
|
18
18
|
const partnership_type_enum_1 = require("./partnership-type.enum");
|
|
19
19
|
Object.defineProperty(exports, "PartnershipTypeString", { enumerable: true, get: function () { return partnership_type_enum_1.PartnershipTypeString; } });
|
|
20
20
|
Object.defineProperty(exports, "PartnershipType", { enumerable: true, get: function () { return partnership_type_enum_1.PartnershipType; } });
|
|
@@ -32,7 +32,7 @@ const region_enum_1 = require("./region.enum");
|
|
|
32
32
|
Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return region_enum_1.Region; } });
|
|
33
33
|
const study_types_enum_1 = require("./study-types.enum");
|
|
34
34
|
Object.defineProperty(exports, "StudyTypes", { enumerable: true, get: function () { return study_types_enum_1.StudyTypes; } });
|
|
35
|
-
const
|
|
36
|
-
Object.defineProperty(exports, "
|
|
35
|
+
const geotarginator_entity_type_enum_1 = require("./geotarginator-entity-type.enum");
|
|
36
|
+
Object.defineProperty(exports, "GeotarginatorEntityType", { enumerable: true, get: function () { return geotarginator_entity_type_enum_1.GeotarginatorEntityType; } });
|
|
37
37
|
__exportStar(require("./degrees"), exports);
|
|
38
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/campaign/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mEAAiF;AAmBhF,sGAnBQ,6CAAqB,OAmBR;AACrB,gGApB+B,uCAAe,OAoB/B;AAnBhB,iEAA4D;AAa3D,mGAbQ,yCAAkB,OAaR;AAZnB,6DAAoD;AAanD,6FAbQ,iCAAY,OAaR;AAZb,mDAA2C;AAa1C,yFAbQ,wBAAQ,OAaR;AAZT,2EAAiE;AAahE,mGAbQ,8CAAkB,OAaR;AAXnB,+DAAsD;AAerD,8FAfQ,mCAAa,OAeR;AAdd,+CAAuC;AAetC,uFAfQ,oBAAM,OAeR;AAdP,yDAAgD;AAe/C,2FAfQ,6BAAU,OAeR;AAdX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/campaign/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mEAAiF;AAmBhF,sGAnBQ,6CAAqB,OAmBR;AACrB,gGApB+B,uCAAe,OAoB/B;AAnBhB,iEAA4D;AAa3D,mGAbQ,yCAAkB,OAaR;AAZnB,6DAAoD;AAanD,6FAbQ,iCAAY,OAaR;AAZb,mDAA2C;AAa1C,yFAbQ,wBAAQ,OAaR;AAZT,2EAAiE;AAahE,mGAbQ,8CAAkB,OAaR;AAXnB,+DAAsD;AAerD,8FAfQ,mCAAa,OAeR;AAdd,+CAAuC;AAetC,uFAfQ,oBAAM,OAeR;AAdP,yDAAgD;AAe/C,2FAfQ,6BAAU,OAeR;AAdX,qFAA2E;AAe1E,wGAfQ,wDAAuB,OAeR;AAbxB,4CAA0B"}
|
|
@@ -11,7 +11,8 @@ import { CreateCampaignDto } from "./create/create-campaign.dto";
|
|
|
11
11
|
import { EnrichedCampaignGeotargetingDto } from "./enriched-campaign-geotargeting.dto";
|
|
12
12
|
import { EntityGeotargetingDto } from "./entity-geotargeting.dto";
|
|
13
13
|
import { TargetedCountriesDto } from "./targeted-countries.dto";
|
|
14
|
-
import {
|
|
14
|
+
import { EnrichedStudyGeotargetingDto } from "./enriched-study-geotargeting.dto";
|
|
15
|
+
import { EnrichedOrganisationGeotargetingDto } from "./enriched-organisation-geotargeting.dto";
|
|
15
16
|
export * from './saving';
|
|
16
17
|
export * from './enums';
|
|
17
|
-
export { CampaignEditorGetResultDto, CampaignListingEntityDto, CustomProductDto, CustomProductRaw, CustomProductDataDto, CustomProductDataRaw, DeliveryMode, DeliveryType, EvenlyDelivery, CustomOverperformanceDelivery, ValidationStateResponse, DegreeLevel, CreateCampaignRequest, CreateCampaignDto, EnrichedCampaignGeotargetingDto, EntityGeotargetingDto,
|
|
18
|
+
export { CampaignEditorGetResultDto, CampaignListingEntityDto, CustomProductDto, CustomProductRaw, CustomProductDataDto, CustomProductDataRaw, DeliveryMode, DeliveryType, EvenlyDelivery, CustomOverperformanceDelivery, ValidationStateResponse, DegreeLevel, CreateCampaignRequest, CreateCampaignDto, EnrichedCampaignGeotargetingDto, EntityGeotargetingDto, EnrichedStudyGeotargetingDto, EnrichedOrganisationGeotargetingDto, TargetedCountriesDto };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/campaign/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,yDAAkH;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/campaign/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,yDAAkH;AA2BjH,6FA3BqD,4BAAY,OA2BrD;AApBb,8EAAyE;AAyBxE,sGAzBQ,+CAAqB,OAyBR;AAvBtB,6FAAuF;AAyBtF,gHAzBQ,oEAA+B,OAyBR;AAvBhC,qEAAgE;AA2B/D,qGA3BQ,6CAAoB,OA2BR;AAtBrB,2CAAwB;AACxB,0CAAuB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DegreeLevel } from "./campaign-listing-entity.dto";
|
|
2
|
-
import { EntityGeotargetingDto } from "./entity-geotargeting.dto";
|
|
3
|
-
import { EntityType } from "./enums";
|
|
4
|
-
export type EnrichedEntityGeotargetingDto = EntityGeotargetingDto & {
|
|
5
|
-
name: string;
|
|
6
|
-
degreeName: DegreeLevel;
|
|
7
|
-
degreeType: EntityType;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enriched-entity-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/enriched-entity-geotargeting.dto.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EntityType = void 0;
|
|
4
|
-
var EntityType;
|
|
5
|
-
(function (EntityType) {
|
|
6
|
-
EntityType["ORGANISATION"] = "organisation";
|
|
7
|
-
EntityType["STUDY"] = "study";
|
|
8
|
-
})(EntityType || (exports.EntityType = EntityType = {}));
|
|
9
|
-
//# sourceMappingURL=entity-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-type.enum.js","sourceRoot":"","sources":["../../../../../src/domain/campaign/enums/entity-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACrB,2CAA6B,CAAA;IAC7B,6BAAe,CAAA;AAChB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
|