package.cjs.cypress-utils.constants.routes.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.urlPaths = exports.requestApis = void 0;
var _common = require("../utils/common");
var allPath = function allPath() {
return "".concat(Cypress.config("baseUrl"), "/**");
};
var tld = _common.env.isProduction ? "com" : "net";
var requestApis = {
countries: (0, _common.getUrl)("countries"),
signUp: (0, _common.getUrl)("signups/**"),
subdomainAvailability: (0, _common.getUrl)("subdomain_availability/**"),
teamMembers: {
all: "/team_members*/**",
bulkUpdate: "/team_members/teams/bulk_update",
index: "/team_members/teams",
show: function show(id) {
return "/team_members/teams/".concat(id);
}
},
allChatPath: "https://*.neetochat.".concat(tld).concat((0, _common.getUrl)("**")),
myProfilePath: function myProfilePath(subdomain) {
return "https://".concat(subdomain, ".neetoauth.").concat(tld, "/my/profile");
},
settingsPath: function settingsPath(subdomain) {
return "https://".concat(subdomain, ".neetoauth.").concat(tld, "/settings");
}
};
exports.requestApis = requestApis;
var urlPaths = {
members: "/members"
};
exports.urlPaths = urlPaths;
Object.defineProperty(requestApis, "allPath", {
get: allPath
});
//# sourceMappingURL=routes.js.map