@studyportals/campaign-management-api-interface 0.20.1 → 0.20.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 CHANGED
@@ -12,4 +12,5 @@ import { StudyCampaignManagementAPIClient } from "./src/study-campaign-managemen
12
12
  import { MinimalOrganisationDto } from "./src/domain/organisations/minimal-organisations.dto";
13
13
  import { CmsGroupDto } from "./src/domain/users/cms-group.dto";
14
14
  import { DetailedUserDto } from "./src/domain/users/detailed-user.dto";
15
- export { AuditorCampaignManagementAPIClient, OrganisationsCampaignManagementAPIClient, CampaignManagementAPIClient, PrivateCampaignManagementAPIClient, UserCampaignManagementAPIClient, StudyCampaignManagementAPIClient, AuditorEntityType, AuditorOperation, GetAuditorDto, CampaignsEntitiesConfigDto, MinimalOrganisationDto, DetailedUserDto, CmsGroupDto, NumberMap, Pricing, ICampaignAuditorData };
15
+ import { LinkType } from "./src/domain/studies/enums/link-type.enum";
16
+ export { AuditorCampaignManagementAPIClient, OrganisationsCampaignManagementAPIClient, CampaignManagementAPIClient, PrivateCampaignManagementAPIClient, UserCampaignManagementAPIClient, StudyCampaignManagementAPIClient, AuditorEntityType, AuditorOperation, LinkType, GetAuditorDto, CampaignsEntitiesConfigDto, MinimalOrganisationDto, DetailedUserDto, CmsGroupDto, 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.CmsGroupDto = exports.DetailedUserDto = exports.MinimalOrganisationDto = 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.CmsGroupDto = exports.DetailedUserDto = exports.MinimalOrganisationDto = exports.CampaignsEntitiesConfigDto = exports.GetAuditorDto = exports.LinkType = 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");
@@ -29,4 +29,6 @@ const cms_group_dto_1 = require("./src/domain/users/cms-group.dto");
29
29
  Object.defineProperty(exports, "CmsGroupDto", { enumerable: true, get: function () { return cms_group_dto_1.CmsGroupDto; } });
30
30
  const detailed_user_dto_1 = require("./src/domain/users/detailed-user.dto");
31
31
  Object.defineProperty(exports, "DetailedUserDto", { enumerable: true, get: function () { return detailed_user_dto_1.DetailedUserDto; } });
32
+ const link_type_enum_1 = require("./src/domain/studies/enums/link-type.enum");
33
+ Object.defineProperty(exports, "LinkType", { enumerable: true, get: function () { return link_type_enum_1.LinkType; } });
32
34
  //# 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;AAiB9F,mHAjBK,2EAAkC,OAiBL;AAhBtC,qHAA8G;AAiB1G,yHAjBK,uFAAwC,OAiBL;AAhB5C,yFAAmF;AAiB/E,4GAjBK,4DAA2B,OAiBL;AAhB/B,kGAAwF;AAsBpF,kGAtBK,4CAAiB,OAsBL;AArBrB,8FAAqF;AAsBjF,iGAtBK,yCAAgB,OAsBL;AArBpB,0EAAqE;AAwBjE,8FAxBK,+BAAa,OAwBL;AAvBjB,qGAAgG;AA0B5F,2GA1BK,yDAA0B,OA0BL;AAzB9B,gGAAgH;AAmC5G,wFAnCgB,+BAAO,OAmChB;AAlCX,yGAAkG;AAY9F,mHAZK,2EAAkC,OAYL;AAXtC,mGAA4F;AAYxF,gHAZK,qEAA+B,OAYL;AAXnC,qGAA8F;AAY1F,iHAZK,uEAAgC,OAYL;AAXpC,oGAA8F;AAwB1F,uGAxBK,kDAAsB,OAwBL;AAvB1B,oEAA+D;AA2B3D,4FA3BK,2BAAW,OA2BL;AA1Bf,4EAAuE;AAyBnE,gGAzBK,mCAAe,OAyBL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,yGAAkG;AAkB9F,mHAlBK,2EAAkC,OAkBL;AAjBtC,qHAA8G;AAkB1G,yHAlBK,uFAAwC,OAkBL;AAjB5C,yFAAmF;AAkB/E,4GAlBK,4DAA2B,OAkBL;AAjB/B,kGAAwF;AAuBpF,kGAvBK,4CAAiB,OAuBL;AAtBrB,8FAAqF;AAuBjF,iGAvBK,yCAAgB,OAuBL;AAtBpB,0EAAqE;AA0BjE,8FA1BK,+BAAa,OA0BL;AAzBjB,qGAAgG;AA4B5F,2GA5BK,yDAA0B,OA4BL;AA3B9B,gGAAgH;AAqC5G,wFArCgB,+BAAO,OAqChB;AApCX,yGAAkG;AAa9F,mHAbK,2EAAkC,OAaL;AAZtC,mGAA4F;AAaxF,gHAbK,qEAA+B,OAaL;AAZnC,qGAA8F;AAa1F,iHAbK,uEAAgC,OAaL;AAZpC,oGAA8F;AA0B1F,uGA1BK,kDAAsB,OA0BL;AAzB1B,oEAA+D;AA6B3D,4FA7BK,2BAAW,OA6BL;AA5Bf,4EAAuE;AA2BnE,gGA3BK,mCAAe,OA2BL;AA1BnB,8EAAqE;AAcjE,yFAdK,yBAAQ,OAcL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/campaign-management-api-interface",
3
- "version": "0.20.1",
3
+ "version": "0.20.3",
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,15 @@
1
+ export declare enum LinkType {
2
+ OTHER = "other",
3
+ HOMEPAGE = "homepage",
4
+ FEATURED = "featured",
5
+ FACEBOOK = "facebook",
6
+ TWITTER = "twitter",
7
+ RSS = "rss",
8
+ FLICKR = "flickr",
9
+ FUNDING = "funding",
10
+ PIXEL = "pixel",
11
+ YOUTUBE = "youtube",
12
+ INSTAGRAM = "instagram",
13
+ SWAPPABLE = "swappable",
14
+ TUITION_FEE = "tuition-fee"
15
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkType = void 0;
4
+ var LinkType;
5
+ (function (LinkType) {
6
+ LinkType["OTHER"] = "other";
7
+ LinkType["HOMEPAGE"] = "homepage";
8
+ LinkType["FEATURED"] = "featured";
9
+ LinkType["FACEBOOK"] = "facebook";
10
+ LinkType["TWITTER"] = "twitter";
11
+ LinkType["RSS"] = "rss";
12
+ LinkType["FLICKR"] = "flickr";
13
+ LinkType["FUNDING"] = "funding";
14
+ LinkType["PIXEL"] = "pixel";
15
+ LinkType["YOUTUBE"] = "youtube";
16
+ LinkType["INSTAGRAM"] = "instagram";
17
+ LinkType["SWAPPABLE"] = "swappable";
18
+ LinkType["TUITION_FEE"] = "tuition-fee";
19
+ })(LinkType = exports.LinkType || (exports.LinkType = {}));
20
+ //# sourceMappingURL=link-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-type.enum.js","sourceRoot":"","sources":["../../../../../src/domain/studies/enums/link-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAcX;AAdD,WAAY,QAAQ;IAChB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,uBAAW,CAAA;IACX,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,uCAA2B,CAAA;AAC/B,CAAC,EAdW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAcnB"}
@@ -1,5 +1,7 @@
1
+ import { LinkType } from "./enums/link-type.enum";
1
2
  export declare class LinkDto {
2
3
  url: string;
3
- type: string;
4
+ type: LinkType;
4
5
  description: string;
6
+ name?: string;
5
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"link-dto.js","sourceRoot":"","sources":["../../../../src/domain/studies/link-dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,OAAO;CAInB;AAJD,0BAIC"}
1
+ {"version":3,"file":"link-dto.js","sourceRoot":"","sources":["../../../../src/domain/studies/link-dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;CAKnB;AALD,0BAKC"}
@@ -1,8 +1,10 @@
1
+ import { UTCDateTime } from "@studyportals/mb-platform-date-time";
1
2
  import { CmsGroupDto } from "./cms-group.dto";
2
3
  export declare class DetailedUserDto {
3
4
  readonly id: number;
4
5
  readonly fullName: string;
5
6
  readonly email: string;
7
+ readonly lastLogin: UTCDateTime;
6
8
  readonly role: string;
7
9
  readonly cmsGroups: CmsGroupDto[];
8
10
  readonly phoneNumber: string;
@@ -10,5 +12,5 @@ export declare class DetailedUserDto {
10
12
  readonly hasERTAccess: boolean;
11
13
  readonly hasSMTAccess: boolean;
12
14
  readonly activeCampaigns: number[];
13
- constructor(id: number, fullName: string, email: string, role: string, cmsGroups: CmsGroupDto[], phoneNumber: string, hasTableauAccess: boolean, hasERTAccess: boolean, hasSMTAccess: boolean, activeCampaigns: number[]);
15
+ constructor(id: number, fullName: string, email: string, lastLogin: UTCDateTime, role: string, cmsGroups: CmsGroupDto[], phoneNumber: string, hasTableauAccess: boolean, hasERTAccess: boolean, hasSMTAccess: boolean, activeCampaigns: number[]);
14
16
  }
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DetailedUserDto = void 0;
4
4
  class DetailedUserDto {
5
- constructor(id, fullName, email, role, cmsGroups, phoneNumber, hasTableauAccess, hasERTAccess, hasSMTAccess, activeCampaigns) {
5
+ constructor(id, fullName, email, lastLogin, role, cmsGroups, phoneNumber, hasTableauAccess, hasERTAccess, hasSMTAccess, activeCampaigns) {
6
6
  this.id = id;
7
7
  this.fullName = fullName;
8
8
  this.email = email;
9
+ this.lastLogin = lastLogin;
9
10
  this.role = role;
10
11
  this.cmsGroups = cmsGroups;
11
12
  this.phoneNumber = phoneNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"detailed-user.dto.js","sourceRoot":"","sources":["../../../../src/domain/users/detailed-user.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IACxB,YACoB,EAAU,EACV,QAAgB,EAChB,KAAa,EACb,IAAY,EACZ,SAAwB,EACxB,WAAmB,EACnB,gBAAyB,EACzB,YAAqB,EACrB,YAAqB,EACrB,eAAyB;QATzB,OAAE,GAAF,EAAE,CAAQ;QACV,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAAQ;QACZ,cAAS,GAAT,SAAS,CAAe;QACxB,gBAAW,GAAX,WAAW,CAAQ;QACnB,qBAAgB,GAAhB,gBAAgB,CAAS;QACzB,iBAAY,GAAZ,YAAY,CAAS;QACrB,iBAAY,GAAZ,YAAY,CAAS;QACrB,oBAAe,GAAf,eAAe,CAAU;IACzC,CAAC;CACR;AAbD,0CAaC"}
1
+ {"version":3,"file":"detailed-user.dto.js","sourceRoot":"","sources":["../../../../src/domain/users/detailed-user.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAe;IACxB,YACoB,EAAU,EACV,QAAgB,EAChB,KAAa,EACb,SAAsB,EACtB,IAAY,EACZ,SAAwB,EACxB,WAAmB,EACnB,gBAAyB,EACzB,YAAqB,EACrB,YAAqB,EACrB,eAAyB;QAVzB,OAAE,GAAF,EAAE,CAAQ;QACV,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,cAAS,GAAT,SAAS,CAAa;QACtB,SAAI,GAAJ,IAAI,CAAQ;QACZ,cAAS,GAAT,SAAS,CAAe;QACxB,gBAAW,GAAX,WAAW,CAAQ;QACnB,qBAAgB,GAAhB,gBAAgB,CAAS;QACzB,iBAAY,GAAZ,YAAY,CAAS;QACrB,iBAAY,GAAZ,YAAY,CAAS;QACrB,oBAAe,GAAf,eAAe,CAAU;IACzC,CAAC;CACR;AAdD,0CAcC"}