@studyportals/campaign-management-api-interface 11.4.4-0 → 11.4.4-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/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@studyportals/campaign-management-api-interface",
3
- "version": "11.4.4-0",
3
+ "version": "11.4.4-1",
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
- "deploy": "npm run prepare-deployment && npm publish ./bin --access=public",
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 prepare-deployment && npm publish ./bin --tag beta --access=public"
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 { EntityGeotargetingDto } from "./entity-geotargeting.dto";
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: EntityGeotargetingDto[];
7
- organisations: EntityGeotargetingDto[];
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":";;;AAEA,MAAa,+BAA+B;CAM3C;AAND,0EAMC"}
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 { EntityType } from "./enums";
3
+ export type EnrichedOrganisationGeotargetingDto = EntityGeotargetingDto & {
4
+ name: string;
5
+ entityType: EntityType.ORGANISATION;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=enriched-organisation-geotargeting.dto.js.map
@@ -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, EntityType, 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;
7
+ level: StudyTypes;
8
+ entityType: EntityType.STUDY;
9
+ };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=enriched-entity-geotargeting.dto.js.map
3
+ //# sourceMappingURL=enriched-study-geotargeting.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enriched-study-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/enriched-study-geotargeting.dto.ts"],"names":[],"mappings":""}
@@ -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 { EnrichedEntityGeotargetingDto } from "./enriched-entity-geotargeting.dto";
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, EnrichedEntityGeotargetingDto, TargetedCountriesDto };
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;AA0BjH,6FA1BqD,4BAAY,OA0BrD;AAnBb,8EAAyE;AAwBxE,sGAxBQ,+CAAqB,OAwBR;AAtBtB,6FAAuF;AAwBtF,gHAxBQ,oEAA+B,OAwBR;AAtBhC,qEAAgE;AAyB/D,qGAzBQ,6CAAoB,OAyBR;AArBrB,2CAAwB;AACxB,0CAAuB"}
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":""}