@studyportals/campaign-management-api-interface 17.0.2-2 → 17.0.4-3
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/index.d.ts +3 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/auditor-campaign-management-api.client.d.ts +5 -0
- package/src/auditor-campaign-management-api.client.js +15 -0
- package/src/auditor-campaign-management-api.client.js.map +1 -1
- package/src/campaign-management-api.client.d.ts +7 -0
- package/src/campaign-management-api.client.js +45 -0
- package/src/campaign-management-api.client.js.map +1 -1
- package/src/domain/campaign/entity-geotargeting.dto.d.ts +5 -0
- package/src/domain/campaign/entity-geotargeting.dto.js +3 -0
- package/src/domain/campaign/entity-geotargeting.dto.js.map +1 -0
- package/src/domain/campaign/index.d.ts +3 -1
- package/src/domain/campaign/index.js +3 -1
- package/src/domain/campaign/index.js.map +1 -1
- package/src/domain/campaign/targeted-countries.dto.d.ts +8 -0
- package/src/domain/campaign/targeted-countries.dto.js +10 -0
- package/src/domain/campaign/targeted-countries.dto.js.map +1 -0
- package/src/private-campaign-management-api.client.d.ts +36 -0
- package/src/private-campaign-management-api.client.js +75 -0
- package/src/private-campaign-management-api.client.js.map +1 -1
- package/src/study-campaign-management-api.client.d.ts +2 -0
- package/src/study-campaign-management-api.client.js +18 -0
- package/src/study-campaign-management-api.client.js.map +1 -1
- package/src/validation/dto/studies/discount-item.dto.d.ts +12 -0
- package/src/validation/dto/studies/discount-item.dto.js +29 -0
- package/src/validation/dto/studies/discount-item.dto.js.map +1 -0
- package/src/validation/dto/studies/index.d.ts +4 -0
- package/src/validation/dto/studies/index.js +10 -0
- package/src/validation/dto/studies/index.js.map +1 -0
- package/src/validation/dto/studies/set-tuition-fee-discounts.dto.d.ts +6 -0
- package/src/validation/dto/studies/set-tuition-fee-discounts.dto.js +33 -0
- package/src/validation/dto/studies/set-tuition-fee-discounts.dto.js.map +1 -0
- package/src/validation/dto/studies/tuition-fee-discount-issue.type.d.ts +17 -0
- package/src/validation/dto/studies/tuition-fee-discount-issue.type.js +13 -0
- package/src/validation/dto/studies/tuition-fee-discount-issue.type.js.map +1 -0
- package/src/validation/index.d.ts +1 -0
- package/src/validation/index.js +1 -0
- package/src/validation/index.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ import { CampaignManagementAPIClient, CampaignManagementAPIClientConfig } from "
|
|
|
5
5
|
import { AuditorEntityType } from "./src/domain/auditor/enums/auditor-entity-type.enum";
|
|
6
6
|
import { AuditorOperation } from "./src/domain/auditor/enums/auditor-operation.enum";
|
|
7
7
|
import { GetAuditorDto } from "./src/domain/auditor/get-auditor.dto";
|
|
8
|
+
import { CampaignsEntitiesConfigDto } from "./src/domain/campaign/campaign-entities-config.dto";
|
|
8
9
|
import { NumberMap, Pricing, ICampaignAuditorData } from "./src/domain/auditor/campaigns/geotargeting.entities";
|
|
9
10
|
import { PrivateCampaignManagementAPIClient } from "./src/private-campaign-management-api.client";
|
|
10
11
|
import { UserCampaignManagementAPIClient } from "./src/user-campaign-management-api.client";
|
|
11
12
|
import { StudyCampaignManagementAPIClient } from "./src/study-campaign-management-api.client";
|
|
12
13
|
import { MinimalOrganisationDto } from "./src/domain/organisations/minimal-organisations.dto";
|
|
13
14
|
import { LinkType } from "./src/domain/studies/enums/link-type.enum";
|
|
15
|
+
import { PersistGoogleLinkerResultDto } from "./src/domain/campaign/persist-google-linker-result.dto";
|
|
14
16
|
import { LinkEntityType } from "./src/domain/links/link-entity-type.enum";
|
|
15
17
|
import { LinksCampaignManagementAPIClient } from './src/links-campaign-management-api.client';
|
|
16
18
|
import { SwappingEnabledLinkTypes } from "./src/domain/links/swapping-enabled-link-types.enum";
|
|
@@ -33,4 +35,4 @@ export * from "./src/validation";
|
|
|
33
35
|
export * from "./src/domain/organisations";
|
|
34
36
|
export * from "./src/domain/products";
|
|
35
37
|
export * from "./src/domain/degrees";
|
|
36
|
-
export { AuditorCampaignManagementAPIClient, OrganisationsCampaignManagementAPIClient, CampaignManagementAPIClient, CampaignManagementAPIClientConfig, PrivateCampaignManagementAPIClient, PrivateUserCampaignManagementAPIClient, UserCampaignManagementAPIClient, StudyCampaignManagementAPIClient, LinksCampaignManagementAPIClient, ProductsCampaignManagementAPIClient, PublicStatusClient, GeotarginatorFrontCMAClient, UniversitySchedulerCMAClient, AuditorEntityType, AuditorOperation, LinkType, LinkEntityType, SwappingEnabledLinkTypes, GetAuditorDto, IdDto, CreateLinkDto, UpdateLinkDto, MinimalOrganisationDto, CampaignEditorFrontendStatusDto, StatusHealthy, StatusBlocked, SaveCampaignGeotargetingRequest, GeotargetingEntity, TargetedCountries, EntityConfigsGroup, FlatEntityConfig, groupEntityConfigs, flattenEntityConfigs, CampaignStartPayload, SchedulerGeoEntity, SchedulerPricingEntity, NumberMap, Pricing, ICampaignAuditorData, SuperAgentResponseCover, HttpError };
|
|
38
|
+
export { AuditorCampaignManagementAPIClient, OrganisationsCampaignManagementAPIClient, CampaignManagementAPIClient, CampaignManagementAPIClientConfig, PrivateCampaignManagementAPIClient, PrivateUserCampaignManagementAPIClient, UserCampaignManagementAPIClient, StudyCampaignManagementAPIClient, LinksCampaignManagementAPIClient, ProductsCampaignManagementAPIClient, PublicStatusClient, GeotarginatorFrontCMAClient, UniversitySchedulerCMAClient, AuditorEntityType, AuditorOperation, LinkType, LinkEntityType, SwappingEnabledLinkTypes, GetAuditorDto, PersistGoogleLinkerResultDto, IdDto, CampaignsEntitiesConfigDto, CreateLinkDto, UpdateLinkDto, MinimalOrganisationDto, CampaignEditorFrontendStatusDto, StatusHealthy, StatusBlocked, SaveCampaignGeotargetingRequest, GeotargetingEntity, TargetedCountries, EntityConfigsGroup, FlatEntityConfig, groupEntityConfigs, flattenEntityConfigs, CampaignStartPayload, SchedulerGeoEntity, SchedulerPricingEntity, NumberMap, Pricing, ICampaignAuditorData, SuperAgentResponseCover, HttpError };
|
package/index.js
CHANGED
|
@@ -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.HttpError = exports.Pricing = exports.flattenEntityConfigs = exports.groupEntityConfigs = exports.MinimalOrganisationDto = exports.IdDto = exports.GetAuditorDto = exports.SwappingEnabledLinkTypes = exports.LinkEntityType = exports.LinkType = exports.AuditorOperation = exports.AuditorEntityType = exports.UniversitySchedulerCMAClient = exports.GeotarginatorFrontCMAClient = exports.PublicStatusClient = exports.ProductsCampaignManagementAPIClient = exports.LinksCampaignManagementAPIClient = exports.StudyCampaignManagementAPIClient = exports.UserCampaignManagementAPIClient = exports.PrivateUserCampaignManagementAPIClient = exports.PrivateCampaignManagementAPIClient = exports.CampaignManagementAPIClient = exports.OrganisationsCampaignManagementAPIClient = exports.AuditorCampaignManagementAPIClient = void 0;
|
|
17
|
+
exports.HttpError = exports.Pricing = exports.flattenEntityConfigs = exports.groupEntityConfigs = exports.MinimalOrganisationDto = exports.CampaignsEntitiesConfigDto = exports.IdDto = exports.PersistGoogleLinkerResultDto = exports.GetAuditorDto = exports.SwappingEnabledLinkTypes = exports.LinkEntityType = exports.LinkType = exports.AuditorOperation = exports.AuditorEntityType = exports.UniversitySchedulerCMAClient = exports.GeotarginatorFrontCMAClient = exports.PublicStatusClient = exports.ProductsCampaignManagementAPIClient = exports.LinksCampaignManagementAPIClient = exports.StudyCampaignManagementAPIClient = exports.UserCampaignManagementAPIClient = exports.PrivateUserCampaignManagementAPIClient = exports.PrivateCampaignManagementAPIClient = exports.CampaignManagementAPIClient = exports.OrganisationsCampaignManagementAPIClient = exports.AuditorCampaignManagementAPIClient = void 0;
|
|
18
18
|
const auditor_campaign_management_api_client_1 = require("./src/auditor-campaign-management-api.client");
|
|
19
19
|
Object.defineProperty(exports, "AuditorCampaignManagementAPIClient", { enumerable: true, get: function () { return auditor_campaign_management_api_client_1.AuditorCampaignManagementAPIClient; } });
|
|
20
20
|
const http_error_1 = require("./src/errors/http-error");
|
|
@@ -29,6 +29,8 @@ const auditor_operation_enum_1 = require("./src/domain/auditor/enums/auditor-ope
|
|
|
29
29
|
Object.defineProperty(exports, "AuditorOperation", { enumerable: true, get: function () { return auditor_operation_enum_1.AuditorOperation; } });
|
|
30
30
|
const get_auditor_dto_1 = require("./src/domain/auditor/get-auditor.dto");
|
|
31
31
|
Object.defineProperty(exports, "GetAuditorDto", { enumerable: true, get: function () { return get_auditor_dto_1.GetAuditorDto; } });
|
|
32
|
+
const campaign_entities_config_dto_1 = require("./src/domain/campaign/campaign-entities-config.dto");
|
|
33
|
+
Object.defineProperty(exports, "CampaignsEntitiesConfigDto", { enumerable: true, get: function () { return campaign_entities_config_dto_1.CampaignsEntitiesConfigDto; } });
|
|
32
34
|
const geotargeting_entities_1 = require("./src/domain/auditor/campaigns/geotargeting.entities");
|
|
33
35
|
Object.defineProperty(exports, "Pricing", { enumerable: true, get: function () { return geotargeting_entities_1.Pricing; } });
|
|
34
36
|
const private_campaign_management_api_client_1 = require("./src/private-campaign-management-api.client");
|
|
@@ -41,6 +43,8 @@ const minimal_organisations_dto_1 = require("./src/domain/organisations/minimal-
|
|
|
41
43
|
Object.defineProperty(exports, "MinimalOrganisationDto", { enumerable: true, get: function () { return minimal_organisations_dto_1.MinimalOrganisationDto; } });
|
|
42
44
|
const link_type_enum_1 = require("./src/domain/studies/enums/link-type.enum");
|
|
43
45
|
Object.defineProperty(exports, "LinkType", { enumerable: true, get: function () { return link_type_enum_1.LinkType; } });
|
|
46
|
+
const persist_google_linker_result_dto_1 = require("./src/domain/campaign/persist-google-linker-result.dto");
|
|
47
|
+
Object.defineProperty(exports, "PersistGoogleLinkerResultDto", { enumerable: true, get: function () { return persist_google_linker_result_dto_1.PersistGoogleLinkerResultDto; } });
|
|
44
48
|
const link_entity_type_enum_1 = require("./src/domain/links/link-entity-type.enum");
|
|
45
49
|
Object.defineProperty(exports, "LinkEntityType", { enumerable: true, get: function () { return link_entity_type_enum_1.LinkEntityType; } });
|
|
46
50
|
const links_campaign_management_api_client_1 = require("./src/links-campaign-management-api.client");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yGAAkG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yGAAkG;AAmDjG,mHAnDQ,2EAAkC,OAmDR;AAlDnC,wDAAoD;AA+GnD,0FA/GQ,sBAAS,OA+GR;AA9GV,qHAA8G;AAkD7G,yHAlDQ,uFAAwC,OAkDR;AAjDzC,yFAAsH;AAkDrH,4GAlDQ,4DAA2B,OAkDR;AAjD5B,kGAAwF;AA8DvF,kGA9DQ,4CAAiB,OA8DR;AA7DlB,8FAAqF;AA8DpF,iGA9DQ,yCAAgB,OA8DR;AA7DjB,0EAAqE;AAmEpE,8FAnEQ,+BAAa,OAmER;AAlEd,qGAAgG;AAuE/F,2GAvEQ,yDAA0B,OAuER;AAtE3B,gGAAgH;AAqG/G,wFArGmB,+BAAO,OAqGnB;AApGR,yGAAkG;AA8CjG,mHA9CQ,2EAAkC,OA8CR;AA7CnC,mGAA4F;AA+C3F,gHA/CQ,qEAA+B,OA+CR;AA9ChC,qGAA8F;AA+C7F,iHA/CQ,uEAAgC,OA+CR;AA9CjC,oGAA8F;AAyE7F,uGAzEQ,kDAAsB,OAyER;AAxEvB,8EAAqE;AAuDpE,yFAvDQ,yBAAQ,OAuDR;AAtDT,6GAAsG;AA4DrG,6GA5DQ,+DAA4B,OA4DR;AA3D7B,oFAA0E;AAsDzE,+FAtDQ,sCAAc,OAsDR;AArDf,qGAA8F;AA2C7F,iHA3CQ,uEAAgC,OA2CR;AA1CjC,0GAA+F;AAqD9F,yGArDQ,2DAAwB,OAqDR;AAjDzB,2GAAoG;AAuCnG,oHAvCQ,6EAAmC,OAuCR;AAtCpC,qEAAgE;AAuC/D,mGAvCQ,yCAAkB,OAuCR;AArCnB,mHAA2G;AAgC1G,uHAhCQ,oFAAsC,OAgCR;AA/BvC,gDAA4C;AAkD3C,sFAlDQ,cAAK,OAkDR;AAjDN,yFAAmF;AAoClF,4GApCQ,4DAA2B,OAoCR;AAnC5B,2FAAqF;AAoCpF,6GApCQ,8DAA4B,OAoCR;AAnC7B,+DAAsF;AAwErF,mGAxEQ,mCAAkB,OAwER;AAClB,qGAzE4B,qCAAoB,OAyE5B;AA3DrB,wDAAsC;AACtC,qDAAmC;AACnC,mDAAiC;AACjC,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC"}
|
package/package.json
CHANGED
|
@@ -6,6 +6,11 @@ export declare class AuditorCampaignManagementAPIClient {
|
|
|
6
6
|
constructor(baseUrl: string);
|
|
7
7
|
getCampaignAuditorData(campaignID: number, jwt?: string): Promise<GetAuditorDto[]>;
|
|
8
8
|
getStudyAuditorData(studyID: number, jwt?: string): Promise<GetAuditorDto[]>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Auditing is now handled internally by CMA as part of write operations.
|
|
11
|
+
* Use GeotarginatorFrontCMAClient.saveCampaignGeotargeting() instead—auditing is automatic.
|
|
12
|
+
*/
|
|
13
|
+
storeCampaignAuditorData(operation: AuditorOperation, campaignID: number, username: string, isUserAction: boolean, data: any, jwt?: string): Promise<GetAuditorDto>;
|
|
9
14
|
storeStudyAuditorData(operation: AuditorOperation, studyID: number, username: string, isUserAction: boolean, messageType: string, message: any, jwt?: string): Promise<GetAuditorDto>;
|
|
10
15
|
storeStudiesAuditorData(operation: AuditorOperation, studyIDs: number[], username: string, isUserAction: boolean, messageType: string, message: any, jwt?: string): Promise<GetAuditorDto[]>;
|
|
11
16
|
private getRequest;
|
|
@@ -27,6 +27,21 @@ let AuditorCampaignManagementAPIClient = class AuditorCampaignManagementAPIClien
|
|
|
27
27
|
const getAuditorDtos = result.body;
|
|
28
28
|
return getAuditorDtos;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Auditing is now handled internally by CMA as part of write operations.
|
|
32
|
+
* Use GeotarginatorFrontCMAClient.saveCampaignGeotargeting() instead—auditing is automatic.
|
|
33
|
+
*/
|
|
34
|
+
async storeCampaignAuditorData(operation, campaignID, username, isUserAction, data, jwt = "") {
|
|
35
|
+
const sendData = {
|
|
36
|
+
operation,
|
|
37
|
+
"entityID": campaignID,
|
|
38
|
+
username,
|
|
39
|
+
isUserAction,
|
|
40
|
+
data
|
|
41
|
+
};
|
|
42
|
+
const result = await this.postRequest(`auditor/campaigns`, sendData, jwt);
|
|
43
|
+
return result.body;
|
|
44
|
+
}
|
|
30
45
|
async storeStudyAuditorData(operation, studyID, username, isUserAction, messageType, message, jwt = "") {
|
|
31
46
|
const body = await this.storeStudiesAuditorData(operation, [studyID], username, isUserAction, messageType, message, jwt);
|
|
32
47
|
return body[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditor-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/auditor-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAI1B,yCAAuC;AACvC,uDAAiD;AAG1C,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAC9C,YACwB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IACnC,CAAC;IAEE,KAAK,CAAC,sBAAsB,CAAC,UAAkB,EAAE,GAAG,GAAG,EAAE;QAC/D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,qBAAqB,UAAU,EAAE,EAAE,GAAG,CAAC,CAAC;QAC7E,MAAM,cAAc,GAAG,MAAM,CAAC,IAAuB,CAAC;QAEtD,OAAO,cAAc,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,OAAe,EAAE,GAAG,GAAG,EAAE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,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IAEO,YAAY,CAAC,QAAgB;QACpC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;
|
|
1
|
+
{"version":3,"file":"auditor-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/auditor-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAI1B,yCAAuC;AACvC,uDAAiD;AAG1C,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAC9C,YACwB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IACnC,CAAC;IAEE,KAAK,CAAC,sBAAsB,CAAC,UAAkB,EAAE,GAAG,GAAG,EAAE;QAC/D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,qBAAqB,UAAU,EAAE,EAAE,GAAG,CAAC,CAAC;QAC7E,MAAM,cAAc,GAAG,MAAM,CAAC,IAAuB,CAAC;QAEtD,OAAO,cAAc,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,OAAe,EAAE,GAAG,GAAG,EAAE;QACzD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC;QACxE,MAAM,cAAc,GAAG,MAAM,CAAC,IAAuB,CAAC;QAEtD,OAAO,cAAc,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,wBAAwB,CAAC,SAA2B,EAAE,UAAkB,EAAE,QAAgB,EAAE,YAAqB,EAAE,IAAS,EAAE,GAAG,GAAG,EAAE;QAClJ,MAAM,QAAQ,GAAG;YAChB,SAAS;YACT,UAAU,EAAE,UAAU;YACtB,QAAQ;YACR,YAAY;YACZ,IAAI;SACJ,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,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C;IAClE,CAAC;IAEO,YAAY,CAAC,QAAgB;QACpC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AArEY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,sBAAU,GAAE;;GACA,kCAAkC,CAqE9C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
+
import { CampaignsEntitiesConfigDto } from "./domain/campaign/campaign-entities-config.dto";
|
|
2
3
|
import { CampaignsDuplicatesDto } from "./domain/campaign/campaign-duplicates.dto";
|
|
3
4
|
import { DuplicateCampaignDto } from "./domain/campaign/duplicate-campaign.dto";
|
|
4
5
|
import { CampaignEditorGetResultDto } from "./domain/campaign/campaign-editor-get-result.dto";
|
|
@@ -25,6 +26,12 @@ export declare class CampaignManagementAPIClient {
|
|
|
25
26
|
private readonly handleWsDisconnected;
|
|
26
27
|
disconnect(): void;
|
|
27
28
|
getCampaignDuplicates(campaigsnDuplicates: CampaignsDuplicatesDto, jwt?: string): Promise<DuplicateCampaignDto>;
|
|
29
|
+
addCampaignsEntitiesConfigs(campaignID: number, campaignsEntitiesConfigs: CampaignsEntitiesConfigDto[], jwt?: string): Promise<void>;
|
|
30
|
+
removeCampaignsEntitiesConfigsByID(campaignID: number, campaignsEntitiesConfigsIDs: number[], jwt?: string): Promise<void>;
|
|
31
|
+
clearCampaignsEntitiesConfigsByCampaignID(campaignID: number, jwt?: string): Promise<void>;
|
|
32
|
+
setEntitiesBasic(campaignID: number, organisationIDs: number[], studyIDs: number[], jwt?: string): Promise<void>;
|
|
33
|
+
setEntitiesPremium(campaignID: number, organisationIDs: number[], studyIDs: number[], jwt?: string): Promise<void>;
|
|
34
|
+
setEntitiesPersistGoogleLinkerProperty(organisationIds: number[], studyIds: number[], persistGoogleLinkerValue: boolean, jwt: string): Promise<void>;
|
|
28
35
|
getCampaignForCampaignEditor(campaignID: number, jwt?: string): Promise<CampaignEditorGetResultDto>;
|
|
29
36
|
getClientServicesUsers(jwt?: string): Promise<MinimalUserDto[]>;
|
|
30
37
|
getAccountManagers(jwt?: string): Promise<MinimalUserDto[]>;
|
|
@@ -80,6 +80,51 @@ let CampaignManagementAPIClient = class CampaignManagementAPIClient {
|
|
|
80
80
|
const result = await this.postRequest(path, campaigsnDuplicates, jwt);
|
|
81
81
|
return result.body;
|
|
82
82
|
}
|
|
83
|
+
async addCampaignsEntitiesConfigs(campaignID, campaignsEntitiesConfigs, jwt = '') {
|
|
84
|
+
const path = `campaigns/add-campaigns-entities-configs`;
|
|
85
|
+
const data = {
|
|
86
|
+
campaignsEntitiesConfigs,
|
|
87
|
+
campaignID
|
|
88
|
+
};
|
|
89
|
+
await this.postRequest(path, data, jwt);
|
|
90
|
+
}
|
|
91
|
+
async removeCampaignsEntitiesConfigsByID(campaignID, campaignsEntitiesConfigsIDs, jwt = '') {
|
|
92
|
+
const path = `campaigns/remove-campaigns-entities-configs`;
|
|
93
|
+
const data = { campaignsEntitiesConfigsIDs, campaignID };
|
|
94
|
+
await this.postRequest(path, data, jwt);
|
|
95
|
+
}
|
|
96
|
+
async clearCampaignsEntitiesConfigsByCampaignID(campaignID, jwt = '') {
|
|
97
|
+
const path = `campaigns/clear-campaigns-entities-configs`;
|
|
98
|
+
const data = { campaignID };
|
|
99
|
+
await this.postRequest(path, data, jwt);
|
|
100
|
+
}
|
|
101
|
+
async setEntitiesBasic(campaignID, organisationIDs, studyIDs, jwt = '') {
|
|
102
|
+
const path = `campaigns/set-entities-basic`;
|
|
103
|
+
const data = {
|
|
104
|
+
organisationIDs,
|
|
105
|
+
studyIDs,
|
|
106
|
+
campaignID
|
|
107
|
+
};
|
|
108
|
+
await this.postRequest(path, data, jwt);
|
|
109
|
+
}
|
|
110
|
+
async setEntitiesPremium(campaignID, organisationIDs, studyIDs, jwt = '') {
|
|
111
|
+
const path = `campaigns/set-entities-premium`;
|
|
112
|
+
const data = {
|
|
113
|
+
organisationIDs,
|
|
114
|
+
studyIDs,
|
|
115
|
+
campaignID
|
|
116
|
+
};
|
|
117
|
+
await this.postRequest(path, data, jwt);
|
|
118
|
+
}
|
|
119
|
+
async setEntitiesPersistGoogleLinkerProperty(organisationIds, studyIds, persistGoogleLinkerValue, jwt) {
|
|
120
|
+
const path = `campaigns/set-entities-persist-google-linker`;
|
|
121
|
+
const data = {
|
|
122
|
+
organisationIds,
|
|
123
|
+
studyIds,
|
|
124
|
+
persistGoogleLinkerValue
|
|
125
|
+
};
|
|
126
|
+
await this.postRequest(path, data, jwt);
|
|
127
|
+
}
|
|
83
128
|
async getCampaignForCampaignEditor(campaignID, jwt = '') {
|
|
84
129
|
const path = `campaigns/campaign-editor/${campaignID}`;
|
|
85
130
|
const result = await this.getRequest(path, jwt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaign-management-api.client.js","sourceRoot":"","sources":["../../src/campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAE1B,yCAAuC;
|
|
1
|
+
{"version":3,"file":"campaign-management-api.client.js","sourceRoot":"","sources":["../../src/campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAE1B,yCAAuC;AAYvC,+EAAkE;AAGlE,oEAA+D;AAC/D,uDAAiD;AAUjD,MAAM,cAAc,GAAgD;IACnE,iBAAiB,EAAE,KAAM;IACzB,kBAAkB,EAAE,MAAO;CAC3B,CAAC;AAGK,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IASvC,YACkB,OAAe,EAChC,GAAa,EACb,SAA4C,EAAE;QAF7B,YAAO,GAAP,OAAO,CAAQ;QAPzB,0BAAqB,GAIxB,IAAI,GAAG,EAAE,CAAC;QAcE,gCAA2B,GAAG,CAAC,OAA8B,EAAQ,EAAE;YACvF,MAAM,YAAY,GAAG,iBAAiB,CAAC;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,YAAY,CAA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,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/entity-geotargeting.dto.ts"],"names":[],"mappings":""}
|
|
@@ -9,8 +9,10 @@ import { CampaignListingEntityDto, DegreeLevel } from "./campaign-listing-entity
|
|
|
9
9
|
import { CreateCampaignRequest } from "./create/create-campaign.request";
|
|
10
10
|
import { CreateCampaignDto } from "./create/create-campaign.dto";
|
|
11
11
|
import { EnrichedCampaignGeotargetingDto } from "./enriched-campaign-geotargeting.dto";
|
|
12
|
+
import { EntityGeotargetingDto } from "./entity-geotargeting.dto";
|
|
13
|
+
import { TargetedCountriesDto } from "./targeted-countries.dto";
|
|
12
14
|
import { EnrichedStudyGeotargetingDto } from "./enriched-study-geotargeting.dto";
|
|
13
15
|
import { EnrichedOrganisationGeotargetingDto } from "./enriched-organisation-geotargeting.dto";
|
|
14
16
|
export * from './saving';
|
|
15
17
|
export * from './enums';
|
|
16
|
-
export { CampaignEditorGetResultDto, CampaignListingEntityDto, CustomProductDto, CustomProductRaw, CustomProductDataDto, CustomProductDataRaw, DeliveryMode, DeliveryType, EvenlyDelivery, CustomOverperformanceDelivery, ValidationStateResponse, DegreeLevel, CreateCampaignRequest, CreateCampaignDto, EnrichedCampaignGeotargetingDto, EnrichedStudyGeotargetingDto, EnrichedOrganisationGeotargetingDto };
|
|
18
|
+
export { CampaignEditorGetResultDto, CampaignListingEntityDto, CustomProductDto, CustomProductRaw, CustomProductDataDto, CustomProductDataRaw, DeliveryMode, DeliveryType, EvenlyDelivery, CustomOverperformanceDelivery, ValidationStateResponse, DegreeLevel, CreateCampaignRequest, CreateCampaignDto, EnrichedCampaignGeotargetingDto, EntityGeotargetingDto, EnrichedStudyGeotargetingDto, EnrichedOrganisationGeotargetingDto, TargetedCountriesDto };
|
|
@@ -14,11 +14,13 @@ 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.CreateCampaignRequest = exports.DeliveryType = void 0;
|
|
17
|
+
exports.TargetedCountriesDto = exports.CreateCampaignRequest = exports.DeliveryType = void 0;
|
|
18
18
|
const delivery_mode_1 = require("./enums/delivery-mode");
|
|
19
19
|
Object.defineProperty(exports, "DeliveryType", { enumerable: true, get: function () { return delivery_mode_1.DeliveryType; } });
|
|
20
20
|
const create_campaign_request_1 = require("./create/create-campaign.request");
|
|
21
21
|
Object.defineProperty(exports, "CreateCampaignRequest", { enumerable: true, get: function () { return create_campaign_request_1.CreateCampaignRequest; } });
|
|
22
|
+
const targeted_countries_dto_1 = require("./targeted-countries.dto");
|
|
23
|
+
Object.defineProperty(exports, "TargetedCountriesDto", { enumerable: true, get: function () { return targeted_countries_dto_1.TargetedCountriesDto; } });
|
|
22
24
|
__exportStar(require("./saving"), exports);
|
|
23
25
|
__exportStar(require("./enums"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;AArBtB,qEAAgE;AA2B/D,qGA3BQ,6CAAoB,OA2BR;AAtBrB,2CAAwB;AACxB,0CAAuB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TargetedCountriesDto = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use TargetedCountries instead.
|
|
6
|
+
*/
|
|
7
|
+
class TargetedCountriesDto {
|
|
8
|
+
}
|
|
9
|
+
exports.TargetedCountriesDto = TargetedCountriesDto;
|
|
10
|
+
//# sourceMappingURL=targeted-countries.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targeted-countries.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/targeted-countries.dto.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,oBAAoB;CAIhC;AAJD,oDAIC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
+
import { CampaignsEntitiesConfigDto } from "./domain/campaign/campaign-entities-config.dto";
|
|
2
3
|
import { CampaignWithDates } from "./domain/campaign/campaign-with-dates.entity";
|
|
4
|
+
import { PersistGoogleLinkerResultDto } from "./domain/campaign/persist-google-linker-result.dto";
|
|
3
5
|
export declare class PrivateCampaignManagementAPIClient {
|
|
4
6
|
private readonly baseUrl;
|
|
5
7
|
constructor(baseUrl: string);
|
|
6
8
|
getCampaignsByIds(campaignIDs: number[]): Promise<CampaignWithDates[]>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} instead.
|
|
11
|
+
* Pricing config management is handled internally by CMA as part of the consolidated start flow.
|
|
12
|
+
*/
|
|
13
|
+
addCampaignsEntitiesConfigs(campaignID: number, campaignsEntitiesConfigs: CampaignsEntitiesConfigDto[]): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Don't use the function at all. No replacement available.
|
|
16
|
+
*/
|
|
17
|
+
removeCampaignsEntitiesConfigsByID(campaignID: number, campaignsEntitiesConfigsIDs: number[]): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} or {@link UniversitySchedulerCMAClient.endCampaign} instead.
|
|
20
|
+
* Pricing config clearing is handled internally by CMA as part of the consolidated start/end flows.
|
|
21
|
+
*/
|
|
22
|
+
clearCampaignsEntitiesConfigsByCampaignID(campaignID: number): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.endCampaign} instead.
|
|
25
|
+
* Setting entities basic is handled internally by CMA as part of the consolidated end flow.
|
|
26
|
+
*/
|
|
27
|
+
setEntitiesBasic(campaignID: number, organisationIDs: number[], studyIDs: number[]): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} instead.
|
|
30
|
+
* Setting entities premium is handled internally by CMA as part of the consolidated start flow.
|
|
31
|
+
*/
|
|
32
|
+
setEntitiesPremium(campaignID: number, organisationIDs: number[], studyIDs: number[]): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} instead.
|
|
35
|
+
* Google Linker handling is done internally by CMA as part of the consolidated start flow.
|
|
36
|
+
*/
|
|
37
|
+
getCampaignPersistGoogleLinkerProperty(campaignID: number): Promise<PersistGoogleLinkerResultDto>;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} or {@link UniversitySchedulerCMAClient.endCampaign} instead.
|
|
40
|
+
* Google Linker handling is done internally by CMA as part of the consolidated start/end flows.
|
|
41
|
+
*/
|
|
42
|
+
setEntitiesPersistGoogleLinkerProperty(organisationIds: number[], studyIds: number[], persistGoogleLinkerValue: boolean): Promise<void>;
|
|
7
43
|
getActiveCampaignIds(): Promise<number[]>;
|
|
8
44
|
getActiveAndSoonToBeActiveCampaigns(): Promise<number[]>;
|
|
9
45
|
private getRequest;
|
|
@@ -26,6 +26,81 @@ let PrivateCampaignManagementAPIClient = class PrivateCampaignManagementAPIClien
|
|
|
26
26
|
const result = await this.postRequest(path, data);
|
|
27
27
|
return result.body;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} instead.
|
|
31
|
+
* Pricing config management is handled internally by CMA as part of the consolidated start flow.
|
|
32
|
+
*/
|
|
33
|
+
async addCampaignsEntitiesConfigs(campaignID, campaignsEntitiesConfigs) {
|
|
34
|
+
const path = `private/campaigns/add-campaigns-entities-configs`;
|
|
35
|
+
const data = {
|
|
36
|
+
campaignsEntitiesConfigs,
|
|
37
|
+
campaignID
|
|
38
|
+
};
|
|
39
|
+
await this.postRequest(path, data);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Don't use the function at all. No replacement available.
|
|
43
|
+
*/
|
|
44
|
+
async removeCampaignsEntitiesConfigsByID(campaignID, campaignsEntitiesConfigsIDs) {
|
|
45
|
+
const path = `private/campaigns/remove-campaigns-entities-configs`;
|
|
46
|
+
const data = { campaignsEntitiesConfigsIDs, campaignID };
|
|
47
|
+
await this.postRequest(path, data);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} or {@link UniversitySchedulerCMAClient.endCampaign} instead.
|
|
51
|
+
* Pricing config clearing is handled internally by CMA as part of the consolidated start/end flows.
|
|
52
|
+
*/
|
|
53
|
+
async clearCampaignsEntitiesConfigsByCampaignID(campaignID) {
|
|
54
|
+
const path = `private/campaigns/clear-campaigns-entities-configs`;
|
|
55
|
+
const data = { campaignID };
|
|
56
|
+
await this.postRequest(path, data);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.endCampaign} instead.
|
|
60
|
+
* Setting entities basic is handled internally by CMA as part of the consolidated end flow.
|
|
61
|
+
*/
|
|
62
|
+
async setEntitiesBasic(campaignID, organisationIDs, studyIDs) {
|
|
63
|
+
const path = `private/campaigns/set-entities-basic`;
|
|
64
|
+
const data = {
|
|
65
|
+
organisationIDs,
|
|
66
|
+
studyIDs,
|
|
67
|
+
campaignID
|
|
68
|
+
};
|
|
69
|
+
await this.postRequest(path, data);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} instead.
|
|
73
|
+
* Setting entities premium is handled internally by CMA as part of the consolidated start flow.
|
|
74
|
+
*/
|
|
75
|
+
async setEntitiesPremium(campaignID, organisationIDs, studyIDs) {
|
|
76
|
+
const path = `private/campaigns/set-entities-premium`;
|
|
77
|
+
const data = {
|
|
78
|
+
organisationIDs,
|
|
79
|
+
studyIDs,
|
|
80
|
+
campaignID
|
|
81
|
+
};
|
|
82
|
+
await this.postRequest(path, data);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} instead.
|
|
86
|
+
* Google Linker handling is done internally by CMA as part of the consolidated start flow.
|
|
87
|
+
*/
|
|
88
|
+
async getCampaignPersistGoogleLinkerProperty(campaignID) {
|
|
89
|
+
return await this.getRequest(`private/campaigns/${campaignID}/get-persist-google-linker`);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Use {@link UniversitySchedulerCMAClient.startCampaign} or {@link UniversitySchedulerCMAClient.endCampaign} instead.
|
|
93
|
+
* Google Linker handling is done internally by CMA as part of the consolidated start/end flows.
|
|
94
|
+
*/
|
|
95
|
+
async setEntitiesPersistGoogleLinkerProperty(organisationIds, studyIds, persistGoogleLinkerValue) {
|
|
96
|
+
const path = `private/campaigns/set-entities-persist-google-linker`;
|
|
97
|
+
const data = {
|
|
98
|
+
organisationIds,
|
|
99
|
+
studyIds,
|
|
100
|
+
persistGoogleLinkerValue
|
|
101
|
+
};
|
|
102
|
+
await this.postRequest(path, data);
|
|
103
|
+
}
|
|
29
104
|
async getActiveCampaignIds() {
|
|
30
105
|
const path = `private/campaigns/active-campaign-ids`;
|
|
31
106
|
return await this.getRequest(path);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/private-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAE1B,yCAAuC;
|
|
1
|
+
{"version":3,"file":"private-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/private-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAE1B,yCAAuC;AAEvC,oEAA+D;AAC/D,uDAA2D;AAKpD,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAC9C,YACkB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAC7B,CAAC;IAEE,KAAK,CAAC,iBAAiB,CAAC,WAAqB;QACnD,MAAM,IAAI,GAAG,wCAAwC,CAAC;QACtD,MAAM,IAAI,GAAG;YACZ,WAAW;SACX,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAClD,OAAO,MAAM,CAAC,IAA2B,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,2BAA2B,CAAC,UAAkB,EAAE,wBAAsD;QAClH,MAAM,IAAI,GAAG,kDAAkD,CAAC;QAChE,MAAM,IAAI,GAAG;YACZ,wBAAwB;YACxB,UAAU;SACV,CAAC;QAEF,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,kCAAkC,CAAC,UAAkB,EAAE,2BAAqC;QACxG,MAAM,IAAI,GAAG,qDAAqD,CAAC;QACnE,MAAM,IAAI,GAAG,EAAE,2BAA2B,EAAE,UAAU,EAAE,CAAC;QAEzD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,yCAAyC,CAAC,UAAkB;QACxE,MAAM,IAAI,GAAG,oDAAoD,CAAC;QAClE,MAAM,IAAI,GAAG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OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AA3IY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,sBAAU,GAAE;;GACA,kCAAkC,CA2I9C"}
|
|
@@ -4,12 +4,14 @@ import { StartDatesAndDeadlinesDto } from "./domain/studies/start-dates-and-dead
|
|
|
4
4
|
import { StartDateType } from "./domain/studies/enums/start-date-type.enum";
|
|
5
5
|
import { LinkDto } from "./domain/studies/link-dto";
|
|
6
6
|
import { SetLinksResponse } from "./domain/studies/set-links-response";
|
|
7
|
+
import { DiscountItem, TuitionFeeDiscountIssue } from "./validation";
|
|
7
8
|
export declare class StudyCampaignManagementAPIClient {
|
|
8
9
|
private readonly baseUrl;
|
|
9
10
|
constructor(baseUrl: string);
|
|
10
11
|
setStartDatesAndDeadlines(startDateType: StartDateType, studyIds: number[], dates: StartDatesAndDeadlinesDto[], description?: string, jwt?: string): Promise<SetStartDatesAndDeadlinesDto>;
|
|
11
12
|
setLinks(studyIds: number[], homepageLink?: LinkDto, swappableLink?: LinkDto, jwt?: string): Promise<SetLinksResponse>;
|
|
12
13
|
setEnglishScores(studyIds: number[], ielts?: number | null, toeflInternet?: number | null, pte?: number | null, duolingo?: number | null, ote?: number | null, jwt?: string): Promise<void>;
|
|
14
|
+
setTuitionFeesDiscounts(studyIds: number[], discounts: DiscountItem[], jwt: string): Promise<TuitionFeeDiscountIssue[]>;
|
|
13
15
|
private postRequest;
|
|
14
16
|
private buildBaseUrl;
|
|
15
17
|
}
|
|
@@ -13,6 +13,8 @@ exports.StudyCampaignManagementAPIClient = void 0;
|
|
|
13
13
|
require("reflect-metadata");
|
|
14
14
|
const inversify_1 = require("inversify");
|
|
15
15
|
const http_request_1 = require("./utils/http-request");
|
|
16
|
+
const validation_1 = require("./validation");
|
|
17
|
+
const class_validator_1 = require("class-validator");
|
|
16
18
|
let StudyCampaignManagementAPIClient = class StudyCampaignManagementAPIClient {
|
|
17
19
|
constructor(baseUrl) {
|
|
18
20
|
this.baseUrl = baseUrl;
|
|
@@ -50,6 +52,22 @@ let StudyCampaignManagementAPIClient = class StudyCampaignManagementAPIClient {
|
|
|
50
52
|
const path = 'studies/set-english-scores';
|
|
51
53
|
await this.postRequest(path, sendData, jwt);
|
|
52
54
|
}
|
|
55
|
+
async setTuitionFeesDiscounts(studyIds, discounts, jwt) {
|
|
56
|
+
const sendData = new validation_1.SetTuitionFeeDiscountsDto();
|
|
57
|
+
sendData.studyIds = studyIds;
|
|
58
|
+
sendData.discounts = discounts.map(d => {
|
|
59
|
+
const discount = new validation_1.DiscountItemDto();
|
|
60
|
+
discount.type = d.type;
|
|
61
|
+
discount.value = d.value;
|
|
62
|
+
// Map 'noneea' is FE specific definition - needs translation for BE
|
|
63
|
+
discount.target = d.target === 'noneea' ? 'international' : d.target;
|
|
64
|
+
return discount;
|
|
65
|
+
});
|
|
66
|
+
await (0, class_validator_1.validateOrReject)(sendData);
|
|
67
|
+
const path = 'studies/set-tuition-fee-discounts';
|
|
68
|
+
const result = await this.postRequest(path, sendData, jwt);
|
|
69
|
+
return result.body;
|
|
70
|
+
}
|
|
53
71
|
async postRequest(relative = "", data, jwt = "") {
|
|
54
72
|
return (0, http_request_1.fetchJson)('POST', this.buildBaseUrl(relative), jwt, data);
|
|
55
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"study-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/study-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAK1B,yCAAuC;AAGvC,uDAAiD;
|
|
1
|
+
{"version":3,"file":"study-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/study-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAK1B,yCAAuC;AAGvC,uDAAiD;AACjD,6CAAiH;AACjH,qDAAmD;AAG5C,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAC5C,YACkB,OAAe;QAAf,YAAO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 'noneea'>;
|
|
3
|
+
export type DiscountItem = {
|
|
4
|
+
type: 'flat' | 'percentage';
|
|
5
|
+
value: number;
|
|
6
|
+
target: FEDiscountTargets;
|
|
7
|
+
};
|
|
8
|
+
export declare class DiscountItemDto implements DiscountItem {
|
|
9
|
+
type: 'flat' | 'percentage';
|
|
10
|
+
value: number;
|
|
11
|
+
target: 'eea' | 'local' | 'national' | 'international';
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.DiscountItemDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DiscountItemDto {
|
|
15
|
+
}
|
|
16
|
+
exports.DiscountItemDto = DiscountItemDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsIn)(['flat', 'percentage']),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], DiscountItemDto.prototype, "type", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], DiscountItemDto.prototype, "value", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsIn)(['eea', 'local', 'national', 'international']),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DiscountItemDto.prototype, "target", void 0);
|
|
29
|
+
//# sourceMappingURL=discount-item.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount-item.dto.js","sourceRoot":"","sources":["../../../../../src/validation/dto/studies/discount-item.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAUjD,MAAa,eAAe;CAS3B;AATD,0CASC;AAPA;IADC,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;;6CACD;AAG5B;IADC,IAAA,0BAAQ,GAAE;;8CACG;AAGd;IADC,IAAA,sBAAI,EAAC,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;;+CACG"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DiscountItem, DiscountItemDto, FEDiscountTargets } from './discount-item.dto';
|
|
2
|
+
import { SetTuitionFeeDiscountsDto } from './set-tuition-fee-discounts.dto';
|
|
3
|
+
import { TUITION_FEE_DISCOUNT_ISSUE_REASON, TuitionFeeDiscountIssue, TuitionFeeDiscountIssueReasonValue } from './tuition-fee-discount-issue.type';
|
|
4
|
+
export { FEDiscountTargets, DiscountItem, DiscountItemDto, SetTuitionFeeDiscountsDto, TuitionFeeDiscountIssue, TuitionFeeDiscountIssueReasonValue, TUITION_FEE_DISCOUNT_ISSUE_REASON };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TUITION_FEE_DISCOUNT_ISSUE_REASON = exports.SetTuitionFeeDiscountsDto = exports.DiscountItemDto = void 0;
|
|
4
|
+
const discount_item_dto_1 = require("./discount-item.dto");
|
|
5
|
+
Object.defineProperty(exports, "DiscountItemDto", { enumerable: true, get: function () { return discount_item_dto_1.DiscountItemDto; } });
|
|
6
|
+
const set_tuition_fee_discounts_dto_1 = require("./set-tuition-fee-discounts.dto");
|
|
7
|
+
Object.defineProperty(exports, "SetTuitionFeeDiscountsDto", { enumerable: true, get: function () { return set_tuition_fee_discounts_dto_1.SetTuitionFeeDiscountsDto; } });
|
|
8
|
+
const tuition_fee_discount_issue_type_1 = require("./tuition-fee-discount-issue.type");
|
|
9
|
+
Object.defineProperty(exports, "TUITION_FEE_DISCOUNT_ISSUE_REASON", { enumerable: true, get: function () { return tuition_fee_discount_issue_type_1.TUITION_FEE_DISCOUNT_ISSUE_REASON; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/validation/dto/studies/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuF;AAOtF,gGAPsB,mCAAe,OAOtB;AANhB,mFAA4E;AAO3E,0GAPQ,yDAAyB,OAOR;AAN1B,uFAAmJ;AASlJ,kHATQ,mEAAiC,OASR"}
|
|
@@ -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.SetTuitionFeeDiscountsDto = exports.DiscountItemDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const discount_item_dto_1 = require("./discount-item.dto");
|
|
16
|
+
Object.defineProperty(exports, "DiscountItemDto", { enumerable: true, get: function () { return discount_item_dto_1.DiscountItemDto; } });
|
|
17
|
+
class SetTuitionFeeDiscountsDto {
|
|
18
|
+
}
|
|
19
|
+
exports.SetTuitionFeeDiscountsDto = SetTuitionFeeDiscountsDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsArray)(),
|
|
22
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
23
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], SetTuitionFeeDiscountsDto.prototype, "studyIds", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsArray)(),
|
|
28
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
29
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
30
|
+
(0, class_transformer_1.Type)(() => discount_item_dto_1.DiscountItemDto),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], SetTuitionFeeDiscountsDto.prototype, "discounts", void 0);
|
|
33
|
+
//# sourceMappingURL=set-tuition-fee-discounts.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-tuition-fee-discounts.dto.js","sourceRoot":"","sources":["../../../../../src/validation/dto/studies/set-tuition-fee-discounts.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAkF;AAClF,2DAAsD;AAE7C,gGAFA,mCAAe,OAEA;AAExB,MAAa,yBAAyB;CAWrC;AAXD,8DAWC;AAPA;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACV;AAMnB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAe,CAAC;;4DACC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const TUITION_FEE_DISCOUNT_ISSUE_REASON: {
|
|
2
|
+
readonly TUITION_FEE_NOT_FOUND: 1;
|
|
3
|
+
readonly AMOUNT_NOT_POSITIVE: 2;
|
|
4
|
+
readonly FLAT_BELOW_MINIMUM: 3;
|
|
5
|
+
readonly FLAT_AMOUNT_EXCEEDS: 4;
|
|
6
|
+
readonly PERCENTAGE_TOO_LOW: 5;
|
|
7
|
+
readonly PERCENTAGE_TOO_HIGH: 6;
|
|
8
|
+
readonly DUPLICATE_TARGET: 7;
|
|
9
|
+
};
|
|
10
|
+
export type TuitionFeeDiscountIssueReasonValue = typeof TUITION_FEE_DISCOUNT_ISSUE_REASON[keyof typeof TUITION_FEE_DISCOUNT_ISSUE_REASON];
|
|
11
|
+
export type TuitionFeeDiscountIssue = {
|
|
12
|
+
type: 'flat' | 'percentage';
|
|
13
|
+
value: number;
|
|
14
|
+
target: string;
|
|
15
|
+
studyId: number;
|
|
16
|
+
reason: TuitionFeeDiscountIssueReasonValue;
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TUITION_FEE_DISCOUNT_ISSUE_REASON = void 0;
|
|
4
|
+
exports.TUITION_FEE_DISCOUNT_ISSUE_REASON = {
|
|
5
|
+
TUITION_FEE_NOT_FOUND: 1,
|
|
6
|
+
AMOUNT_NOT_POSITIVE: 2,
|
|
7
|
+
FLAT_BELOW_MINIMUM: 3,
|
|
8
|
+
FLAT_AMOUNT_EXCEEDS: 4,
|
|
9
|
+
PERCENTAGE_TOO_LOW: 5,
|
|
10
|
+
PERCENTAGE_TOO_HIGH: 6,
|
|
11
|
+
DUPLICATE_TARGET: 7,
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=tuition-fee-discount-issue.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tuition-fee-discount-issue.type.js","sourceRoot":"","sources":["../../../../../src/validation/dto/studies/tuition-fee-discount-issue.type.ts"],"names":[],"mappings":";;;AAAa,QAAA,iCAAiC,GAAG;IAChD,qBAAqB,EAAE,CAAC;IACxB,mBAAmB,EAAE,CAAC;IACtB,kBAAkB,EAAE,CAAC;IACrB,mBAAmB,EAAE,CAAC;IACtB,kBAAkB,EAAE,CAAC;IACrB,mBAAmB,EAAE,CAAC;IACtB,gBAAgB,EAAE,CAAC;CACV,CAAC"}
|
|
@@ -4,4 +4,5 @@ import { CampaignMandatoryFieldsValidator, CampaignMandatoryFieldsValidatorInput
|
|
|
4
4
|
import { SpecificResult } from "./types/SpecificResult";
|
|
5
5
|
import { ValidationResult } from "./types/ValidationResult";
|
|
6
6
|
export * from "./dto/organisations";
|
|
7
|
+
export * from "./dto/studies";
|
|
7
8
|
export { ValidationResult, SpecificResult, CampaignMandatoryFieldsValidator, CampaignMandatoryFieldsValidatorInputShape, CampaignLiftExcludedFieldValidator, CustomProductValidator, CAMPAIGN_LIFT_EXCLUDED_ALLOWED_PARTNERSHIP_TYPES, USERS_ALLOWED_EDITING_CAMPAIGN_LIFT };
|
package/src/validation/index.js
CHANGED
|
@@ -26,4 +26,5 @@ Object.defineProperty(exports, "CampaignMandatoryFieldsValidator", { enumerable:
|
|
|
26
26
|
const SpecificResult_1 = require("./types/SpecificResult");
|
|
27
27
|
Object.defineProperty(exports, "SpecificResult", { enumerable: true, get: function () { return SpecificResult_1.SpecificResult; } });
|
|
28
28
|
__exportStar(require("./dto/organisations"), exports);
|
|
29
|
+
__exportStar(require("./dto/studies"), exports);
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8GAI2D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8GAI2D;AAkB1D,iIArBA,yFAAgD,OAqBA;AAFhD,mHAlBA,2EAAkC,OAkBA;AAGlC,oHApBA,4EAAmC,OAoBA;AAlBpC,kFAA6E;AAgB5E,uGAhBQ,iDAAsB,OAgBR;AAfvB,sFAE+C;AAU9C,iHAXA,6DAAgC,OAWA;AATjC,2DAAwD;AAQvD,+FARQ,+BAAc,OAQR;AALf,sDAAoC;AACpC,gDAA8B"}
|