@studyportals/campaign-management-api-interface 0.17.0 → 0.18.0

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 CHANGED
@@ -9,5 +9,5 @@ import { NumberMap, Pricing, ICampaignAuditorData } from "./src/domain/auditor/c
9
9
  import { PrivateCampaignManagementAPIClient } from "./src/private-campaign-management-api.client";
10
10
  import { UserCampaignManagementAPIClient } from "./src/user-campaign-management-api.client";
11
11
  import { StudyCampaignManagementAPIClient } from "./src/study-campaign-management-api.client";
12
- import { MinimalOrganisationStudiesCountDto } from "./src/domain/organisations/minimal-organisations-studies-count.dto";
13
- export { AuditorCampaignManagementAPIClient, OrganisationsCampaignManagementAPIClient, CampaignManagementAPIClient, PrivateCampaignManagementAPIClient, UserCampaignManagementAPIClient, StudyCampaignManagementAPIClient, AuditorEntityType, AuditorOperation, GetAuditorDto, CampaignsEntitiesConfigDto, MinimalOrganisationStudiesCountDto, NumberMap, Pricing, ICampaignAuditorData };
12
+ import { MinimalOrganisationDto } from "./src/domain/organisations/minimal-organisations.dto";
13
+ export { AuditorCampaignManagementAPIClient, OrganisationsCampaignManagementAPIClient, CampaignManagementAPIClient, PrivateCampaignManagementAPIClient, UserCampaignManagementAPIClient, StudyCampaignManagementAPIClient, AuditorEntityType, AuditorOperation, GetAuditorDto, CampaignsEntitiesConfigDto, MinimalOrganisationDto, NumberMap, Pricing, ICampaignAuditorData };
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Pricing = exports.MinimalOrganisationStudiesCountDto = exports.CampaignsEntitiesConfigDto = exports.GetAuditorDto = exports.AuditorOperation = exports.AuditorEntityType = exports.StudyCampaignManagementAPIClient = exports.UserCampaignManagementAPIClient = exports.PrivateCampaignManagementAPIClient = exports.CampaignManagementAPIClient = exports.OrganisationsCampaignManagementAPIClient = exports.AuditorCampaignManagementAPIClient = void 0;
3
+ exports.Pricing = exports.MinimalOrganisationDto = exports.CampaignsEntitiesConfigDto = exports.GetAuditorDto = exports.AuditorOperation = exports.AuditorEntityType = exports.StudyCampaignManagementAPIClient = exports.UserCampaignManagementAPIClient = exports.PrivateCampaignManagementAPIClient = exports.CampaignManagementAPIClient = exports.OrganisationsCampaignManagementAPIClient = exports.AuditorCampaignManagementAPIClient = void 0;
4
4
  const auditor_campaign_management_api_client_1 = require("./src/auditor-campaign-management-api.client");
5
5
  Object.defineProperty(exports, "AuditorCampaignManagementAPIClient", { enumerable: true, get: function () { return auditor_campaign_management_api_client_1.AuditorCampaignManagementAPIClient; } });
6
6
  const organisations_campaign_management_api_client_1 = require("./src/organisations-campaign-management-api.client");
