package.cjs.constants.index.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
});
var _exportNames = {
BASE_API_V1_URL: true,
DEFAULT_PAGE_SIZE: true,
DEFAULT_PAGE_INDEX: true,
DEFAULT_STALE_TIME: true,
SINGULAR: true,
PLURAL: true
};
exports.SINGULAR = exports.PLURAL = exports.DEFAULT_STALE_TIME = exports.DEFAULT_PAGE_SIZE = exports.DEFAULT_PAGE_INDEX = exports.BASE_API_V1_URL = void 0;
var _regex = require("./regex");
Object.keys(_regex).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _regex[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _regex[key];
}
});
});
var BASE_API_V1_URL = "/api/v1";
exports.BASE_API_V1_URL = BASE_API_V1_URL;
var DEFAULT_PAGE_SIZE = 30;
exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
var DEFAULT_PAGE_INDEX = 1;
exports.DEFAULT_PAGE_INDEX = DEFAULT_PAGE_INDEX;
var DEFAULT_STALE_TIME = 3600000; // 1 hour
// Constants for translation
exports.DEFAULT_STALE_TIME = DEFAULT_STALE_TIME;
var SINGULAR = {
count: 1
};
exports.SINGULAR = SINGULAR;
var PLURAL = {
count: 2
};
exports.PLURAL = PLURAL;
//# sourceMappingURL=index.js.map