@bigbinary/neeto-playwright-commons 1.19.0 → 1.19.1
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.cjs.js +31 -0
- package/index.cjs.js.map +1 -1
- package/index.d.ts +14 -4
- package/index.js +31 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -49,6 +49,36 @@ function _interopNamespaceDefault(e) {
|
|
|
49
49
|
var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs$d);
|
|
50
50
|
var Path__namespace = /*#__PURE__*/_interopNamespaceDefault(Path);
|
|
51
51
|
|
|
52
|
+
let MemberApis$1 = class MemberApis {
|
|
53
|
+
constructor(neetoPlaywrightUtilities) {
|
|
54
|
+
this.neetoPlaywrightUtilities = neetoPlaywrightUtilities;
|
|
55
|
+
this.create = (body) => this.neetoPlaywrightUtilities.apiRequest({
|
|
56
|
+
method: "post",
|
|
57
|
+
url: this.teamsBaseUrl,
|
|
58
|
+
body: { user: body },
|
|
59
|
+
});
|
|
60
|
+
this.jobStatus = (jobId) => this.neetoPlaywrightUtilities.apiRequest({
|
|
61
|
+
url: `${this.teamsBaseUrl}/creation_status/${jobId}`,
|
|
62
|
+
});
|
|
63
|
+
this.fetch = (params) => this.neetoPlaywrightUtilities.apiRequest({
|
|
64
|
+
method: "get",
|
|
65
|
+
url: this.teamsBaseUrl,
|
|
66
|
+
params,
|
|
67
|
+
});
|
|
68
|
+
this.update = (memberId, body) => this.neetoPlaywrightUtilities.apiRequest({
|
|
69
|
+
method: "put",
|
|
70
|
+
url: `${this.teamsBaseUrl}/${memberId}`,
|
|
71
|
+
body: { team: body },
|
|
72
|
+
});
|
|
73
|
+
this.bulkUpdate = (body) => this.neetoPlaywrightUtilities.apiRequest({
|
|
74
|
+
method: "patch",
|
|
75
|
+
url: `${this.teamsBaseUrl}/bulk_update`,
|
|
76
|
+
body: { users: body },
|
|
77
|
+
});
|
|
78
|
+
this.teamsBaseUrl = "/team_members/teams";
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
52
82
|
const ENVIRONMENT = {
|
|
53
83
|
development: "development",
|
|
54
84
|
staging: "staging",
|
|
@@ -194789,6 +194819,7 @@ exports.MEMBER_TEXTS = MEMBER_TEXTS;
|
|
|
194789
194819
|
exports.MERGE_TAGS_SELECTORS = MERGE_TAGS_SELECTORS;
|
|
194790
194820
|
exports.MailerUtils = MailerUtils;
|
|
194791
194821
|
exports.Member = Member;
|
|
194822
|
+
exports.MemberApis = MemberApis$1;
|
|
194792
194823
|
exports.NEETO_AUTH_BASE_URL = NEETO_AUTH_BASE_URL;
|
|
194793
194824
|
exports.NEETO_EDITOR_SELECTORS = NEETO_EDITOR_SELECTORS;
|
|
194794
194825
|
exports.NEETO_FILTERS_SELECTORS = NEETO_FILTERS_SELECTORS;
|