@studyportals/campaign-management-api-interface 9.1.1-2 → 9.1.1-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/campaign-management-api-interface",
3
- "version": "9.1.1-2",
3
+ "version": "9.1.1-3",
4
4
  "scripts": {
5
5
  "compile": "rm -fR bin && npx tsc",
6
6
  "test-u": "jest -c jest.config.unit.json --maxWorkers=1",
@@ -18,5 +18,5 @@ export declare class CampaignLiftExcludedFieldValidator {
18
18
  * @param partnershipType
19
19
  * @returns boolean - true if the data is valid, false if partnership type is not allowed to be excluded from campaign lift
20
20
  */
21
- static validateData(isExcludedFromCampaignLift: boolean, partnershipType: PartnershipType): boolean;
21
+ static validateData(isExcludedFromCampaignLift: boolean, partnershipType: PartnershipType | null): boolean;
22
22
  }
@@ -33,6 +33,9 @@ class CampaignLiftExcludedFieldValidator {
33
33
  if (isExcludedFromCampaignLift === false) {
34
34
  return true;
35
35
  }
36
+ if (partnershipType === null) {
37
+ return false;
38
+ }
36
39
  if (!exports.CAMPAIGN_LIFT_EXCLUDED_ALLOWED_PARTNERSHIP_TYPES.includes(partnershipType)) {
37
40
  return false;
38
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"campaign-lift-excluded-field-validator.js","sourceRoot":"","sources":["../../../../src/validation/campaign/campaign-lift-excluded-field-validator.ts"],"names":[],"mappings":";;;AAAA,oDAAwD;AAE3C,QAAA,mCAAmC,GAAI;IACnD,OAAO;IACP,OAAO;CACP,CAAC;AAEW,QAAA,gDAAgD,GAAG;IAC/D,0BAAe,CAAC,GAAG;IACnB,0BAAe,CAAC,UAAU;CAC1B,CAAC;AAEF,MAAa,kCAAkC;IAC9C;;;;;OAKG;IACI,MAAM,CAAC,cAAc,CAAC,MAAc;QAC1C,OAAO,2CAAmC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,YAAY,CAAC,0BAAmC,EAAE,eAAgC;QAE/F,IAAI,0BAA0B,KAAK,KAAK,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAC;QACb,CAAC;QAED,IAAI,CAAC,wDAAgD,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;YACjF,OAAO,KAAK,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAhCD,gFAgCC"}
1
+ {"version":3,"file":"campaign-lift-excluded-field-validator.js","sourceRoot":"","sources":["../../../../src/validation/campaign/campaign-lift-excluded-field-validator.ts"],"names":[],"mappings":";;;AAAA,oDAAwD;AAE3C,QAAA,mCAAmC,GAAI;IACnD,OAAO;IACP,OAAO;CACP,CAAC;AAEW,QAAA,gDAAgD,GAAG;IAC/D,0BAAe,CAAC,GAAG;IACnB,0BAAe,CAAC,UAAU;CAC1B,CAAC;AAEF,MAAa,kCAAkC;IAC9C;;;;;OAKG;IACI,MAAM,CAAC,cAAc,CAAC,MAAc;QAC1C,OAAO,2CAAmC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,YAAY,CAAC,0BAAmC,EAAE,eAAuC;QACtG,IAAI,0BAA0B,KAAK,KAAK,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAC;QACb,CAAC;QAED,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC;QACd,CAAC;QAED,IAAI,CAAC,wDAAgD,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;YACjF,OAAO,KAAK,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAnCD,gFAmCC"}