@akanjs/constant 0.0.150 → 0.0.152
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/cjs/src/index.js +8 -0
- package/cjs/src/types.js +10 -1
- package/esm/src/index.js +4 -0
- package/esm/src/types.js +10 -1
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/types.d.ts +6 -1
package/cjs/src/index.js
CHANGED
|
@@ -2,6 +2,10 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
5
9
|
var __copyProps = (to, from, except, desc) => {
|
|
6
10
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
11
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,6 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var src_exports = {};
|
|
20
|
+
__export(src_exports, {
|
|
21
|
+
Srvs: () => Srvs
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(src_exports);
|
|
17
24
|
__reExport(src_exports, require("./types"), module.exports);
|
|
18
25
|
__reExport(src_exports, require("./fieldMeta"), module.exports);
|
|
@@ -21,3 +28,4 @@ __reExport(src_exports, require("./constantDecorator"), module.exports);
|
|
|
21
28
|
__reExport(src_exports, require("./filterMeta"), module.exports);
|
|
22
29
|
__reExport(src_exports, require("./baseGql"), module.exports);
|
|
23
30
|
__reExport(src_exports, require("./classMeta"), module.exports);
|
|
31
|
+
const Srvs = {};
|
package/cjs/src/types.js
CHANGED
|
@@ -18,12 +18,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var types_exports = {};
|
|
19
19
|
__export(types_exports, {
|
|
20
20
|
DEFAULT_PAGE_SIZE: () => DEFAULT_PAGE_SIZE,
|
|
21
|
-
|
|
21
|
+
MAX_INT: () => MAX_INT,
|
|
22
|
+
Responsive: () => Responsive,
|
|
23
|
+
defaultListOption: () => defaultListOption,
|
|
24
|
+
responsiveWidths: () => responsiveWidths,
|
|
25
|
+
unsetDate: () => unsetDate
|
|
22
26
|
});
|
|
23
27
|
module.exports = __toCommonJS(types_exports);
|
|
28
|
+
var import_base = require("@akanjs/base");
|
|
24
29
|
const defaultListOption = {
|
|
25
30
|
limit: 20,
|
|
26
31
|
skip: 0,
|
|
27
32
|
sort: "latest"
|
|
28
33
|
};
|
|
29
34
|
const DEFAULT_PAGE_SIZE = 20;
|
|
35
|
+
const unsetDate = (0, import_base.dayjs)(/* @__PURE__ */ new Date("0000"));
|
|
36
|
+
const MAX_INT = 2147483647;
|
|
37
|
+
const Responsive = (0, import_base.enumOf)(["xl", "lg", "md", "sm", "xs"]);
|
|
38
|
+
const responsiveWidths = [1200, 992, 768, 576, 0];
|
package/esm/src/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const Srvs = {};
|
|
1
2
|
export * from "./types";
|
|
2
3
|
export * from "./fieldMeta";
|
|
3
4
|
export * from "./scalar";
|
|
@@ -5,3 +6,6 @@ export * from "./constantDecorator";
|
|
|
5
6
|
export * from "./filterMeta";
|
|
6
7
|
export * from "./baseGql";
|
|
7
8
|
export * from "./classMeta";
|
|
9
|
+
export {
|
|
10
|
+
Srvs
|
|
11
|
+
};
|
package/esm/src/types.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { dayjs, enumOf } from "@akanjs/base";
|
|
1
2
|
const defaultListOption = {
|
|
2
3
|
limit: 20,
|
|
3
4
|
skip: 0,
|
|
4
5
|
sort: "latest"
|
|
5
6
|
};
|
|
6
7
|
const DEFAULT_PAGE_SIZE = 20;
|
|
8
|
+
const unsetDate = dayjs(/* @__PURE__ */ new Date("0000"));
|
|
9
|
+
const MAX_INT = 2147483647;
|
|
10
|
+
const Responsive = enumOf(["xl", "lg", "md", "sm", "xs"]);
|
|
11
|
+
const responsiveWidths = [1200, 992, 768, 576, 0];
|
|
7
12
|
export {
|
|
8
13
|
DEFAULT_PAGE_SIZE,
|
|
9
|
-
|
|
14
|
+
MAX_INT,
|
|
15
|
+
Responsive,
|
|
16
|
+
defaultListOption,
|
|
17
|
+
responsiveWidths,
|
|
18
|
+
unsetDate
|
|
10
19
|
};
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BaseObject, Dayjs } from "@akanjs/base";
|
|
1
|
+
import { type BaseObject, Dayjs, enumOf } from "@akanjs/base";
|
|
2
2
|
import type { FilterQuery, HydratedDocument, ProjectionType } from "mongoose";
|
|
3
3
|
export type { FilterQuery as QueryOf };
|
|
4
4
|
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
@@ -90,3 +90,8 @@ export interface TextDoc {
|
|
|
90
90
|
[key: string]: string | TextDoc;
|
|
91
91
|
}
|
|
92
92
|
export type NonFunctionalKeys<T> = keyof T extends (...any: any[]) => any ? never : keyof T;
|
|
93
|
+
export declare const unsetDate: Dayjs;
|
|
94
|
+
export declare const MAX_INT = 2147483647;
|
|
95
|
+
export declare const Responsive: import("@akanjs/base").Enum<"xl" | "lg" | "md" | "sm" | "xs">;
|
|
96
|
+
export type Responsive = enumOf<typeof Responsive>;
|
|
97
|
+
export declare const responsiveWidths: readonly [1200, 992, 768, 576, 0];
|