@getjones/test-infra 2.10.11 → 2.10.13

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": "@getjones/test-infra",
3
- "version": "2.10.11",
3
+ "version": "2.10.13",
4
4
  "description": "Providing internal and openapi interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@ const preparePolicyAttributesTypes = function(value, attributeName) {
26
26
 
27
27
  if (dataTypeUtils.isNumber(attributesValue)) {
28
28
  return attributeName === customAttributes.indemnityPeriod ?
29
- AttributeTypes === attributeTypes.numeric :
29
+ AttributeTypes.get(attributeTypes.numeric) :
30
30
  AttributeTypes.get(attributeTypes.limit);
31
31
  }
32
32
 
@@ -61,10 +61,10 @@ const parseRequirementConfig = function(config) {
61
61
 
62
62
  attributes.push({
63
63
  name: attributeName,
64
- type: preparePolicyAttributesTypes(config[policy][attribute]),
64
+ type: preparePolicyAttributesTypes(config[policy][attribute], attributeName),
65
65
  values: attributeName === customAttributes.Including ?
66
66
  config[policy][attribute].split(', ') :
67
- [convertNumericValuesToNumberType(config[policy][attribute])]
67
+ [convertNumericValuesToNumberType(config[policy][attribute], attributeName)]
68
68
  });
69
69
  };
70
70
  } else {
@@ -9,12 +9,12 @@ const inviteRequest = (apiKey, tabId, inviteRequestModel = {}) => {
9
9
  return requestsApi.inviteRequest(apiKey, tabId, inviteRequestModel);
10
10
  };
11
11
 
12
- const getAllAccountRequests = (apiKey, { projectId, type, activationStatuses } = {}) => {
12
+ const getAllAccountRequests = (apiKey, { projectId, type, activationStatuses, propertyPhase } = {}) => {
13
13
  if (activationStatuses) {
14
14
  activationStatuses = activationStatuses.reduce((f, s) => `${f},${s}`);
15
15
  }
16
16
 
17
- return requestsApi.getAllRequests(apiKey, { propertyId: projectId, type, activationStatuses });
17
+ return requestsApi.getAllRequests(apiKey, { propertyId: projectId, type, activationStatuses, propertyPhase });
18
18
  };
19
19
 
20
20
  const getRequestsByEmail = (apiKey, email) => {