@studyportals/campaign-management-api-interface 17.0.1 → 17.0.2-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/index.d.ts +1 -3
- package/index.js +1 -5
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/src/auditor-campaign-management-api.client.d.ts +0 -5
- package/src/auditor-campaign-management-api.client.js +0 -15
- package/src/auditor-campaign-management-api.client.js.map +1 -1
- package/src/campaign-management-api.client.d.ts +0 -7
- package/src/campaign-management-api.client.js +0 -45
- package/src/campaign-management-api.client.js.map +1 -1
- package/src/domain/campaign/index.d.ts +1 -3
- package/src/domain/campaign/index.js +1 -3
- package/src/domain/campaign/index.js.map +1 -1
- package/src/private-campaign-management-api.client.d.ts +0 -36
- package/src/private-campaign-management-api.client.js +0 -75
- package/src/private-campaign-management-api.client.js.map +1 -1
- package/src/domain/campaign/entity-geotargeting.dto.d.ts +0 -5
- package/src/domain/campaign/entity-geotargeting.dto.js +0 -3
- package/src/domain/campaign/entity-geotargeting.dto.js.map +0 -1
- package/src/domain/campaign/targeted-countries.dto.d.ts +0 -8
- package/src/domain/campaign/targeted-countries.dto.js +0 -10
- package/src/domain/campaign/targeted-countries.dto.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -5,14 +5,12 @@ 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";
|
|
9
8
|
import { NumberMap, Pricing, ICampaignAuditorData } from "./src/domain/auditor/campaigns/geotargeting.entities";
|
|
10
9
|
import { PrivateCampaignManagementAPIClient } from "./src/private-campaign-management-api.client";
|
|
11
10
|
import { UserCampaignManagementAPIClient } from "./src/user-campaign-management-api.client";
|
|
12
11
|
import { StudyCampaignManagementAPIClient } from "./src/study-campaign-management-api.client";
|
|
13
12
|
import { MinimalOrganisationDto } from "./src/domain/organisations/minimal-organisations.dto";
|
|
14
13
|
import { LinkType } from "./src/domain/studies/enums/link-type.enum";
|
|
15
|
-
import { PersistGoogleLinkerResultDto } from "./src/domain/campaign/persist-google-linker-result.dto";
|
|
16
14
|
import { LinkEntityType } from "./src/domain/links/link-entity-type.enum";
|
|
17
15
|
import { LinksCampaignManagementAPIClient } from './src/links-campaign-management-api.client';
|
|
18
16
|
import { SwappingEnabledLinkTypes } from "./src/domain/links/swapping-enabled-link-types.enum";
|
|
@@ -35,4 +33,4 @@ export * from "./src/validation";
|
|
|
35
33
|
export * from "./src/domain/organisations";
|
|
36
34
|
export * from "./src/domain/products";
|
|
37
35
|
export * from "./src/domain/degrees";
|
|
38
|
-
export { AuditorCampaignManagementAPIClient, OrganisationsCampaignManagementAPIClient, CampaignManagementAPIClient, CampaignManagementAPIClientConfig, PrivateCampaignManagementAPIClient, PrivateUserCampaignManagementAPIClient, UserCampaignManagementAPIClient, StudyCampaignManagementAPIClient, LinksCampaignManagementAPIClient, ProductsCampaignManagementAPIClient, PublicStatusClient, GeotarginatorFrontCMAClient, UniversitySchedulerCMAClient, AuditorEntityType, AuditorOperation, LinkType, LinkEntityType, SwappingEnabledLinkTypes, GetAuditorDto,
|
|
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 };
|
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.
|
|
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;
|
|
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,8 +29,6 @@ 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; } });
|
|
34
32
|
const geotargeting_entities_1 = require("./src/domain/auditor/campaigns/geotargeting.entities");
|
|
35
33
|
Object.defineProperty(exports, "Pricing", { enumerable: true, get: function () { return geotargeting_entities_1.Pricing; } });
|
|
36
34
|
const private_campaign_management_api_client_1 = require("./src/private-campaign-management-api.client");
|
|
@@ -43,8 +41,6 @@ const minimal_organisations_dto_1 = require("./src/domain/organisations/minimal-
|
|
|
43
41
|
Object.defineProperty(exports, "MinimalOrganisationDto", { enumerable: true, get: function () { return minimal_organisations_dto_1.MinimalOrganisationDto; } });
|
|
44
42
|
const link_type_enum_1 = require("./src/domain/studies/enums/link-type.enum");
|
|
45
43
|
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; } });
|
|
48
44
|
const link_entity_type_enum_1 = require("./src/domain/links/link-entity-type.enum");
|
|
49
45
|
Object.defineProperty(exports, "LinkEntityType", { enumerable: true, get: function () { return link_entity_type_enum_1.LinkEntityType; } });
|
|
50
46
|
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;AAiDjG,mHAjDQ,2EAAkC,OAiDR;AAhDnC,wDAAoD;AAyGnD,0FAzGQ,sBAAS,OAyGR;AAxGV,qHAA8G;AAgD7G,yHAhDQ,uFAAwC,OAgDR;AA/CzC,yFAAsH;AAgDrH,4GAhDQ,4DAA2B,OAgDR;AA/C5B,kGAAwF;AA4DvF,kGA5DQ,4CAAiB,OA4DR;AA3DlB,8FAAqF;AA4DpF,iGA5DQ,yCAAgB,OA4DR;AA3DjB,0EAAqE;AAiEpE,8FAjEQ,+BAAa,OAiER;AAhEd,gGAAgH;AAgG/G,wFAhGmB,+BAAO,OAgGnB;AA/FR,yGAAkG;AA6CjG,mHA7CQ,2EAAkC,OA6CR;AA5CnC,mGAA4F;AA8C3F,gHA9CQ,qEAA+B,OA8CR;AA7ChC,qGAA8F;AA8C7F,iHA9CQ,uEAAgC,OA8CR;AA7CjC,oGAA8F;AAoE7F,uGApEQ,kDAAsB,OAoER;AAnEvB,8EAAqE;AAsDpE,yFAtDQ,yBAAQ,OAsDR;AArDT,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;AAiD3C,sFAjDQ,cAAK,OAiDR;AAhDN,yFAAmF;AAoClF,4GApCQ,4DAA2B,OAoCR;AAnC5B,2FAAqF;AAoCpF,6GApCQ,8DAA4B,OAoCR;AAnC7B,+DAAsF;AAoErF,mGApEQ,mCAAkB,OAoER;AAClB,qGArE4B,qCAAoB,OAqE5B;AAvDrB,wDAAsC;AACtC,qDAAmC;AACnC,mDAAiC;AACjC,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/campaign-management-api-interface",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.2-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
|
+
"deploy": "npm publish ./bin --access=public --otp=123",
|
|
11
11
|
"deploy-patch": "npm version patch && npm run deploy",
|
|
12
12
|
"deploy-minor": "npm version minor && npm run deploy",
|
|
13
13
|
"deploy-major": "npm version major && npm run deploy",
|
|
@@ -6,11 +6,6 @@ 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>;
|
|
14
9
|
storeStudyAuditorData(operation: AuditorOperation, studyID: number, username: string, isUserAction: boolean, messageType: string, message: any, jwt?: string): Promise<GetAuditorDto>;
|
|
15
10
|
storeStudiesAuditorData(operation: AuditorOperation, studyIDs: number[], username: string, isUserAction: boolean, messageType: string, message: any, jwt?: string): Promise<GetAuditorDto[]>;
|
|
16
11
|
private getRequest;
|
|
@@ -27,21 +27,6 @@ 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
|
-
}
|
|
45
30
|
async storeStudyAuditorData(operation, studyID, username, isUserAction, messageType, message, jwt = "") {
|
|
46
31
|
const body = await this.storeStudiesAuditorData(operation, [studyID], username, isUserAction, messageType, message, jwt);
|
|
47
32
|
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;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;
|
|
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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,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AAnDY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,sBAAU,GAAE;;GACA,kCAAkC,CAmD9C"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import { CampaignsEntitiesConfigDto } from "./domain/campaign/campaign-entities-config.dto";
|
|
3
2
|
import { CampaignsDuplicatesDto } from "./domain/campaign/campaign-duplicates.dto";
|
|
4
3
|
import { DuplicateCampaignDto } from "./domain/campaign/duplicate-campaign.dto";
|
|
5
4
|
import { CampaignEditorGetResultDto } from "./domain/campaign/campaign-editor-get-result.dto";
|
|
@@ -26,12 +25,6 @@ export declare class CampaignManagementAPIClient {
|
|
|
26
25
|
private readonly handleWsDisconnected;
|
|
27
26
|
disconnect(): void;
|
|
28
27
|
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>;
|
|
35
28
|
getCampaignForCampaignEditor(campaignID: number, jwt?: string): Promise<CampaignEditorGetResultDto>;
|
|
36
29
|
getClientServicesUsers(jwt?: string): Promise<MinimalUserDto[]>;
|
|
37
30
|
getAccountManagers(jwt?: string): Promise<MinimalUserDto[]>;
|
|
@@ -80,51 +80,6 @@ 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
|
-
}
|
|
128
83
|
async getCampaignForCampaignEditor(campaignID, jwt = '') {
|
|
129
84
|
const path = `campaigns/campaign-editor/${campaignID}`;
|
|
130
85
|
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;AAWvC,+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,CAAC,CAAC;YAE/D,IAAI,CAAC,SAAS;gBAAE,OAAO;YA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MAAM,IAAI,GAAG,aAAa,UAAU,eAAe,CAAC;QAEpD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAEhD,OAAO,MAAM,CAAC,IAAuC,CAAC;IACvD,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,WAAmB,EAAE,EAAE,IAAqB,EAAE,MAAc,EAAE;QACvF,OAAO,IAAA,wBAAS,EAAC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,WAAmB,EAAE,EAAE,MAAc,EAAE;QAC/D,OAAO,IAAA,wBAAS,EAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3D,CAAC;IAEO,YAAY,CAAC,QAAgB;QACpC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AAzMY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,sBAAU,GAAE;;GACA,2BAA2B,CAyMvC"}
|
|
@@ -9,10 +9,8 @@ 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";
|
|
14
12
|
import { EnrichedStudyGeotargetingDto } from "./enriched-study-geotargeting.dto";
|
|
15
13
|
import { EnrichedOrganisationGeotargetingDto } from "./enriched-organisation-geotargeting.dto";
|
|
16
14
|
export * from './saving';
|
|
17
15
|
export * from './enums';
|
|
18
|
-
export { CampaignEditorGetResultDto, CampaignListingEntityDto, CustomProductDto, CustomProductRaw, CustomProductDataDto, CustomProductDataRaw, DeliveryMode, DeliveryType, EvenlyDelivery, CustomOverperformanceDelivery, ValidationStateResponse, DegreeLevel, CreateCampaignRequest, CreateCampaignDto, EnrichedCampaignGeotargetingDto,
|
|
16
|
+
export { CampaignEditorGetResultDto, CampaignListingEntityDto, CustomProductDto, CustomProductRaw, CustomProductDataDto, CustomProductDataRaw, DeliveryMode, DeliveryType, EvenlyDelivery, CustomOverperformanceDelivery, ValidationStateResponse, DegreeLevel, CreateCampaignRequest, CreateCampaignDto, EnrichedCampaignGeotargetingDto, EnrichedStudyGeotargetingDto, EnrichedOrganisationGeotargetingDto };
|
|
@@ -14,13 +14,11 @@ 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.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; } });
|
|
24
22
|
__exportStar(require("./saving"), exports);
|
|
25
23
|
__exportStar(require("./enums"), exports);
|
|
26
24
|
//# 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;AAyBjH,6FAzBqD,4BAAY,OAyBrD;AAlBb,8EAAyE;AAuBxE,sGAvBQ,+CAAqB,OAuBR;AAhBtB,2CAAwB;AACxB,0CAAuB"}
|
|
@@ -1,45 +1,9 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import { CampaignsEntitiesConfigDto } from "./domain/campaign/campaign-entities-config.dto";
|
|
3
2
|
import { CampaignWithDates } from "./domain/campaign/campaign-with-dates.entity";
|
|
4
|
-
import { PersistGoogleLinkerResultDto } from "./domain/campaign/persist-google-linker-result.dto";
|
|
5
3
|
export declare class PrivateCampaignManagementAPIClient {
|
|
6
4
|
private readonly baseUrl;
|
|
7
5
|
constructor(baseUrl: string);
|
|
8
6
|
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>;
|
|
43
7
|
getActiveCampaignIds(): Promise<number[]>;
|
|
44
8
|
getActiveAndSoonToBeActiveCampaigns(): Promise<number[]>;
|
|
45
9
|
private getRequest;
|
|
@@ -26,81 +26,6 @@ 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
|
-
}
|
|
104
29
|
async getActiveCampaignIds() {
|
|
105
30
|
const path = `private/campaigns/active-campaign-ids`;
|
|
106
31
|
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;AACvC,oEAA+D;AAC/D,uDAA2D;AAIpD,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;IAEM,KAAK,CAAC,oBAAoB;QAChC,MAAM,IAAI,GAAG,uCAAuC,CAAC;QACrD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAW,IAAI,CAAC,CAAC;IAC9C,CAAC;IAEM,KAAK,CAAC,mCAAmC;QAC/C,MAAM,IAAI,GAAG,6DAA6D,CAAC;QAC3E,OAAO,MAAM,IAAI,CAAC,UAAU,CAAW,IAAI,CAAC,CAAC;IAC9C,CAAC;IAEO,KAAK,CAAC,UAAU,CAAI,WAAmB,EAAE;QAChD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;QACjD,MAAM,aAAa,GAAG,MAAM,qCAAgB,CAAC,IAAI,CAAC;YACjD,GAAG;YACH,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,cAAc;YAClE,MAAM,EAAE,KAAK;SACb,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,aAA4B,CAAC,CAAC;QAC3E,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,kCAAmB,EAAC,QAAQ,CAAC,CAAC;QACrD,OAAO,IAAS,CAAC;IAClB,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,WAAmB,EAAE,EAAE,IAAS;QACzD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;QACjD,MAAM,aAAa,GAAG,MAAM,qCAAgB,CAAC,IAAI,CAAC;YACjD,GAAG;YACH,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,cAAc;YAClE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,aAA4B,CAAC,CAAC;QAC3E,OAAO,IAAA,kCAAmB,EAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAEO,YAAY,CAAC,QAAgB;QACpC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AAnDY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,sBAAU,GAAE;;GACA,kCAAkC,CAmD9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-geotargeting.dto.js","sourceRoot":"","sources":["../../../../src/domain/campaign/entity-geotargeting.dto.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|