@getjones/test-infra 2.10.12 → 2.10.14
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
|
@@ -34,8 +34,8 @@ const getOrCreateTab = async (projectId, tabName, tabType, context) => {
|
|
|
34
34
|
return createResponse.data;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
const updateTab = async (projectId,
|
|
38
|
-
const tabModel = new UpdateTabModel(projectId,
|
|
37
|
+
const updateTab = async ({ id, projectId, name, type, context, dateModified }) => {
|
|
38
|
+
const tabModel = new UpdateTabModel({ id, projectId, name, type, dateModified });
|
|
39
39
|
return tabsAPI.updateTab(tabModel, context);
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -7,11 +7,12 @@ class CreateTabModel {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
class UpdateTabModel {
|
|
10
|
-
constructor(projectId, tabName, tabType, tabId) {
|
|
10
|
+
constructor({ projectId, name: tabName, type: tabType, id: tabId, dateModified } = {}) {
|
|
11
|
+
this.tabId = tabId;
|
|
11
12
|
this.projectId = projectId;
|
|
12
13
|
this.tabName = tabName;
|
|
13
14
|
this.type = tabType;
|
|
14
|
-
this.
|
|
15
|
+
this.dateModified = dateModified;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -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) => {
|
|
Binary file
|