@@ -23,6 +23,6 @@ const user_campaign_management_api_client_1 = require("./src/user-campaign-manag
23
23
  Object.defineProperty(exports, "UserCampaignManagementAPIClient", { enumerable: true, get: function () { return user_campaign_management_api_client_1.UserCampaignManagementAPIClient; } });
24
24
  const study_campaign_management_api_client_1 = require("./src/study-campaign-management-api.client");
25
25
  Object.defineProperty(exports, "StudyCampaignManagementAPIClient", { enumerable: true, get: function () { return study_campaign_management_api_client_1.StudyCampaignManagementAPIClient; } });
26
- const minimal_organisations_studies_count_dto_1 = require("./src/domain/organisations/minimal-organisations-studies-count.dto");
27
- Object.defineProperty(exports, "MinimalOrganisationStudiesCountDto", { enumerable: true, get: function () { return minimal_organisations_studies_count_dto_1.MinimalOrganisationStudiesCountDto; } });
26
+ const minimal_organisations_dto_1 = require("./src/domain/organisations/minimal-organisations.dto");
27
+ Object.defineProperty(exports, "MinimalOrganisationDto", { enumerable: true, get: function () { return minimal_organisations_dto_1.MinimalOrganisationDto; } });
28
28
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,yGAAkG;AAe9F,mHAfK,2EAAkC,OAeL;AAdtC,qHAA8G;AAe1G,yHAfK,uFAAwC,OAeL;AAd5C,yFAAmF;AAe/E,4GAfK,4DAA2B,OAeL;AAd/B,kGAAwF;AAoBpF,kGApBK,4CAAiB,OAoBL;AAnBrB,8FAAqF;AAoBjF,iGApBK,yCAAgB,OAoBL;AAnBpB,0EAAqE;AAsBjE,8FAtBK,+BAAa,OAsBL;AArBjB,qGAAgG;AAwB5F,2GAxBK,yDAA0B,OAwBL;AAvB9B,gGAAgH;AA6B5G,wFA7BgB,+BAAO,OA6BhB;AA5BX,yGAAkG;AAU9F,mHAVK,2EAAkC,OAUL;AATtC,mGAA4F;AAUxF,gHAVK,qEAA+B,OAUL;AATnC,qGAA8F;AAU1F,iHAVK,uEAAgC,OAUL;AATpC,gIAAwH;AAsBpH,mHAtBK,4EAAkC,OAsBL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,yGAAkG;AAe9F,mHAfK,2EAAkC,OAeL;AAdtC,qHAA8G;AAe1G,yHAfK,uFAAwC,OAeL;AAd5C,yFAAmF;AAe/E,4GAfK,4DAA2B,OAeL;AAd/B,kGAAwF;AAoBpF,kGApBK,4CAAiB,OAoBL;AAnBrB,8FAAqF;AAoBjF,iGApBK,yCAAgB,OAoBL;AAnBpB,0EAAqE;AAsBjE,8FAtBK,+BAAa,OAsBL;AArBjB,qGAAgG;AAwB5F,2GAxBK,yDAA0B,OAwBL;AAvB9B,gGAAgH;AA6B5G,wFA7BgB,+BAAO,OA6BhB;AA5BX,yGAAkG;AAU9F,mHAVK,2EAAkC,OAUL;AATtC,mGAA4F;AAUxF,gHAVK,qEAA+B,OAUL;AATnC,qGAA8F;AAU1F,iHAVK,uEAAgC,OAUL;AATpC,oGAA8F;AAsB1F,uGAtBK,kDAAsB,OAsBL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/campaign-management-api-interface",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "scripts": {
5
5
  "compile": "rm -fR bin && npx tsc",
6
6
  "test-u": "jest -c jest.config.unit.json --maxWorkers=1",
@@ -0,0 +1,5 @@
1
+ export declare class MinimalOrganisationDto {
2
+ readonly id: number;
3
+ readonly name: string;
4
+ constructor(id: number, name: string);
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MinimalOrganisationDto = void 0;
4
+ class MinimalOrganisationDto {
5
+ constructor(id, name) {
6
+ this.id = id;
7
+ this.name = name;
8
+ }
9
+ }
10
+ exports.MinimalOrganisationDto = MinimalOrganisationDto;
11
+ //# sourceMappingURL=minimal-organisations.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimal-organisations.dto.js","sourceRoot":"","sources":["../../../../src/domain/organisations/minimal-organisations.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,sBAAsB;IAC/B,YACoB,EAAU,EACV,IAAY;QADZ,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;IAC7B,CAAC;CACP;AALD,wDAKC"}
@@ -1,9 +1,9 @@
1
1
  import "reflect-metadata";
2
- import { MinimalOrganisationStudiesCountDto } from "./domain/organisations/minimal-organisations-studies-count.dto";
2
+ import { MinimalOrganisationDto } from "./domain/organisations/minimal-organisations.dto";
3
3
  export declare class OrganisationsCampaignManagementAPIClient {
4
4
  private readonly baseUrl;
5
5
  constructor(baseUrl: string);
6
- getMinimalOrganisationsIncludingChildrenStudiesCount(organisationID: number, jwt?: string): Promise<MinimalOrganisationStudiesCountDto>;
6
+ getMinimalOrganisation(organisationID: number, jwt?: string): Promise<MinimalOrganisationDto>;
7
7
  private getRequest;
8
8
  private buildBaseUrl;
9
9
  }
@@ -17,14 +17,14 @@ let OrganisationsCampaignManagementAPIClient = class OrganisationsCampaignManage
17
17
  constructor(baseUrl) {
18
18
  this.baseUrl = baseUrl;
19
19
  }
20
- async getMinimalOrganisationsIncludingChildrenStudiesCount(organisationID, jwt = "") {
20
+ async getMinimalOrganisation(organisationID, jwt = "") {
21
21
  try {
22
- const path = `organisations/minimal-including-children-studies-count/${organisationID}`;
22
+ const path = `organisations/minimal/${organisationID}`;
23
23
  const result = await this.getRequest(path, jwt);
24
24
  return result.body;
25
25
  }
26
26
  catch (error) {
27
- throw new Error(`getMinimalOrganisationsIncludingChildrenStudiesCount error: ${error}`);
27
+ throw new Error(`getMinimalOrganisation error: ${error}`);
28
28
  }
29
29
  }
30
30
  async getRequest(relative = "", jwt = "") {
@@ -1 +1 @@
1
- {"version":3,"file":"organisations-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/organisations-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAG1B,yCAAuC;AAEvC,yCAAyC;AAIlC,IAAM,wCAAwC,GAA9C,MAAM,wCAAwC;IACpD,YACkB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAC7B,CAAC;IAEE,KAAK,CAAC,oDAAoD,CAAC,cAAsB,EAAE,GAAG,GAAG,EAAE;QACjG,IAAI;YACH,MAAM,IAAI,GAAG,0DAA0D,cAAc,EAAE,CAAC;YACxF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAEhD,OAAO,MAAM,CAAC,IAA0C,CAAC;SACzD;QAAC,OAAO,KAAK,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,+DAA+D,KAAK,EAAE,CAAC,CAAC;SACxF;IACF,CAAC;IAGO,KAAK,CAAC,UAAU,CAAC,WAAmB,EAAE,EAAE,GAAG,GAAG,EAAE;QACvD,OAAO,MAAM,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;aACtD,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC;aACvC,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC;aACzB,IAAI,EAAE,CAAC;IACV,CAAC;IAGO,YAAY,CAAC,QAAgB;QACpC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AA5BY,wCAAwC;IADpD,IAAA,sBAAU,GAAE;;GACA,wCAAwC,CA4BpD;AA5BY,4FAAwC"}
1
+ {"version":3,"file":"organisations-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/organisations-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAG1B,yCAAuC;AAEvC,yCAAyC;AAIlC,IAAM,wCAAwC,GAA9C,MAAM,wCAAwC;IACpD,YACkB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAC7B,CAAC;IAEE,KAAK,CAAC,sBAAsB,CAAC,cAAsB,EAAE,GAAG,GAAG,EAAE;QACnE,IAAI;YACH,MAAM,IAAI,GAAG,yBAAyB,cAAc,EAAE,CAAC;YACvD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAEhD,OAAO,MAAM,CAAC,IAA8B,CAAC;SAC7C;QAAC,OAAO,KAAK,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC;SAC1D;IACF,CAAC;IAGO,KAAK,CAAC,UAAU,CAAC,WAAmB,EAAE,EAAE,GAAG,GAAG,EAAE;QACvD,OAAO,MAAM,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;aACtD,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC;aACvC,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC;aACzB,IAAI,EAAE,CAAC;IACV,CAAC;IAGO,YAAY,CAAC,QAAgB;QACpC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AA5BY,wCAAwC;IADpD,IAAA,sBAAU,GAAE;;GACA,wCAAwC,CA4BpD;AA5BY,4FAAwC"}
@@ -1,6 +0,0 @@
1
- export declare class MinimalOrganisationStudiesCountDto {
2
- readonly id: number;
3
- readonly name: string;
4
- readonly totalStudies: number;
5
- constructor(id: number, name: string, totalStudies: number);
6
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MinimalOrganisationStudiesCountDto = void 0;
4
- class MinimalOrganisationStudiesCountDto {
5
- constructor(id, name, totalStudies) {
6
- this.id = id;
7
- this.name = name;
8
- this.totalStudies = totalStudies;
9
- }
10
- }
11
- exports.MinimalOrganisationStudiesCountDto = MinimalOrganisationStudiesCountDto;
12
- //# sourceMappingURL=minimal-organisations-studies-count.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"minimal-organisations-studies-count.dto.js","sourceRoot":"","sources":["../../../../src/domain/organisations/minimal-organisations-studies-count.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,kCAAkC;IAC3C,YACoB,EAAU,EACV,IAAY,EACZ,YAAoB;QAFpB,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;QACZ,iBAAY,GAAZ,YAAY,CAAQ;IACrC,CAAC;CACP;AAND,gFAMC"}